/* ===== Brandenbed Living Spaces: Public Marketing Site ===== */
/* Editorial redesign: cream/ink palette with Cormorant Garamond serif. Builds on brand
   tokens (--gold, --text-muted, --border, --radius, etc.) defined in public.css, without
   touching that file, so the admin panel (which never loads this stylesheet) is unaffected. */

:root {
    --ink: #0B0A08;
    --ink-soft: #1A160F;
    --ink-line: rgba(11,10,8,0.7);
    --cream: #F5F0EA;
    --cream-deep: #ECE1CC;
    --hairline: rgba(11,10,8,0.12);
    --hairline-on-dark: rgba(245,240,234,0.16);
    --serif: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }

img { max-width: 100%; display: block; }

body { background: var(--cream); color: var(--ink); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

em, .italic { font-style: italic; }

/* ---- Header / Nav ---- */
.nav-header { position: sticky; top: 0; background: var(--ink) !important; box-shadow: none !important; border-bottom: 1px solid var(--hairline-on-dark); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: rgba(245,240,234,0.6);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.9rem;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover { background: rgba(245,240,234,0.08); color: var(--cream); }
.main-nav a.active { color: var(--cream); background: rgba(245,240,234,0.08); }

.main-nav a.nav-cta {
    margin-left: 0.5rem;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    border-radius: 2px;
}
.main-nav a.nav-cta:hover { background: var(--gold-light); color: var(--ink); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    cursor: pointer;
    padding: 0.4rem;
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--ink);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s, transform 0.15s;
        box-shadow: 0 8px 16px rgba(0,0,0,0.35);
    }
    .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .main-nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--hairline-on-dark); border-radius: 0; }
    .main-nav a.nav-cta { margin: 0.5rem 0 0; text-align: center; border-radius: 2px; }
}

/* ---- Hero ---- */
.hero {
    background: var(--ink);
    color: var(--cream);
    padding: 6rem 1.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
    /* Skip the video download on small screens: the poster frame (already
       the video's first paint) carries the same look at a fraction of the weight. */
    .hero-video { display: none; }
    .hero-media { background: url('../img/hero/hero-poster.jpg') center / cover no-repeat; }
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(11,10,8,0.86) 0%, rgba(26,22,15,0.8) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(245,240,234,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,240,234,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 85% 15%, rgba(201,162,39,0.16), transparent 55%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hero h1 em { color: var(--gold-light); font-style: italic; }

.hero p.lead {
    font-size: 1.05rem;
    color: rgba(245,240,234,0.68);
    max-width: 560px;
    margin: 0 auto 2.4rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 1.7rem;
    border-radius: 2px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,162,39,0.28); }

.btn-outline { background: transparent; border-color: rgba(245,240,234,0.3); color: var(--cream); }
.btn-outline:hover { background: rgba(245,240,234,0.08); }

.btn-navy { background: var(--ink); color: var(--cream); }
.btn-navy:hover { background: var(--ink-soft); }

.btn-dark-outline { background: transparent; border-color: var(--hairline); color: var(--ink); }
.btn-dark-outline:hover { background: rgba(11,10,8,0.05); }

/* ---- Marquee ticker ---- */
.ticker {
    background: var(--ink);
    border-top: 1px solid var(--hairline-on-dark);
    overflow: hidden;
    padding: 1.1rem 0;
    position: relative;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 32s linear infinite;
}
.ticker-track span {
    color: rgba(245,240,234,0.55);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 1.75rem;
}
.ticker-track span::after { content: '·'; color: var(--gold); margin-left: 1.75rem; }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- Stats strip ---- */
.stats-strip {
    background: var(--ink);
    border-top: 1px solid var(--hairline-on-dark);
}
.stats-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1180px;
}
.stat-item {
    text-align: center;
    padding: 2.6rem 1rem;
    border-left: 1px solid var(--hairline-on-dark);
}
.stat-item:first-child { border-left: none; }
.stat-item strong {
    display: block;
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-item span {
    font-size: 0.7rem;
    color: rgba(245,240,234,0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
@media (max-width: 700px) {
    .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3) { border-left: none; }
}

/* ---- Generic section ---- */
.section { padding: 5.5rem 1.5rem; }
.section-tight { padding: 3rem 1.5rem; }
.section-alt { background: var(--cream-deep); }

.section-head {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-eyebrow {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    display: block;
}
.section-head h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}
.section-head h2 em { color: var(--gold-dark); }
.section-head p { color: var(--text-muted); font-size: 1rem; }

/* ---- Numbered list (services / values) ---- */
.num-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.num-row {
    display: flex;
    align-items: baseline;
    gap: 1.75rem;
    padding: 1.9rem 0.25rem;
    border-bottom: 1px solid var(--hairline);
    transition: padding-left 0.2s;
}
.num-row:hover { padding-left: 0.75rem; }
.num-index {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--gold-dark);
    width: 2.4rem;
    flex-shrink: 0;
}
.num-body { flex: 1; }
.num-body h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.num-body p { color: var(--text-muted); font-size: 0.92rem; max-width: 560px; }

/* ---- Ethos / quote section ---- */
.ethos-section {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 6rem 1.5rem;
}
.ethos-section .section-eyebrow { color: var(--gold-light); }
.ethos-quote {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    line-height: 1.35;
    max-width: 820px;
    margin: 0 auto 1.75rem;
}
.ethos-attribution {
    color: rgba(245,240,234,0.55);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- CTA band ---- */
.cta-band {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 5.5rem 1.5rem;
}
.cta-band h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.9rem;
}
.cta-band h2 em { color: var(--gold-light); }
.cta-band p { color: rgba(245,240,234,0.65); margin-bottom: 2rem; }

/* ---- About page ---- */
.about-hero {
    position: relative;
    background: linear-gradient(160deg, rgba(11,10,8,0.88) 0%, rgba(26,22,15,0.82) 100%), url('../img/hero/about-interior.jpg') center 30% / cover no-repeat;
    color: var(--cream);
    padding: 6rem 1.5rem;
    text-align: center;
}
.about-hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    margin-bottom: 0.9rem;
}
.about-hero h1 em { color: var(--gold-light); }
.about-hero p { color: rgba(245,240,234,0.72); max-width: 600px; margin: 0 auto; }

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--hairline);
    border: 1px solid var(--hairline);
}
@media (max-width: 700px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--cream); padding: 2rem; }
.value-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Contact page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    max-width: 1050px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card, .contact-form-card {
    background: var(--bg-2);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 1.85rem;
}
.contact-info-item { display: flex; gap: 0.85rem; margin-bottom: 1.4rem; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: transparent; border: 1px solid var(--gold-border); color: var(--gold-dark);
    border-radius: 2px; display: flex; align-items: center; justify-content: center;
}
.contact-info-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.86rem; color: var(--text-muted); text-decoration: none; }
.contact-info-item a:hover { color: var(--gold-dark); }

.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-dark);
    border-radius: 2px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer {
    background: var(--ink);
    color: rgba(245,240,234,0.65);
    padding: 3.5rem 1.5rem 0;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand p { margin-top: 1rem; font-size: 0.86rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 { color: var(--cream); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 1rem; }
.footer-col a, .footer-col .footer-text { display: block; font-size: 0.86rem; color: rgba(245,240,234,0.55); text-decoration: none; margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid var(--hairline-on-dark);
    padding: 1.4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(245,240,234,0.4);
}
.footer-bottom a { color: rgba(245,240,234,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }
