﻿/* ==========================================================================
   RAZA ESTATE — Design Tokens & Base Styles
   This file is the single source of truth for colors, spacing, typography,
   and layout primitives. All component styles import these variables.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS — DARK THEME (default)
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --accent: #D4AF6A; /* warm gold — primary brand colour */
    --accent-2: #F0D9A8; /* lighter gold — gradient highlights */
    --accent-rgb: 212, 175, 106;
    /* Surfaces — dark mode */
    --bg: #0A0D12;
    --bg-rgb: 10, 13, 18;
    --bg-soft: #0E131A;
    --surface: #141A23;
    --surface-2: #1A222D;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    /* Text — dark mode */
    --text: #EAF0F7;
    --muted: #93A2B5;
    --text-inverse: #14100A;
    /* Shadows */
    --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, 0.8);
    --shadow: 0 28px 70px -34px rgba(0, 0, 0, 0.95);
    /* Radii */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    /* Container & rhythm */
    --container: 1200px;
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 9vw, 7.5rem);
    --header-h: 74px;
    /* Fluid typographic scale — every size scales with the viewport */
    --step--2: clamp(0.70rem, 0.68rem + 0.12vw, 0.78rem);
    --step--1: clamp(0.79rem, 0.76rem + 0.16vw, 0.89rem);
    --step-0: clamp(0.98rem, 0.94rem + 0.22vw, 1.09rem);
    --step-1: clamp(1.14rem, 1.04rem + 0.50vw, 1.42rem);
    --step-2: clamp(1.42rem, 1.22rem + 1.00vw, 2.10rem);
    --step-3: clamp(1.80rem, 1.35rem + 2.20vw, 3.10rem);
    --step-4: clamp(2.15rem, 1.35rem + 4.40vw, 4.50rem);
    /* Motion */
    --ease: cubic-bezier(0.22, 0.85, 0.30, 1);
    --ease-out: cubic-bezier(0.16, 1.00, 0.30, 1);
    /* Typography stacks */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* --------------------------------------------------------------------------
   2. LIGHT THEME — activated by <html data-theme="light">
   -------------------------------------------------------------------------- */
html[data-theme="light"] {
    --bg: #F6F4F0;
    --bg-rgb: 246, 244, 240;
    --bg-soft: #EFEBE4;
    --surface: #FFFFFF;
    --surface-2: #F5F2EC;
    --line: rgba(14, 20, 28, 0.10);
    --line-strong: rgba(14, 20, 28, 0.20);
    --text: #0F161F;
    --muted: #5B6775;
    --text-inverse: #FFFFFF;
    --shadow-sm: 0 8px 24px -16px rgba(20, 30, 45, 0.50);
    --shadow: 0 28px 70px -38px rgba(20, 30, 45, 0.45);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
    padding: 0;
}

/* Headings use the display serif; body uses Inter */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Accessible focus ring — visible only on keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: rgba(var(--accent-rgb), 0.30);
}

/* Anchor scroll target respects the sticky header */
section[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* --------------------------------------------------------------------------
   5. BUTTON PRIMITIVES
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.92rem 1.70rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--text-inverse);
    box-shadow: 0 12px 34px -16px rgba(var(--accent-rgb), 0.90);
}

    .btn--primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 46px -18px rgba(var(--accent-rgb), 0.95);
    }

.btn--ghost {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--text);
}

    .btn--ghost:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.08);
    }

.btn--sm {
    padding: 0.65rem 1.15rem;
    font-size: var(--step--2);
}

.btn--block {
    width: 100%;
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
}

/* --------------------------------------------------------------------------
   6. TYPOGRAPHY HELPERS
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.60rem;
    font-family: var(--font-body);
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

    .eyebrow::before {
        content: "";
        width: 26px;
        height: 1px;
        background: currentColor;
        opacity: 0.6;
    }

.muted {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--accent);
    color: var(--text-inverse);
    padding: 0.70rem 1.20rem;
    border-radius: 0 0 10px 0;
}

    .skip-link:focus {
        left: 0;
    }

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* --------------------------------------------------------------------------
   8. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
    color: var(--text); /* Default text color */
}
/* When on the homepage, force the header text to be white because it sits on the dark hero */
body.is-home .header:not(.is-scrolled) {
    color: #fff;
}
.header.is-scrolled {
    background: rgba(var(--bg-rgb), 0.85); /* Dynamic background based on theme */
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
    color: var(--text); /* Switch back to dark text when scrolled in light mode */
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.logo__mark {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--text-inverse);
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 8px 22px -10px rgba(var(--accent-rgb), 0.9);
}

