/*
 * Z-Axis Architects - Main Stylesheet
 * 
 * Table of Contents:
 * 1. CSS Reset
 * 2. Custom Properties (Variables)
 * 3. Base Styles & Typography
 * 4. Layout Systems & Containers
 * 5. Utilities
 * 6. Components
 *    - Header
 *    - Hero
 *    - Buttons
 *    - Sections
 *    - Cards (Project, Service, Testimonial, Location)
 *    - Metrics
 *    - Process/Timeline
 *    - Footer
 *    - Floating Actions
 *    - Forms & UI Elements (Breadcrumbs, Filters)
 * 7. Animations & Scroll Cues
 * 8. Accessibility
 * 9. Grid Textures
 */

/* ==========================================================================
   1. CSS RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   2. CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* 5 Brand Colors Globally Defined by User */
    --color-ink-black: #000814;          /* Ultra-dark with a hint of blue, deep inkwells & drama */
    --color-prussian-blue: #001d3d;      /* Inky profound blue filled with mystery & gravitas */
    --color-oxford-navy: #003566;        /* Deep dignified midnight navy of academia & wise authority */
    --color-school-bus-yellow: #ffc300;  /* Dynamic iconic golden yellow, high visibility & energy */
    --color-gold: #ffd60a;               /* Radiant golden spark shimmer, triumph & prestige */

    /* Core Semantic Design Tokens */
    --obsidian: var(--color-ink-black);            /* Deepest primary text and richest dark backgrounds (#000814) */
    --charcoal: var(--color-prussian-blue);        /* Profound Prussian blue for dark sections & footers (#001d3d) */
    --earth: var(--color-oxford-navy);             /* Dignified Oxford Navy for borders, subtle accents, cards (#003566) */
    --concrete: #4a6fa5;                           /* Harmonious muted soft slate-blue for secondary body subtitles */
    --sandstone: #cbdbe8;                          /* Soft frosted ice-blue tint for subtle dividers & borders */
    --ivory: #f0f4f8;                              /* Crisp, clean airy light ice-stone background */
    --brass: var(--color-school-bus-yellow);       /* Vibrant golden yellow accent & brand highlights (#ffc300) */
    --gold: var(--color-gold);                     /* Radiant dazzling gold for glows, badges, shimmer (#ffd60a) */
    --white: #FFFFFF;

    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing System (8px Base) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-15: 120px;
    --space-20: 160px;

    /* Layout Constraints */
    --container-max-w: 1280px;
    --container-wide-max-w: 1440px;
    --container-narrow-max-w: 960px;
    --container-px: var(--space-6);
    
    /* Animation */
    --transition-default: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s ease;
}

@media (max-width: 767px) {
    :root {
        --container-px: var(--space-3);
    }
}

/* ==========================================================================
   3. BASE STYLES & TYPOGRAPHY
   ========================================================================== */
body {
    background-color: var(--white);
    color: var(--obsidian);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

/* Typography Scales */
.display-xl {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 96px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.display-lg, h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 72px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.display-md, h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 48px;
    line-height: 1.2;
}

.heading-lg, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 32px;
    line-height: 1.3;
}

.heading-md, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.4;
}

.heading-sm, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
}

.body-lg {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
}

.body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
}

.body-sm {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
}

