/* ========================================================================
   MAIN.CSS - LOGICALLY RESTRUCTURED
   ======================================================================== */

/* ========================================================================
   1. IMPORTS
   ======================================================================== */

@import 'fonts.css';

/* ========================================================================
   2. CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================================================== */

:root {
    /* ------------------------------------------------------------------------
       FONT FAMILIES
       ------------------------------------------------------------------------ */
    --font-family-primary-default: 'Garamond', Garamond, serif;
    /* For headings and buttons */
    --font-family-secondary-default: 'Helvetica', Arial, sans-serif;
    /* For body text */

    /* Themeable Font Families (client.css can override these) */
    --font-primary: var(--override-font-primary, var(--font-family-primary-default));
    --font-secondary: var(--override-font-secondary, var(--font-family-secondary-default));
    --font-family-base: var(--font-secondary);
    --font-family-heading: var(--font-primary);

    /* ------------------------------------------------------------------------
       TYPOGRAPHY SCALES
       ------------------------------------------------------------------------ */
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    --font-size-xxxl: 3.5rem;

    --line-height-base: 1.6;
    --line-height-heading: 1.3;

    /* ------------------------------------------------------------------------
       SPACING SYSTEM
       ------------------------------------------------------------------------ */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 96px;
    --space-xxl: 128px;

    /* ------------------------------------------------------------------------
       BORDER RADIUS VALUES
       ------------------------------------------------------------------------ */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --border-radius-pill: 50px;

    /* ------------------------------------------------------------------------
       TRANSITIONS
       ------------------------------------------------------------------------ */
    --transition: all 0.3s ease-in-out;
    --transition-duration: 0.3s;
    --transition-timing-function: ease-in-out;

    /* ------------------------------------------------------------------------
       COMPONENT DIMENSIONS
       ------------------------------------------------------------------------ */
    --header-height: 60px;
    /* You can change this value for mobile */
    --header-height-desktop: 80px;
    --footer-height: 100px;

    /* ------------------------------------------------------------------------
       BUTTON CONFIGURATION
       ------------------------------------------------------------------------ */
    --button-padding-y: 12px;
    --button-padding-x: 24px;
    --button-border-radius: var(--button-border-radius, var(--border-radius-sm));
    /* --button-text-transform: uppercase; */
    --button-text-transform: none;
    /* uncomment if i don't want uppercase button */

    --card-padding: var(--space-sm);
    --card-border-radius: var(--border-radius);


    /* ============================= */
    /* Section Rules                  */
    /* ============================= */
    .section-rule {
        height: 2px;
        background-color: var(--theme-color-accent);
        border: none;
        border-radius: 1px;
        margin-top: var(--space-xl);
    }

    /* ------------------------------------------------------------------------
       HERO SECTION CONFIGURATION
       ------------------------------------------------------------------------ */
    /* Hero Section Gradient Overlay Defaults */
    --hero-gradient-direction-default: to bottom;
    --hero-gradient-direction: var(--override-hero-gradient-direction, var(--hero-gradient-direction-default));

    /* Hero Background Media Positioning */
    --hero-media-object-position-default: center center;
    --hero-media-object-position: var(--override-hero-media-object-position, var(--hero-media-object-position-default));

    /* Hero Content Box Defaults - Padding */
    --hero-content-padding-top-default: var(--space-lg);
    --hero-content-padding-right-default: var(--space-lg);
    --hero-content-padding-bottom-default: var(--space-xl);
    --hero-content-padding-left-default: var(--space-lg);

    /* Hero Content Box Defaults - Appearance */
    --hero-content-gradient-shape-default: ellipse at center;
    --hero-content-border-radius-default: var(--border-radius-sm);
    --hero-content-max-width-default: 800px;

    /* Variables for client overrides for Hero Content Box */
    --hero-content-padding-top: var(--override-hero-content-padding-top, var(--hero-content-padding-top-default));
    --hero-content-padding-right: var(--override-hero-content-padding-right, var(--hero-content-padding-right-default));
    --hero-content-padding-bottom: var(--override-hero-content-padding-bottom, var(--hero-content-padding-bottom-default));
    --hero-content-padding-left: var(--override-hero-content-padding-left, var(--hero-content-padding-left-default));

    --hero-content-gradient-shape: var(--override-hero-content-gradient-shape, var(--hero-content-gradient-shape-default));
    --hero-content-border-radius: var(--override-hero-content-border-radius, var(--hero-content-border-radius-default));
    --hero-content-max-width: var(--override-hero-content-max-width, var(--hero-content-max-width-default));

    /* Hero CTA Button Specific Defaults */
    --hero-cta-button-border-radius-default: var(--border-radius-sm);
    --hero-cta-button-border-radius: var(--override-hero-cta-button-border-radius, var(--hero-cta-button-border-radius-default));

    /* ------------------------------------------------------------------------
       INTRO SECTION CONFIGURATION
       ------------------------------------------------------------------------ */
    --intro-section-padding-y-default: var(--space-lg);
    --intro-section-column-gap-default: var(--space-md);

    /* Variables for client overrides */
    --intro-section-padding-y: var(--override-section-padding-y, var(--intro-section-padding-y-default));
    --intro-section-column-gap: var(--override-section-column-gap, var(--intro-section-column-gap-default));


    /* ------------------------------------------------------------------------
       MOBILE NAVIGATION CONFIGURATION
       ------------------------------------------------------------------------ */
    --mobile-nav-width-default: 50vw;
    --mobile-nav-background-color: var(--override-mobile-nav-background-color, var(--mobile-nav-background-color-default));
    --mobile-nav-text-color: var(--override-mobile-nav-text-color, var(--mobile-nav-text-color-default));
    --mobile-nav-border-radius-default: var(--border-radius);
    --mobile-nav-border-radius: var(--override-mobile-nav-border-radius, var(--mobile-nav-border-radius-default));
    --mobile-nav-width: var(--override-mobile-nav-width, var(--mobile-nav-width-default));

    /* ------------------------------------------------------------------------
       SERVICE CARD CONFIGURATION
       ------------------------------------------------------------------------ */
    --service-card-button-bg-opacity-default: 0.2;
    --service-card-button-bg-opacity-hover-default: 0.4;
    --service-card-button-bg-opacity: var(--override-service-card-button-bg-opacity, var(--service-card-button-bg-opacity-default));
    --service-card-button-bg-opacity-hover: var(--override-service-card-button-bg-opacity-hover, var(--service-card-button-bg-opacity-hover-default));

    /* ------------------------------------------------------------------------
        SPECIAL POSITIONING RULES
        ------------------------------------------------------------------------ */
    .intro-with-header {
        position: relative;
        padding: 0;
    }

    .intro-with-header header {
        position: sticky;
        top: 0;
        /* sticks when intro section hits top of viewport */
        z-index: 1000;
    }

}

