/* ============ RESET & BASICS ============ */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a919e;
    --text-dark: #222;
    --text-light: #666;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    background-color: #fff;
}

/* 1. Main Wrapper Styling */
.main-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow:
        -10px 0 20px -10px rgba(0, 0, 0, 0.1),
        10px 0 20px -10px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

a {
    color: #4a919e;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    /* Adjusted to fit neatly inside the 1100px wrapper */
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 1100px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.mb-12 {
    margin-bottom: 3rem;
}

/* Added for spacing consistency */

.sub-title {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #367a85;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
    background-color: #fff;
    color: var(--primary-color);
}

/* ============ HEADER ============ */
/* ============ HEADER ============ */
header {
    padding: 20px 0;
    background: #fff;
    position: sticky;
    /* Makes the header stick */
    top: 0;
    /* Position it at the very top */
    z-index: 1000;
    /* Ensures it stays above all other content */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Optional: adds a shadow so it stands out while scrolling */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 130px;
    border-radius: 50%;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* ============ DROPDOWN NAVIGATION ============ */

/* Ensure the parent <li> is the reference for positioning */
#main-nav ul li {
    position: relative;
    display: inline-block;
}

/* Dropdown Menu (Hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%;
    /* Sits right below the nav link */
    left: 0;
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
}

/* Dropdown Links */
.dropdown-content li {
    display: block;
    width: 100%;
}

.dropdown-content li a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-transform: none;
    /* Keeps it readable */
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Arrow icon styling */
.dropbtn i {
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* ============ NAV SOCIAL ICON ============ */
.nav-social a {
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    margin-left: 10px;
}

.nav-social a:hover {
    color: var(--text-dark) !important;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .dropdown-content {
        position: static;
        display: none;
        /* Toggle this with JS if you want click-to-open on mobile */
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 20px;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }
}

/* ============ HERO SECTION ============ */
.hero {
    height: 550px;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #000;
    font-weight: 500;
}


/* ============ SUB-PAGE HERO STYLING ============ */
.sub-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/hero-bg.jpg') no-repeat center center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.sub-hero h1 {
    color: #fff !important;
    font-size: 3rem;
    margin: 0;
}

/* Ensure the wrapper looks consistent on internal pages */
.page-content {
    padding: 80px 0;
}

/* ============ UPDATED 5-COLUMN SERVICES GRID ============ */

/* Utility for full width if desired */
.container-fluid {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 10px;
}

.services-grid {
    display: grid;
    /* Creates 5 equal columns */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    /* Reduced gap to fit 5 items comfortably */
    margin-top: 50px;
    width: 100%;
}

.service-item {
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

body.index-2-page #services .service-item:hover {
    box-shadow: none !important;
}

body.index-2-page #services .service-item {
    box-shadow: none !important;
}

.service-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.service-label {
    padding: 12px 5px;
    /* Slightly tighter padding for smaller horizontal space */
    font-size: 0.8rem;
    /* Slightly smaller font to prevent text wrapping awkwardly */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 items on tablets */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 items on smaller tablets */
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* 1 item on mobile */
    }

    .service-item img {
        height: 300px;
    }
}

/* ============ PORTFOLIO FULL-WIDTH & FILTERS ============ */

/* 1. Restore Filter Styling */
.portfolio-filters {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 2px 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 2. Force Full-Width & Collapse */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    /* Resets from 100vw */
    position: static;
    /* Resets relative positioning */
    margin-left: 0;
    /* Removes negative margin offset */
    margin-right: 0;
    /* Removes negative margin offset */
    padding: 0;
    gap: 10px;
    /* Adds the very small padding requested */
    justify-content: center;
}

.portfolio-item {
    /* calculation: (100% / 4 items) - gap offset */
    flex: 0 0 calc(25% - 8px);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 0;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay Styling */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 145, 158, 0.9);
    /* Primary Color */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: #fff;
}

/* Responsive */
/* Responsive adjustments for the new grid gap */
@media (max-width: 992px) {
    .portfolio-item {
        flex: 0 0 calc(50% - 10px);
    }

    /* 2 per row with gap */
}