.logo__text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    opacity: 0.6;
    font-weight: 500;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.1rem);
}

    .nav a {
        position: relative;
        font-size: var(--step--1);
        font-weight: 500;
        opacity: 0.86;
        padding-block: 0.35rem;
        transition: opacity 0.3s, color 0.3s;
    }

        .nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 1px;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.45s var(--ease);
        }

        .nav a:hover {
            opacity: 1;
            color: var(--accent);
        }

            .nav a:hover::after {
                transform: scaleX(1);
                transform-origin: left;
            }

.header__cta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* Mobile Nav */
.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    place-items: center;
    color: var(--text);
}

    .burger span {
        display: block;
        width: 17px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.35s var(--ease), opacity 0.3s;
    }

        .burger span + span {
            margin-top: 4.5px;
        }

.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 75;
    background: var(--bg);
    padding: 2rem var(--gutter) 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

    .mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .mobile-nav a {
        font-family: var(--font-display);
        font-size: 1.6rem;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--line);
    }

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}

.footer__brand p {
    color: var(--muted);
    font-size: var(--step--1);
    margin-top: 1.1rem;
    max-width: 340px;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: var(--step--2);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 1.15rem;
}

.footer ul {
    display: grid;
    gap: 0.65rem;
}

    .footer ul a {
        font-size: var(--step--1);
        color: var(--text);
        opacity: 0.82;
        transition: opacity 0.3s, color 0.3s, padding-left 0.3s;
    }

        .footer ul a:hover {
            opacity: 1;
            color: var(--accent);
            padding-left: 4px;
        }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.6rem;
    color: var(--muted);
    font-size: var(--step--2);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE SHELL
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .nav {
        display: none;
    }

    .burger {
        display: grid;
    }

    .header__cta .btn {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   11. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 3rem;
    color: #fff;
}

/* Background Image Layer */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

    .hero__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Premium Gradient Overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(120% 90% at 12% 8%, rgba(6,9,14,.9) 0%, rgba(6,9,14,.45) 45%, transparent 75%), linear-gradient(180deg, rgba(6,9,14,.8) 0%, rgba(6,9,14,.35) 38%, rgba(8,11,16,.97) 100%);
}

/*.hero__inner {
    width: 100%;
}*/
@media (min-width: 1025px) {
    .hero__inner {
        padding-right: 400px; /* Leaves room for the floating graphic */
    }

    .search, .hero__stats {
        max-width: 100%; /* Override the previous 960px/760px limits slightly */
    }
}

.hero h1 {
    font-size: var(--step-4);
    max-width: 16ch;
    line-height: 1.06;
    letter-spacing: -0.028em;
    margin-bottom: 1.35rem;
    color: #fff;
}

    .hero h1 em {
        font-style: italic;
        color: var(--accent-2);
    }

.hero__sub {
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.76);
    font-size: var(--step-1);
    line-height: 1.6;
    margin-bottom: 2.2rem;
    font-weight: 400;
}

.hero .eyebrow {
    color: var(--accent-2);
}

/* Glassmorphism Search Panel */
.search {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.35rem;
    padding: 0.55rem;
    border-radius: calc(var(--radius) + 8px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 1);
    max-width: 960px;
}