.eyebrow {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.caption {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive Typography */
@media (max-width: 767px) {
    .display-xl { font-size: 48px; }
    .display-lg, h1 { font-size: 40px; }
    .display-md, h2 { font-size: 32px; }
    .heading-lg, h3 { font-size: 24px; }
    .heading-md, h4 { font-size: 20px; }
    .heading-sm, h5 { font-size: 16px; }
}

/* ==========================================================================
   4. LAYOUT SYSTEMS & CONTAINERS
   ========================================================================== */
.container {
    max-width: var(--container-max-w);
    padding: 0 var(--container-px);
    margin: 0 auto;
    width: 100%;
}

.container-wide {
    max-width: var(--container-wide-max-w);
    padding: 0 var(--container-px);
    margin: 0 auto;
    width: 100%;
}

.container-narrow {
    max-width: var(--container-narrow-max-w);
    padding: 0 var(--container-px);
    margin: 0 auto;
    width: 100%;
}

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.split-layout {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: var(--space-8);
    align-items: center;
}

.split-layout--50 {
    grid-template-columns: 50% 50%;
}

@media (max-width: 1024px) {
    .split-layout, .split-layout--50 {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .grid-2, .grid-3, .grid-4, .grid-6 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   5. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-brass { color: var(--brass); }
.text-ivory { color: var(--ivory); }
.text-concrete { color: var(--concrete); }
.text-sandstone { color: var(--sandstone); }

.bg-dark { background-color: var(--obsidian); color: var(--ivory); }
.bg-cream { background-color: var(--ivory); }
.bg-white { background-color: var(--white); }

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

.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-21-9 { aspect-ratio: 21 / 9; }

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

.max-w-sm { max-width: 480px; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 960px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FFFFFF;
    color: var(--obsidian);
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(0, 53, 102, 0.12);
    box-shadow: 0 4px 20px rgba(0, 8, 20, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header--transparent {
    background: linear-gradient(to bottom, rgba(0, 8, 20, 0.92) 0%, rgba(0, 29, 61, 0.6) 70%, transparent 100%);
    color: #FFFFFF;
    border-bottom: none;
    box-shadow: none;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header--scrolled {
    background-color: #FFFFFF !important;
    color: var(--obsidian) !important;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(0, 53, 102, 0.15) !important;
    box-shadow: 0 4px 25px rgba(0, 8, 20, 0.1) !important;
}

.site-header--transparent.site-header--scrolled {
    background-color: #FFFFFF !important;
    color: var(--obsidian) !important;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: inherit;
    text-decoration: none;
}

.site-nav {
    display: none;
}

@media (min-width: 1025px) {
    .site-nav {
        display: flex;
        gap: var(--space-5);
        align-items: center;
    }
}

.site-nav__link {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--brass);
    transition: width var(--transition-default);
}

.site-nav__link:hover::after {
    width: 100%;
}

.mobile-menu-btn, .mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--brass) !important;
    cursor: pointer;
    padding: var(--space-1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn:hover, .mobile-call-btn:hover {
    transform: scale(1.08);
}

@media (min-width: 1025px) {
    .mobile-menu-btn, .mobile-call-btn {
        display: none;
    }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--obsidian);
    color: var(--ivory);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-default);
}

.mobile-menu.is-active .mobile-menu__link {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger animation for links via nth-child (up to 8) */
.mobile-menu.is-active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }

/* HERO SECTION */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0) 100%);
    z-index: -1;
}

.hero__content {
    padding-bottom: var(--space-15);
    width: 100%;
    color: var(--white);
}

.hero__eyebrow {
    color: var(--sandstone);
    margin-bottom: var(--space-2);
}

.hero__title {
    max-width: 800px;
    margin-bottom: var(--space-3);
}

.hero__subtitle {
    max-width: 600px;
    color: rgba(244, 240, 232, 0.85); /* ivory with opacity */
    margin-bottom: var(--space-5);
}

.hero__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hero__scroll-cue {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.hero__scroll-icon {
    width: 16px;
    height: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 767px) {
    .hero__content {
        padding-bottom: var(--space-10);
    }
}

/* BUTTONS */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: none;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease;
}

/* Global button shimmer light-sweep on hover */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
    z-index: 2;
}

.btn:hover::after {
    left: 145%;
    transition: left 0.75s ease-in-out;
}

/* ==========================================================================
   REPEATED LUXURY SHINE / GLOW ON BOOK CONSULTATION CTA (PC & MOBILE)
   ========================================================================== */
@keyframes consultation-shine {
    0% {
        left: -85%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    45% {
        left: 145%;
        opacity: 0.85;
    }
    55%, 100% {
        left: 145%;
        opacity: 0;
    }
}

@keyframes consultation-glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(255, 195, 0, 0.35);
    }
    30% {
        box-shadow: 0 4px 22px rgba(255, 214, 10, 0.65), 0 0 16px rgba(255, 195, 0, 0.4);
    }
}

