/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* --- COLOR PALETTE --- */
    --color-primary: #034026;
    /* Brand Deep Green */
    --color-ivory: #fdfaf1;
    /* Brand Ivory */
    --color-bg-main: var(--color-ivory);
    --color-bg-secondary: var(--color-ivory);
    --color-text-main: #1a1a1a;
    /* Charcoal */
    --color-text-muted: var(--color-grey-dark);
    /* Muted Grey */
    --color-accent: var(--color-primary);
    --color-accent-hover: #02301c;

    /* --- CONSOLIDATED GREYS --- */
    --color-grey-light: var(--color-grey-light);
    --color-grey-medium: var(--color-grey-medium);
    --color-grey-dark: var(--color-grey-dark);
    --color-grey-text: var(--color-grey-text);

    /* --- TYPOGRAPHY SPECS --- */
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-size-h1: 32px;
    --font-size-h2: 26px;
    --font-size-h3: 20px;
    --font-size-btn: 17px;

    --line-height-body: 1.5;
    --line-height-heading: 1.25;

    /* --- SPACING SPECS --- */
    --spacing-page: 20px;
    --spacing-section: 40px;
    --spacing-card: 16px;
    --spacing-form: 20px;

    /* --- GLOBAL ELEMENTS --- */
    --height-touch: 48px;
    --height-button: 52px;
    --radius-main: 10px;
    --container-width: 1200px;
    --max-text-width: 70ch;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    min-height: 44px;
    /* Touch target */
    display: inline-flex;
    align-items: center;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    color: var(--color-text-main);
    font-weight: 600;
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-h1);
    letter-spacing: -0.02rem;
    color: var(--color-ivory);
}

h2 {
    font-size: var(--font-size-h2);
    color: var(--color-primary);
}

h3 {
    font-size: var(--font-size-h3);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    max-width: var(--max-text-width);
    /* Line length limit */
}

/* =========================================
   3. UTILITIES & LAYOUT
   ========================================= */
/* Hero Above the Fold Section (Mobile) */
.container {
    width: 100%;
    max-width: 375px;
    /* Constrain for mobile feeling */
    margin: 0 auto;
    padding: 0 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    height: var(--height-button);
    background-color: var(--color-ivory);
    color: var(--color-primary);
    font-weight: 600;
    font-family: inherit;
    /* Fixes button font issue */
    font-size: 14px;
    /* Reduced from 17px for mobile */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    /* Pill shape */
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: auto;
    /* Allow button to size to content (left aligned) */
    max-width: 100%;
}

.btn:hover {
    background-color: var(--color-ivory);
    filter: brightness(1.05);
    /* Subtle lift instead of color change */
    transform: translateY(-2px);
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.bg-dots {
    position: relative;
    overflow: hidden;
}

.bg-dots::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--dot-color, rgba(3, 64, 38, 0.5)) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.bg-dots-fade-0-25::before {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
}

.bg-dots-fade-25-50::before {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1));
}