.search__field {
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    transition: background 0.3s;
}

    .search__field + .search__field {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    .search__field:focus-within {
        background: rgba(255, 255, 255, 0.08);
    }

    .search__field label {
        display: block;
        font-size: var(--step--2);
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: rgba(255, 255, 255, 0.55);
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    .search__field input,
    .search__field select {
        width: 100%;
        background: transparent;
        border: 0;
        color: #fff;
        font-size: var(--step--1);
        font-weight: 500;
        padding: 0;
        appearance: none;
    }

        .search__field select option {
            background: var(--surface);
            color: var(--text);
        }

        .search__field input::placeholder {
            color: rgba(255, 255, 255, 0.45);
        }

        .search__field input:focus,
        .search__field select:focus {
            outline: none;
        }

.search .btn {
    align-self: stretch;
    border-radius: var(--radius);
    padding-inline: 1.9rem;
}

/* Stats Bar */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    max-width: 760px;
}

    .hero__stats .num {
        font-family: var(--font-display);
        font-size: var(--step-2);
        color: #fff;
        line-height: 1;
    }

    .hero__stats .lbl {
        font-size: var(--step--2);
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 0.4rem;
    }

/* --------------------------------------------------------------------------
   12. SECTION HEADERS & SERVICES
   -------------------------------------------------------------------------- */
.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

    .section-head--center .eyebrow {
        justify-content: center;
    }

.section-head h2 {
    font-size: var(--step-3);
}

.section-head p {
    color: var(--muted);
    margin-top: 1rem;
    font-size: var(--step-0);
}

.services {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.service {
    position: relative;
    padding: clamp(1.6rem, 3vw, 2.2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.55s var(--ease), border-color 0.45s, box-shadow 0.55s;
}

    .service:hover {
        transform: translateY(-8px);
        border-color: rgba(var(--accent-rgb), 0.4);
        box-shadow: var(--shadow);
    }

    .service h3 {
        font-size: var(--step-1);
        margin-bottom: 0.6rem;
    }

    .service p {
        color: var(--muted);
        font-size: var(--step--1);
    }

/* --------------------------------------------------------------------------
   13. HERO RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .search {
        grid-template-columns: 1fr;
        border-radius: var(--radius-lg);
    }

    .search__field + .search__field {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .search .btn {
        width: 100%;
        margin-top: 0.3rem;
    }

    .hero__stats {
        gap: 1.1rem;
    }
}


/* --------------------------------------------------------------------------
   14. PROPERTY CARDS & GRID
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: clamp(1rem, 2.2vw, 1.6rem);
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.45s;
    will-change: transform;
}

    .card:hover {
        transform: translateY(-8px);
        border-color: rgba(var(--accent-rgb), 0.45);
        box-shadow: var(--shadow);
    }

.card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-2);
}

    .card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1s var(--ease-out), filter 0.6s;
    }

.card:hover .card__media img {
    transform: scale(1.07);
}

/* Gradient overlay on the image for text legibility */
.card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(6, 9, 14, 0.85) 100%);
}

.card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    padding: 0.34rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(6, 9, 14, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

    .card__badge.is-rent {
        background: rgba(var(--accent-rgb), 0.9);
        color: var(--text-inverse);
        border-color: transparent;
    }

.card__star {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    padding: 0.34rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: var(--step--2);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--text-inverse);
}

.card__price {
    position: absolute;
    bottom: 0.9rem;
    left: 1rem;
    z-index: 2;
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.card__body {
    padding: 1.15rem 1.2rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.card__title {
    font-size: var(--step-1);
    line-height: 1.3;
}

.card__loc {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: var(--step--1);
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding-top: 0.85rem;
    margin-top: auto;
    border-top: 1px solid var(--line);
}

    .card__meta li {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: var(--step--1);
        color: var(--muted);
    }

    .card__meta svg {
        width: 15px;
        height: 15px;
        flex: none;
        opacity: 0.75;
    }

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--accent);
}

    .card__link span {
        transition: transform 0.4s var(--ease);
    }

.card:hover .card__link span {
    transform: translateX(5px);
}


/* --------------------------------------------------------------------------
   15. FILTER CHIPS
   -------------------------------------------------------------------------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.2rem;
}

.chip {
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--muted);
    transition: all 0.35s var(--ease);
}

    .chip:hover {
        border-color: var(--accent);
        color: var(--accent);
        transform: translateY(-2px);
    }

    .chip.is-active {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--text-inverse);
        font-weight: 600;
        box-shadow: 0 10px 24px -14px rgba(var(--accent-rgb), 1);
    }

/* --------------------------------------------------------------------------
   16. PROPERTY DETAILS PAGE RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Target the two-column grid in the details view */
    .container > div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 900px) {
    .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}


