/* ==========================================================================
   Miami Emlak — Design System
   --------------------------------------------------------------------------
   Single source of truth for design tokens. Token values match the
   current homepage palette — this file is plumbing, not a redesign.
   Component refactoring to use these tokens proceeds incrementally; new
   code (skip-link, focus-visible, A11y utilities below) is the first
   consumer.
   ========================================================================== */

:root {
    /* ---------- Color: surfaces ---------- */
    --surface-base: #050505;
    --surface-elevated: #0a0a0a;
    --surface-card: #141414;
    --surface-overlay: rgba(20, 20, 20, 0.95);

    /* ---------- Color: text ---------- */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.62);
    --text-inverse: #0a0a0a;

    /* ---------- Color: brand & accents ---------- */
    --brand-gold: #d4af37;
    --brand-gold-hover: #e5c247;
    --brand-gold-muted: rgba(212, 175, 55, 0.55);
    --brand-gold-soft: rgba(212, 175, 55, 0.12);

    --accent-success: #25d366;        /* WhatsApp green */
    --accent-success-hover: #128c7e;
    --accent-call: #d4af37;           /* phone CTA = brand gold */
    --accent-danger: #ff3b30;
    --accent-warning: #f59e0b;

    /* ---------- Color: borders ---------- */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-gold: rgba(212, 175, 55, 0.3);

    /* ---------- Typography ---------- */
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Fluid type scale — clamp(min, fluid, max) ----------------------------*/
    --fs-display: clamp(2.8rem, 6vw + 0.5rem, 5rem);
    --fs-h1:      clamp(2.2rem, 4.5vw + 0.4rem, 3.6rem);
    --fs-h2:      clamp(1.7rem, 3vw + 0.3rem, 2.6rem);
    --fs-h3:      clamp(1.25rem, 2vw + 0.25rem, 1.65rem);
    --fs-h4:      clamp(1.05rem, 1.2vw + 0.4rem, 1.25rem);
    --fs-body-lg: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
    --fs-body:    1rem;
    --fs-body-sm: 0.875rem;
    --fs-caption: 0.75rem;

    /* ---------- Spacing — 8pt grid ---------- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 56px;
    --space-11: 64px;
    --space-12: 80px;
    --space-13: 96px;
    --space-14: 112px;
    --space-15: 128px;
    --space-16: 160px;

    /* ---------- Radii ---------- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* ---------- Shadows — dark-luxury elevation ---------- */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 8px 28px rgba(212, 175, 55, 0.28);

    /* ---------- Motion ---------- */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --ease-decelerated: cubic-bezier(0, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;

    /* ---------- Z-index scale ---------- */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 2000;
    --z-modal: 2100;
    --z-toast: 3000;
    --z-skip-link: 9999;

    /* ---------- Containers ---------- */
    --container-narrow: 720px;
    --container-default: 1200px;
    --container-wide: 1440px;

    /* ---------- Legacy aliases ----------
     * Inline per-page styles use these names. Aliasing them here keeps both
     * the new design tokens and pre-existing inline rules functional.
     */
    --gold: #d4af37;
    --gold-light: rgba(212, 175, 55, 0.15);
    --gold-glow: rgba(212, 175, 55, 0.4);
    --dark: #0a0a0a;
    --dark-gray: #1a1a1a;
    --black: #050505;
    --white: #ffffff;
    --glass: rgba(20, 20, 20, 0.95);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128c7e;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    color-scheme: dark;
}

/* Universal box-sizing reset. Other pages (index, projects, neighborhoods,
   schools, faq, about_us, 404) carry their own inline `* { box-sizing:
   border-box }` reset, so this rule is a no-op there. Blog pages do not,
   so without this they fall back to UA `content-box` and the .mobile-menu
   panel renders 50px wider than projects' (320 vs 370). */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==========================================================================
   A11y baseline utilities — these are NEW behaviour, opt-in via class.
   Existing inline styles are not affected.
   ========================================================================== */

/* Skip-to-content link — visually hidden until keyboard focus */
.skip-link {
    position: fixed;
    top: var(--space-3);
    left: var(--space-3);
    z-index: var(--z-skip-link);
    padding: var(--space-3) var(--space-5);
    background: var(--brand-gold);
    color: var(--text-inverse);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-body-sm);
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--duration-base) var(--ease-emphasized);
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Visually hidden — for screen-reader-only labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Branded focus ring for keyboard users only.
   Applies globally to interactive elements that don't already have an
   inline focus style. Mouse users keep clean visuals. */
:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Higher-specificity overrides for inputs/buttons whose page-level CSS
   stripped the default outline. Without these, keyboard focus is invisible
   on the search box, AI search box, contact form fields, and chat input. */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
.search-box input:focus-visible,
.ai-search-box input:focus-visible,
.chat-input-field:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
    outline: 2px solid var(--brand-gold) !important;
    outline-offset: 2px !important;
}

/* Reduced motion — gate non-essential animation site-wide.
   This stacks with any per-page rules. */
@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;
    }
}

