/* ============================================================
   Template 12 — Bedroom / Interior
   Layout: three-zone header (nav · logo · nav)
           cover hero with CSS floor plan · scroll-snap rail · masonry
           article as full-bleed alternating BANDS
   Palette: walnut + dusty rose + oatmeal
   Fonts: Cormorant Garamond (display) + Onest (text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Onest:wght@400;500;600;700&display=swap');

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

:root {
  --paper:      #f6efe6;
  --card:       #fffaf3;
  --linen:      #ece2d3;
  --blush:      #efd5cb;
  --blush-soft: #f7e6de;
  --rose:       #b05d52;
  --rose-dark:  #8a443b;
  --walnut:     #3b2a24;
  --walnut-mid: #5a443b;
  --muted:      #8a766b;
  --line:       #ddcfbf;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--walnut); line-height: 1.7; }
a { color: var(--rose-dark); text-decoration: none; }
a:hover { color: var(--rose); text-decoration: underline; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   HEADER — nav left · logo centre · nav right
   ============================================================ */
#masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-l, .nav-r { display: flex; gap: 26px; }
.nav-l { justify-content: flex-start; }
.nav-r { justify-content: flex-end; }
.top a.nl {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut-mid);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.top a.nl:hover { color: var(--rose); border-bottom-color: var(--rose); text-decoration: none; }
.logo { text-align: center; line-height: 1; }
.logo a { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.5rem; color: var(--walnut); letter-spacing: 0.01em; }
.logo a:hover { color: var(--rose-dark); text-decoration: none; }
.logo span { display: block; margin-top: 4px; font-family: var(--sans); font-style: normal; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   FLOOR PLAN (CSS only) — signature element
   ============================================================ */
.plan { background: var(--blush); border-radius: 20px; padding: 24px 24px 16px; }
.plan-room {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--walnut);
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #f9ece4 0 38px, #f3e0d5 38px 40px);
}
.plan-room span {
  position: absolute;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.64rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--walnut);
}
.p-wardrobe { left: 8%; top: 0; width: 54%; height: 15%; background: var(--walnut-mid); color: #fff !important; }
.p-bed { left: 22%; top: 27%; width: 40%; height: 52%; background: #fff; border: 3px solid var(--rose); border-radius: 6px; }
.p-night { width: 11%; height: 11%; top: 29%; background: var(--rose); color: #fff !important; font-size: 0.55rem !important; letter-spacing: 0 !important; }
.p-night.n1 { left: 9%; }
.p-night.n2 { left: 63%; }
.p-dresser { right: 0; top: 30%; width: 11%; height: 38%; background: var(--walnut-mid); color: #fff !important; writing-mode: vertical-rl; }
.p-window { left: 28%; bottom: -10px; width: 44%; height: 8px; background: #8fc3d6; padding: 0; }
.p-door { left: -10px; bottom: 10%; width: 8px; height: 16%; background: var(--rose); padding: 0; }
.plan-cap { margin-top: 12px; font-size: 0.78rem; color: var(--rose-dark); text-align: center; font-weight: 500; }
.plan.sm { padding: 18px 18px 12px; border-radius: 16px; }
.plan.sm .plan-room span { font-size: 0.56rem; }
.plan.sm .p-night { font-size: 0.48rem !important; }

/* ============================================================
   HOME — cover hero
   ============================================================ */
.cover { max-width: 1240px; margin: 0 auto; padding: 44px 28px 54px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose); }
.cover h1 { font-family: var(--serif); font-weight: 600; font-size: 3.7rem; line-height: 1.04; letter-spacing: -0.01em; margin: 16px 0 20px; }
.cover h1 em { color: var(--rose); font-style: italic; }
.lead { font-size: 1.08rem; color: var(--walnut-mid); max-width: 520px; margin-bottom: 28px; }
.btn { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 14px 30px; border-radius: 999px; }
.btn.fill { background: var(--walnut); color: #fff; }
.btn.fill:hover { background: var(--rose-dark); color: #fff; text-decoration: none; }
.btn.line { border: 1.5px solid var(--walnut); color: var(--walnut); margin-left: 10px; }
.btn.line:hover { background: var(--walnut); color: #fff; text-decoration: none; }
.cover-meta { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }

/* Section heading */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: 2rem; letter-spacing: -0.005em; }
.sec-head span { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   HOME — horizontal scroll-snap rail
   ============================================================ */
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 28px 22px; margin: 0 -28px; scrollbar-width: thin; scrollbar-color: var(--rose) var(--linen); }
.rail-card { flex: 0 0 320px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; }
.rail-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(59,42,36,0.12); }
.rail-sw { height: 118px; padding: 16px 18px; display: flex; align-items: flex-end; justify-content: space-between; color: #fff; background: var(--rose); }
.rail-card:nth-child(4n+2) .rail-sw { background: var(--walnut-mid); }
.rail-card:nth-child(4n+3) .rail-sw { background: #c9a58f; color: var(--walnut); }
.rail-card:nth-child(4n) .rail-sw { background: #8f7a6c; }
.rail-sw .tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.rail-sw .no { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.4rem; line-height: 1; opacity: 0.55; }
.rail-body { padding: 20px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.rail-body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin-bottom: 8px; }
.rail-body h3 a { color: var(--walnut); }
.rail-body h3 a:hover { color: var(--rose); text-decoration: none; }
.rail-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.rail-body small { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-dark); }

/* ============================================================
   HOME / CATEGORY — masonry columns
   ============================================================ */
.masonry { column-count: 3; column-gap: 22px; margin-bottom: 70px; }
.mcard { break-inside: avoid; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px 24px 22px; }
.mcard .mk { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); margin-bottom: 10px; display: block; }
.mcard h3 { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; line-height: 1.15; margin-bottom: 10px; }
.mcard h3 a { color: var(--walnut); }
.mcard h3 a:hover { color: var(--rose); text-decoration: none; }
.mcard p { font-size: 0.92rem; color: var(--muted); }
.mcard ul { list-style: none; margin-top: 8px; }
.mcard li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: 0.9rem; color: var(--walnut-mid); }
.mcard li:last-child { border-bottom: none; }
.mcard li b { color: var(--rose-dark); font-weight: 600; white-space: nowrap; }
.mcard.tint { background: var(--blush-soft); border-color: #ecc9bc; }
.mcard.dark { background: var(--walnut); border-color: var(--walnut); color: #fff; }
.mcard.dark h3 { color: #fff; }
.mcard.dark p { color: #d9c9bd; }
.mcard.dark .mk { color: #e9b9ad; }
.mcard.quote { background: var(--rose); border-color: var(--rose); color: #fff; }
.mcard.quote blockquote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; line-height: 1.25; }
.mcard.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.more { display: inline-block; margin-top: 12px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.more::after { content: ' →'; }

/* ============================================================
   CATEGORY / SERVICE HEAD
   ============================================================ */
.cat-head { text-align: center; padding: 56px 24px 46px; background: var(--blush-soft); border-bottom: 1px solid #ecc9bc; }
.cat-head .kicker { display: block; margin-bottom: 10px; }
.cat-head h1 { font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1.1; }
.cat-head p { max-width: 560px; margin: 12px auto 0; color: var(--walnut-mid); }
.crumbs { margin-top: 18px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--rose); text-decoration: none; }
.plain { max-width: 760px; margin: 0 auto; padding: 46px 24px 80px; font-size: 1.04rem; line-height: 1.8; color: var(--walnut-mid); }
.plain h2 { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: var(--walnut); margin: 1.4em 0 0.4em; }
.plain p { margin-bottom: 1.1em; }

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.a-hero { background: var(--card); border-bottom: 1px solid var(--line); }
.a-hero-in { max-width: 1240px; margin: 0 auto; padding: 40px 28px 46px; display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 56px; align-items: center; }
.a-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 3.1rem; line-height: 1.08; letter-spacing: -0.01em; margin: 14px 0 18px; }
.a-hero h1 em { font-style: italic; color: var(--rose); }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.84rem; color: var(--muted); }
.a-meta b { color: var(--walnut); font-weight: 600; }

/* ============================================================
   ARTICLE — full-bleed bands
   ============================================================ */
.band { background: var(--paper); }
.bands > .band:nth-child(even) { background: var(--card); }
.band-in { position: relative; max-width: 860px; margin: 0 auto; padding: 62px 28px 56px; }
.band-num { display: block; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 6.4rem; line-height: 0.75; color: rgba(176,93,82,0.2); margin-bottom: -8px; }
.band h2 { font-family: var(--serif); font-weight: 700; font-size: 2.35rem; line-height: 1.1; letter-spacing: -0.005em; margin-bottom: 20px; scroll-margin-top: 20px; }
.band-body { font-size: 1.04rem; line-height: 1.85; color: var(--walnut-mid); }
.band-body p { margin-bottom: 1.2em; }
.band-body ul, .band-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.band-body li { margin-bottom: 0.42em; }
.band-body strong { font-weight: 600; color: var(--walnut); }
.band-body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; margin: 1.5em 0 0.35em; color: var(--rose-dark); }
.band.intro .band-body > p:first-child { font-family: var(--serif); font-size: 1.55rem; line-height: 1.45; color: var(--walnut); font-weight: 500; }
.band.intro .band-in { padding-top: 54px; padding-bottom: 38px; }

.band-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0.4em 0 1.8em; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.band-body th { background: var(--walnut); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; padding: 11px 14px; }
.band-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.band-body tr:last-child td { border-bottom: none; }
.band-body tr:nth-child(even) td { background: var(--paper); }

/* Leader-dot list (distances, prices) */
.dist { list-style: none; padding: 0 !important; margin: 1.2em 0 1.8em; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 22px !important; }
.bands > .band:nth-child(even) .dist { background: var(--paper); }
.dist li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.dist li:last-child { border-bottom: none; }
.dist li i { flex: 1; border-bottom: 2px dotted #cdbbaa; transform: translateY(-4px); min-width: 24px; }
.dist li b { font-weight: 600; color: var(--rose-dark); white-space: nowrap; }

/* Bed scale */
.bedscale { margin: 1.4em 0 2em; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px 8px; }
.bands > .band:nth-child(even) .bedscale { background: var(--paper); }
.bs-row { display: grid; grid-template-columns: 96px 1fr 120px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bs-row:last-child { border-bottom: none; }
.bs-name { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--walnut); }
.bs-track { height: 16px; background: var(--linen); border-radius: 8px; overflow: hidden; }
.bs-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), #d28a7d); border-radius: 8px; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.bs-val { font-size: 0.82rem; color: var(--muted); text-align: right; line-height: 1.3; }
.bs-val b { display: block; color: var(--rose-dark); font-weight: 600; font-size: 0.9rem; }
.bs-cap { font-size: 0.76rem; color: var(--muted); padding: 8px 0 10px; }

/* Notes */
.pin, .rule { border-radius: 10px; padding: 18px 22px; margin: 1.6em 0; font-size: 0.96rem; line-height: 1.65; }
.pin { background: var(--blush-soft); border: 1px solid #ecc9bc; color: #6b3a32; }
.rule { background: var(--card); border: 2px solid var(--walnut); color: var(--walnut-mid); }
.bands > .band:nth-child(even) .rule { background: var(--paper); }
.pin b, .rule b { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 4px; }
.pin b { color: var(--rose); }
.rule b { color: var(--walnut); }

/* Dark checklist band */
.band.dark { background: var(--walnut); color: #fff; }
.band.dark .band-num { color: rgba(239,213,203,0.22); }
.band.dark h2 { color: #fff; }
.band.dark .band-body { color: #e3d4c8; }
.band.dark .band-body strong { color: #fff; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding: 11px 0 11px 36px; border-bottom: 1px solid rgba(255,255,255,0.14); margin: 0; font-size: 1rem; color: #fff; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 18px; height: 18px; border: 2px solid var(--blush); border-radius: 50%; }

/* Article footer + related */
.a-foot { max-width: 860px; margin: 0 auto; padding: 36px 28px 0; }
.entry-footer { font-size: 0.86rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.entry-footer a { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: 0.78rem; font-weight: 500; color: var(--walnut-mid); margin: 2px 4px 2px 0; }
.entry-footer a:hover { background: var(--rose); border-color: var(--rose); color: #fff; text-decoration: none; }
.related { max-width: 1100px; margin: 54px auto 70px; padding: 0 28px; }
.related h3 { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.rel span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); }
.rel a { display: block; margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--walnut); }
.rel a:hover { color: var(--rose); text-decoration: none; }

/* ============================================================
   FOOTER — blush, statement left, link columns right
   ============================================================ */
#colophon { background: var(--blush); border-top: 1px solid #dcb9ac; }
.f-in { max-width: 1240px; margin: 0 auto; padding: 56px 28px 34px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.f-quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.2rem; line-height: 1.2; color: var(--walnut); }
.f-name { display: block; margin-top: 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--rose-dark); }
.f-text { margin-top: 10px; font-size: 0.88rem; color: var(--walnut-mid); max-width: 460px; }
.f-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.f-links h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-dark); margin-bottom: 12px; }
.f-links ul { list-style: none; }
.f-links li { margin-bottom: 7px; }
.f-links a { font-size: 0.92rem; color: var(--walnut-mid); }
.f-links a:hover { color: var(--rose-dark); text-decoration: none; }
.f-bottom { max-width: 1240px; margin: 0 auto; padding: 16px 28px 26px; border-top: 1px solid #dcb9ac; display: flex; justify-content: space-between; gap: 16px; font-size: 0.78rem; color: var(--walnut-mid); }
.f-bottom a { color: var(--walnut-mid); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .top { grid-template-columns: 1fr; gap: 10px; padding: 14px 20px; justify-items: center; }
  .logo { order: -1; }
  .nav-l, .nav-r { justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .cover { grid-template-columns: 1fr; gap: 34px; padding-top: 30px; }
  .cover h1 { font-size: 2.6rem; }
  .a-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .a-hero h1 { font-size: 2.2rem; }
  .masonry { column-count: 2; }
  .f-in { grid-template-columns: 1fr; gap: 34px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .masonry { column-count: 1; }
  .rail-card { flex-basis: 270px; }
  .band-in { padding: 44px 20px 40px; }
  .band-num { font-size: 4.4rem; }
  .band h2 { font-size: 1.8rem; }
  .bs-row { grid-template-columns: 74px 1fr; }
  .bs-val { grid-column: 1 / -1; text-align: left; }
  .f-links { grid-template-columns: 1fr 1fr; }
  .f-bottom { flex-direction: column; }
  .btn.line { margin: 10px 0 0; }
}
