:root {
    --bg: #e8edf2;
    --panel: #f7fafc;
    --ink: #11151a;
    --muted: #56616f;
    --accent: #0f5de7;
    --accent-2: #11a3ff;
    --line: rgba(17, 21, 26, 0.12);
    --radius: 26px;
    --shadow: 0 28px 60px rgba(12, 20, 31, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    /* Base matches the gradient end-colour so no colour block shows at page bottom */
    background: #e8eef6;
}

.about-mumtaz {
    width: min(1220px, 94%);
    margin: 28px auto 0;
    padding: 36px 32px;
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.88), rgba(237, 242, 248, 0.76));
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(12, 20, 31, 0.08);
}

.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: center;
}

.mumtaz-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(12, 20, 31, 0.16);
}

.about-text h2 {
    margin: 0 0 14px;
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
}

.about-text p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.98rem;
}

.learn-more {
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 999px;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-block;
    box-shadow: 0 14px 28px rgba(15, 93, 231, 0.24);
    transition: transform 220ms ease;
}

.learn-more:hover {
    transform: translateY(-1px);
}

.modern-shell {
    width: min(1220px, 94%);
    margin: 48px auto 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(228, 235, 245, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    overflow: clip;
    position: relative;
    animation: riseIn 700ms cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* ── Shell blob 1: deep cobalt, top-right ─────────────────────────────── */
.modern-shell::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -160px;
    width: 680px;
    height: 600px;
    border-radius: 63% 37% 54% 46% / 42% 60% 40% 58%;
    background: radial-gradient(ellipse at 38% 38%,
        rgba(21, 71, 200, 0.38),
        rgba(21, 71, 200, 0.16) 55%,
        transparent 78%);
    animation: blob-a 28s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ── Shell blob 2: rich indigo, bottom-left ───────────────────────────── */
.modern-shell::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -140px;
    width: 600px;
    height: 540px;
    border-radius: 38% 62% 70% 30% / 55% 35% 65% 45%;
    background: radial-gradient(ellipse at 62% 62%,
        rgba(45, 27, 110, 0.36),
        rgba(45, 27, 110, 0.15) 55%,
        transparent 78%);
    animation: blob-b 36s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.modern-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modern-brand img {
    width: 80px;
    height: 80px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(8, 15, 24, 0.72);
    object-fit: contain;
}

.mono-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(239, 246, 255, 0.84);
    font-weight: 700;
}

.agent-name {
    margin: 4px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f4f8ff;
}

.style-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.84rem;
}

.style-switch a,
.style-switch span {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(236, 244, 255, 0.34);
    color: #f6fbff;
    background: rgba(236, 244, 255, 0.12);
    backdrop-filter: blur(8px);
}

.style-switch span {
    background: linear-gradient(130deg, rgba(15, 93, 231, 0.82), rgba(17, 163, 255, 0.82));
    color: #fff;
    border-color: transparent;
}

.hero-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-nav-btn {
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(236, 244, 255, 0.30);
    color: rgba(236, 244, 255, 0.82);
    background: rgba(236, 244, 255, 0.10);
    backdrop-filter: blur(8px);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.hero-nav-btn:hover {
    background: rgba(236, 244, 255, 0.20);
    color: #fff;
    border-color: rgba(236, 244, 255, 0.50);
}

.hero-nav-btn--active {
    background: linear-gradient(130deg, rgba(15, 93, 231, 0.80), rgba(17, 163, 255, 0.80));
    color: #fff;
    border-color: transparent;
}

.modern-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 790px;
    background-size: cover;
    background-position: center;
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
}

/* ── Standalone nav bar (residential, commercial) ─────────────────────────── */
.site-nav-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: transparent;
    padding: 18px;
}

/* .site-nav reuses .hero-top-glass styles — just remove the max-width cap */
.site-nav {
    max-width: none;
}

.hero-top-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(236, 244, 255, 0.24);
    background: rgba(18, 25, 37, 0.26);
    backdrop-filter: blur(10px) saturate(135%);
}

.hero-glass-panel {
    align-self: end;
    max-width: 720px;
    border-radius: 24px;
    border: 1px solid rgba(236, 244, 255, 0.28);
    background: linear-gradient(160deg, rgba(14, 22, 33, 0.52), rgba(14, 22, 33, 0.36));
    backdrop-filter: blur(16px) saturate(140%);
    color: #f8fbff;
    padding: clamp(24px, 4vw, 42px);
}

.hero-glass-panel .mono-label {
    color: rgba(248, 251, 255, 0.82);
}

.hero-glass-panel h1 {
    margin: 12px 0 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    line-height: 1.08;
    max-width: 17ch;
}

.hero-glass-panel p {
    margin: 16px 0 0;
    color: rgba(248, 251, 255, 0.9);
    max-width: 54ch;
    line-height: 1.7;
}

.hero-cta-row {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-block;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 220ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.pill:hover {
    transform: translateY(-1px);
}

.pill-light {
    color: #f2f7ff;
    border: 1px solid rgba(242, 247, 255, 0.45);
    background: rgba(242, 247, 255, 0.16);
    backdrop-filter: blur(8px);
}

.pill-dark {
    color: #fff;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    box-shadow: 0 14px 28px rgba(15, 93, 231, 0.24);
}
.modern-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 18px 18px;
}