/* ========================================================================
   3. RESET & BASE STYLES
   ======================================================================== */

html {
    box-sizing: border-box;
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--theme-text-on-surface, var(--theme-color-neutral));
    background-color: var(--theme-color-surface);
    background-image: var(--theme-background-texture-url);
    background-repeat: repeat;
    background-position: center center;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ========================================================================
   4. TYPOGRAPHY
   ======================================================================== */

h1,
h2,
h3 {
    font-family: var(--font-family-heading);
    color: var(--theme-color-heading-text);
    line-height: var(--line-height-heading);
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--font-size-xxxl);
}

h2 {
    font-size: var(--font-size-xxl);
}

h3 {
    font-size: var(--font-size-xl);
}

/* ========================================================================
   5. LINKS
   ======================================================================== */

a {
    color: var(--theme-color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--theme-color-secondary);
}

/* ========================================================================
   6. BUTTONS
   ======================================================================== */

button,
.btn {
    display: inline-block;
    background-color: var(--theme-color-primary);
    color: var(--theme-text-on-primary);
    border: none;
    padding: var(--button-padding-y) var(--button-padding-x);
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    text-transform: var(--button-text-transform);
    text-align: center;
    line-height: var(--line-height-base);
}

button:hover,
.btn:hover {
    background-color: var(--theme-color-secondary);
    color: var(--theme-text-on-secondary);
}

/* ========================================================================
   7. LAYOUT COMPONENTS
   ======================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

main#main-content {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Add padding to the main content on underpages to offset the fixed header.
   This uses the same variables as the header height for consistency. */
body:not(.home-page) main#main-content {
    padding-top: var(--header-height-desktop);
}


section {
    padding: var(--space-md) 0;
}