/* Targets all Book Consultation CTA buttons across PC */
a[href*="book-consultation"].btn-primary,
.site-header a[href*="book-consultation"] {
    position: relative;
    overflow: hidden;
    animation: consultation-glow-pulse 3.5s ease-in-out infinite;
}

a[href*="book-consultation"].btn-primary::after,
.site-header a[href*="book-consultation"]::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -85%;
    width: 60%;
    height: 220%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.65) 45%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.65) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 3;
    animation: consultation-shine 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background-color: var(--brass);
    color: var(--obsidian);
    border: 1px solid var(--brass);
    box-shadow: 0 4px 14px rgba(255, 195, 0, 0.35);
}

.btn-primary:hover {
    background-color: var(--gold);
    color: var(--obsidian);
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(255, 214, 10, 0.45);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--brass);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: var(--brass);
    color: var(--obsidian);
    box-shadow: 0 8px 24px rgba(255, 195, 0, 0.35);
}

/* On light backgrounds, secondary button text is dark wine */
.section--white .btn-secondary,
.section--cream .btn-secondary {
    color: var(--obsidian);
    border-color: var(--obsidian);
}

.section--white .btn-secondary:hover,
.section--cream .btn-secondary:hover {
    background-color: var(--obsidian);
    color: #FFFFFF;
}

.btn-dark {
    background-color: var(--obsidian);
    color: var(--ivory);
    border: 1px solid var(--obsidian);
}

.btn-dark:hover {
    background-color: var(--charcoal);
    color: var(--brass);
    box-shadow: 0 8px 20px rgba(63, 13, 12, 0.35);
}

.btn-ghost {
    background-color: transparent;
    padding: 6px 0;
    color: inherit;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    text-transform: uppercase;
    font-weight: 700;
}

.btn-ghost::after {
    display: none;
}

.btn-ghost:hover {
    color: var(--brass);
    border-bottom-color: var(--brass);
    transform: translateX(4px);
}

.btn-ghost svg {
    transition: transform var(--transition-default);
    width: 16px;
    height: 16px;
}

.btn-ghost:hover svg {
    transform: translateX(4px);
}

/* HEADER CTA overrides */
.site-header .btn-primary {
    padding: 10px 20px;
    font-size: 12px;
}