/* --------------------------------------------------------------------------
   17. FORM VALIDATION
   -------------------------------------------------------------------------- */
.text-danger {
    color: #e05c5c;
    font-size: var(--step--2);
    margin-top: 0.2rem;
    display: block;
}

.validation-summary-errors {
    background: rgba(224, 92, 92, 0.1);
    border: 1px solid #e05c5c;
    color: #e05c5c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: var(--step--1);
}

    .validation-summary-errors ul {
        padding-left: 1.5rem;
        list-style: disc;
    }

/* Highlight invalid inputs */
.input-validation-error {
    border-color: #e05c5c !important;
    background-color: rgba(224, 92, 92, 0.05) !important;
}



/* --------------------------------------------------------------------------
   18. FLOATING LEAD WIDGET (FAB)
   -------------------------------------------------------------------------- */
.fab-container {
    position: fixed;
    bottom: clamp(1.5rem, 4vw, 2.5rem);
    right: clamp(1.5rem, 4vw, 2.5rem);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.4s var(--ease);
}

.fab-main {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--text-inverse);
    position: relative;
    z-index: 2;
}

    .fab-main:hover {
        transform: scale(1.08);
        box-shadow: 0 15px 30px -5px rgba(var(--accent-rgb), 0.5);
    }

.fab-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.4s var(--ease);
}

.fab-icon-chat {
    position: absolute;
    opacity: 1;
    transform: rotate(0);
    transition: all 0.4s var(--ease);
}

/* Menu Items */
.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}

    .fab-menu .fab-btn {
        width: 46px;
        height: 46px;
        background: var(--surface);
        color: var(--text);
        border: 1px solid var(--line);
        opacity: 0;
        transform: translateY(20px) scale(0.5);
        transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

        .fab-menu .fab-btn:hover {
            background: var(--surface-2);
            color: var(--accent);
        }

    /* WhatsApp specific hover */
    .fab-menu .fab-whatsapp:hover {
        color: #25D366;
    }

/* Open State */
.fab-container.is-open .fab-menu {
    pointer-events: auto;
}

    .fab-container.is-open .fab-menu .fab-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

        /* Staggered animation delays */
        .fab-container.is-open .fab-menu .fab-btn:nth-child(1) {
            transition-delay: 0.1s;
        }
        /* Email */
        .fab-container.is-open .fab-menu .fab-btn:nth-child(2) {
            transition-delay: 0.05s;
        }
        /* Phone */
        .fab-container.is-open .fab-menu .fab-btn:nth-child(3) {
            transition-delay: 0s;
        }
/* WhatsApp */

.fab-container.is-open .fab-icon-chat {
    opacity: 0;
    transform: rotate(90deg);
}

.fab-container.is-open .fab-icon-close {
    opacity: 1;
    transform: rotate(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .fab-container {
        bottom: 1.2rem;
        right: 1.2rem;
    }

    .fab-btn {
        width: 52px;
        height: 52px;
    }

    .fab-menu .fab-btn {
        width: 42px;
        height: 42px;
    }
}

/* --------------------------------------------------------------------------
   19. GLOBAL MOBILE POLISH & FIXES
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Stack the Contact Page */
    .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Stack the Property Details Page */
    .container > div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Ensure the sticky sidebar on details page doesn't stick on mobile */
    .container > div[style*="grid-template-columns: 1fr"] > div[style*="position: sticky"] {
        position: static !important;
    }

    /* Improve table scrolling on mobile */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 640px) {
    /* Adjust FAB Menu position so it doesn't cover bottom actions */
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }

    /* Add padding to body so FAB doesn't cover footer text */
    body {
        padding-bottom: env(safe-area-inset-bottom, 2rem);
    }

    /* Hero Search Stacking */
    .search {
        grid-template-columns: 1fr !important;
    }

    .search__field + .search__field {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Admin table adjustments */
    .admin-table-wrapper {
        overflow-x: auto;
    }
}

.details-sidebar {
    position: static !important;
    margin-top: 2rem;
}
/* --------------------------------------------------------------------------
   20. HOMEPAGE MOTION GRAPHIC
   -------------------------------------------------------------------------- */
.hero {
    position: relative; /* Ensure the parent is relative */
}

.hero__motion-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motion-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(20, 26, 35, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 80px rgba(var(--accent-rgb), 0.15);
    animation: float 6s ease-in-out infinite;
}

/* Animated glowing ring */
.motion-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 1px dashed rgba(var(--accent-rgb), 0.4);
    animation: spin 30s linear infinite;
}