/* High-contrast / forced-colors — keep things visible */
@media (forced-colors: active) {
    :focus-visible {
        outline-color: CanvasText;
    }
}

/* When a <button> takes a class previously belonging to an <a>, neutralise
   browser-default button chrome so the visual matches the anchor it replaced. */
button.nav-link,
button.mobile-nav-link {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
    appearance: none;
    -webkit-appearance: none;
}

/* Hero video fallback — sits BEHIND the <video.video-bg> so iOS Safari
   low-power-mode users (and any environment where autoplay is blocked)
   see the poster image as the LCP element instead of a black box. */
.hero-video-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.hero-video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================================================
 * LOGO NORMALIZATION — sitewide
 * The logo.png file is 989×755 (1.31:1 aspect ratio).
 * Hotfix 8: bigger logo on every page (homepage AND inner pages).
 * The nav containers grow to fit naturally; we do NOT force a
 * min-height on bare .top-nav (that was clipping project page chips).
 * =================================================================== */
header .logo-center img,
nav .logo-center img,
.top-nav .logo-center img,
a.logo-home-link img,
.logo-img,
.logo-home-link img {
    height: 150px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
}

/* Scrolled state */
.scrolled .logo-center img,
.top-nav.scrolled .logo-center img {
    height: 110px !important;
}

/* Mobile */
@media (max-width: 768px) {
    header .logo-center img,
    nav .logo-center img,
    .top-nav .logo-center img,
    a.logo-home-link img:not(.mobile-menu-logo) {
        height: 95px !important;
    }
    .scrolled .logo-center img,
    .top-nav.scrolled .logo-center img {
        height: 75px !important;
    }
}

/* Mobile menu drawer.
   `.mobile-menu-header a.logo-home-link img` (specificity 0,2,2) is needed
   to beat the sitewide `a.logo-home-link img { height: 150px !important }`
   rule above. Without it, blog menu markup
   `<a class="mobile-menu-logo logo-home-link"><img class="mobile-menu-logo">`
   inherits the 150px sitewide logo height and the img overflows the anchor,
   crowding the gold divider below. */