/* SECTION LAZY LOADING TRANSITIONS */
section, .site-footer {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

section:not(.section--loaded):not(#hero):not(.hero),
.site-footer:not(.section--loaded) {
    opacity: 0;
    transform: translateY(32px);
}

section.section--loaded,
.site-footer.section--loaded,
section#hero,
section.hero {
    opacity: 1;
    transform: translateY(0);
}

/* SECTION STYLES */
.section {
    padding: var(--space-15) 0;
}

@media (max-width: 767px) {
    .section {
        padding: var(--space-10) 0;
    }
}

.section--dark {
    background-color: var(--charcoal);
    color: var(--ivory);
}

.section--cream {
    background-color: var(--ivory);
}

.section--white {
    background-color: var(--white);
}

.section__eyebrow {
    color: var(--brass);
    margin-bottom: var(--space-2);
    display: block;
}

.section__header {
    margin-bottom: var(--space-8);
}

.section__title {
    margin-bottom: var(--space-3);
}

.section__subtitle {
    color: var(--concrete);
    max-width: 640px;
}

.section--dark .section__subtitle {
    color: var(--sandstone);
}

/* PROJECT CARDS */
.project-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: block;
    background-color: var(--obsidian);
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__img {
    transform: scale(1.03);
}

.project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(17,17,17,0.9), transparent);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.project-card__title {
    margin: 0;
}

.project-card__category {
    color: var(--sandstone);
}

.project-card--wide {
    aspect-ratio: 16 / 9;
}

.project-card--featured {
    grid-column: span 2;
}

@media (max-width: 767px) {
    .project-card--featured {
        grid-column: span 1;
    }
    .project-card--wide {
        aspect-ratio: 4 / 3;
    }
}

/* SERVICE CARDS */
.service-card {
    padding: var(--space-5);
    border-top: 2px solid var(--brass);
    background-color: var(--white);
    transition: var(--transition-default);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section--cream .service-card {
    background-color: transparent;
}

.service-card:hover {
    background-color: #FAFAFA;
    border-top-color: var(--obsidian);
}

.service-card__icon {
    margin-bottom: var(--space-4);
    color: var(--brass);
}

.service-card__title {
    margin-bottom: var(--space-2);
}

.service-card__desc {
    color: var(--concrete);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

/* METRICS */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    text-align: center;
}

@media (max-width: 767px) {
    .metrics {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.metric__number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    line-height: 1;
    color: var(--brass);
    margin-bottom: var(--space-1);
}

.metric__label {
    margin-bottom: var(--space-1);
}

.metric__desc {
    color: var(--concrete);
}

/* PROCESS/TIMELINE */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.process-step {
    position: relative;
    padding-top: var(--space-4);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
}

.section--dark .process-step::before {
    background-color: rgba(255,255,255,0.1);
}

.process-step__number {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--brass);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.process-step__title {
    margin-bottom: var(--space-2);
}

.process-step__desc {
    color: var(--concrete);
}

@media (max-width: 1024px) {
    .process {
        grid-template-columns: repeat(2, 1fr);
        row-gap: var(--space-6);
    }
}

@media (max-width: 767px) {
    .process {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .process-step {
        padding-top: 0;
        padding-left: var(--space-5);
    }
    
    .process-step::before {
        top: 0;
        left: 0;
        width: 1px;
        height: 100%;
    }
}

/* TESTIMONIALS */
.testimonial-card {
    background-color: var(--ivory);
    padding: var(--space-6);
    border-radius: 2px;
}

.testimonial-card__quote-mark {
    font-family: var(--font-display);
    font-size: 96px;
    line-height: 0.5;
    color: var(--brass);
    margin-bottom: var(--space-3);
}

.testimonial-card__text {
    font-style: italic;
    margin-bottom: var(--space-4);
}

.testimonial-card__author {
    margin-bottom: 2px;
}

.testimonial-card__role {
    color: var(--concrete);
}

/* FOOTER */
.site-footer {
    background-color: var(--charcoal);
    color: var(--ivory);
    padding: var(--space-12) 0 var(--space-4);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
    .site-footer {
        padding-top: var(--space-10);
    }
}

.footer-widget__title {
    color: var(--white);
    margin-bottom: var(--space-3);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-nav a {
    color: rgba(244, 240, 232, 0.7);
    transition: color var(--transition-default);
}

.footer-nav a:hover {
    color: var(--brass);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-social a {
    color: var(--ivory);
    transition: color var(--transition-default);
}

.footer-social a:hover {
    color: var(--brass);
}

.footer-social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(244, 240, 232, 0.5);
}

@media (max-width: 767px) {
    .site-footer__bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

.footer-legal-nav {
    display: flex;
    gap: var(--space-3);
}

.footer-legal-nav a:hover {
    color: var(--ivory);
}

/* FLOATING ACTIONS - Defined in Component Section below */

/* BREADCRUMBS */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: var(--space-4);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    color: var(--concrete);
}

.breadcrumbs__link {
    color: inherit;
    transition: color var(--transition-default);
}

.breadcrumbs__link:hover {
    color: var(--brass);
}

.breadcrumbs__current {
    color: var(--concrete);
}

/* FORMS */
.form {
    width: 100%;
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-row {
    display: grid;
    gap: var(--space-3);
}

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

.form-label {
    display: block;
    margin-bottom: var(--space-1);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--charcoal);
}

.section--dark .form-label {
    color: var(--ivory);
}

.form-control,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--sandstone);
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--obsidian);
    transition: border-color var(--transition-default), box-shadow var(--transition-default);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-control,
.form-select {
    height: 50px;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23003566' 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 16px center;
    background-size: 16px 16px;
    padding-right: 42px;
    cursor: pointer;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.2);
}

.form-textarea,
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    cursor: pointer;
}

.form-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--brass);
}

/* FILTER TABS */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-6);
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--obsidian);
    cursor: pointer;
    padding: var(--space-1) 0;
    position: relative;
}

.section--dark .filter-btn {
    color: var(--ivory);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--brass);
    transition: width var(--transition-default);
}

.filter-btn:hover::after,
.filter-btn.is-active::after {
    width: 100%;
}