/* Inner content styling */
.motion-content {
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.motion-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--text-inverse);
    font-size: var(--step--2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* Keyframes for motion */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
    }
}

/* Responsive Rule: Hide on smaller screens so it doesn't block text */
@media (max-width: 1024px) {
    .hero__motion-graphic {
        display: none; /* Hide completely on tablets and mobile */
    }
}

/* --------------------------------------------------------------------------
   21. ADMIN DASHBOARD LAYOUT
   -------------------------------------------------------------------------- */
.admin-body {
    background: var(--bg-soft);
    height: 100vh;
    overflow: hidden;
}

.admin-wrapper {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3rem;
    text-decoration: none;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--muted);
    transition: all 0.3s var(--ease);
}

    .admin-link:hover {
        background: var(--bg);
        color: var(--text);
    }

    .admin-link.active {
        background: rgba(var(--accent-rgb), 0.1);
        color: var(--accent);
        font-weight: 600;
    }

.admin-sidebar-bottom {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

/* Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg);
}

.admin-content-inner {
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Mobile Header */
.admin-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Responsive */
@media (max-width: 900px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        display: none; /* Hide sidebar on mobile */
    }

    .admin-mobile-header {
        display: flex;
    }

    .admin-content-inner {
        padding: 1.5rem;
    }
}
/* --------------------------------------------------------------------------
   22. EDITORIAL / ARTICLE STYLES
   -------------------------------------------------------------------------- */
.article-hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    background: var(--surface);
}

    .article-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .article-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 50%, rgba(10, 13, 18, 0.9) 100%);
    }

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

    .article-header h1 {
        font-size: var(--step-4);
        margin: 1rem 0;
        line-height: 1.1;
    }

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--muted);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Rich Text Content Styling */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--step-0);
    line-height: 1.8;
    color: var(--text);
}

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content h2 {
        font-size: var(--step-2);
        color: var(--accent);
        margin: 3rem 0 1rem;
    }

    .article-content h3 {
        font-size: var(--step-1);
        color: var(--accent-2);
        margin: 2rem 0 1rem;
    }

    .article-content ul,
    .article-content ol {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    .article-content ul {
        list-style-type: disc;
    }

    .article-content ol {
        list-style-type: decimal;
    }

    .article-content li {
        margin-bottom: 0.5rem;
    }

    .article-content blockquote {
        border-left: 4px solid var(--accent);
        padding-left: 1.5rem;
        margin: 2rem 0;
        font-style: italic;
        color: var(--muted);
        font-size: var(--step-1);
    }

/* CTA Box inside article */
.article-cta {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

    .article-cta::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
        z-index: 0;
    }

    .article-cta * {
        position: relative;
        z-index: 1;

    }

    /* --------------------------------------------------------------------------
   23. NAVIGATION DROPDOWNS
   -------------------------------------------------------------------------- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    opacity: 0.86;
    transition: opacity 0.3s;
}

.nav-dropdown-toggle:hover {
    opacity: 1;
    color: var(--accent);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 100;
}

/* Show dropdown on hover */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: var(--step--1);
    color: var(--text);
    opacity: 1;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg);
    color: var(--accent);
}