@media (max-width: 600px) {
    .portfolio-item {
        flex: 0 0 100%;
    }

    /* Stacked on mobile */
}

/* ============ RESPONSIVE RESIZING ============ */

/* For tablets and smaller desktops (reduce to 2 columns) */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile phones (reduce to 1 column) */
@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        height: 280px;
    }
}

/* ============ CLIENTS SECTION ============ */
.clients-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.clients-flex img {
    margin: 20px;
    filter: grayscale(50%);
    opacity: 0.7;
}

/* ============ PARTNER CTA SECTION ============ */

.partner-cta-section {
    position: relative;
    padding: 100px 0;
    /* The Background Image */
    background: url('partners.png') no-repeat center center/cover;
    overflow: hidden;
}

/* 65% Dark Overlay - Applies ONLY to the background area */
.partner-cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Black at 0.65 alpha/opacity */
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Container for Content - Sits ABOVE the overlay */
.partner-flex {
    position: relative;
    z-index: 2;
    /* Ensures text and button are not affected by opacity */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Typography & Color Overrides */
.partner-text {
    text-align: center;
}

.partner-text h2 {
    color: #ffffff !important;
    /* Forces white regardless of main.css defaults */
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.partner-text p {
    color: #f8f9fa !important;
    /* Light grey for subtext */
    font-size: 1.1rem;
    margin: 0;
}

/* Button Styling (Matching your Montserrat theme) */
.btn-inverted {
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-inverted:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ============ PARTNER MODAL STYLES ============ */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Form Elements matching main.css theme */
#partnership-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

#partnership-form input,
#partnership-form select,
#partnership-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 20px;
}

#partnership-form textarea {
    height: 100px;
    resize: vertical;
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 25px;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* ============ DESKTOP LAYOUT (768px+) ============ */
@media (min-width: 768px) {
    .partner-flex {
        flex-direction: row;
        text-align: left;
        align-items: center;
        /* Fixes vertical alignment */
    }

    .partner-text {
        text-align: left;
        max-width: 60%;
    }
}

/* ============ CONTACT FORM ============ */
#contact form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #f3f4f6;
    max-width: 700px;
    /* Centered in container */
    margin: 0 auto;
}

#contact label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#contact input,
#contact select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

#contact textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    /* Increased height settings */
    height: 150px;
    /* Sets the default height */
    min-height: 120px;
    /* Ensures it doesn't get too small */
    resize: vertical;
    /* Allows the user to drag and expand it vertically */
    font-family: inherit;
    /* Ensures the font matches the rest of the form */
}

#contact button[type="submit"] {
    width: 100%;
    background-color: #14b8a6;
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* The actual select element */
#contact select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    /* Extra right padding for the arrow */
    background-color: #f9fafb;
    /* bg-gray-50 */
    border: 1px solid #e5e7eb;
    /* border-gray-200 */
    border-radius: 0.5rem;
    /* rounded-lg */
    color: #374151;
    /* text-gray-700 */
    appearance: none;
    /* appearance-none: removes default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* The custom SVG arrow styling */
.select-arrow {
    pointer-events: none;
    /* Allows clicks to pass through to the select */
    position: absolute;
    inset-y: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding-right: 0.5rem;
    /* px-2 */
    color: #374151;
    /* text-gray-700 */
}

.select-arrow svg {
    fill: currentColor;
    height: 1rem;
    /* h-4 */
    width: 1rem;
    /* w-4 */
}

/* Match focus ring of the select */
#contact select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.5);
    outline: none;
}

/* ============ FOOTER ============ */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 40px 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-branding {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: center;
}

.footer-logo {
    width: 90px;
    height: auto;
    align-self: flex-start;
}

.footer-branding h4,
.footer-branding p {
    margin: 0;
    line-height: 1.2;
}