.filter-btn.is-active {
    color: var(--brass);
}

.filter-sep {
    color: var(--concrete);
}

/* LOCATION LINKS */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.location-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background-color: var(--ivory);
    transition: var(--transition-default);
    border: 1px solid transparent;
}

.location-card__title {
    margin: 0;
}

.location-card__icon {
    width: 24px;
    height: 24px;
    color: var(--concrete);
    transition: var(--transition-default);
}

.location-card:hover {
    border-color: var(--brass);
    transform: translateY(-2px);
}

.location-card:hover .location-card__icon {
    color: var(--brass);
    transform: translateX(4px);
}

/* ==========================================================================
   7. ANIMATIONS & SCROLL CUES
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   8. ACCESSIBILITY
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brass);
    color: var(--obsidian);
    padding: 8px;
    z-index: 1001;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   9. GRID TEXTURE
   ========================================================================== */
.bg-grid {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* ==========================================================================
   10. RESPONSIVE DISPLAY UTILITIES
   ========================================================================== */
@media (max-width: 1024px) {
    .d-none-mobile { display: none !important; }
}
@media (min-width: 1025px) {
    .d-mobile-only { display: none !important; }
}

/* ==========================================================================
   11. ADDITIONAL HOMEPAGE COMPONENTS
   ========================================================================== */

/* Header inner flex wrapper (alternate class used in HTML) */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Logo text */
.logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: inherit;
}

/* Main nav in header */
.main-nav ul {
    display: flex;
    gap: var(--space-5);
    align-items: center;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--brass);
    transition: width var(--transition-default);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {
    width: 100%;
}

/* Nav Dropdown */
.nav-item--has-dropdown {
    position: relative;
}

.nav-item--has-dropdown .dropdown-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.25s ease;
}

.nav-item--has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 250px;
    background-color: #FFFFFF;
    border: 1px solid var(--sandstone);
    border-radius: 4px;
    padding: var(--space-2) 0;
    box-shadow: 0 15px 35px rgba(63, 13, 12, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-item--has-dropdown:hover .dropdown-menu,
.nav-item--has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px var(--space-3);
    color: var(--obsidian) !important;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--ivory);
    color: var(--brass) !important;
}

/* Dropdown styling when inside transparent hero header */
.site-header--transparent:not(.site-header--scrolled) .dropdown-menu {
    background-color: var(--obsidian);
    border: 1px solid var(--earth);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.site-header--transparent:not(.site-header--scrolled) .dropdown-menu a {
    color: var(--ivory) !important;
}

.site-header--transparent:not(.site-header--scrolled) .dropdown-menu a:hover,
.site-header--transparent:not(.site-header--scrolled) .dropdown-menu a.active {
    background-color: rgba(255, 195, 0, 0.15);
    color: var(--brass) !important;
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
}

/* Call button (mobile) */
.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brass) !important;
    padding: 6px;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.call-button .icon {
    width: 24px;
    height: 24px;
    stroke: var(--brass) !important;
}

.call-button:hover {
    transform: scale(1.08);
    background-color: rgba(255, 195, 0, 0.15);
}

/* Menu toggle button (mobile hamburger) */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 1010;
    position: relative;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background-color: rgba(255, 195, 0, 0.15);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Three solid gold hamburger lines */
.hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    position: relative;
    pointer-events: none;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--brass) !important;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Close button inside mobile menu */
