/* ═══════════════════════════════════════════════════════
   Magnolia Slumber Rental

   Brand five:
     Forest  #42513B   the green, carried over
     Lavender #9186A0
     Cognac  #795B46
     Cool white #F7F8F6  page ground
     Charcoal #292B28   type and footer

   Cognac is the action colour (buttons, focus, accents).
   Lavender is the quiet wash (bands, notes, tape).
   Forest stays the brand note — wordmark, dark bands, secondary
   buttons. Nothing here is used to gender a section.
   ═══════════════════════════════════════════════════════ */

:root {
  /* Brand five */
  --forest:     #42513B;   /* green, unchanged */
  --lavender:   #9186A0;
  --cognac:     #795B46;
  --paper:      #F7F8F6;   /* cool white */
  --charcoal:   #292B28;

  /* derived working tones */
  --forest-dp:  #2E3A29;
  --forest-sf:  #E3E7E0;
  --lavender-dp:#6F6580;
  --lavender-sf:#E8E5EC;
  --cognac-dp:  #5C4433;
  --cognac-sf:  #EEE7E1;
  --paper-alt:  #EDEFEA;
  --ink:        #292B28;
  --muted:      #6D7069;
  --line:       #DDE0D9;

  --shadow:     0 2px 10px rgba(41,43,40,.07);
  --shadow-lg:  0 10px 34px rgba(41,43,40,.13);

  --radius:     14px;
  --gutter:     16px;
  --max:        1140px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --hand:    "Caveat", "Segoe Script", cursive;
  --body:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cognac-dp); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--forest-dp);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); }

p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