/* Remove the underline effect from the dropdown toggle */
.nav-dropdown-toggle::after {
    display: none;
}
/* --------------------------------------------------------------------------
   24. MOBILE NAVIGATION & ACCORDIONS (FIXED)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    /* 1. Make the mobile menu scrollable so the bottom button is visible */
    .mobile-nav {
        padding: 1.5rem var(--gutter) 5rem var(--gutter);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

        .mobile-nav > a {
            font-family: var(--font-display);
            font-size: 1.4rem;
            padding: 1rem 0;
            border-bottom: 1px solid var(--line);
            display: block;
            color: var(--text);
        }

    /* 2. Mobile Dropdown Container */
    .mobile-dropdown {
        border-bottom: 1px solid var(--line);
    }

    /* 3. Mobile Dropdown Toggle Button (Services / Insights) */
    .mobile-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: var(--font-display);
        font-size: 1.4rem;
        color: var(--text);
        padding: 1rem 0;
        background: transparent;
        border: none;
        text-align: left;
        cursor: pointer;
    }

        .mobile-dropdown-toggle .arrow {
            font-size: 0.8rem;
            color: var(--accent);
            transition: transform 0.3s ease;
        }

        .mobile-dropdown-toggle.is-open .arrow {
            transform: rotate(180deg);
        }

    /* 4. Mobile Submenu (Hidden by default) */
    .mobile-dropdown-menu {
        display: none;
        flex-direction: column;
        padding-left: 1rem;
        padding-bottom: 1rem;
        background: rgba(255, 255, 255, 0.02); /* Subtle background */
    }

        .mobile-dropdown-menu.is-open {
            display: flex;
        }

    /* 5. Force submenu links to be small, stacked, and clean */
    .mobile-nav .mobile-dropdown-menu a {
        font-family: var(--font-body) !important;
        font-size: 1rem !important;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: var(--muted) !important;
        display: block !important;
        line-height: 1.5 !important;
        text-decoration: none;
    }

        .mobile-nav .mobile-dropdown-menu a:last-child {
            border-bottom: none !important;
        }

        .mobile-nav .mobile-dropdown-menu a:hover {
            color: var(--accent) !important;
            padding-left: 5px !important;
        }
}

/* --------------------------------------------------------------------------
   25. NAVIGATION DROPDOWNS (DESKTOP & MOBILE FIX)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    /* Make the mobile menu scrollable so the bottom button is visible */
    .mobile-nav {
        overflow-y: auto;
        padding-bottom: 5rem;
        display: flex;
        flex-direction: column;
    }

        /* The main mobile links (Buy, Rent, Mumbai, About, Contact) */
        .mobile-nav > a {
            font-family: var(--font-display);
            font-size: 1.4rem;
            padding: 1rem 0;
            border-bottom: 1px solid var(--line);
            display: block;
            color: var(--text);
        }

    /* The accordion container */
    .mobile-dropdown {
        border-bottom: 1px solid var(--line);
    }

    /* The accordion toggle button (Services ▼) */
    .mobile-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: var(--font-display);
        font-size: 1.4rem;
        color: var(--text);
        padding: 1rem 0;
        background: transparent;
        border: none;
        text-align: left;
        cursor: pointer;
    }

        .mobile-dropdown-toggle .arrow {
            font-size: 0.8rem;
            color: var(--accent);
            transition: transform 0.3s ease;
        }

        .mobile-dropdown-toggle.is-open .arrow {
            transform: rotate(180deg);
        }

    /* The submenu (Hidden by default) */
    .mobile-dropdown-menu {
        display: none;
        flex-direction: column;
        padding-left: 1rem;
        padding-bottom: 1rem;
        background: rgba(255, 255, 255, 0.02); /* Subtle background */
    }

        .mobile-dropdown-menu.is-open {
            display: flex;
        }

    /* Force the submenu links to be small, sans-serif, and stacked */
    .mobile-nav .mobile-dropdown-menu a {
        font-family: var(--font-body) !important;
        font-size: 1rem !important;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: var(--muted) !important;
        display: block !important;
        line-height: 1.5 !important;
    }

        .mobile-nav .mobile-dropdown-menu a:last-child {
            border-bottom: none !important;
        }

        .mobile-nav .mobile-dropdown-menu a:hover {
            color: var(--accent) !important;
            padding-left: 5px !important;
        }
}