.mobile-menu-logo,
.mobile-menu-header img,
.mobile-menu-header a img,
.mobile-menu-header a.logo-home-link img {
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

/* Footer */
.footer-logo img,
footer .logo img {
    height: 100px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Hotfix 8: kill the leftover gold border line under the nav bar.
 * Various inner pages had a stylistic border-bottom on .top-nav that
 * was reading as an unprofessional thin gap on luxury content. The
 * `header` selector is included because the diagnostic on
 * projects_view_all.html showed an inline-style rule
 * `header { border-bottom: 1px solid var(--border-gold); }` in
 * addition to the .top-nav rule — both produce the visible line. */
.top-nav,
nav.top-nav,
header,
header.hero-section,
header .top-nav,
header.hero-section .top-nav {
    border-bottom: none !important;
    box-shadow: none !important;
}

.top-nav.scrolled,
header.hero-section .top-nav.scrolled {
    border-bottom: none !important;
    /* Keep a subtle shadow on scroll for visual separation, but no gold line */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* ===================================================================
 * LANGUAGE TOGGLE (TR / EN button) — sitewide enlargement.
 * Each page sets its own .lang-toggle padding/font-size; this block
 * overrides them so the language pill scales with the bigger logo.
 * =================================================================== */
.lang-toggle {
    padding: 10px 18px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    gap: 8px !important;
}
.lang-toggle .flag-icon {
    width: 28px !important;
    height: 20px !important;
}
.lang-toggle .lang-code {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .lang-toggle,
    .mobile-lang-toggle .lang-toggle {
        padding: 9px 14px !important;
        font-size: 0.9rem !important;
    }
    .lang-toggle .flag-icon,
    .mobile-lang-toggle .lang-toggle .flag-icon {
        width: 26px !important;
        height: 18px !important;
    }
    .lang-toggle .lang-code {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .lang-toggle,
    .mobile-lang-toggle .lang-toggle {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    .lang-toggle .flag-icon,
    .mobile-lang-toggle .lang-toggle .flag-icon {
        width: 22px !important;
        height: 15px !important;
    }
}

/* ===================================================================
 * NAV HEIGHT CAPS — sitewide
 * Several pages (about_us, neighborhoods, visa_opportunities,
 * projects_view_all) declare .top-nav { height: 140px } or
 * --nav-height: 140px on desktop, which dominates the upper screen.
 * This block caps every page's nav at sensible values so the logo
 * (80/52px) fits comfortably and the page's own transition
 * animation (where present) still runs smoothly.
 *
 * Project detail pages already use these exact heights — these
 * overrides are no-ops there.
 * =================================================================== */
.top-nav {
    height: 90px !important;
}
.top-nav.scrolled {
    height: 70px !important;
}
@media (max-width: 1200px) {
    .top-nav { height: 80px !important; }
    .top-nav.scrolled { height: 65px !important; }
}
@media (max-width: 900px) {
    .top-nav { height: 75px !important; }
    .top-nav.scrolled { height: 60px !important; }
}
@media (max-width: 768px) {
    .top-nav { height: 70px !important; }
    .top-nav.scrolled { height: 50px !important; }
}
@media (max-width: 600px) {
    .top-nav { height: 65px !important; }
    .top-nav.scrolled { height: 45px !important; }
}
@media (max-width: 480px) {
    .top-nav { height: 60px !important; }
    .top-nav.scrolled { height: 40px !important; }
}

/* Pages that drive nav height via custom property (projects_view_all):
 * cap the variable itself so the layout math (filter-bar top offset,
 * content margin-top) recalculates correctly. */
:root {
    --nav-height: 90px !important;
    --nav-height-scrolled: 70px !important;
    --filter-height: 56px !important;
}
@media (max-width: 1400px) {
    :root {
        --nav-height: 85px !important;
        --nav-height-scrolled: 65px !important;
    }
}
@media (max-width: 1200px) {
    :root {
        --nav-height: 80px !important;
        --nav-height-scrolled: 60px !important;
        --filter-height: 50px !important;
    }
}
@media (max-width: 900px) {
    :root {
        --nav-height: 75px !important;
        --nav-height-scrolled: 60px !important;
        --filter-height: 50px !important;
    }
}
@media (max-width: 768px) {
    :root {
        --nav-height: 70px !important;
        --nav-height-scrolled: 50px !important;
        --filter-height: 48px !important;
    }
}
@media (max-width: 600px) {
    :root {
        --nav-height: 65px !important;
        /* Hotfix 10: aligned with .top-nav.scrolled { height: 45px } above
         * — was 50px, which left a 5px gap between scrolled-nav-bottom
         * and filter-bar-top, exposing the page content underneath. */
        --nav-height-scrolled: 45px !important;
        --filter-height: 46px !important;
    }
}
@media (max-width: 480px) {
    :root {
        --nav-height: 60px !important;
        /* Hotfix 10: aligned with .top-nav.scrolled { height: 40px } above
         * — was 45px, same 5px-gap bug as @600px. */
        --nav-height-scrolled: 40px !important;
        --filter-height: 42px !important;
    }
}

/* ===================================================================
 * HERO SLIDESHOW — replaces the hero video on the homepage
 * Two-slide crossfade pattern with Ken Burns subtle zoom/pan.
 * Slides are absolutely positioned and stacked; the active slide has
 * opacity:1, the inactive slide loads the next image at opacity:0,
 * then they swap.
 * =================================================================== */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: #0a0a0a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity, transform;
    transform: scale(1.05);
}

.hero-slide--active {
    opacity: 1;
    animation: heroKenBurns 9s ease-out forwards;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

/* Reduced-motion: no zoom/pan, static fade only */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity 0.5s linear;
        transform: none !important;
        animation: none !important;
    }
}

/* Mobile — slightly tighter Ken Burns, faster crossfade */
@media (max-width: 768px) {
    .hero-slide {
        transition: opacity 1s ease-in-out;
    }
    @keyframes heroKenBurns {
        0%   { transform: scale(1.05) translate3d(0, 0, 0); }
        100% { transform: scale(1.10) translate3d(-1%, -0.5%, 0); }
    }
}

/* ===================================================================
 * FOUNDERS SECTION (Batch B2)
 * Trust-architecture above the project showcase. Two cards side-by-side
 * on desktop, stacked on mobile.
 * =================================================================== */
.founders-section {
    padding: 90px 5% 70px;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    color: #f5f5f5;
    position: relative;
}

.founders-container {
    max-width: 1200px;
    margin: 0 auto;
}

.founders-intro {
    text-align: center;
    margin-bottom: 60px;
}

.founders-eyebrow {
    display: inline-block;
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.founders-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.founders-subhead {
    color: rgba(245, 245, 245, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.founder-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.04) 0%, rgba(20, 20, 20, 0.85) 60%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.founder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.45);
}

.founder-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.founder-photo {
    width: 100%;
    height: 100%;
    position: relative;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Initial-badge fallback when the founder photo file isn't available yet */
.founder-photo-placeholder.photo-fallback::before,
.founder-photo-placeholder:not(:has(img[src])):before {
    content: attr(data-initials);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b8860b 0%, #D4AF37 50%, #e5c247 100%);
    color: #0a0a0a;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: 4px;
    z-index: 1;
}

.founder-meta {
    padding: 28px 26px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.founder-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.founder-role {
    color: #D4AF37;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.founder-bio {
    color: rgba(245, 245, 245, 0.72);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 6px 0 16px;
}

.founder-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.founder-cta {
    flex: 0 0 auto;
}

.founder-cta-tel {
    font-size: 0.92rem;
}

.founders-footnote {
    text-align: center;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.95rem;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .founders-section {
        padding: 60px 5% 50px;
    }
    .founders-intro {
        margin-bottom: 40px;
    }
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 26px;
    }
    .founder-photo-wrap {
        aspect-ratio: 4 / 3.6;
    }
    .founder-meta {
        padding: 22px 20px 26px;
    }
    .founder-name {
        font-size: 1.4rem;
    }
    .founder-cta {
        width: 100%;
    }
    .founder-cta-tel {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================================
 * TESTIMONIALS SECTION (Batch B2)
 * Scaffold for owner-populated client quotes. Three cards, gold-quote
 * style, gracefully degrades to two-then-one column on smaller widths.
 * =================================================================== */
.testimonials-section {
    padding: 90px 5% 70px;
    background: #050505;
    color: #f5f5f5;
    position: relative;
}

.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
}

.testimonials-intro {
    text-align: center;
    margin-bottom: 56px;
}

.testimonials-eyebrow {
    display: inline-block;
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.testimonials-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 16px;
    letter-spacing: -0.4px;
}

.testimonials-subhead {
    color: rgba(245, 245, 245, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Slight visual hint that cards are placeholders — only when data-placeholder="true" */
.testimonials-grid[data-placeholder="true"] .testimonial-card {
    opacity: 0.85;
    border-style: dashed;
}

.testimonial-card {
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.05) 0%, rgba(15, 15, 15, 0.95) 60%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

.testimonial-stars {
    color: #D4AF37;
    font-size: 1rem;
    letter-spacing: 3px;
}

.testimonial-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(245, 245, 245, 0.92);
    margin: 0;
    font-style: italic;
}

.testimonial-attribution {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.testimonial-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.testimonial-meta {
    color: rgba(212, 175, 55, 0.85);
    font-size: 0.82rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.testimonials-cta {
    text-align: center;
    margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid > article:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
        justify-self: center;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .testimonials-section {
        padding: 60px 5% 50px;
    }
    .testimonials-intro {
        margin-bottom: 36px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 30px;
    }
    .testimonials-grid > article:nth-child(3) {
        max-width: none;
    }
    .testimonial-card {
        padding: 26px 22px 22px;
    }
    .testimonial-quote {
        font-size: 1rem;
    }
}

/* ===================================================================
 * FORM POLISH (Batch B3)
 * Inline validation states, submit-button states, success/error UX.
 * Targets the existing form via .lead-form scoped class plus
 * generic input states. Does not require restructuring existing forms.
 * =================================================================== */
.lead-form {
    position: relative;
}

.lead-form .form-field {
    position: relative;
    margin-bottom: 18px;
}

.lead-form .form-field input:not([type="hidden"]),
.lead-form .form-field textarea,
.lead-form .form-field select {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lead-form .form-field input::placeholder,
.lead-form .form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.lead-form .form-field input:focus,
.lead-form .form-field textarea:focus,
.lead-form .form-field select:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.lead-form .form-field.is-valid input,
.lead-form .form-field.is-valid textarea {
    border-color: rgba(37, 211, 102, 0.55);
}

.lead-form .form-field.is-invalid input,
.lead-form .form-field.is-invalid textarea {
    border-color: rgba(255, 90, 90, 0.55);
    background: rgba(255, 90, 90, 0.05);
}

.lead-form .form-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.lead-form .form-field.is-valid .form-field-icon {
    opacity: 1;
    color: #25D366;
}

.lead-form .form-field.is-invalid .form-field-icon {
    opacity: 1;
    color: #ff5a5a;
}

.lead-form .form-field-error {
    display: none;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #ff7878;
    letter-spacing: 0.2px;
}

.lead-form .form-field.is-invalid .form-field-error {
    display: block;
}

.lead-form .form-submit {
    position: relative;
    min-height: 52px;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #b8860b 0%, #D4AF37 50%, #e5c247 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.lead-form .form-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
}

.lead-form .form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.lead-form .form-submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: leadFormSpin 0.7s linear infinite;
    vertical-align: middle;
}

.lead-form.is-submitting .form-submit-spinner {
    display: inline-block;
}

.lead-form.is-submitting .form-submit-text {
    opacity: 0.6;
}

@keyframes leadFormSpin {
    to { transform: rotate(360deg); }
}

.lead-form-success {
    display: none;
    text-align: center;
    padding: 40px 28px;
    background: linear-gradient(160deg, rgba(37, 211, 102, 0.08) 0%, rgba(20, 20, 20, 0.85) 60%);
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 18px;
    color: #f5f5f5;
}

.lead-form-success .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(37, 211, 102, 0.18);
    border: 1.5px solid rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    color: #25D366;
    font-size: 1.6rem;
    margin: 0 auto 18px;
}

.lead-form-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 10px;
}

.lead-form-success p {
    color: rgba(245, 245, 245, 0.78);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

.lead-form.is-success .lead-form-success {
    display: block;
    animation: leadFormSuccessIn 0.4s ease both;
}

.lead-form.is-success > *:not(.lead-form-success) {
    display: none;
}

@keyframes leadFormSuccessIn {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.lead-form-error-banner {
    display: none;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: rgba(255, 90, 90, 0.08);
    border: 1px solid rgba(255, 90, 90, 0.4);
    border-radius: 10px;
    color: #ff8a8a;
    font-size: 0.92rem;
}

.lead-form.has-error .lead-form-error-banner {
    display: block;
}

/* ===================================================================
 * PROJECT PAGE STICKY INFO BAR (Batch B3)
 * Slides in from top when user scrolls past hero. Stays pinned with
 * project name + price + WhatsApp CTA. Hidden by default.
 * =================================================================== */
.project-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    padding: 12px 20px;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-sticky-bar.is-visible {
    transform: translateY(0);
}

.psb-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.psb-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psb-price {
    color: #D4AF37;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.1;
}

.psb-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff !important;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 60%, #4ee37c 100%);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
}

.psb-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.psb-cta i {
    font-size: 1rem;
}

@media (max-width: 480px) {
    .project-sticky-bar {
        padding: 10px 14px;
        gap: 10px;
    }
    .psb-name {
        font-size: 0.95rem;
    }
    .psb-price {
        font-size: 0.75rem;
    }
    .psb-cta {
        padding: 9px 14px;
        font-size: 0.74rem;
    }
    .psb-cta span {
        display: none;
    }
}

/* ===================================================================
 * SIMILAR PROJECTS CAROUSEL (Batch B3)
 * Bottom-of-project-page horizontal scroll. 6 random other projects.
 * =================================================================== */
.similar-projects {
    padding: 70px 5% 60px;
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    color: #f5f5f5;
}

.similar-projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.similar-projects-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.similar-projects-sub {
    color: rgba(245, 245, 245, 0.65);
    margin: 0 0 30px;
    font-size: 0.95rem;
}

.similar-projects-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.similar-projects-track::-webkit-scrollbar {
    height: 6px;
}
.similar-projects-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
}
.similar-projects-track::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.sp-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.05) 0%, rgba(15, 15, 15, 0.95) 60%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.sp-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #111;
}

.sp-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sp-card-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.sp-card-price {
    color: #D4AF37;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.4px;
}

@media (max-width: 600px) {
    .similar-projects {
        padding: 50px 5% 40px;
    }
    .sp-card {
        flex: 0 0 240px;
    }
}

/* ===================================================================
 * FORM FIELD FLOATING LABELS (Hotfix B3.1)
 * Adds visible labels to lead-form fields with a floating-label pattern.
 * Label sits inside field by default, floats above on focus/fill.
 * =================================================================== */
.lead-form .form-field {
    padding-top: 6px;
}

.lead-form .form-field label.field-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    pointer-events: none;
    background: transparent;
    padding: 0 6px;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.lead-form .form-field input:focus + label.field-label,
.lead-form .form-field textarea:focus + label.field-label,
.lead-form .form-field select:focus + label.field-label,
.lead-form .form-field input:not(:placeholder-shown) + label.field-label,
.lead-form .form-field textarea:not(:placeholder-shown) + label.field-label,
.lead-form .form-field.has-value label.field-label,
.lead-form .form-field.is-focused label.field-label {
    top: -2px;
    transform: translateY(0);
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4AF37;
    background: #0a0a0a;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.lead-form .form-field.is-invalid label.field-label {
    color: #ff7878;
}

.lead-form .form-field.is-textarea label.field-label {
    top: 14px;
    transform: none;
}
.lead-form .form-field.is-textarea input:focus + label.field-label,
.lead-form .form-field.is-textarea textarea:focus + label.field-label,
.lead-form .form-field.is-textarea input:not(:placeholder-shown) + label.field-label,
.lead-form .form-field.is-textarea textarea:not(:placeholder-shown) + label.field-label,
.lead-form .form-field.is-textarea.has-value label.field-label,
.lead-form .form-field.is-textarea.is-focused label.field-label {
    top: -2px;
}

.lead-form .form-field.is-select label.field-label {
    top: -2px;
    transform: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4AF37;
    background: #0a0a0a;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.lead-form .form-field label.field-label .req {
    color: #D4AF37;
    margin-left: 3px;
}

.lead-form .consent-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0 6px;
    margin-bottom: 18px;
}

.lead-form .consent-field input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 2px 0 0 0;
    accent-color: #D4AF37;
    flex-shrink: 0;
    cursor: pointer;
}

.lead-form .consent-field label {
    color: rgba(245, 245, 245, 0.78);
    font-size: 0.92rem;
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}

.lead-form .consent-field label .req {
    color: #D4AF37;
    margin-left: 3px;
}

.lead-form input[name="botcheck"] {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===================================================================
 * FORM LABEL SPECIFICITY OVERRIDE (Hotfix B3.2)
 * Earlier inline page CSS targets .form-group label / .contact-form label
 * generically and was hiding our floating field-labels. Force visibility
 * with !important on the critical properties. Specificity-bumped via the
 * .lead-form parent + .form-field child selector.
 * =================================================================== */
.lead-form .form-field > label.field-label,
form.lead-form .form-field > label.field-label {
    display: inline-block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    position: absolute !important;
    left: 16px !important;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    pointer-events: none;
    background: transparent;
    padding: 0 6px !important;
    margin: 0 !important;
    z-index: 2;
    text-transform: none;
}

.lead-form .form-field input:focus + label.field-label,
.lead-form .form-field textarea:focus + label.field-label,
.lead-form .form-field select:focus + label.field-label,
.lead-form .form-field input:not(:placeholder-shown) + label.field-label,
.lead-form .form-field textarea:not(:placeholder-shown) + label.field-label,
.lead-form .form-field.has-value > label.field-label,
.lead-form .form-field.is-focused > label.field-label,
.lead-form .form-field.is-select > label.field-label {
    top: -2px !important;
    transform: translateY(0) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #D4AF37 !important;
    background: #0a0a0a !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
}

.lead-form .form-field.is-textarea > label.field-label {
    top: 14px !important;
    transform: none !important;
}
.lead-form .form-field.is-textarea input:focus + label.field-label,
.lead-form .form-field.is-textarea textarea:focus + label.field-label,
.lead-form .form-field.is-textarea textarea:not(:placeholder-shown) + label.field-label,
.lead-form .form-field.is-textarea.has-value > label.field-label,
.lead-form .form-field.is-textarea.is-focused > label.field-label {
    top: -2px !important;
}

.lead-form .form-field.is-invalid > label.field-label {
    color: #ff7878 !important;
}

.lead-form .form-field > label.field-label .req {
    color: #D4AF37 !important;
    margin-left: 3px !important;
}

.lead-form .consent-field > label,
form.lead-form .consent-field > label {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    opacity: 1 !important;
    color: rgba(245, 245, 245, 0.78) !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    flex: 1 1 auto;
}

.lead-form .form-field {
    padding-top: 8px !important;
    margin-bottom: 22px !important;
}

/* ===================================================================
 * FORM LABEL LIGHT-THEME FIX (Hotfix B3.3)
 * The contact-form-card is on a WHITE background; previous label
 * colors (white at 55% alpha) were invisible. This block adapts the
 * floating-label palette for the actual light-theme card while
 * preserving brand gold for the floated state.
 * =================================================================== */

/* Default state — visible mid-gray text on white card */
.lead-form .form-field > label.field-label,
form.lead-form .form-field > label.field-label {
    color: #888 !important;
    background: transparent !important;
}

/* Floated state — gold text + white pill (blends with card, outlines input border) */
.lead-form .form-field input:focus + label.field-label,
.lead-form .form-field textarea:focus + label.field-label,
.lead-form .form-field select:focus + label.field-label,
.lead-form .form-field input:not(:placeholder-shown) + label.field-label,
.lead-form .form-field textarea:not(:placeholder-shown) + label.field-label,
.lead-form .form-field.has-value > label.field-label,
.lead-form .form-field.is-focused > label.field-label,
.lead-form .form-field.is-select > label.field-label {
    color: #b8860b !important;
    background: #fff !important;
}

/* Invalid state — red that's readable on light background */
.lead-form .form-field.is-invalid > label.field-label {
    color: #d92626 !important;
}

/* Required asterisk stays gold */
.lead-form .form-field > label.field-label .req,
form.lead-form .form-field > label.field-label .req {
    color: #D4AF37 !important;
}

/* Textarea label re-anchored to TOP (not centered) — bumped specificity */
form.lead-form .form-field.is-textarea > label.field-label {
    top: 14px !important;
    transform: none !important;
}
form.lead-form .form-field.is-textarea textarea:focus + label.field-label,
form.lead-form .form-field.is-textarea textarea:not(:placeholder-shown) + label.field-label,
form.lead-form .form-field.is-textarea.has-value > label.field-label,
form.lead-form .form-field.is-textarea.is-focused > label.field-label {
    top: -2px !important;
}

/* Consent field — dark text on white card */
.lead-form .consent-field > label,
form.lead-form .consent-field > label {
    color: #1a1a2e !important;
}
.lead-form .consent-field > label .req {
    color: #D4AF37 !important;
}

/* Error banner — light-theme variant */
.lead-form .lead-form-error-banner {
    background: rgba(217, 38, 38, 0.06) !important;
    border-color: rgba(217, 38, 38, 0.4) !important;
    color: #b32020 !important;
}

/* Submit button keeps gold; ensure text color stays visible (was set to #fff already) */

/* ===================================================================
 * BLOG STYLES (Batch BLOG)
 * For /blog.html index, /blog_<slug>.html post pages
 * =================================================================== */

.blog-hero {
    position: relative;
    min-height: 480px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 140px 5% 60px;
    margin-top: 0;
}
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%);
    z-index: 1;
}
.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    color: #fff;
}
.blog-hero-eyebrow {
    display: inline-block;
    color: #D4AF37;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.blog-hero h1 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}
.blog-hero-meta {
    color: rgba(245, 245, 245, 0.85);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}
.blog-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-hero-meta i {
    color: #D4AF37;
}

.blog-post {
    background: #0a0a0a;
    color: #f5f5f5;
    padding: 70px 5% 80px;
}
.blog-post-container {
    max-width: 780px;
    margin: 0 auto;
}
.blog-post-container > p,
.blog-post-container > ul,
.blog-post-container > ol,
.blog-post-container > blockquote {
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(245, 245, 245, 0.88);
    margin: 0 0 24px;
}
.blog-post-container h2 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 50px 0 18px;
    letter-spacing: -0.3px;
}
.blog-post-container h3 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #D4AF37;
    line-height: 1.3;
    margin: 36px 0 14px;
}
.blog-post-container ul,
.blog-post-container ol {
    padding-left: 24px;
}
.blog-post-container li {
    margin-bottom: 10px;
    line-height: 1.7;
}
.blog-post-container a {
    color: #D4AF37;
    text-decoration: none;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.45);
    transition: color 0.18s ease, border-color 0.18s ease;
}
.blog-post-container a:hover {
    color: #e5c247;
    border-bottom-color: #e5c247;
}
.blog-post-container strong {
    color: #fff;
    font-weight: 600;
}
.blog-post-container blockquote {
    border-left: 3px solid #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    padding: 22px 24px 22px 28px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.blog-post-container .pull-quote {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    line-height: 1.45;
    color: #D4AF37;
    font-style: italic;
    text-align: center;
    margin: 40px 0;
    padding: 30px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.blog-cta-card {
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.08) 0%, rgba(20, 20, 20, 0.95) 60%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    padding: 36px 30px;
    margin: 50px 0;
    text-align: center;
}
.blog-cta-card h3 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 12px;
}
.blog-cta-card p {
    color: rgba(245, 245, 245, 0.78);
    margin: 0 0 24px;
    font-size: 1.02rem;
    line-height: 1.6;
}
.blog-cta-card .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.blog-cta-card .cta-primary,
.blog-cta-card .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none;
    font-size: 0.96rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-cta-card .cta-primary {
    background: #25D366;
    color: #fff;
}
.blog-cta-card .cta-secondary {
    background: transparent;
    color: #D4AF37;
    border: 1px solid #D4AF37;
}
.blog-cta-card .cta-primary:hover,
.blog-cta-card .cta-secondary:hover {
    transform: translateY(-2px);
}