.bg-dots-fade-50-0::before {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.bg-dots .container {
    position: relative;
    z-index: 1;
}

/* --- Global Image Overlays (Gallery Style) --- */
.img-overlay-container {
    position: relative;
    border-radius: var(--radius-main);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-overlay-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.img-overlay-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-overlay-container:hover img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Primary Green Gradient */
    background: linear-gradient(to top, var(--color-primary) 0%, rgba(3, 64, 38, 0.8) 50%, transparent 100%);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.img-overlay-container:hover .img-overlay {
    transform: translateY(0);
}

.img-overlay h3,
.img-overlay h4 {
    color: var(--color-ivory);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.img-overlay p {
    color: var(--color-ivory);
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
.top-bar {
    background-color: var(--color-ivory);
    color: var(--color-primary);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.top-bar-link {
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    /* Touch target size */
}

.top-bar-link:hover {
    text-decoration: underline;
}

header {
    background-color: transparent;
    position: absolute;
    /* Not sticky, moves with page */
    width: 100%;
    top: 40px;
    /* Below the 40px top bar */
    z-index: 100;
}

nav {
    display: flex;
    justify-content: center;
    /* Center for mobile */
    align-items: center;
    height: 80px;
    color: var(--color-ivory);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    /* Desktop default */
    width: auto;
}

.mobile-only .logo-img {
    height: 70px;
    /* Mobile stacked logo size */
}

body .desktop-only {
    display: none;
}

body .mobile-only {
    display: flex;
}

.mobile-menu-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    font-size: 1.8rem;
    color: var(--color-ivory);
    cursor: pointer;
    z-index: 101;
}

/* Mobile Nav Container */
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--color-primary);
    z-index: 200;

    /* Above overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    /* Hidden by default */
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding-top: 40px;
    /* Space for header */
}

.close-menu-btn {
    position: absolute;
    top: 65px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-ivory);
    cursor: pointer;
    line-height: 1;
    z-index: 201;
}

.mobile-menu-logo {
    width: 60px;
    height: auto;
    margin-bottom: 1rem;
    /* Filter to ensure ivory color if SVG isn't already */
    filter: brightness(0) saturate(100%) invert(98%) sepia(3%) saturate(191%) hue-rotate(342deg) brightness(101%) contrast(98%);
}

.nav-links.active {
    transform: translateX(0);
}

.nav-links a {
    color: var(--color-ivory);
    /* Font size handled by desktop media query or inherits */
    font-size: 1.2rem;
    font-weight: 600;
}

/* Nav Button Styling */
.nav-links .nav-rev-btn {
    background-color: transparent;
    color: var(--color-ivory);
    border: 1px solid var(--color-ivory);
    border-radius: 2rem;
    /* Pill shape */
    height: auto;
    padding: 0.5rem 1.5rem;
    padding: 0.5rem 1.5rem;
    /* Font size inherits */
    font-weight: 600;
    /* Match nav links */
    letter-spacing: normal;
    text-transform: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nav-links .nav-rev-btn:hover {
    background-color: var(--color-ivory);
    color: var(--color-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Hamburger Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    /* Touch target */
    font-size: 24px;
    /* Icon size as requested */
    color: var(--color-ivory);
    cursor: pointer;
    z-index: 101;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    min-height: 85vh;
    /* Reduced from 100vh to show more image (less vertical zoom) */
    height: auto;
    /* Allow growth for mobile form */
    padding-top: 220px;
    /* Increased for top bar + header space */
    padding-bottom: 60px;
    /* Hero Image Update */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('../images/home/hero_patio_enclosed.webp?v=2');
    background-size: cover;
    background-position: center bottom;
    /* Focus on the patio/ground */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    text-align: center;
}

.hero .hero-cta {
    display: flex;
    width: fit-content;
    margin: 0 auto 2rem;
}

.hero .hero-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.hero-content {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    /* Ensure centering within flex item if needed */
}

.hero-text {
    margin-bottom: 2rem;
    /* Space between text and form on mobile */
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-ivory);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.desktop-only-text {
    display: none;
}

.mobile-only-text {
    display: inline;
}

/* Hero Form Card */
.hero-form-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    /* Uniform 24px padding */
    border-radius: var(--radius-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    margin: 20vh auto 0;
    /* Push down below main text (below the fold) */
    text-align: left;
    /* Reset text align for form elements */
    backdrop-filter: blur(10px);
}

.hero-form-card input,
.hero-form-card select,
.hero-form-card textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: var(--radius-main);
    font-family: inherit;
    font-size: 16px;
    background: var(--color-ivory);
    color: var(--color-text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-form-card input:focus,
.hero-form-card select:focus,
.hero-form-card textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.hero-form-card select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.hero-form-card .btn {
    width: 100%;
    /* Full width button in form */
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Removed gap as requested */
    margin-bottom: 0;
}

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: left;
}

.optional-text {
    color: #cc0000;
    /* Red as requested */
    font-weight: normal;
    font-size: 14px;
}


/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.expertise-card {
    background: var(--color-primary);
    border-radius: var(--radius-main);
    overflow: hidden;
    width: 100%;
    min-width: 0;
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.expertise-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background-color: var(--color-grey-light);
}

.expertise-card h3 {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-ivory);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile Visibility Control */
.desktop-only-field {
    display: none;
}

/* Responsive Adjustments */
@media (min-width: 375px) {
    /* Potential adjustments for small-mid phones */
}

@media (min-width: 414px) {
    /* Potential adjustments for larger phones */
}

@media (min-width: 768px) {
    :root {
        --font-size-h1: 48px;
        --font-size-h2: 36px;
        --spacing-section: 60px;
    }

    .btn {
        font-size: 16px;
        padding: 14px 32px;
    }

    /* Restore fields on desktop */
    .desktop-only-field {
        display: flex;
    }

    .top-bar-link {
        font-size: 16px;
    }

    .container {
        max-width: var(--container-width);
    }

    .hero .hero-cta {
        display: inline-flex;
        margin: 0 0 2rem 0;
        /* Left align on desktop */
    }

    /* Reset full width to auto on tablet/desktop */

    .desktop-only-text {
        display: inline;
    }

    .mobile-only-text {
        display: none;
    }

    .container {
        max-width: var(--container-width);
        padding: 0 1rem;
        /* Match hero padding */
    }

    nav {
        justify-content: space-between;
    }

    body .desktop-only {
        display: flex;
    }

    body .mobile-only {
        display: none;
    }

    .nav-links .nav-rev-btn {
        height: 44px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .close-menu-btn {
        display: none;
    }

    /* Increased specificity to ensure hiding */
    .nav-links .mobile-menu-logo,
    .nav-links .close-menu-btn {
        display: none;
    }

    .nav-links {
        position: static;
        height: auto;
        width: auto;
        min-width: max-content;
        /* Ensure container fits all links */
        flex-shrink: 0;
        /* Prevent shrinking */
        background-color: transparent;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        /* Align links to the right */
        align-items: center;
        gap: 24px;
        transform: none;
        box-shadow: none;
        padding-top: 0;
    }

    .mobile-menu-logo {
        display: none;
    }

    .nav-links a {
        font-size: 16px;
        /* Explicit 16px for desktop nav */
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-links a:hover {
        color: var(--color-ivory);
    }

    /* --- DROPDOWN NAVIGATION --- */
    .nav-dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-trigger {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .dropdown-trigger .arrow {
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background-color: var(--color-primary);
        min-width: 180px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    .nav-links .dropdown-menu a {
        padding: 10px 20px;
        font-size: 14px;
        text-transform: none;
        letter-spacing: 0.5px;
        white-space: nowrap;
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-menu a:hover {
        background-color: rgba(253, 250, 241, 0.1);
    }

    /* Desktop Hover */
    @media (min-width: 768px) {
        .nav-dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .nav-dropdown:hover .dropdown-trigger .arrow {
            transform: rotate(180deg);
        }
    }


    .hero-content {
        display: grid;
        grid-template-columns: 1fr 480px;
        /* Text left, Card right fixed width */
        gap: 60px;
        align-items: start;
        /* Align text to top of card */
        text-align: left;
        max-width: var(--container-width);
        padding-top: 0;
    }

    .hero-text {
        margin-bottom: 0;
        /* Reset mobile margin */
        text-align: left;
    }

    .hero-title,
    .hero-subtitle {
        text-align: left;
        margin-left: 0;
    }

    .hero-form-card {
        margin: 0 0 0 auto;
        /* Float to the right of the grid cell */
        max-width: 700px;
        /* Increased from 480px */
    }

    /* Expertise Grid - Desktop (3 top, 2 bottom) */
    .expertise-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 3rem;
    }

    .expertise-card:nth-child(1),
    .expertise-card:nth-child(2),
    .expertise-card:nth-child(3) {
        grid-column: span 2;
    }

    .expertise-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .expertise-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (min-width: 1024px) {
    :root {
        --font-size-h1: 64px;
        --font-size-h2: 42px;
        --spacing-section: 80px;
    }
}

/* =========================================
   6. COMPONENTS (Global)
   ========================================= */

/* Button Variations */
.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-ivory);
}

.primary-btn:hover {
    background-color: #02301c;
}

.primary-btn.cta-emphasis:hover {
    background-color: #621d2f;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-form);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    min-height: var(--height-touch);
    /* 48px+ height */
    background: var(--color-ivory);
    border: 1px solid #ddd;
    border-radius: var(--radius-main);
    font-family: inherit;
    font-size: 16px;
    /* Prevents mobile zoom */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form input:focus,
/* Contact Section & Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 380px 1fr;
    }
}

.contact-info-card {
    background: var(--color-primary);
    color: var(--color-ivory);
    padding: 2.5rem;
    border-radius: var(--radius-main);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card h3 {
    color: var(--color-ivory);
    margin-bottom: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.info-item a {
    color: var(--color-ivory);
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    /* Ensures target size is good */
    align-items: center;
}

.info-item a:hover {
    opacity: 0.8;
}

.info-item i,
.info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* Radio Button Styles */
.radio-group-container {
    margin-bottom: 0;
}

.radio-group-label {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-main);
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Removed gap as requested */
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 16px;
    /* Increased for readability */
    min-height: 48px;
    /* Standard touch target size */
    padding: 4px 0;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    /* Visual circle 20-24px */
    height: 22px;
    border: 2px solid var(--color-primary);
    /* Stroke width 2px */
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    background: var(--color-ivory);
    flex-shrink: 0;
    /* Reset global input styles */
    padding: 0;
    min-height: auto;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    /* Selected dot ~8-12px */
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Our Standard Grid (3-Above, 2-Underneath on Desktop) */
.standards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.standard-card {
    padding: 3rem 2rem;
    border-radius: var(--radius-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.standard-card:hover {
    transform: translateY(-5px);
}

/* Background alternation */
/* Background Colors */
.standard-card {
    background-color: var(--color-primary);
    color: var(--color-ivory);
}

/* Mobile Alternating */
@media (max-width: 767px) {
    .standard-card:nth-child(even) {
        background-color: #621d2f;
        /* Burgundy */
    }
}

/* Desktop Specific Overrides (Respects .bg-burgundy class) */
@media (min-width: 768px) {
    .bg-burgundy {
        background-color: #621d2f;
        /* Burgundy */
        color: var(--color-ivory);
    }

    .primary-btn.cta-emphasis:hover {
        background-color: #621d2f;
        /* Burgundy */
        color: var(--color-ivory);
    }
}

.standards-grid .standard-card h3,
.standards-grid .standard-card p {
    color: var(--color-ivory);
}

.standard-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Make icons white/ivory on dark backgrounds */
    filter: brightness(0) invert(1);
}

@media (min-width: 768px) {

    /* .standard-card background default is already set globally */

    .standards-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 3rem;
    }

    .standard-card:nth-child(1),
    .standard-card:nth-child(2),
    .standard-card:nth-child(3) {
        grid-column: span 2;
    }

    .standard-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .standard-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}


/* Our Story Section */
#story {
    background-color: var(--color-primary);
    color: var(--color-ivory);
}

#story h2,
#story p {
    color: var(--color-ivory);
    margin-left: auto;
    margin-right: auto;
}

/* Team Grid Styling */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem auto 0;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-image {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-main);
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(253, 250, 241, 0.2);
}

.team-info h3 {
    color: var(--color-ivory);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.team-grid .team-info p {
    color: var(--color-ivory);
    opacity: 0.9;
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer Section */
/* Footer Wrapper (The Landscape Background) */
.footer-wrapper {
    background-color: var(--color-primary);
    padding: 4rem 0 3rem;
    position: relative;
    /* Optional: Add a subtle curve or decoration here if desired later */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 2rem;
}

/* Floating Card */
.footer-float-card {
    background-color: var(--color-ivory);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    align-items: start;
}

/* Columns */
.footer-col h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logo {
    margin-bottom: 5px;
}

.footer-logo {
    margin-bottom: 1rem;
    /* Transform Ivory to Primary Green (#034026) */
    /* Derived filter generator for closest match */
    filter: brightness(0) invert(18%) sepia(35%) saturate(1660%) hue-rotate(107deg) brightness(91%) contrast(97%);
}

.footer-logo-desktop {
    display: none;
    height: 70px;
}

.footer-logo-mobile {
    display: block;
    height: 80px;
    margin: 0 auto 1rem;
}

/* Mobile Alignment */
.brand-col {
    text-align: center;
}

.copyright-col {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
}

.footer-col .brand-col p {
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.8;
}

/* Links */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a:hover {
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-float-card {
        grid-template-columns: 2fr 1fr 1fr;
        padding: 4rem;
        row-gap: 0;
    }

    .footer-logo-desktop {
        display: block;
    }

    .footer-logo-mobile {
        display: none;
    }

    .brand-col {
        text-align: left;
    }

    .copyright-col {
        grid-column: 1;
        text-align: left;
        border-top: none;
        padding-top: 0;
        margin-top: 1rem;
    }
}

/* Mobile Specific Dropdown */
@media (max-width: 767px) {
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-trigger {
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        /* Toggled by JS */
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        width: 100%;
        margin-top: 10px;
        padding: 5px 0;
    }

    .dropdown-menu.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-dropdown.active .arrow {
        transform: rotate(180deg);
    }

    .nav-links .dropdown-menu a {
        justify-content: center;
    }
}

/* =========================================
   7. INDEX PAGE SPECIFIC & UTILITY STYLES
   ========================================= */

/* Hero Section Enhancements */
.hero-mobile-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Google Review Banner (Hero) */
.google-review-banner {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.google-review-banner:hover {
    background: rgba(0, 0, 0, 0.06);
}

.google-review-logo {
    background: white;
    border-radius: 50%;
    padding: 2px;
}

.google-review-score {
    font-weight: 800;
    color: #333;
    font-size: 0.95rem;
}

.google-review-stars {
    color: #FBBC04;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 1px;
}

.google-review-trust {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

/* Social Proof Strip (Carousel) */
.social-proof-strip {
    padding: 2rem 0;
    width: 100%;
    position: relative;
    margin-top: 3rem;
    /* Default desktop margin */
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.review-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    justify-content: flex-start;
}

.review-track::-webkit-scrollbar {
    display: none;
}

.review-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.review-card {
    flex: 0 0 320px;
    width: 320px;
    scroll-snap-align: center;
    background: var(--color-ivory);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-2px);
    background: var(--color-ivory);
}

.review-header {
    margin-bottom: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-card .google-review-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    flex-grow: 1;
}

.reviewer-name {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.mobile-review-nav {
    display: none;
}

.review-nav-btn {
    pointer-events: auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.2rem;
    color: #333;
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Desktop tweaks for carousel */
@media(min-width: 1000px) {
    .review-track {
        justify-content: center;
        overflow: hidden;
    }

    .review-card {
        flex: 1;
    }

    .review-header {
        justify-content: space-between;
    }
}

/* Mobile tweaks for carousel */
@media(max-width: 999px) {
    body .mobile-review-nav {
        display: none;
    }

    .review-card {
        padding-bottom: 1.5rem;
    }

    .review-track {
        padding-left: calc(50% - 160px);
        padding-right: calc(50% - 160px);
    }

    .review-header {
        justify-content: flex-start;
    }

    .social-proof-strip {
        margin-top: 0;
        /* Remove margin on mobile as requested */
    }

    #rotating-city,
    .rotating-city {
        display: none !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.margin-bottom-1rem {
    margin-bottom: 1rem;
}

.margin-bottom-3rem {
    margin-bottom: 3rem;
}


.full-width {
    width: 100%;
}

.section-bg-secondary {
    background-color: var(--color-bg-secondary);
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}