/* ==========================================================================
   Waterfront Tranquility Barn — site styles
   Palette and type follow the printed brochure (navy, gold, cream, serif).
   ========================================================================== */

:root {
    --navy: #1e3446;
    --navy-deep: #142533;
    --gold: #b8925a;
    --gold-soft: #d6b98b;
    --cream: #f7f2ea;
    --sand: #efe6d8;
    --ink: #262b30;
    --muted: #6a7075;
    --white: #ffffff;
    --line: rgba(30, 52, 70, .12);

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Segoe UI", system-ui, sans-serif;

    --radius: 14px;
    --shadow: 0 18px 40px -18px rgba(20, 37, 51, .35);
    --container: 1180px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    color: var(--navy);
    margin: 0 0 .5em;
    letter-spacing: -.005em;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
h1 em, h2 em { font-style: italic; color: var(--gold-soft); }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: #444b51; }

.eyebrow {
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .95rem 1.9rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: .82rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .65rem 1.25rem; font-size: .74rem; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a37f4a; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.link-arrow {
    font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none; color: var(--navy);
}
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .3rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    background: rgba(247, 242, 234, .96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line);
    transition: background .35s, box-shadow .35s;
}
.site-header.over-hero:not(.scrolled) { background: transparent; box-shadow: none; backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) {
    font-size: .78rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; color: var(--navy); position: relative; padding: .3rem 0;
}
.site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .25s;
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { right: 0; }

.over-hero:not(.scrolled) .brand-name,
.over-hero:not(.scrolled) .site-nav a:not(.btn) { color: #fff; }
.over-hero:not(.scrolled) .brand-sub { color: var(--gold-soft); }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 960px) {
    .nav-burger {
        display: block; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 2;
    }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after {
        content: ""; position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--navy); transition: .3s;
    }
    .nav-burger span { top: 21px; }
    .nav-burger span::before { left: 0; top: -7px; }
    .nav-burger span::after { left: 0; top: 7px; }
    .over-hero:not(.scrolled) .nav-burger span,
    .over-hero:not(.scrolled) .nav-burger span::before,
    .over-hero:not(.scrolled) .nav-burger span::after { background: #fff; }

    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--cream); padding: 1rem 1.25rem 1.75rem;
        box-shadow: var(--shadow);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
    }
    .site-nav a:not(.btn) { color: var(--navy) !important; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
    .site-nav a:not(.btn)::after { display: none; }
    .site-nav .btn { margin-top: 1.2rem; }
    .nav-toggle:checked ~ .site-nav { transform: none; opacity: 1; visibility: visible; }
    .nav-toggle:checked ~ .nav-burger span { background: transparent !important; }
    .nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(45deg); background: var(--navy); }
    .nav-toggle:checked ~ .nav-burger span::after { top: 0; transform: rotate(-45deg); background: var(--navy); }
    .site-header:has(.nav-toggle:checked) { background: var(--cream) !important; }
    .site-header:has(.nav-toggle:checked) .brand-name { color: var(--navy) !important; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: clamp(560px, 100svh, 1000px);
    display: flex; align-items: flex-end;
    color: #fff; overflow: hidden; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 18s ease-out both; }
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(20, 37, 51, .55) 0%, rgba(20, 37, 51, 0) 28%),
        linear-gradient(90deg, rgba(20, 37, 51, .55) 0%, rgba(20, 37, 51, .15) 55%, rgba(20, 37, 51, 0) 75%),
        linear-gradient(0deg, rgba(20, 37, 51, .82) 0%, rgba(20, 37, 51, .25) 55%, rgba(20, 37, 51, 0) 80%);
}
.hero-content { padding: 0 0 clamp(5rem, 12vh, 8rem); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-lead { max-width: 560px; font-size: 1.2rem; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 1.6rem; width: 1px; height: 46px;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .85));
    animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrollCue { 0%, 100% { opacity: .2; transform: translateY(-6px); } 50% { opacity: 1; transform: translateY(0); } }

