/* =========================================================================
   Avenue Deschanel B&B — stylesheet
   Palette: warm ivory paper, ink text, deep forest + brass accents
   Type: Cormorant Garamond (display) / Jost (text)
   ========================================================================= */

:root {
    --paper: #f7f4ee;
    --paper-2: #efeae1;
    --brick: #d68c6a;
    --brick-light: #f8e5da;
    --brick-soft: rgba(214, 140, 106, .18);
    --ink: #1d1c1a;
    --ink-soft: #56534d;
    --forest: #2f3d33;
    --brass: #a8874f;
    --line: rgba(29, 28, 26, .14);
    --wrap: 1180px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Jost", -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: .01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--brass); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; padding: .6rem 1rem; background: var(--ink); color: var(--paper); z-index: 100; }

.eyebrow {
    font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--brass); margin: 0 0 1.1rem;
}
.eyebrow.light { color: rgba(255, 255, 255, .72); }
.lead { font-size: 1.2rem; color: var(--ink); }
p, .lead { color: var(--ink-soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .95rem 1.9rem; font-size: .78rem; letter-spacing: .16em;
    text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
    border-radius: 2px; transition: all .35s var(--ease); cursor: pointer;
}
.btn-solid { background: rgba(47, 61, 51, .72); color: #f5f2ec; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-solid:hover { background: rgba(29, 28, 26, .88); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--forest); background: var(--forest); color: #f5f2ec; }
.btn-ghost { background: rgba(47, 61, 51, .42); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(47, 61, 51, .85); border-color: rgba(255, 255, 255, .8); }

.text-link {
    display: inline-block; text-decoration: none; font-size: .82rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
    border-bottom: 1px solid var(--brass); padding-bottom: .25rem;
}
.text-link:hover { color: var(--brass); }

/* ---------- header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(47, 61, 51, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.header-inner {
    width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 0;
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(29, 28, 26, .07); }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); margin-left: -.75rem; }
.brand-logo { display: block; height: 42px; width: auto; filter: brightness(0) invert(1); opacity: .95; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 2.2rem; }
.nav a { text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #f0dcb6; opacity: .92; }
.nav a:hover { opacity: 1; color: #fff; }

.menu-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: #f0dcb6; }
.header-tagline {
    margin: 0 auto 0 1.6rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(242, 237, 228, .62);
}
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88svh, 46rem); display: grid; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; z-index: 0; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: rgba(232, 158, 122, .08);
}
.hero-inner {
    position: relative; z-index: 3; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem) minmax(0, .5fr);
    padding: clamp(3.5rem, 9vh, 6.5rem) 0;
}
.hero-body { grid-column: 2; color: #fff; text-shadow: 0 1px 14px rgba(18, 24, 19, .45); }
.hero-body h1 { color: #fff; font-size: clamp(2.1rem, 3.3vw, 3.1rem); }
.hero-body h1 em { color: #f0dcb6; }
.hero-copy { color: rgba(255, 255, 255, .9); font-size: 1.05rem; margin-top: 1.2rem; }

.hero-textbox {
    padding: 1.6rem 1.9rem;
    background: rgba(47, 61, 51, .68);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    border-radius: 2px;
    max-width: 28rem;
}
.hero-textbox h1 { color: #fff; font-size: clamp(2.1rem, 3.3vw, 3.1rem); margin: 0; }
.hero-textbox .hero-copy { margin-top: 1rem; }
.mast-caption {
    position: absolute; z-index: 3; right: clamp(1.2rem, 3vw, 3.5rem); bottom: 3rem;
    display: flex; flex-direction: column; gap: .2rem; width: 190px; padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .55);
    color: #eee9df; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(18, 24, 19, .75);
}
.mast-caption-label { color: #f0dcb6; font-size: .6rem; font-weight: 500; letter-spacing: .16em; }
.mast-caption strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; letter-spacing: 0; text-transform: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 2.2rem; }
.score {
    display: grid; text-decoration: none; color: #fff; padding: .9rem 1.1rem;
    background: rgba(47, 61, 51, .68); border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    transition: background .3s var(--ease);
}
.score:hover { background: rgba(29, 28, 26, .85); }
.score strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.score strong span { font-size: .8rem; opacity: .6; margin-left: .2rem; }
.score-src { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .45rem; }
.score-note { font-size: .76rem; opacity: .72; }


/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.intro-figure img { aspect-ratio: 3 / 4; object-fit: cover; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }

/* ---------- rooms ---------- */
.rooms { background: var(--paper-2); }
.room-list { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.room { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.room:nth-child(even) .room-img { order: 2; }
.room-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.room-body h3 { margin-top: 0; }
.room-sub { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: .4rem 0 1rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0 1.8rem; }
.tags li { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 2px; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15vw; gap: .5rem; padding: .5rem; background: var(--paper-2); }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .g1 { grid-column: span 2; grid-row: span 2; }
.gallery .g2 { grid-column: span 1; grid-row: span 2; }
.gallery .g3 { grid-column: span 1; grid-row: span 1; }
.gallery .g4 { grid-column: span 1; grid-row: span 1; }
.gallery .g5 { grid-column: span 2; grid-row: span 1; }
.gallery .g6 { grid-column: span 2; grid-row: span 1; }

/* ---------- the house ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 4vw, 3.2rem); }
.amenity { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.amenity h3 { margin: 0 0 .6rem; }
.amenity p { font-size: .95rem; }

.practical { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.practical dt, .distances dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.practical dd, .distances dd { margin: .35rem 0 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }

/* ---------- who stays ---------- */
.guests { background: var(--paper-2); }
.guest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
.guest-card { border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.2rem); background: var(--paper); }
.guest-card h3 { margin: 0 0 .7rem; font-size: 1.5rem; }
.guest-card p { margin: 0; font-size: .95rem; }

/* ---------- reviews ---------- */
.reviews { background: var(--forest); color: #eee9df; }
.reviews h2 { color: #f4efe6; }
.reviews h2 em { color: #dcbf8d; }
.reviews .eyebrow { color: #dcbf8d; }
.score-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font-size: .85rem; }
.score-row a { text-decoration: none; color: rgba(238, 233, 223, .78); border-bottom: 1px solid rgba(238, 233, 223, .25); padding-bottom: .2rem; }
.score-row strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: #f4efe6; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.review { margin: 0; padding: 2rem; border: 1px solid rgba(238, 233, 223, .18); }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: #f4efe6; font-style: italic; }
.review figcaption { margin-top: 1.4rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #dcbf8d; }
.review figcaption span { display: block; letter-spacing: .1em; color: rgba(238, 233, 223, .55); margin-top: .3rem; }

/* ---------- neighbourhood ---------- */
.hood-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.distances { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin: 2.2rem 0; }
.hood-figures { display: grid; gap: .8rem; }
.hood-figures figure { margin: 0; }
.hood-figures img { aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: #f2ede4; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.contact h2 { color: #f7f2e9; }
.contact h2 em { color: #dcbf8d; }
.contact p { color: rgba(242, 237, 228, .72); }
.contact .btn-solid { background: #dcbf8d; color: #1d1c1a; margin-top: 1.4rem; }
.contact .btn-solid:hover { background: #f7f2e9; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.contact-details { display: grid; gap: .7rem; justify-items: start; }
.contact-details address { font-family: var(--serif); font-size: 1.5rem; font-style: normal; line-height: 1.35; }
.contact-details a { text-decoration: none; color: rgba(242, 237, 228, .8); border-bottom: 1px solid rgba(242, 237, 228, .25); padding-bottom: .15rem; }
.contact-details a:hover { color: #dcbf8d; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(242, 237, 228, .6); padding: 2.5rem 0 5rem; border-top: 1px solid rgba(242, 237, 228, .12); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer-logo { display: block; height: 46px; width: auto; margin: 0 auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-links { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #dcbf8d; }

/* ---------- sticky mobile CTA ---------- */
.sticky-book { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .header-tagline { display: none; }
    .nav {
        position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center;
        background: rgba(47, 61, 51, .88); gap: 1.8rem; transform: translateY(-100%);
        transition: transform .5s var(--ease); visibility: hidden;
        backdrop-filter: blur(8px);
    }
    .nav a { color: #fff; font-size: 1rem; opacity: 1; }
    body.nav-open .nav { transform: none; visibility: visible; }
    body.nav-open { overflow: hidden; }

    .intro-grid, .room, .hood-grid, .contact-grid { grid-template-columns: 1fr; }
    .room:nth-child(even) .room-img { order: 0; }
    .amenity-grid, .guest-grid { grid-template-columns: repeat(2, 1fr); }
    .practical { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
    .gallery .g1, .gallery .g5, .gallery .g6 { grid-column: span 2; }
    .gallery .g2 { grid-row: span 2; }
    .hero { align-items: end; min-height: 78svh; }
    .hero-img { object-position: 0% center; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-body { grid-column: 1; }
    .mast-caption { display: none; }


    .sticky-book {
        display: block; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40;
        text-align: center; padding: 1rem; background: var(--forest); color: #f5f2ec;
        text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px;
    }
    .footer { padding-bottom: 6rem; }
}

@media (max-width: 560px) {
    .amenity-grid, .guest-grid, .practical, .distances, .hero-scores { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; grid-auto-rows: 62vw; }
    .gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; }
}