.legal-page {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

/* Base style for all decorative horizontal and vertical rules */
.section-rule {
    border: none;
    /* Remove default border from <hr> */
    height: var(--section-rule-height, 3px);
    width: var(--section-rule-width, 80vw);
    background-color: var(--theme-color-accent);
    border-radius: var(--border-radius-pill, 50px);
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}


/* ========================================================================
   8. HEADER
   ======================================================================== */


header {
    position: sticky;
    top: 0;
    background-color: #F5F5F5;
    height: var(--header-height-desktop);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 var(--space-sm);
    box-shadow: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
    z-index: 1000;
    width: 100%;
    gap: var(--space-sm);
}

/* On underpages, make the header fixed to prevent layout shifts on scroll.
   This takes it out of the document flow. */
body:not(.home-page) header {
    position: fixed;
    /* The background color might need to be more solid if it's transparent by default */
    background-color: var(--theme-color-surface);
    box-shadow: var(--theme-shadow-md);
}


/* When the mobile menu is open, give the header a background */
header.menu-is-open {
    background-color: var(--theme-color-primary);
}

/* When we're in scroll behavior mode, switch to fixed positioning */
.header--scroll-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* This class is applied by the JavaScript to hide the header */
.header--hidden-on-scroll {
    transform: translateY(-100%);
}

/* Header Logo - Centered */
.header-logo {
    text-decoration: none;
    color: var(--theme-text-on-primary);
    font-size: var(--font-size-lg);
    font-weight: bold;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.header-logo img {
    display: block;
    max-height: calc(var(--header-height-desktop) * 0.4);
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: var(--header-logo-icon-filter);
}

/* --- Unified Hamburger Menu Navigation --- */

/* Hide desktop nav links */
.site-navigation--left,
.site-navigation--right {
    display: none;
}

/* Show and position hamburger toggle on all screen sizes */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    padding: var(--space-md);
    cursor: pointer;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 34px;
    height: 3px;
    background-color: var(--theme-text-on-primary);
    transition: transform 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-icon::before {
    top: -7px;
}

.hamburger-icon::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-icon::before {
    top: 0;
    transform: rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-icon::after {
    top: 0;
    transform: rotate(0deg);
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background-color: var(--theme-color-primary);
    /* This was already here */

    /* Center the menu items */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* This centers the menu items horizontally */
    align-items: center;

    /* Add space on the left and right */
    padding: 0 var(--space-sm);
    box-sizing: border-box;

    /* Hiding/showing logic */
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

#mobile-menu.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s, 0s, 0s;
}

#mobile-menu ul {
    flex-direction: column;
    list-style: none;
    gap: var(--space-lg);
    /* Vertical space between items */
    width: 100%;
    padding: 0;
    /* Ensures the list has no default padding */
}

#mobile-menu ul li {
    text-align: center;
}

#mobile-menu ul li a {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--theme-text-on-primary);
    font-size: var(--font-size-xl);
    border-radius: var(--button-border-radius);
    transition: var(--transition);
}

#mobile-menu ul li a:hover,
#mobile-menu ul li a:focus {
    background-color: var(--theme-color-secondary);
    color: var(--theme-text-on-secondary);
}

.menu-close-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    /* Ensure it's on top of the menu */
    margin-top: var(--space-md);
    /* Add space above the button */
    padding: var(--space-xs) var(--space-sm);
}

.menu-close-icon {
    font-size: var(--font-size-xl);
    color: var(--theme-text-on-primary);
    font-weight: bold;
}

/* ========================================================================
   FIXED CONTACT-BAR
   ======================================================================== */


.fixed-contact-icons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: var(--space-xs);
    background-color: var(--theme-color-primary);
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
    box-shadow: var(--shadow-2);
    z-index: 900;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fixed-contact-icons ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.fixed-contact-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-duration);
}

.fixed-contact-icons a:hover {
    background-color: var(--theme-color-highlight);
}

.fixed-contact-icons img {
    height: var(--font-size-lg);
    width: auto;
    display: block;
    filter: var(--header-icon-filter);
}

/* Homepage only: This rule hides the bar when the body has the 'home-page' class */
body.home-page .fixed-contact-icons {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* Prevents interaction while hidden */
}

/* This is the class that JavaScript will add to make the bar visible */
body.home-page .fixed-contact-icons.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    /* Re-enables interaction */
}

/* ========================================================================
   9. FOOTER
   ======================================================================== */

footer {
    background-color: var(--theme-color-primary);
    color: var(--theme-text-on-primary);
    padding-top: var(--space-sm, 1rem);
    padding-bottom: var(--space-sm);
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
}

/* Footer Sections */
.footer-contact,
.footer-social {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    margin-top: var(--space-sm);
}

.footer-contact {
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
}

.footer-social {
    align-items: center;
    margin-left: auto;
    margin-right: var(--space-sm);
}

.footer-contact h3,
.footer-social h3 {
    font-size: var(--font-size-lg);
    margin-top: 0;
    margin-bottom: var(--space-xxs, 4px);
    color: var(--theme-text-on-primary);
    line-height: 1.3;
}

.footer-contact p {
    margin: 0 0 var(--space-xxs, 4px) 0;
    line-height: 1.3;
}