/* ---------- Intro / stats ---------- */
.intro { background: var(--cream); }
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { text-align: center; padding: 2rem 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--navy); line-height: 1; }
.stat-label { display: block; margin-top: .6rem; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Why cards ---------- */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why-body { padding: 1.4rem 1.4rem 1.6rem; }
.why-body p { font-size: .98rem; color: #4a5056; margin: 0; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Split sections ---------- */
.split {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5.5rem);
    align-items: center; margin-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.split:last-child { margin-bottom: 0; }
.split-flip .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.2s ease; }
.split:hover .split-media img { transform: scale(1.03); }
.split-text p { color: #4a5056; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split-flip .split-media { order: 0; }
}

/* ---------- Image band ---------- */
.band { position: relative; isolation: isolate; color: #fff; padding: clamp(7rem, 16vw, 12rem) 0; overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 37, 51, .88) 0%, rgba(20, 37, 51, .55) 50%, rgba(20, 37, 51, .15) 100%); }
.band-content { max-width: 1180px; }
.band-content > * { max-width: 560px; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--gold-soft); }
.band p { color: rgba(255, 255, 255, .88); margin-bottom: 2rem; }

/* ---------- Included ---------- */
.included { background: var(--sand); }
.included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; columns: 2; column-gap: 2rem; }
.check-list li { break-inside: avoid; position: relative; padding: 0 0 .8rem 1.6rem; font-size: .98rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .65rem; height: .35rem; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.included-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.included-media img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.inc-a { grid-row: span 2; height: 100%; min-height: 100%; }
.inc-b, .inc-c { height: auto; aspect-ratio: 1; }
@media (max-width: 860px) {
    .included-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .check-list { columns: 1; } }

/* ---------- Mosaic ---------- */
.gallery-teaser { background: var(--cream); }
.mosaic {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 1rem;
    margin-bottom: 3rem;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); transition: transform .5s, filter .5s; }
.mosaic img:hover { transform: scale(1.015); filter: brightness(1.05); }
.mosaic .m-tall { grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--navy); color: #fff; }
.testimonials h2 { color: #fff; }
.testimonials .eyebrow { color: var(--gold-soft); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { margin: 0; padding: 2.2rem 2rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.quote blockquote { margin: 0 0 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.quote figcaption { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { background: var(--cream); }
.cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.getting-here { list-style: none; margin: 0; padding: 2.2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.getting-here li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.getting-here li:last-child { border-bottom: 0; }
.getting-here strong { font-weight: 500; color: var(--navy); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 4.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(214, 185, 139, .6); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer h3 { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.site-footer .muted { color: rgba(255, 255, 255, .55); }
.footer-brand { font-family: var(--serif); font-size: 1.7rem; color: #fff; margin-bottom: .6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .45); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Simple pages (404 etc.) ---------- */
.page-plain { padding: calc(var(--header-h) + 5rem) 0 6rem; min-height: 60vh; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1:focus, h1:focus-visible { outline: none; } /* Blazor focuses the h1 after navigation */

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    min-height: clamp(380px, 58vh, 560px);
    display: flex; align-items: flex-end;
}
.page-hero-content { padding: calc(var(--header-h) + 2rem) 0 clamp(2.5rem, 6vh, 4rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: .3em; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .hero-img { animation-duration: 12s; }
.center-actions { justify-content: center; }
.back-home { margin-top: 2.5rem; }

/* ---------- Pricing: gate form ---------- */
.gate-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .gate-grid { grid-template-columns: 1fr; } }
.check-list.single { columns: 1; margin-top: 1.25rem; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.6rem); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: .4rem; }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--muted); }
.field input, .field select, .date-form input {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: .8rem .95rem; border: 1px solid #d9d2c6; border-radius: 10px; background: #fdfbf8;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .date-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 90, .18); }
.field input.invalid { border-color: #b4553f; }
.validation-message { color: #b4553f; font-size: .85rem; margin-top: .3rem; }
.btn-block { width: 100%; margin-top: .6rem; padding-block: 1.05rem; cursor: pointer; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pricing: quote + rates ---------- */
.quote-section { padding-bottom: 0; }
.quote-card { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(2rem, 5vw, 3.2rem); border-top: 3px solid var(--gold); }
.quote-date { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin: 0; }
.quote-price { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5rem); color: var(--navy); line-height: 1.05; margin: .3rem 0; }
.quote-meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.quote-msg { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.date-form { display: flex; gap: .75rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.date-form input { width: auto; min-width: 210px; }
.date-form .btn { cursor: pointer; background: transparent; }

.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .rates-grid { grid-template-columns: 1fr; } }
.rate-card { background: #fff; border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: 0 1px 0 var(--line); }
.rate-card h3 { margin-bottom: .2rem; }
.rate-months { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.rate-card dl { margin: 1.2rem 0 0; }
.rate-card dl div { display: flex; justify-content: space-between; padding: .85rem 0; border-top: 1px solid var(--line); }
.rate-card dt { color: #4a5056; }
.rate-card dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.rates-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 1.4rem 0 3.5rem; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-bottom: 4rem; }
@media (max-width: 760px) { .extras-grid { grid-template-columns: 1fr; } }
.extras-grid h3 { margin-top: 0; }
.extras-grid h3 + .check-list { margin-bottom: 2rem; }
.plain-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.plain-list strong { font-weight: 500; color: var(--navy); white-space: nowrap; }