.blog-read-next {
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    padding: 70px 5% 60px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}
.blog-read-next-container {
    max-width: 1280px;
    margin: 0 auto;
}
.blog-read-next h2 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin: 0 0 6px;
}
.blog-read-next-sub {
    color: rgba(245, 245, 245, 0.65);
    margin: 0 0 30px;
}
.blog-read-next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.blog-card {
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.05) 0%, rgba(15, 15, 15, 0.95) 60%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}
.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #111;
}
.blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.blog-card-eyebrow {
    color: #D4AF37;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.blog-card-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 1.18rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.32;
    margin: 0;
}
.blog-card-excerpt {
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 4px 0 0;
}

.blog-index-hero {
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    padding: 160px 5% 70px;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.blog-index-hero .eyebrow {
    color: #D4AF37;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 14px;
}
.blog-index-hero h1 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
}
.blog-index-hero p {
    color: rgba(245, 245, 245, 0.78);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}
.blog-index-grid {
    background: #0a0a0a;
    padding: 60px 5% 80px;
}
.blog-index-grid-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.blog-homepage-section {
    background: #0a0a0a;
    padding: 70px 5% 70px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.blog-homepage-container {
    max-width: 1280px;
    margin: 0 auto;
}
.blog-homepage-container h2 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    color: #fff;
    text-align: center;
    margin: 0 0 8px;
}
.blog-homepage-sub {
    color: rgba(245, 245, 245, 0.7);
    text-align: center;
    margin: 0 0 36px;
}
.blog-homepage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.blog-homepage-cta {
    text-align: center;
    margin-top: 36px;
}
.blog-homepage-cta a {
    display: inline-block;
    color: #D4AF37;
    font-weight: 600;
    border: 1px solid #D4AF37;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.blog-homepage-cta a:hover {
    background: #D4AF37;
    color: #0a0a0a;
}

