/* ==========================================================================
   Quilts by Mecrafty — styles
   ========================================================================== */

:root {
  --cream: #faf6ef;
  --paper: #ffffff;
  --linen: #f1e9dc;
  --ink: #2a2a33;
  --muted: #6b6672;
  --denim: #2f4a6d;
  --denim-dark: #223753;
  --rust: #c2643f;
  --rust-dark: #a5512f;
  --sage: #8aa38b;
  --mustard: #d9a441;
  --rose: #d98c8c;
  --line: #e4dccd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 42, 51, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--denim); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--linen); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: .6em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Stitched divider */
.stitch { border: 0; border-top: 2px dashed var(--line); margin: 40px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); }
.btn-outline { border-color: var(--denim); color: var(--denim); background: transparent; }
.btn-outline:hover { background: var(--denim); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.logo-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 6px; overflow: hidden; }
.logo-mark span:nth-child(1) { background: var(--denim); }
.logo-mark span:nth-child(2) { background: var(--rust); }
.logo-mark span:nth-child(3) { background: var(--mustard); }
.logo-mark span:nth-child(4) { background: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rust); }
.nav-links .btn { padding: 10px 20px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 4px; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero p.lead { margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: .92rem; color: var(--muted); }
.hero-badges span::before { content: "✓"; color: var(--sage); font-weight: 700; margin-right: 6px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Quilt illustration (placeholder art) ---------- */
.quilt {
  background: var(--qbg, var(--denim));
  padding: 14px; border-radius: 10px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px;
  position: relative;
}
.quilt::after { /* binding stitch */
  content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(255,255,255,.35); border-radius: 6px; pointer-events: none;
}
.block {
  aspect-ratio: 1; border-radius: 3px; display: grid; place-items: center; position: relative; overflow: hidden;
}
.block svg { width: 62%; height: 62%; }
.block.wide { grid-column: span 2; aspect-ratio: auto; }
.quilt[data-style="collage"] .block.wide { aspect-ratio: 2 / 1; }
.block.wide svg { width: 31%; }
.block.tall { grid-row: span 2; aspect-ratio: auto; }
.block .num { position: absolute; font: 700 clamp(.6rem, 1.4vw, 1rem) var(--sans); color: rgba(255,255,255,.9); letter-spacing: .05em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 28px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--rust); color: #fff; font: 700 .95rem var(--sans); display: grid; place-items: center;
}
.step .when { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--denim); background: #e7edf5; padding: 2px 10px; border-radius: 99px; margin-bottom: 10px; }

/* Shirt types */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--paper); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .95rem; }

/* ---------- Pricing ---------- */
.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--rust); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--rust); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 99px;
}
.price-card .dims { color: var(--muted); font-size: .95rem; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--denim); margin: 10px 0 2px; }
.price-card .shirts { font-weight: 600; margin-bottom: 16px; }
.price-card .mini-bed { margin: 8px auto 18px; background: var(--linen); border-radius: 6px; }
.price-card .btn { margin-top: auto; justify-content: center; }
.included { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.included li { padding: 6px 0 6px 28px; position: relative; break-inside: avoid; }
.included li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
@media (max-width: 640px) { .included { columns: 1; } }

table.addons { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.addons th, table.addons td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.addons th { background: var(--linen); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
table.addons td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
table.addons tr:last-child td { border-bottom: 0; }

/* ---------- Availability ---------- */
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.month { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.month .m-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.month .dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 8px; }
.month .dot { width: 14px; height: 14px; border-radius: 3px; background: var(--sage); }
.month .dot.taken { background: var(--line); }
.month .m-status { font-size: .85rem; font-weight: 600; color: var(--sage); }
.month.full .m-status { color: var(--rust); }
.month.full { background: #fbf3ee; }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--rust); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filters button { background: var(--paper); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; font: 500 .95rem var(--sans); cursor: pointer; color: var(--ink); }
.filters button.active { background: var(--denim); color: #fff; border-color: var(--denim); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.g-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.g-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.g-item .g-media { aspect-ratio: 4 / 5; background: var(--linen); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.g-item .g-media img { width: 100%; height: 100%; object-fit: cover; }
.g-item.has-photo .g-media { padding: 0; }
.g-item .g-body { padding: 16px 20px 20px; }
.g-item h3 { font-size: 1.1rem; margin-bottom: 2px; }
.g-item p { color: var(--muted); font-size: .92rem; margin: 0; }
.g-tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--rust); margin-bottom: 4px; }
.placeholder-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }

.lightbox { position: fixed; inset: 0; background: rgba(20,20,26,.88); display: none; place-items: center; z-index: 100; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 85vh; border-radius: 8px; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form-layout > * { min-width: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 28px; margin: 0 0 24px; }
legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; padding: 0 8px; }
legend .n { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--denim); color: #fff; border-radius: 50%; font: 700 .85rem var(--sans); margin-right: 8px; vertical-align: 3px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label, .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.req { color: var(--rust); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d6ccbb; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47, 74, 109, .2); border-color: var(--denim); }
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row, .row-3 { grid-template-columns: 1fr; } }

/* option cards (radio) */
.options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.option { position: relative; display: block; margin: 0 !important; font-weight: 400 !important; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option .opt-body { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 16px; height: 100%; transition: border-color .15s, background .15s; }
.option input:checked + .opt-body { border-color: var(--rust); background: #fdf6f2; }
.option input:focus-visible + .opt-body { outline: 3px solid rgba(194, 100, 63, .3); }
.opt-body strong { display: block; font-size: 1.02rem; }
.opt-body .sub { font-size: .85rem; color: var(--muted); display: block; }
.opt-body .opt-price { font-weight: 700; color: var(--denim); margin-top: 6px; display: block; }
.swatch { margin: 0 !important; font-weight: 500 !important; }
.layout-thumb { display: grid; gap: 3px; margin-bottom: 10px; background: var(--denim); padding: 5px; border-radius: 5px; height: 72px; }
.layout-thumb i { background: #e9dfcf; border-radius: 1px; }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .9rem; background: #fff; }
.swatch span::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.12); }
.swatch input:checked + span { border-color: var(--rust); background: #fdf6f2; }
.swatch input:focus-visible + span { outline: 3px solid rgba(194, 100, 63, .3); }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .97rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--rust); flex: none; }

.month-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.month-pick .opt-body { text-align: center; padding: 12px; }
.month-pick .full .opt-body .sub { color: var(--rust); }

.notice { background: #eef3f8; border-left: 4px solid var(--denim); padding: 14px 18px; border-radius: 8px; font-size: .95rem; margin-top: 14px; }
.notice.warn { background: #fdf3e6; border-color: var(--mustard); }
.hidden { display: none !important; }

/* Summary sidebar */
.summary { position: sticky; top: 96px; }
.summary .card { padding: 24px; }
.summary h3 { font-size: 1.25rem; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.sum-line span:first-child { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; padding-top: 14px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.sum-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.summary .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-head .lead { margin-inline: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--denim); color: #fff; border-radius: 20px; padding: clamp(36px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255,255,255,.25); border-radius: 14px; pointer-events: none; }
.cta-band p { color: #d6e0ec; max-width: 56ch; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; position: relative; z-index: 1; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--denim); }

/* ---------- Testimonials ---------- */
.quote { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.quote-by { font-size: .9rem; color: var(--muted); margin-top: 12px; font-style: normal; font-family: var(--sans); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c6cf; padding: 56px 0 32px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.copyright { border-top: 1px solid #3d3d48; margin-top: 40px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