.mobile-menu__close {
    background: none;
    border: none;
    color: var(--brass) !important;
    cursor: pointer;
    padding: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-menu__close:hover {
    transform: scale(1.1);
}

.mobile-menu__close .icon {
    width: 28px;
    height: 28px;
    stroke: var(--brass);
}

/* Icon default sizing */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Hero background layer & banner slider */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero-slider-track {
    display: flex;
    width: 500%;
    height: 100%;
    transform: translateX(0%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero-slide {
    width: 20%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42);
}

/* Hero Slider Indicators & Progress */
.hero-slider-nav {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-6);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.hero-slider-dot {
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    border-radius: 2px;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-slider-dot.is-active {
    background: var(--brass);
    width: 48px;
}


/* Hero content wrapper */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    padding-bottom: var(--space-15);
}

.hero-text-wrapper {
    max-width: 800px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-5);
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    z-index: 2;
}

.scroll-cue .icon {
    width: 16px;
    height: 16px;
    animation: bounce 2s infinite;
}

/* Section header (centered) */
.section-header {
    margin-bottom: var(--space-8);
}

.section-header .eyebrow {
    color: var(--brass);
    display: block;
    margin-bottom: var(--space-2);
}

/* Service card icon */
.service-icon {
    margin-bottom: var(--space-3);
    color: var(--brass);
}

.service-icon .icon {
    width: 32px;
    height: 32px;
}

/* Service card text spacing */
.service-card .heading-md {
    margin-bottom: var(--space-2);
}

.service-card .body {
    color: var(--concrete);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

/* Project grid layout */
.project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Project card (homepage inline-style variants) */
.project-card {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-grid .project-card {
    aspect-ratio: 1 / 1 !important;
}

.project-card a {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.project-grid .project-card a {
    aspect-ratio: 1 / 1;
}

.project-image {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.project-grid .project-image {
    aspect-ratio: 1 / 1;
    padding-bottom: 0 !important;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(17,17,17,0.85), transparent);
    color: var(--white);
}

.project-overlay .eyebrow {
    color: var(--sandstone);
    margin-bottom: var(--space-1);
    display: block;
}

/* Process timeline: 5 columns on desktop */
@media (min-width: 1025px) {
    .process {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Process number, title, desc (alternate class names used in HTML) */
.process__number {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.process__title {
    margin-bottom: var(--space-1);
}

.process__desc {
    color: var(--concrete);
}

/* Metric number (alternate class used in HTML) */
.metric-number {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.metric-item {
    padding: var(--space-4) var(--space-2);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--obsidian);
    color: var(--ivory);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    padding: var(--space-4) var(--space-4) var(--space-8);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(198, 184, 164, 0.15);
    margin-bottom: var(--space-5);
}

.mobile-menu__header .logo-text {
    color: var(--ivory);
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--brass) !important;
    cursor: pointer;
    padding: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu__close .icon {
    width: 28px;
    height: 28px;
    stroke: var(--brass) !important;
}

.mobile-nav__primary {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
}

.mobile-nav__primary > li > a {
    font-family: var(--font-heading);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    display: block;
    padding: 6px 0;
    transition: color var(--transition-default);
}

.mobile-nav__primary > li > a:hover,
.mobile-nav__primary > li > a.active {
    color: var(--brass);
}

.mobile-nav__heading {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sandstone);
    margin-top: var(--space-3);
    margin-bottom: var(--space-2);
}

.mobile-subnav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: var(--space-3);
    margin-top: 6px;
    margin-bottom: var(--space-3);
    list-style: none;
    border-left: 1px solid rgba(198, 184, 164, 0.2);
}

.mobile-subnav a {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(244, 240, 232, 0.75);
    display: block;
    transition: color var(--transition-default);
}

.mobile-subnav a:hover,
.mobile-subnav a.active {
    color: var(--brass);
}

.mobile-menu__cta {
    margin-bottom: var(--space-5);
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(198, 184, 164, 0.15);
}

.mobile-menu-contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sandstone);
    transition: color var(--transition-default);
}

.mobile-menu-contact a:hover {
    color: var(--white);
}

/* Footer overrides for inline-styled footer in HTML */
.site-footer a:hover {
    color: var(--brass) !important;
}

.social-links a {
    color: var(--ivory);
    transition: color var(--transition-default);
}

.social-links .icon {
    width: 22px;
    height: 22px;
}

.social-links a:hover {
    color: var(--brass);
}

/* Floating bar (mobile bottom bar - alternate class) */
.floating-bar {
    font-family: var(--font-heading);
}

@media (min-width: 1025px) {
    .floating-bar { display: none !important; }
}

/* Location grid buttons */
.location-grid .btn-ghost {
    transition: var(--transition-default);
}

.location-grid .btn-ghost:hover {
    border-color: var(--brass) !important;
    color: var(--brass);
}

/* Testimonial card footer */
.testimonial-card footer {
    color: var(--obsidian);
}

/* ==========================================================================
   12. FAQ ACCORDION (details/summary)
   ========================================================================== */
details {
    border-bottom: 1px solid var(--sandstone);
    padding-bottom: var(--space-4);
}

details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
}

details summary::-webkit-details-marker {
    display: none;
}

details summary .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-default);
}