.footer-contact a,
.footer-social a,
.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover,
.footer-social a:hover,
.footer-legal a:hover {
    text-decoration: underline;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--space-sm);
}

.footer-social img {
    height: var(--font-size-xxl);
    width: auto;
    filter: var(--footer-icon-filter);
}

/* Footer Legal */
.footer-legal-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.footer-legal {
    text-align: center;
    margin-bottom: 0;
    flex-grow: 1;
}

.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
}

/* Footer Back to Top */
.footer-back-to-top {
    position: static;
}

.footer-back-to-top img {
    height: var(--font-size-xxl);
    width: auto;
    animation: pulse-up 1.5s infinite ease-in-out;
    filter: var(--footer-icon-filter);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--theme-text-on-primary);
    font-size: var(--font-size-sm);
    padding-right: calc(var(--font-size-xxl) + (var(--space-sm) * 2));
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ========================================================================
   10. ANIMATIONS & KEYFRAMES
   ======================================================================== */

@keyframes pulse-up {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ========================================================================
   11. BACKGROUND ELEMENTS
   ======================================================================== */

.page-right-background-image {
    position: fixed;
    top: 0;
    right: 0;
    width: 35vw;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    --active-opacity: 0.10;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: background-image 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

/* ========================================================================
   12. UTILITY CLASSES
   ======================================================================== */

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

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

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

.hidden {
    display: none;
}

/* ========================================================================
   13. ACCESSIBILITY
   ======================================================================== */

.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: var(--space-sm);
    left: var(--space-sm);
    width: auto;
    height: auto;
    border-color: var(--theme-color-accent);
}

/* ========================================================================
   14. RESPONSIVE DESIGN - MOBILE
   ======================================================================== */

@media (max-width: 768px) {
    body {
        font-size: var(--font-size-sm);
    }

    header {
        height: var(--header-height);
        /* Apply mobile height */
        justify-content: space-between;
        /* Logo left, hamburger right */
        padding: 0 var(--space-sm);
        /* Consistent horizontal padding */
    }

    .header-logo img {
        max-height: calc(var(--header-height) * 0.85);
    }

    .hamburger-icon {
        display: block;
        position: relative;
        width: 24px;
        height: 2px;
        background-color: var(--theme-text-on-primary);
        transition: transform 0.3s ease-in-out;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: inherit;
        transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .hamburger-icon::before {
        top: -7px;
    }

    .hamburger-icon::after {
        top: 7px;
    }

    .nav-toggle[aria-expanded="true"] .hamburger-icon {
        background-color: transparent;
        transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .hamburger-icon::before {
        top: 0;
        transform: rotate(90deg);
    }

    .nav-toggle[aria-expanded="true"] .hamburger-icon::after {
        top: 0;
        transform: rotate(0deg);
    }

    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 999;
        background-color: var(--theme-color-primary);
        /* This was already here */

        /* Center the menu items */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* This centers the menu items horizontally */
        align-items: center;

        /* Add space on the left and right */
        padding: 0 var(--space-sm);
        box-sizing: border-box;

        /* Hiding/showing logic */
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
    }

    #mobile-menu.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition-delay: 0s, 0s, 0s;
    }

    #mobile-menu ul {
        flex-direction: column;
        list-style: none;
        gap: var(--space-lg);
        /* Vertical space between items */
        width: 100%;
        padding: 0;
        /* Ensures the list has no default padding */
    }

    #mobile-menu ul li a {
        /* Makes the entire link a larger, more clickable block */
        display: block;
        /* Increased padding to make the entire clickable area larger */
        padding: var(--space-xs);
        color: var(--theme-text-on-primary);
        text-align: center;
        font-size: var(--font-size-lg);
    }

    .menu-close-button {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
        /* Ensure it's on top of the menu */
        margin-top: var(--space-md);
        /* Add space above the button */
        padding: var(--space-xs) var(--space-sm);
    }

    /* Adjust main content padding for the smaller mobile header */
    body:not(.home-page) main#main-content {
        padding-top: var(--header-height);
    }

    .menu-close-icon {
        font-size: var(--font-size-xl);
        color: var(--theme-text-on-primary);
        font-weight: bold;
    }

    /* Mobile Background */
    .page-right-background-image {
        display: none;
    }

    /* Mobile Typography */
    h1 {
        font-size: var(--font-size-xxl);
    }

    h2 {
        font-size: var(--font-size-xl);
    }

    h3 {
        font-size: var(--font-size-lg);
    }

    /* Mobile Container */
    .container {
        padding: 0 var(--space-xs);
    }

    /* Mobile Contact Map */
    .contact-map-iframe {
        width: 100%;
        height: 350px;
    }

    /* ========================================================================
   13. ACCESSIBILITY
   ======================================================================== */

    .skip-link {
        position: absolute;
        top: -9999px;
        left: -9999px;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .skip-link:focus {
        position: fixed;
        top: var(--space-sm);
        left: var(--space-sm);
        width: auto;
        height: auto;
        border-color: var(--theme-color-accent);
    }

    /* ========================================================================
   14. RESPONSIVE DESIGN - MOBILE
   ======================================================================== */

    @media (max-width: 768px) {
        body {
            font-size: var(--font-size-sm);
        }

        header {
            height: var(--header-height);
            /* Apply mobile height */
            justify-content: space-between;
            /* Logo left, hamburger right */
            padding: 0 var(--space-sm);
            /* Consistent horizontal padding */
        }

        .hamburger-icon {
            display: block;
            position: relative;
            width: 24px;
            height: 2px;
            background-color: var(--theme-text-on-primary);
            transition: transform 0.3s ease-in-out;
        }

        .hamburger-icon::before,
        .hamburger-icon::after {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: inherit;
            transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
        }

        .hamburger-icon::before {
            top: -7px;
        }

        .hamburger-icon::after {
            top: 7px;
        }

        .nav-toggle[aria-expanded="true"] .hamburger-icon {
            background-color: transparent;
            transform: rotate(45deg);
        }

        .nav-toggle[aria-expanded="true"] .hamburger-icon::before {
            top: 0;
            transform: rotate(90deg);
        }

        .nav-toggle[aria-expanded="true"] .hamburger-icon::after {
            top: 0;
            transform: rotate(0deg);
        }

        #mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 999;
            background-color: var(--theme-color-primary);
            /* This was already here */

            /* Center the menu items */
            display: flex;
            flex-direction: column;
            justify-content: center;
            /* This centers the menu items horizontally */
            align-items: center;

            /* Add space on the left and right */
            padding: 0 var(--space-sm);
            box-sizing: border-box;

            /* Hiding/showing logic */
            transform: translateY(-120%);
            opacity: 0;
            visibility: hidden;
            transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
        }

        #mobile-menu.nav-open {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
            transition-delay: 0s, 0s, 0s;
        }

        #mobile-menu ul {
            flex-direction: column;
            list-style: none;
            gap: var(--space-lg);
            /* Vertical space between items */
            width: 100%;
            padding: 0;
            /* Ensures the list has no default padding */
        }

        #mobile-menu ul li a {
            /* Makes the entire link a larger, more clickable block */
            display: block;
            /* Increased padding to make the entire clickable area larger */
            padding: var(--space-xs);
            color: var(--theme-text-on-primary);
            text-align: center;
            font-size: var(--font-size-lg);
        }

        .menu-close-button {
            display: block;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 1002;
            /* Ensure it's on top of the menu */
            margin-top: var(--space-md);
            /* Add space above the button */
            padding: var(--space-xs) var(--space-sm);
        }

        /* Adjust main content padding for the smaller mobile header */
        body:not(.home-page) main#main-content {
            padding-top: var(--header-height);
        }

        .menu-close-icon {
            font-size: var(--font-size-xl);
            color: var(--theme-text-on-primary);
            font-weight: bold;
        }

        /* Mobile Background */
        .page-right-background-image {
            display: none;
        }

        /* Mobile Typography */
        h1 {
            font-size: var(--font-size-xxl);
        }

        h2 {
            font-size: var(--font-size-xl);
        }

        h3 {
            font-size: var(--font-size-lg);
        }

        /* Mobile Container */
        .container {
            padding: 0 var(--space-xs);
        }

        /* Mobile Contact Map */
        .contact-map-iframe {
            width: 100%;
            height: 350px;
            border: 0;
            display: block;
        }

        /* Mobile Footer */
        .footer-bottom {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: var(--space-xs);
            padding-right: 0;
        }

        .footer-legal-container {
            flex-direction: column;
            gap: var(--space-md);
        }

        /* Mobile Contact Bar Transparency */
        .fixed-contact-icons.is-transparent {
            opacity: 0.15 !important;
            /* pointer-events: none; REMOVED to ensure icons remain clickable even when transparent */
            transition: opacity 0.3s ease-in-out;
        }
    }

    /* ========================================================================
   15. DARK MODE PLACEHOLDER
   ======================================================================== */

    @media (prefers-color-scheme: dark) {
        /* Dark Mode Styles are handled by client.css redefining the --theme-* variables */
    }