/* --------------------------------------------------------------------------
   26. PREMIUM MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 7, 11, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

    .modal-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 100px -20px rgba(0,0,0,1);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease);
}

.modal-overlay.is-active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--muted);
    transition: color 0.3s;
}

    .modal-close:hover {
        color: var(--accent);
    }

.modal-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

    .modal-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-step h3 {
    font-size: var(--step-2);
    margin-bottom: 0.5rem;
}

.modal-step .muted {
    font-size: var(--step--1);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 0.3s;
}

    .form-input:focus {
        outline: none;
        border-color: var(--accent);
    }

.error-text {
    color: #e05c5c;
    font-size: var(--step--2);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    display: none;
}
/* --------------------------------------------------------------------------
   26. PREMIUM MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 7, 11, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

    .modal-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 100px -20px rgba(0,0,0,1);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease);
}

.modal-overlay.is-active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--muted);
    transition: color 0.3s;
}

    .modal-close:hover {
        color: var(--accent);
    }

.modal-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

    .modal-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-step h3 {
    font-size: var(--step-2);
    margin-bottom: 0.5rem;
}

.modal-step .muted {
    font-size: var(--step--1);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 0.3s;
}

    .form-input:focus {
        outline: none;
        border-color: var(--accent);
    }

.error-text {
    color: #e05c5c;
    font-size: var(--step--2);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    display: none;
}

/* --------------------------------------------------------------------------
   27. PAGINATION
   -------------------------------------------------------------------------- */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

    .pagination-wrapper .page-info {
        font-size: var(--step--1);
        color: var(--muted);
        font-weight: 500;
    }

/* --------------------------------------------------------------------------
   28. DAY/NIGHT TOGGLE
   -------------------------------------------------------------------------- */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid currentColor; /* Changed from --line-strong */
    display: grid;
    place-items: center;
    color: inherit; /* Changed from --text */
    background: transparent;
    transition: all 0.3s var(--ease);
    margin-right: 0.5rem;
    opacity: 0.8;
}

    .theme-toggle:hover {
        color: var(--accent);
        border-color: var(--accent);
        transform: rotate(15deg);
        opacity: 1;
    }

    .theme-toggle .icon-sun {
        display: none;
    }

html[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* --------------------------------------------------------------------------
   29. TESTIMONIALS / FEEDBACK
   -------------------------------------------------------------------------- */
.feedback-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quote {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote__stars {
    color: var(--accent);
    letter-spacing: 0.2em;
}

.quote p {
    font-style: italic;
    color: var(--text);
    opacity: 0.9;
    line-height: 1.6;
}

.quote__author b {
    display: block;
    font-size: var(--step--1);
}

.quote__author span {
    font-size: var(--step--2);
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   30. BRAND MARQUEE
   -------------------------------------------------------------------------- */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--step-2);
    color: var(--muted);
    margin: 0 3rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

    .marquee-item:hover {
        opacity: 1;
        color: var(--accent);
    }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --------------------------------------------------------------------------
   31. SOCIAL LINKS
   -------------------------------------------------------------------------- */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

    .social-links a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--line);
        display: grid;
        place-items: center;
        color: var(--muted);
        transition: all 0.3s var(--ease);
    }

        .social-links a:hover {
            background: var(--accent);
            color: var(--text-inverse);
            border-color: var(--accent);
            transform: translateY(-3px);
        }

/* --------------------------------------------------------------------------
   32. HERO CAROUSELS & STATS ANIMATIONS
   -------------------------------------------------------------------------- */
/* Eyebrow Carousel */
.eyebrow-rotator {
    position: relative;
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
}

    .eyebrow-rotator span {
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        transform: translateY(100%);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        white-space: nowrap;
    }

        .eyebrow-rotator span.active {
            opacity: 1;
            transform: translateY(0);
            position: relative; /* Keeps the width */
        }

        .eyebrow-rotator span.exit {
            opacity: 0;
            transform: translateY(-100%);
        }

/* Hero Word Rotator */
.hero-rotator {
    display: inline-block;
    color: var(--accent-2);
    font-style: italic;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

    .hero-rotator.slide-out {
        opacity: 0;
        transform: translateY(-20px);
    }

    .hero-rotator.slide-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Stats Slide-Up Animation */
.hero__stats .stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__stats.is-visible .stat-item {
    opacity: 1;
    transform: translateY(0);
}

    /* Stagger the stat animations */
    .hero__stats.is-visible .stat-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .hero__stats.is-visible .stat-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .hero__stats.is-visible .stat-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .hero__stats.is-visible .stat-item:nth-child(4) {
        transition-delay: 0.4s;
    }