/* ============================================================================
   Habitu — textile atelier static site
   Palette: linen ground · indigo brand · clay accent · ink text
   Type: Fraunces (display serif) + Inter (body)
   ========================================================================== */
:root {
  --paper: #f6f3ee;
  --card: #fffdf9;
  --ink: #20212b;
  --body: #45434b;
  --muted: #8a8577;
  --indigo: #2c3566;
  --indigo-deep: #1c2247;
  --clay: #b0693c;
  --line: #e6e0d5;
  --line-strong: #d8d0c2;
  --success: #2f7d54;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(32,33,43,.05), 0 8px 24px rgba(32,33,43,.06);
  --shadow-lg: 0 20px 60px rgba(28,34,71,.14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-deep); box-shadow: 0 8px 22px rgba(28,34,71,.24); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { filter: brightness(.95); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,238,.86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.brand span { color: var(--clay); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--body); position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero .lead { font-size: 19px; color: var(--body); margin-top: 20px; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: linear-gradient(135deg, #eae3d6, #d9d1e0); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0; } }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--body); }

/* value props / steps */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(44,53,102,.08); color: var(--indigo); margin-bottom: 14px; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); }

.step-num { font-family: var(--font-display); font-size: 40px; color: var(--clay); line-height: 1; }

/* ── Fabric cards ────────────────────────────────────────────────────── */
.fabric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .fabric-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fabric-grid { grid-template-columns: 1fr; } }
.fabric-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.fabric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fabric-card .thumb { aspect-ratio: 4/5; background: #eee7db; overflow: hidden; }
.fabric-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.fabric-card .thumb.ph { display: grid; place-items: center; color: var(--muted); }
.fabric-card .body { padding: 16px 18px 20px; }
.fabric-card h3 { font-family: var(--font-display); font-size: 20px; }
.fabric-card .comp { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fabric-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--indigo); background: rgba(44,53,102,.08); padding: 4px 10px; border-radius: 999px; }
.link-clay { color: var(--clay); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band { background: var(--indigo); color: #fff; border-radius: 22px; padding: 52px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta-band p { color: rgba(255,255,255,.82); margin: 14px auto 26px; max-width: 52ch; }

/* ── Product page ────────────────────────────────────────────────────── */
.product { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; padding: 48px 0; }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; } }
.viewer-host { min-height: 420px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel h1 { font-size: 30px; margin-bottom: 6px; }
.spec { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec:last-child { border-bottom: 0; }
.spec b { color: var(--ink); font-weight: 600; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(44,53,102,.35); border-color: var(--indigo); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-ok { background: rgba(47,125,84,.1); border: 1px solid rgba(47,125,84,.3); color: var(--success); border-radius: 10px; padding: 14px 16px; font-size: 14px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 30px; margin-top: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: var(--clay); }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.75); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.5); }

/* utility */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