.modern-metrics article {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.modern-metrics p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.modern-metrics h2 {
    margin: 8px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
}

.modern-grid-section,
.modern-cta {
    padding: 10px 24px 30px;
}

/* Listings section — transparent so the shell blobs show through */
.listings-section {
    position: relative;
}

/* Teal accent blob — center area, third shape */
.listing-blob-c {
    position: absolute;
    top: 15%;
    left: 22%;
    width: 500px;
    height: 420px;
    border-radius: 50% 50% 38% 62% / 60% 44% 56% 40%;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(14, 127, 158, 0.32),
        rgba(14, 127, 158, 0.13) 55%,
        transparent 80%);
    animation: blob-c 44s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* All direct content inside shell floats above blobs */
.modern-metrics,
.modern-metrics article,
.listings-section .section-title-row,
.listings-section .modern-card-grid,
.modern-cta h2,
.modern-cta p,
.modern-cta a {
    position: relative;
    z-index: 1;
}

@keyframes blob-a {
    0%   { transform: translate(0,      0)      scale(1)    rotate(0deg);   }
    20%  { transform: translate(-320px,  180px)  scale(1.18) rotate(40deg);  }
    45%  { transform: translate( 260px,  320px)  scale(0.82) rotate(-25deg); }
    70%  { transform: translate(-180px, -280px)  scale(1.12) rotate(60deg);  }
    100% { transform: translate(0,      0)      scale(1)    rotate(0deg);   }
}

@keyframes blob-b {
    0%   { transform: translate(0,      0)      scale(1)    rotate(0deg);   }
    25%  { transform: translate( 380px, -240px)  scale(1.14) rotate(-50deg); }
    55%  { transform: translate(-300px,  200px)  scale(0.86) rotate(30deg);  }
    78%  { transform: translate( 220px,  340px)  scale(1.09) rotate(-70deg); }
    100% { transform: translate(0,      0)      scale(1)    rotate(0deg);   }
}

@keyframes blob-c {
    0%   { transform: translate(0,      0)      scale(1)    rotate(0deg);  }
    30%  { transform: translate( 340px, -300px)  scale(1.20) rotate(55deg); }
    58%  { transform: translate(-260px, -180px)  scale(0.80) rotate(-40deg);}
    80%  { transform: translate( 150px,  360px)  scale(1.15) rotate(20deg); }
    100% { transform: translate(0,      0)      scale(1)    rotate(0deg);  }
}

.section-title-row h2 {
    margin: 8px 0 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.45rem, 3.8vw, 2.3rem);
    white-space: nowrap;
}

.modern-card-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.modern-card-grid article {
    border-radius: 16px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    transition: transform 220ms ease, border-color 220ms ease;
    display: flex;
    flex-direction: column;
}

.modern-card-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 93, 231, 0.38);
}

/* Listing card image */
.listing-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8ecf0;
}

.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Listing card body */
.listing-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-details {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.listing-price {
    margin: 10px 0 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.listing-link {
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f5de7;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.listing-link:hover {
    text-decoration: underline;
}

.card-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #0f5de7;
    font-weight: 700;
}

.modern-card-grid h3 {
    margin: 8px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
}

.modern-card-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.modern-cta h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.45rem, 3.8vw, 2.2rem);
}

.modern-cta p {
    margin: 12px auto 24px;
    color: var(--muted);
    max-width: 58ch;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .modern-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modern-hero {
        min-height: 560px;
    }

    .hero-glass-panel {
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .hero-top-glass {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-metrics {
        grid-template-columns: 1fr;
    }

    .modern-hero {
        min-height: 480px;
        padding: 12px;
    }

    .hero-glass-panel {
        padding: clamp(16px, 3vw, 24px);
    }

    .about-mumtaz {
        padding: 24px 18px;
    }

    .about-text h2 {
        font-size: 1.4rem;
    }

    .about-text p {
        font-size: 0.92rem;
    }
}

/* ── Consult modal ────────────────────────────────────────────────────────── */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 14, 22, 0.72);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    position: relative;
    background: rgba(228, 235, 245, 0.98);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(8, 14, 22, 0.38);
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: riseIn 220ms cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 150ms ease, color 150ms ease;
}

.modal-close:hover {
    background: rgba(15, 93, 231, 0.08);
    color: var(--accent);
}

.modal-card .res-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.modal-card .res-form-copy {
    margin-bottom: 20px;
}

.modal-card .res-form-copy h2 {
    margin: 6px 0 10px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background:
        linear-gradient(to bottom, rgba(8, 14, 22, 0.78) 0%, rgba(8, 14, 22, 0.90) 100%),
        url('/static/images/footer.jpeg') center/cover no-repeat;
    color: rgba(220, 235, 255, 0.75);
    font-size: 0.88rem;
    line-height: 1.65;
    padding: 48px 0 0;
    margin-top: 0;
}

.site-footer-inner {
    width: min(1220px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px 56px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(236, 244, 255, 0.10);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 64px;
    opacity: 0.90;
    filter: brightness(0) invert(1);
}

.footer-name {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0f6ff;
}

.footer-title {
    margin: 4px 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200, 220, 255, 0.55);
}

.footer-bio p {
    margin: 0;
    max-width: 44ch;
    color: rgba(210, 228, 255, 0.70);
}

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

.footer-contact-label {
    margin: 0 0 2px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(200, 220, 255, 0.50);
}

.footer-contact a {
    color: rgba(220, 236, 255, 0.82);
    text-decoration: none;
    transition: color 180ms ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-disclosures {
    width: min(1220px, 94%);
    margin: 0 auto;
    padding: 16px 0;
    border-bottom: 1px solid rgba(236, 244, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 0.80rem;
    color: rgba(200, 220, 255, 0.50);
}

.footer-disclosures a {
    color: rgba(160, 200, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 180ms ease;
}

.footer-disclosures a:hover {
    color: #fff;
}

.footer-disc-sep {
    color: rgba(200, 220, 255, 0.30);
}

.footer-legal {
    width: min(1220px, 94%);
    margin: 0 auto;
    padding: 14px 0 20px;
    font-size: 0.78rem;
    color: rgba(200, 220, 255, 0.35);
}

@media (max-width: 860px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