@media (max-width: 1024px) {
    .blog-read-next-grid,
    .blog-index-grid-container,
    .blog-homepage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .blog-hero {
        min-height: 380px;
        padding: 110px 5% 40px;
    }
    .blog-post {
        padding: 50px 5% 60px;
    }
    .blog-post-container > p,
    .blog-post-container > ul,
    .blog-post-container > ol {
        font-size: 1.02rem;
        line-height: 1.7;
    }
    .blog-read-next-grid,
    .blog-index-grid-container,
    .blog-homepage-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Sitewide nav + mobile menu BASE rules (Blog-page hotfix)
   --------------------------------------------------------------------------
   Most pages declare these inline. Blog pages do not — they relied on
   design-system.css alone, which previously contained only nav-height
   OVERRIDES (with !important) and a few logo sizing rules. The actual
   nav layout, mobile menu visibility, and supporting buttons were
   undefined, so blog pages rendered the markup as an unstyled vertical
   stack on mobile and a half-broken bar on desktop.

   These rules are intentionally written WITHOUT !important so they act
   as defaults — inline page styles continue to win on pages that ship
   their own nav CSS, while blog pages now inherit a working baseline.
   ========================================================================== */

/* ----- Top nav layout ----- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    transition: height 0.5s var(--transition-smooth),
                background 0.5s var(--transition-smooth);
    will-change: height;
}

.nav-container {
    width: 100%;
    max-width: 1800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.nav-contact a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-contact a:hover {
    color: var(--gold);
}

.logo-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----- Nav buttons (desktop) ----- */
.home-btn,
.back-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-light) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    text-decoration: none;
}