details[open] summary .icon {
    transform: rotate(180deg);
}

details p {
    margin-top: var(--space-2);
    color: var(--concrete);
}

details p a {
    color: var(--brass);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-default);
}

details p a:hover {
    color: var(--obsidian);
}

/* ==========================================================================
   STUDIO TEAM GRID (4 in first row, 3 centered in second row)
   ========================================================================== */
.studio-team-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.studio-team-row--top {
    margin-bottom: var(--space-6);
}

.studio-team-card {
    flex: 0 1 230px;
    max-width: 250px;
    width: 100%;
    text-align: center;
}

@media (max-width: 992px) {
    .studio-team-card {
        flex: 0 1 210px;
    }
}

@media (max-width: 768px) {
    .studio-team-card {
        flex: 0 1 calc(50% - var(--space-3));
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .studio-team-card {
        flex: 0 1 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   FLOATING CORNER ACTIONS & WHATSAPP POPUP
   ========================================================================== */

.floating-actions {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 18px rgba(63, 13, 12, 0.22);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-color 0.25s ease;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 25px rgba(63, 13, 12, 0.32);
}

.floating-btn:active {
    transform: translateY(0) scale(0.96);
}

.floating-btn--whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
}

.floating-btn--whatsapp:hover {
    background-color: #20bd5a;
    color: #FFFFFF;
}

.floating-btn--phone {
    background-color: var(--obsidian);
    color: var(--brass);
    border: 1px solid var(--earth);
}

.floating-btn--phone:hover {
    background-color: var(--earth);
    color: #FFFFFF;
}

.floating-btn__icon {
    display: block;
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* Subtle pulse animation on WhatsApp button */
@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-btn--whatsapp {
    animation: wa-pulse 3s infinite;
}

/* WhatsApp 10s Popup */
.whatsapp-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 220px;
    background-color: #FFFFFF;
    border: 1px solid var(--sandstone);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(63, 13, 12, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    z-index: 1060;
    pointer-events: none;
}

.whatsapp-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.whatsapp-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 22px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FFFFFF;
}

.whatsapp-popup__close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--earth);
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.whatsapp-popup__close:hover {
    color: var(--obsidian);
    background-color: var(--sandstone);
}

.whatsapp-popup__content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-popup__avatar {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.whatsapp-popup__text {
    display: flex;
    flex-direction: column;
}

.whatsapp-popup__title {
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--earth);
    margin: 0 0 2px 0;
    font-weight: 600;
}

.whatsapp-popup__msg {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--obsidian);
    margin: 0;
}

/* Mobile bottom floating bar */
.floating-bar {
    display: none;
}

@media (max-width: 1024px) {
    /* Hide floating corner circles & WhatsApp white popup box on mobile/tablet so only the bottom bar appears */
    .floating-actions {
        display: none !important;
    }

    .floating-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--obsidian);
        border-top: 1px solid var(--earth);
        display: flex;
        align-items: stretch;
        z-index: 1040;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    }

    .floating-bar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-family: var(--font-heading);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--ivory);
        text-decoration: none;
        padding: 6px 4px;
        border-right: 1px solid rgba(216, 208, 197, 0.15);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .floating-bar__item:last-child {
        border-right: none;
    }

    .floating-bar__item:hover,
    .floating-bar__item:active {
        background-color: var(--earth);
        color: #FFFFFF;
    }

    .floating-bar__item--cta {
        background-color: var(--brass);
        color: var(--obsidian) !important;
        font-weight: 700;
        position: relative;
        overflow: hidden;
    }

    .floating-bar__item--cta::after {
        content: '';
        position: absolute;
        top: -60%;
        left: -90%;
        width: 65%;
        height: 220%;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.65) 45%,
            rgba(255, 255, 255, 0.95) 50%,
            rgba(255, 255, 255, 0.65) 55%,
            rgba(255, 255, 255, 0) 100%
        );
        transform: rotate(25deg);
        pointer-events: none;
        z-index: 2;
        animation: consultation-shine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    .floating-bar__item--cta:hover,
    .floating-bar__item--cta:active {
        background-color: var(--gold);
    }

    /* Adjust page padding bottom for mobile sticky bar */
    body {
        padding-bottom: 60px;
    }
}