.footer-branding h4 {
    color: #f9fafb;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #fff;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 24px;
    text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    .services-grid {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* ============ MOBILE NAV ============ */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .nav-container {
        flex-direction: row;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 1rem;
    }
}

/* ============ CONTACT PAGE SPECIFIC STYLES ============ */

/* Grid layout for the contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* Contact detail items (left side) */
.contact-details {
    padding-top: 10px;
}

.detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Standalone Form Styling (Removes Shadow) */
#standalone-contact-form {
    background-color: #ffffff;
    padding: 20px 0;
    /* Removed heavy padding since shadow is gone */
    border-radius: 0;
    box-shadow: none;
    /* Explicitly removed drop shadow */
    border: none;
}

#standalone-contact-form label {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#standalone-contact-form input,
#standalone-contact-form select,
#standalone-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 20px;
}

#standalone-contact-form textarea {
    height: 160px;
    resize: vertical;
}

#standalone-contact-form .btn-primary {
    width: 100%;
    padding: 15px;
}

/* Custom Select Styling for Contact Page */
.select-wrapper {
    position: relative;
    width: 100%;
}

#standalone-contact-form select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    /* Extra right padding for the arrow */
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    color: var(--text-dark);
    appearance: none;
    /* Removes default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Custom SVG Arrow positioning */
.select-wrapper .select-arrow {
    pointer-events: none;
    position: absolute;
    top: 35%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #374151;
}

.select-wrapper .select-arrow svg {
    fill: currentColor;
    height: 1.2rem;
    width: 1.2rem;
}

/* Match focus ring of the select to your primary theme */
#standalone-contact-form select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
    outline: none;
}

/* Responsive adjustment for Contact Page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============ TESTIMONIALS PAGE STYLES ============ */

/* Grid Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Testimonial Card Styling */
.testimonial-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border: 1px solid #e5e7eb;
    /* Subtle border instead of shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.quote-icon i {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.client-info h4 {
    margin-bottom: 2px;
    font-size: 1rem;
    color: var(--text-dark);
}

.client-info span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.rating i {
    color: #f59e0b;
    /* Golden star color */
    font-size: 0.85rem;
    margin-right: 2px;
}

/* Testimonial Form (No Shadow) */
#testimonial-form {
    background-color: #f9fafb;
    padding: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    /* Explicitly removed */
}

#testimonial-form label {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#testimonial-form input,
#testimonial-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}

#testimonial-form textarea {
    height: 120px;
    resize: vertical;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    #testimonial-form {
        padding: 20px;
    }
}

/* ============ SERVICE DETAIL PAGE STYLES ============ */

/* Grid for the 6 specific PR services */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.detail-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #eee;
    /* No shadow, matching your preference */
    transition: transform 0.3s ease;
}