.home-btn:hover,
.back-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.nav-text-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold-light) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-text-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ----- Language toggle base (existing rules above only adjust sizing) ----- */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.lang-toggle .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-toggle .lang-code {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ----- Mobile lang toggle (visible only on small screens) ----- */
.mobile-lang-toggle {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

/* ----- Mobile menu button (hamburger) ----- */
.mobile-menu-btn {
    display: none;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--gold-light);
}

/* ----- Mobile menu overlay (HIDDEN BY DEFAULT — fixes "menu always visible" bug) ----- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

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

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: linear-gradient(180deg, var(--dark) 0%, #111 100%);
    border-right: 1px solid var(--border-gold);
    padding: 30px 25px;
    transform: translateX(-100%);
    transition: transform 0.4s var(--transition-smooth);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gold);
}

.mobile-menu-header .mobile-menu-logo {
    height: 60px;
    width: auto;
    cursor: pointer;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: var(--gold-light);
    transform: rotate(90deg);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: var(--gold-light);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.mobile-menu-nav a i {
    width: 24px;
    color: var(--gold);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-gold);
    margin: 15px 0;
    opacity: 0.5;
}

.mobile-menu-cta {
    margin-bottom: 20px;
}

.mobile-menu-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--whatsapp-green);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.mobile-menu-cta a:hover {
    background: var(--whatsapp-dark);
}

.mobile-menu-cta a.secondary {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold);
}

.mobile-menu-cta a.secondary:hover {
    background: var(--gold-light);
}

.mobile-menu-contact {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-menu-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

.mobile-menu-contact a i {
    width: 18px;
    color: var(--gold);
}

/* ----- Responsive breakpoints (mobile menu activation) ----- */
@media (max-width: 900px) {
    .top-nav {
        /* Drop the 5% horizontal padding on mobile so .nav-container fills
         * the viewport edge-to-edge. Without this, the absolutely-positioned
         * .mobile-lang-toggle (right: 16px from container) ends up past the
         * viewport because default content-box width:100% + 10% padding = 110%. */
        padding: 0;
    }
    .nav-container {
        position: relative;
        justify-content: center;
    }
    .nav-left,
    .nav-right {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu-overlay {
        display: block;
    }
    .mobile-lang-toggle {
        display: flex;
    }
    .logo-center {
        flex: none;
        width: 100%;
    }
}

/* Mirror projects_view_all.html's responsive nav: as the viewport narrows,
 * shrink hamburger size and pull both controls closer to the screen edge so
 * the centered logo gets more breathing room. Values match projects exactly
 * so blog and projects render identically at every breakpoint. The env()
 * keeps the pill clear of the iOS dynamic island in landscape. */
@media (max-width: 768px) {
    .mobile-menu-btn {
        left: 14px;
        width: 44px;
        height: 44px;
    }
    .mobile-lang-toggle {
        right: calc(14px + env(safe-area-inset-right, 0px));
    }
}
@media (max-width: 600px) {
    .mobile-menu-btn {
        left: 12px;
        width: 42px;
        height: 42px;
    }
    .mobile-lang-toggle {
        right: calc(12px + env(safe-area-inset-right, 0px));
    }
}
@media (max-width: 480px) {
    .mobile-menu-btn {
        left: 10px;
        width: 40px;
        height: 40px;
    }
    .mobile-lang-toggle {
        right: calc(10px + env(safe-area-inset-right, 0px));
    }
}

/* ==========================================================================
   Blog footer (.site-footer) — blog pages use this structured footer; other
   pages use a different in-hero "cta-footer" pattern. These rules are
   blog-only by virtue of the markup that uses them.
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    color: var(--text-secondary);
    padding: 0;
    border-top: 1px solid var(--border-gold);
    margin-top: 60px;
}

.footer-main {
    padding: 60px 5% 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    margin-bottom: 8px;
}

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 18px var(--gold-glow));
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.footer-highlight {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 4px 0 0;
}

.footer-heading {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--gold);
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 20px 5%;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-license {
    font-style: italic;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-main {
        padding: 50px 5% 30px;
    }
}

/* ==========================================================================
   Blog index hero + grid — body padding to clear fixed nav.
   Blog pages don't have a hero with built-in top padding, so without this
   the nav would overlap the heading.
   ========================================================================== */
.blog-index-hero {
    padding-top: 140px;
}

@media (max-width: 900px) {
    .blog-index-hero {
        padding-top: 100px;
    }
}

@media (max-width: 600px) {
    .blog-index-hero {
        padding-top: 90px;
    }
}