/* ==========================================================================
   IMAGE LIGHTBOX / MODAL VIEWER
   ========================================================================== */
.gallery-item,
#gallery .grid > div {
    cursor: pointer;
    position: relative;
}

.gallery-item:hover img,
#gallery .grid > div:hover img {
    transform: scale(1.04);
}

.gallery-item::after,
#gallery .grid > div::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 48px;
    height: 48px;
    background: rgba(0, 8, 20, 0.85);
    color: var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::after,
#gallery .grid > div:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox overlay */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 8, 20, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.lightbox-modal__container {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-modal__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    user-select: none;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.lightbox-modal.is-active .lightbox-modal__img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-modal__caption {
    margin-top: var(--space-3);
    color: var(--ivory);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 800px;
}

.lightbox-modal__counter {
    color: var(--brass);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    font-family: var(--font-body);
}

/* Lightbox Controls */
.lightbox-btn {
    position: absolute;
    background: rgba(0, 29, 61, 0.85);
    border: 1px solid rgba(255, 195, 0, 0.4);
    color: var(--ivory);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3010;
    transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.lightbox-btn:hover {
    background-color: var(--brass);
    color: var(--obsidian);
    border-color: var(--brass);
    transform: scale(1.08);
}

.lightbox-btn:active {
    transform: scale(0.95);
}

.lightbox-btn .icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.lightbox-btn--prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-btn--prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-btn--next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-btn--next:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-btn--close {
    top: 24px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .lightbox-btn {
        width: 44px;
        height: 44px;
    }
    .lightbox-btn--prev {
        left: 12px;
    }
    .lightbox-btn--next {
        right: 12px;
    }
    .lightbox-btn--close {
        top: 12px;
        right: 12px;
    }
    .lightbox-modal__img {
        max-width: 96vw;
        max-height: 75vh;
    }
}

/* ==========================================================================
   PHOTO BADGE / RIBBON TAG (E.G. 'FOUNDER & CEO', 'CO-FOUNDER & COO')
   ========================================================================== */
.photo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: linear-gradient(135deg, var(--brass) 0%, #e6a800 100%);
    color: var(--obsidian);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 8, 20, 0.35), 0 0 12px rgba(255, 195, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    overflow: hidden;
}

.photo-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: consultation-shine 3.5s infinite;
}

.photo-badge--navy {
    background: linear-gradient(135deg, var(--earth) 0%, var(--obsidian) 100%);
    color: var(--brass);
    border-color: rgba(255, 195, 0, 0.35);
    box-shadow: 0 4px 14px rgba(0, 8, 20, 0.4);
}

.photo-badge__dot {
    width: 6px;
    height: 6px;
    background-color: var(--obsidian);
    border-radius: 50%;
    display: inline-block;
}

.photo-badge--navy .photo-badge__dot {
    background-color: var(--brass);
}

/* ==========================================================================
   PORTFOLIO MOBILE DISPLAY OPTIMIZATION
   ========================================================================== */
#portfolio-grid .grid {
    display: grid;
    gap: var(--space-5);
}

#portfolio-grid .project-card {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--obsidian);
}

#portfolio-grid .project-card a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
}

#portfolio-grid .project-image {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#portfolio-grid .project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    #portfolio-grid .grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-4) !important;
    }

    #portfolio-grid .project-card {
        min-height: 280px;
        aspect-ratio: 4 / 5;
        opacity: 1 !important;
        transform: none !important;
    }

    #portfolio-grid .project-image {
        aspect-ratio: 4 / 5;
        padding-bottom: 0 !important;
        height: 100% !important;
    }

    #portfolio-grid .project-overlay {
        padding: var(--space-3) var(--space-3) var(--space-4);
    }

    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        font-size: 13px;
    }

    .filter-sep {
        flex-shrink: 0;
    }
}
