:root {
    --ivory: #fbf7ef;
    --cream: #f3eadc;
    --champagne: #ead7b8;
    --sand: #d7c2a1;
    --taupe: #887865;
    --sage: #7a846d;
    --charcoal: #1d1a17;
    --ink: #2b2722;
    --muted: #746b60;
    --line: rgba(45, 39, 33, .16);
    --glow: rgba(232, 215, 184, .44);
    --white: #fffdf8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--ivory) 0%, #f7efe4 48%, #eee0cf 100%);
    letter-spacing: 0;
}

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

img {
    max-width: 100%;
    height: auto;
}

.luxe-container {
    max-width: 1440px;
    padding-left: clamp(18px, 4vw, 64px);
    padding-right: clamp(18px, 4vw, 64px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(251, 247, 239, .86);
    border-bottom: 1px solid var(--line);
}

.navbar {
    min-height: 82px;
}

.navbar-brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--charcoal);
}

.navbar-brand strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.04rem;
}

.navbar-brand small {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(29, 26, 23, .28);
    background: var(--charcoal);
    color: var(--champagne);
    font-family: "Playfair Display", Georgia, serif;
    border-radius: 50%;
}

.nav-link {
    color: var(--ink);
    font-weight: 600;
    font-size: .88rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--taupe);
}

.luxe-menu {
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, .98);
    box-shadow: 0 20px 60px rgba(29, 26, 23, .12);
    border-radius: 8px;
    padding: 10px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 10px 12px;
}

.dropdown-item:hover {
    background: var(--cream);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.header-actions .btn {
    padding: 10px 14px;
    font-size: .88rem;
    white-space: nowrap;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 12px 20px;
}

.btn-luxe {
    background: var(--charcoal);
    color: var(--champagne);
    border: 1px solid var(--charcoal);
}

.btn-luxe:hover {
    background: #2b251f;
    color: var(--white);
}

.btn-outline-luxe {
    border: 1px solid rgba(29, 26, 23, .22);
    color: var(--charcoal);
    background: rgba(255, 253, 248, .54);
}

.btn-outline-luxe:hover {
    background: var(--cream);
    border-color: var(--taupe);
}

.eyebrow {
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .16em;
    color: var(--sage);
    font-weight: 800;
    margin-bottom: 16px;
}

.display-luxe {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.8rem, 7vw, 6.7rem);
    line-height: .96;
    max-width: 980px;
}

.section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.05;
    max-width: 840px;
}

.section-lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 1.8;
    max-width: 760px;
}

.hero {
    position: relative;
    min-height: calc(92vh - 82px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--charcoal);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 26, 23, .88), rgba(29, 26, 23, .44) 46%, rgba(29, 26, 23, .12)),
        linear-gradient(0deg, rgba(29, 26, 23, .8), rgba(29, 26, 23, 0) 42%);
    z-index: 1;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82) contrast(.95);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: clamp(84px, 12vh, 140px);
    padding-bottom: clamp(64px, 10vh, 108px);
}

.hero .section-lead {
    color: rgba(255, 253, 248, .82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
    color: rgba(255, 253, 248, .78);
}

.hero-meta span {
    border: 1px solid rgba(255, 253, 248, .22);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 253, 248, .08);
}

.section-pad {
    padding-top: clamp(64px, 9vw, 124px);
    padding-bottom: clamp(64px, 9vw, 124px);
}

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

.section-dark .section-lead,
.section-dark p,
.section-dark li {
    color: rgba(255, 253, 248, .74);
}

.section-warm {
    background: linear-gradient(180deg, var(--cream), #efe1cf);
}

.luxe-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(18px, 2vw, 28px);
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

.span-6 {
    grid-column: span 6;
}

.span-7 {
    grid-column: span 7;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

.luxe-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 253, 248, .7);
    border: 1px solid var(--line);
    min-height: 100%;
}

.luxe-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream);
}

.luxe-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.luxe-card:hover .luxe-card-media img {
    transform: scale(1.04);
}