.detail-card:hover {
    border-color: var(--primary-color);
    /* Primary color from root */
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    /* #4a919e */
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Responsive details */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ EXTENDED VISUAL STYLES ============ */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    overflow: hidden;
    height: 400px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.icon-list {
    margin-top: 20px;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.icon-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@media (max-width: 768px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .feature-image {
        height: 300px;
    }
}


/* ============ COMPACT VISUAL GRID ============ */
.visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.visual-card {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.visual-card-image {
    height: 220px;
    /* Collapsed height from 400px */
    width: 100%;
    overflow: hidden;
}

.visual-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-card-content {
    padding: 25px;
}

.visual-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .visual-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ COLLAPSED SPLIT GRID (Updated for 50/50 & Parallax) ============ */
.split-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.split-row {
    width: 100%;
    margin: 0;
    /* Removes any accidental horizontal spacing */
    display: flex;
    align-items: stretch;
    
    /* Maintains the height of the block */
}

.split-row.reverse {
    flex-direction: row-reverse;
}

.split-image {
    /* STRICT 50/50 SPLIT */
    flex: 0 0 50%;
    width: 50%;
    position: relative;
    overflow: hidden;
    /* masks the taller image */
}

.split-image img {
    width: 100%;
    /* PARALLAX SETUP: Make image taller than container so it has room to move */
    height: 125%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: -12.5%;
    /* Center the taller image initially */
    left: 0;
    will-change: transform;
    /* Performance optimization */
}

.split-text {
    /* STRICT 50/50 SPLIT */
    flex: 0 0 50%;
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
   
    z-index: 2;
    /* Ensures text stays above if overlap occurs */
}



.split-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* RESPONSIVE ADJUSTMENT */
@media (max-width: 768px) {

    .split-row,
    .split-row.reverse {
        flex-direction: column;
    }

    .split-image,
    .split-text {
        flex: auto;
        width: 100%;
        /* Reset width for mobile */
    }

    .split-image {
        height: 300px;
    }

    /* Reset parallax for mobile to save battery/performance */
    .split-image img {
        height: 100%;
        top: 0;
        position: relative;
    }

    .split-text {
        padding: 40px 20px;
    }
}

/* ============ FULL-WIDTH CLICKABLE CTA STRIP ============ */
.cta-strip {
    background-color: var(--primary-color);
    display: block;
    /* Makes the entire anchor area clickable */
    padding: 50px 0;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.cta-strip:hover {
    background-color: #367a85;
    /* Slightly darker shade for hover effect */
}

.cta-strip h2 {
    color: #ffffff !important;
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-strip p {
    color: #f0f0f0;
    margin-top: 10px;
    font-weight: 400;
}

/* ============ STICKY CONSULTATION BUTTON ============ */
.sticky-consult-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sticky-consult-cta:hover {
    background-color: #367a85;
}

@media (max-width: 768px) {
    .sticky-consult-cta {
        right: 12px;
        left: 12px;
        bottom: 12px;
        text-align: center;
    }
}

/* ============ ABOUT US PAGE CONTENT BLOCKS ============ */
.about-intro {
    background: #fff;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.about-intro-copy {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-intro-copy h2 {
    margin-bottom: 16px;
}

.about-intro-copy p {
    margin-bottom: 14px;
}

.about-intro-image {
    min-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.about-us-page .about-intro-image img {
    width: 800px;
    height: 500px;

}

.about-why-exist {
    max-width: 900px;
    margin: 0 auto;
}

.about-position-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.about-position-card {
    
    padding: 18px;
}

.about-position-card .icon-list i {
    color: var(--primary-color);
}

.about-position-intro {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.about-position-image {
    min-height: 100%;
    overflow: hidden;
}

.about-position-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

.about-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.about-work-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 28px;
}

.about-work-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.about-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.about-partner-item {
    background: #fff;
    padding: 18px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.about-partner-note {
    text-align: center;
    margin-top: 20px;
}


.about-commitment-signoff {
    margin-top: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

@media (max-width: 992px) {

    .about-intro-grid,
    .about-position-grid,
    .about-work-grid,
    .about-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .about-intro-grid,
    .about-position-grid,
    .about-work-grid,
    .about-partner-grid {
        grid-template-columns: 1fr;
    }

    .about-intro-copy {
        padding: 24px;
    }
}

/* ============ ABOUT US TEAM SECTION ============ */
body.about-us-page .about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

body.about-us-page .about-team-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

body.about-us-page .about-team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 24px auto 0;
    border: 4px solid #f3f4f6;
}

body.about-us-page .about-team-content {
    padding: 20px;
    text-align: center;
}

body.about-us-page .about-team-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

body.about-us-page .about-team-content p {
    margin-bottom: 12px;
}

body.about-us-page .about-team-content a {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 992px) {
    body.about-us-page .about-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.about-us-page .about-team-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ PORTFOLIO CASE STUDIES PAGE ============ */
body.portfolio-page .portfolio-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

body.portfolio-page .portfolio-case-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

body.portfolio-page .portfolio-case-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

body.portfolio-page .portfolio-case-content {
    padding: 24px;
}

body.portfolio-page .portfolio-case-content h3 {
    color: var(--primary-color);
    margin-bottom: 14px;
}

body.portfolio-page .portfolio-case-content p {
    margin-bottom: 12px;
}

@media (max-width: 992px) {
    body.portfolio-page .portfolio-case-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ NO PARALLAX + FIT IMAGES (SPECIFIC PAGES) ============ */
body.media-analysis-page .split-image,
body.activation-solutions-page .split-image,
body.marketing-page .split-image,
body.property-marketing-page .split-image,
body.pr-reputation-page .split-image {
    display: flex;
    align-items: stretch !important;
    justify-content: center;
    background: #fff;
}

body.media-analysis-page .split-image img,
body.activation-solutions-page .split-image img,
body.marketing-page .split-image img,
body.property-marketing-page .split-image img,
body.pr-reputation-page .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    position: relative;
    top: 0;
    transform: none !important;
}

/* ============ TESTIMONIALS (IDENTICAL THEME & COLLAPSED) ============ */
.testimonials-outer {
    width: 100%;
    overflow: hidden;
    /* This ensures it matches the services section color exactly */
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Forces 1 row */
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    /* Removes all spacing between tiles */
}

.testimonial-tile {
    flex: 0 0 25%;
    /* Exactly 1/4 width */
    height: 450px;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    border: none;
}

.testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Overlay for text legibility */
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.3s ease;
}

.testimonial-tile:hover .testimonial-overlay {
    background: rgba(74, 145, 158, 0.85);
    /* Hover color matches primary teal */
}

.testimonial-content {
    color: #ffffff;
    /* Deep shadow as requested for text over images */
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 1);
}

.testimonial-content .quote {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-content .client-name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Tablet and Mobile adjustments to keep tiles collapsed */
@media (max-width: 992px) {
    .testimonials-grid {
        flex-wrap: wrap;
    }

    .testimonial-tile {
        flex: 0 0 50%;
    }

    /* 2x2 grid */
}

@media (max-width: 600px) {
    .testimonial-tile {
        flex: 0 0 100%;
    }

    /* Stacked */
}

/* ============ ABOUT SECTION MASONRY GRID ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Gallery slightly wider than text */
    gap: 60px;
    margin-top: 50px;
    align-items: center;
    max-width: 1400px;
    /* Optional: keeps the content from becoming too wide to read */
    margin-left: auto;
    margin-right: auto;
}

/* Masonry Gallery Layout */
.about-gallery.collapsed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 4px;
    overflow: hidden;

}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom spans to create the "Masonry" effect */
.item-1 {
    grid-row: span 2;
}

/* Tall image */
.item-2 {
    grid-row: span 1;
}

.item-3 {
    grid-row: span 2;
}

/* Tall image */
.item-4 {
    grid-row: span 1;
}

.item-5 {
    grid-column: span 2;
    grid-row: span 1;
}

/* Wide bottom image */

/* Text Side Styling */
.about-text-side {
    text-align: left;
}

.about-text-side h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text-side p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Responsive Logic */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        /* Stack on tablet/mobile */
    }

    .about-gallery {
        order: 2;
        /* Text appears first on mobile */
    }

    .about-text-side {
        order: 1;
        margin-bottom: 30px;
    }
}

body.marketing-page .split-image {
    position: static;
    overflow: visible;
    display: block;
    background: transparent;
}

body.marketing-page .split-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    top: 0;
}

body.marketing-page .split-image {
    flex: 0 0 50%;
    width: 50%;
    position: static;
    height: auto !important;
    overflow: visible;
    display: block;
    background: transparent;
}

body.marketing-page .split-image img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
}

body.marketing-page .split-text {
    flex: 0 0 50%;
    width: 50%;
    height: auto;
    align-self: flex-start;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    body.marketing-page .split-image,
    body.marketing-page .split-text {
        flex: auto;
        width: 100%;
    }
}


/* ============ HOME PAGE TESTIMONIAL WATERMARK ============ */
.testimonials.bg-light {
    background-color: #f8f9fa; /* Matches your --bg-light variable */
}

.testimonial-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 60px 20px;
    z-index: 1;
}

/* The Large Quote Watermark */
.testimonial-container::before {
    content: '\f10d'; /* FontAwesome quote-left unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25rem; /* Ultra large size */
    color: #000;
    opacity: 0.04; /* Subtle 4% opacity */
    z-index: -1;
    pointer-events: none;
}

.testimonial-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
}

.testimonial-client-info .client-name {
    margin-top: 30px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.testimonial-client-info .client-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.testimonial-client-info .client-org {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustment for the large watermark */
@media (max-width: 768px) {
    .testimonial-container::before {
        font-size: 15rem;
    }
    .testimonial-body p {
        font-size: 1.05rem;
    }
}


