/* ================================================================
   Blankets by Bonnie - style.css
   Warm, tactile, handmade. Mobile-first.
   ================================================================ */

:root {
  --navy:      #1f3352;   /* brand ink, from Bonnie's logo */
  --navy-soft: #33496b;
  --cream:     #faf5ee;   /* warm page base */
  --oat:       #efe6d8;
  --sand:      #e6d8c3;
  --blush:     #c9705f;   /* warm terracotta CTA */
  --blush-dk:  #b25b4b;
  --sage:      #8ba68f;
  --ink:       #33302c;   /* body text, warm near-black */
  --ink-soft:  #6c6459;
  --line:      #e3d8c8;
  --white:     #fffdfa;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 14px 40px -18px rgba(47, 38, 24, .45);
  --shadow-sm: 0 6px 20px -12px rgba(47, 38, 24, .4);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
}

/* reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

/* accessibility */
:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: 860px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 650; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  line-height: 1; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blush); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blush-dk); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 238, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: .01em; color: var(--navy); }
.brand-name em { font-style: italic; font-weight: 500; opacity: .8; padding: 0 .12em; }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav a { font-weight: 550; font-size: .98rem; color: var(--navy-soft); position: relative; }
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blush); transition: width .22s ease;
}
.primary-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--navy); color: #fff !important; padding: .55rem 1.15rem; border-radius: 999px; }
.nav-cta:hover { background: var(--navy-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,28,45,.15) 0%, rgba(20,28,45,.35) 45%, rgba(20,28,45,.78) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: 3.2rem 3.6rem; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 650; margin-bottom: .9rem; color: #f4e7d8; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.3rem); margin: 0 0 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: #f6efe6; max-width: 34ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding-block: 0; }
.stat { text-align: center; padding: 2.1rem 1rem; position: relative; }
.stats-grid .stat:not(:nth-child(2n))::after,
.stats-grid .stat::before { content: none; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.1rem, 6vw, 3rem); font-weight: 600; color: #fff; line-height: 1; }
.stat-label { display: block; margin-top: .5rem; font-size: .9rem; color: #cdd6e4; max-width: 22ch; margin-inline: auto; }

/* ---------- section shells ---------- */
.section { padding-block: clamp(3.4rem, 8vw, 6rem); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; color: var(--blush); margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.85rem, 4.5vw, 2.9rem); margin: 0 0 .8rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.collections { background: var(--white); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; /* gallery */ }
.card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--oat); box-shadow: var(--shadow-sm); }
.card-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover img { transform: scale(1.05); }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .95rem .8rem;
  color: #fff; font-family: var(--serif); font-size: 1.02rem; font-weight: 500;
  background: linear-gradient(180deg, transparent, rgba(20,28,45,.72));
  pointer-events: none;
}

/* ---------- split sections ---------- */
.split--cream { background: var(--cream); }
.split--reverse { background: var(--white); }
.split-inner { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split-text h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 1rem; }
.split-text p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 1.6rem; }

/* ---------- reviews ---------- */
.reviews { background: var(--oat); }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.review {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm);
}
.stars { color: #e0a53c; letter-spacing: .12em; margin-bottom: .7rem; font-size: 1.05rem; }
.review p { font-family: var(--serif); font-size: 1.18rem; color: var(--navy); font-style: italic; margin-bottom: 1rem; line-height: 1.45; }
.review cite { font-style: normal; font-weight: 650; color: var(--ink-soft); font-size: .95rem; }

/* ---------- faq ---------- */
.faq { background: var(--cream); }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { margin: 0; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.25rem .25rem; font-family: var(--serif); font-size: 1.12rem; font-weight: 550; color: var(--navy);
}
.acc-icon { position: relative; flex: none; width: 20px; height: 20px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--blush); border-radius: 2px; transition: transform .25s ease; }
.acc-icon::before { top: 9px; left: 0; width: 20px; height: 2.5px; }
.acc-icon::after  { left: 9px; top: 0; width: 2.5px; height: 20px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.acc-panel p { margin: 0; padding: 0 .25rem 1.3rem; color: var(--ink-soft); }

/* ---------- closing ---------- */
.closing { background: var(--navy); color: #fff; text-align: center; padding-block: clamp(3.4rem, 8vw, 5.5rem); }
.closing h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 1rem; }
.closing p { color: #cdd6e4; font-size: 1.14rem; max-width: 42ch; margin: 0 auto 1.9rem; }

/* ---------- contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; flex-direction: column; }
.ci-label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--blush); margin-bottom: .2rem; }
.contact-list a, .contact-list span:not(.ci-label) { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.contact-list a:hover { color: var(--blush); }
.contact-note { color: var(--ink-soft); font-size: .98rem; }

.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 650; font-size: .92rem; color: var(--navy); margin-bottom: .4rem; }
.req { color: var(--blush); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--sand); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px rgba(201,112,95,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.field input[type="file"] { padding: .55rem; background: var(--white); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font-family: var(--sans); font-weight: 600; border: 0; background: var(--navy); color: #fff;
  padding: .5rem .9rem; border-radius: 8px; margin-right: .8rem; cursor: pointer;
}
.field-help { font-size: .84rem; color: var(--ink-soft); margin: .5rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: var(--blush-dk); }
.form-status.is-ok { color: var(--sage); }
.form-success {
  text-align: center; padding: 1.4rem .5rem;
}
.form-success .tick { width: 56px; height: 56px; margin: 0 auto 1rem; display: block; }
.form-success h3 { color: var(--navy); font-size: 1.5rem; margin: 0 0 .5rem; }
.form-success p { color: var(--ink-soft); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #17263f; color: #cdd6e4; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.brand-name--footer { color: #fff; font-size: 1.4rem; }
.footer-brand p { color: #9fb0c8; max-width: 34ch; margin: .6rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; }
.footer-nav a { color: #cdd6e4; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-social .ci-label { color: #7f93b1; }
.social-row { display: flex; gap: .7rem; margin-top: .6rem; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #dfe6f1; transition: background .2s ease, transform .15s ease; }
.social-row a:hover { background: var(--blush); color: #fff; transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.1rem; }
.footer-bottom p { margin: 0; font-size: .86rem; color: #8ea0bd; text-align: center; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(15, 22, 36, .9); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lb-figure img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-figure figcaption { color: #f2eade; margin-top: .9rem; font-family: var(--serif); font-size: 1.05rem; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.28); }

/* ---------- reveal-on-scroll ----------
   Hidden state is gated behind html.js so that without JavaScript
   (and for non-JS crawlers / link-preview tools) all content stays visible. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ================================================================
   RESPONSIVE - tablet & up
   ================================================================ */
@media (min-width: 620px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: rgba(255,255,255,.16); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .split-inner { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-media { order: 2; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   RESPONSIVE - mobile nav
   ================================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 22px 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  }
  .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: .8rem; }
  .primary-nav a:not(.nav-cta)::after { display: none; }
}