.luxe-card-body {
    padding: clamp(20px, 2vw, 30px);
}

.luxe-card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin-bottom: 12px;
}

.luxe-card p {
    color: var(--muted);
    line-height: 1.7;
}

.feature-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
    color: var(--muted);
}

.feature-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
    position: absolute;
    left: 0;
    top: .58em;
}

.advisor-panel,
.form-panel,
.quote-result,
.auth-panel {
    background: rgba(255, 253, 248, .82);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 3vw, 40px);
    box-shadow: 0 20px 70px rgba(29, 26, 23, .08);
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid rgba(45, 39, 33, .18);
    padding: 13px 14px;
    background-color: rgba(255, 253, 248, .86);
}

.form-label {
    font-weight: 700;
    color: var(--ink);
    font-size: .92rem;
}

.gallery-strip {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.gallery-strip img,
.before-after img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 8px;
}

.before-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.label-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    background: rgba(255, 253, 248, .58);
    font-size: .88rem;
    margin: 4px 6px 4px 0;
}

.price-note {
    padding: 18px;
    border-left: 3px solid var(--sage);
    background: rgba(122, 132, 109, .1);
    color: var(--ink);
}

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--charcoal);
    color: var(--white);
    padding: clamp(34px, 5vw, 72px);
}

.cta-band p {
    color: rgba(255, 253, 248, .74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 34px;
}

.site-footer {
    background: #171512;
    color: rgba(255, 253, 248, .78);
    padding: 72px 0 28px;
}

.site-footer h3 {
    color: var(--champagne);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.site-footer a {
    display: block;
    color: rgba(255, 253, 248, .78);
    margin-bottom: 10px;
}

.footer-brand {
    color: var(--white);
    margin-bottom: 20px;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.social-row a {
    margin: 0;
    color: var(--champagne);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 253, 248, .12);
    margin-top: 48px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: .9rem;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 60;
    background: #20362c;
    color: #fff;
    border-radius: 999px;
    padding: 14px 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
    font-weight: 800;
}

.mobile-cta-bar {
    display: none;
}

.mobile-nav-list {
    display: grid;
    gap: 10px;
}

.mobile-nav-list a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.admin-body {
    background: #f6efe4;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--charcoal);
    color: rgba(255, 253, 248, .8);
    padding: 28px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.admin-sidebar nav a,
.admin-logout {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    color: rgba(255, 253, 248, .78);
}

.admin-sidebar nav a:hover,
.admin-logout:hover {
    background: rgba(255, 253, 248, .08);
    color: var(--champagne);
}

.admin-brand {
    color: var(--white);
}

.admin-main {
    padding: clamp(24px, 4vw, 54px);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.metric strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.1rem;
}

.table-luxe {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.table-luxe table {
    margin-bottom: 0;
}

.chat-window {
    min-height: 380px;
    background: rgba(255, 253, 248, .72);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

@media (max-width: 1199px) {
    .span-3,
    .span-4 {
        grid-column: span 6;
    }

    .span-5,
    .span-6,
    .span-7,
    .span-8 {
        grid-column: span 12;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 66px;
    }

    .navbar {
        min-height: 70px;
    }

    .navbar-brand small,
    .header-actions,
    .whatsapp-float {
        display: none;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: 84vh;
    }

    .hero-content {
        padding-bottom: 66px;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-meta span {
        font-size: .82rem;
        padding: 8px 10px;
    }

    .span-3,
    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8,
    .span-12 {
        grid-column: span 12;
    }

    .gallery-strip,
    .before-after,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .mobile-cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: var(--charcoal);
        border-top: 1px solid rgba(255, 253, 248, .12);
    }

    .mobile-cta-bar a {
        color: var(--champagne);
        text-align: center;
        padding: 16px 8px;
        font-weight: 800;
        border-right: 1px solid rgba(255, 253, 248, .12);
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        height: auto;
        position: relative;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}