section { padding: clamp(48px, 8vw, 88px) 0; }
.band       { background: var(--paper-alt); }
.band-soft  { background: var(--lavender-sf); }
.band-cream { background: var(--lavender-sf); }
.band-forest{ background: var(--forest-dp); color: #E6EAE3; }
.band-forest h2, .band-forest h3 { color: #F7F8F6; }
.band-forest .lede { color: #C2C8BE; }

/* ── hand-written eyebrow ───────────────────────────── */
.eyebrow {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--cognac-dp);
  margin: 0 0 .1em;
  transform: rotate(-1.4deg);
  display: inline-block;
}
.band-forest .eyebrow { color: var(--lavender-sf); }

/* ── buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--body); font-weight: 650; font-size: 1rem;
  padding: .82em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary   { background: var(--cognac); color: #F7F8F6; }
.btn-primary:hover { background: var(--cognac-dp); color: #fff; }
.btn-forest    { background: var(--forest); color: #F7F8F6; }
.btn-forest:hover { background: var(--charcoal); color: #fff; }
.btn-ghost     { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #FBF6EA; }
.band-forest .btn-ghost { color: #E8E5EC; border-color: #E8E5EC; }
.band-forest .btn-ghost:hover { background: #E8E5EC; color: var(--forest-dp); }

/* ── header ─────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,248,246,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand b {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: var(--forest-dp); line-height: 1.1; letter-spacing: -.01em;
}
.brand span { display: block; font-family: var(--body); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { font-size: .95rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--cognac-dp); }
.nav a.btn { text-decoration: none; }
.nav .btn { padding: .6em 1.2em; font-size: .92rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--forest);
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px; align-items: stretch;
    transform: translateY(-120%); transition: transform .26s ease;
    visibility: hidden; pointer-events: none;
  }
  .nav[data-open="true"] { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; margin-top: 10px; border-bottom: 0; }
}

/* ── hero ───────────────────────────────────────────── */
/* stacked grid so the taller of image/copy sets the height — no clipping on phones */
.hero { display: grid; padding: 0; position: relative; }   /* positions the light strands */
.hero-media, .hero-copy { grid-area: 1 / 1; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; min-height: clamp(400px, 56vw, 560px); object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(32,38,28,.78) 0%, rgba(32,38,28,.5) 48%, rgba(32,38,28,.16) 100%);
}
.hero-copy {
  position: relative; display: flex; align-items: center; z-index: 2;
  padding-block: clamp(40px, 7vw, 64px);
}
.hero-copy .wrap { max-width: var(--max); }
.hero-copy h1 { color: #FFFDF7; max-width: 15ch; text-shadow: 0 2px 18px rgba(0,0,0,.34); }
.hero-copy p { color: #F0EADC; max-width: 46ch; font-size: clamp(1rem,2.2vw,1.18rem); }
.hero-copy .eyebrow { color: var(--lavender-sf); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-area {
  margin-top: 18px; font-size: .88rem; color: #E3DCCB;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* ── hero twinkle lights ─────────────────────────────────────
   A strand of bulbs on a parabolic sag. Positions are in %, so
   it stretches to any width without distorting the bulbs; the
   wire is an SVG with a non-scaling stroke for the same reason.
   Each bulb gets its own duration and delay, otherwise fifteen
   bulbs pulsing in unison reads as a blinking error light.    */
.lights {
  /* inset from the hero edges: the bulb caps and glow overhang the
     strand's own box by ~7px, so a flush strand clips at the corners */
  position: absolute; left: 14px; right: 14px; height: 64px; z-index: 3;
  pointer-events: none;
}
.lights.top    { top: 10px; }
.lights.bottom { bottom: 10px; transform: scaleY(-1); }
@media (max-width: 620px) {
  .lights.top { top: 7px; }
  .lights.bottom { bottom: 7px; }
  .lights { left: 9px; right: 9px; }
}
.lights svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: rgba(247,248,246,.42); stroke-width: 1.6; stroke-linecap: round;
}
.lights i {
  position: absolute; width: 9px; height: 9px; margin: -3px 0 0 -4.5px;
  border-radius: 50%; background: #FBE9B8;
  box-shadow: 0 0 6px 1px rgba(251,233,184,.75), 0 0 16px 4px rgba(244,203,118,.35);
  animation: twinkle var(--dur, 3.4s) ease-in-out var(--delay, 0s) infinite;
}
.lights i::before {                 /* the little cap on the flex */
  content: ""; position: absolute; left: 2.5px; top: -4px;
  width: 4px; height: 4px; border-radius: 1px; background: rgba(247,248,246,.5);
}
.lights.bottom i::before { transform: scaleY(-1); top: auto; bottom: -4px; }
@keyframes twinkle {
  0%, 100% { opacity: .42; box-shadow: 0 0 4px 1px rgba(251,233,184,.5),  0 0 10px 2px rgba(244,203,118,.2); }
  50%      { opacity: 1;   box-shadow: 0 0 7px 2px rgba(251,233,184,.85), 0 0 20px 6px rgba(244,203,118,.45); }
}
@media (max-width: 620px) {
  .lights { height: 44px; }
  .lights i { width: 7px; height: 7px; margin: -2.5px 0 0 -3.5px; }
}

/* ── generic grids ──────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* ── included list ──────────────────────────────────── */
.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.included li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.included svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--cognac-dp); }

/* ── theme chips ────────────────────────────────────── */
.themes { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .55em 1.1em; font-weight: 600; font-size: .96rem; color: var(--forest-dp);
  box-shadow: var(--shadow);
}
.chip .dot { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.chip.new { border-color: var(--cognac); }
.chip.new::after {
  content: "new"; font-family: var(--hand); font-size: 1.05rem;
  color: var(--cognac-dp); margin-left: 2px;
}

/* ── scrapbook photos ───────────────────────────────── */
.snap {
  background: #fff; padding: 10px 10px 42px; border-radius: 3px;
  box-shadow: var(--shadow-lg); position: relative; display: block;
}
.snap img { border-radius: 2px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.snap figcaption {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-family: var(--hand); font-size: 1.22rem; color: var(--muted);
}
.snap.tilt-a { transform: rotate(-1.8deg); }
.snap.tilt-b { transform: rotate(1.5deg); }
.snap.tilt-c { transform: rotate(-.8deg); }
.snap.wide img { aspect-ratio: 3/2; }
.snap.nocap { padding-bottom: 10px; }
.tape {
  position: absolute; top: -12px; left: 50%; translate: -50% 0;
  width: 92px; height: 26px; background: rgba(121,91,70,.42);
  border-left: 1px dashed rgba(255,255,255,.6); border-right: 1px dashed rgba(255,255,255,.6);
  rotate: -2deg;
}

/* ── pricing ────────────────────────────────────────── */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); position: relative;
}
.tier.featured { border: 2px solid var(--cognac); box-shadow: var(--shadow-lg); }
.tier .flag {
  position: absolute; top: -13px; left: 24px; background: var(--cognac);
  color: #F7F8F6; font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: .35em .9em; border-radius: 999px;
}
.tier h3 { margin-bottom: .1em; }
.tier .price { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--cognac-dp); line-height: 1; }
.tier .price small { font-size: .95rem; color: var(--muted); font-family: var(--body); font-weight: 600; }
.tier ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.tier li { padding-left: 24px; position: relative; font-size: .97rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 11px; height: 11px;
  border-radius: 50%; background: var(--cognac-sf); border: 2px solid var(--cognac);
}
.price-note {
  margin-top: 22px; font-size: .95rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
}

/* ── split (Crystal / services) ─────────────────────── */
.split { display: grid; gap: clamp(26px, 5vw, 54px); align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .portrait { max-width: 380px; margin-inline: auto; width: 100%; }

/* ── builder teaser ─────────────────────────────────── */
.teaser { display: grid; gap: 30px; grid-template-columns: 1.05fr .95fr; align-items: center; }
@media (max-width: 820px) { .teaser { grid-template-columns: 1fr; } }
.teaser-art {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-lg);
}

/* ── contact ────────────────────────────────────────── */
.quick { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .quick { grid-template-columns: 1fr; } }
.quick a {
  display: flex; align-items: center; gap: 13px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 19px; box-shadow: var(--shadow); color: var(--forest-dp);
  font-weight: 650; transition: transform .12s, box-shadow .12s;
}
.quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.quick svg { width: 26px; height: 26px; flex: none; color: var(--cognac-dp); }
.quick small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 650; font-size: .93rem; color: var(--forest-dp); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .72em .9em; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(121,91,70,.34); border-color: var(--cognac);
}
.field textarea { min-height: 128px; resize: vertical; }
.field .hint { font-size: .83rem; color: var(--muted); }
.row2 { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }

/* ── notices ────────────────────────────────────────── */
.note {
  background: var(--lavender-sf); border-left: 4px solid var(--lavender);
  padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink);
}
.demo-ribbon {
  background: var(--charcoal); color: #D9D4E0; text-align: center;
  font-size: .82rem; padding: 7px var(--gutter); letter-spacing: .02em;
}
.demo-ribbon b { color: #fff; }

/* ── footer ─────────────────────────────────────────── */
.site-foot { background: var(--charcoal); color: #B9BDB6; padding: 54px 0 30px; font-size: .94rem; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { color: #F7F8F6; font-size: 1rem; margin-bottom: .6em; }
.site-foot a { color: #BDB2C9; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand img { width: 84px; height: 84px; border-radius: 12px; margin-bottom: 12px; }
.foot-base {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .86rem;
}

/* ── doodles ────────────────────────────────────────── */
.doodle { position: absolute; pointer-events: none; opacity: .5; color: var(--cognac); }

.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }
.quick > a, .quick > a > span { min-width: 0; }
.quick small { overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .quick { grid-template-columns: 1fr !important; }
}
