/* Saitex Home styles — design tokens, base, and shared components */

:root {
  --ground: #EAEDEF;      /* cool chambray paper */
  --ground-2: #E1E5E8;    /* slightly deeper panel */
  --ink: #16202E;         /* deep ink navy */
  --ink-soft: #3C4657;
  --indigo: #27407A;      /* signature */
  --indigo-deep: #1B2E5A;
  --ochre: #C0873C;       /* warm accent */
  --paper: #F3F5F6;       /* near-white for cards on indigo */
  --line: rgba(22,32,46,0.14);

  --font-display: "Playfair Display", "Didot", "Hoefler Text", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Avenir", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --step: clamp(2.2rem, 6vw, 4.4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: 0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ochre); font-weight: 600;
}
.eyebrow.on-dark { color: #E4B871; }

/* buttons */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--indigo); background: var(--indigo);
  color: #fff; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.btn.ghost { background: transparent; color: var(--indigo); }
.btn.ghost:hover { background: var(--indigo); color: #fff; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* announcement */
.announce {
  background: var(--indigo-deep); color: #DCE3F1; text-align: center;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 16px;
}
.announce b { color: #E4B871; font-weight: 600; }

/* header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(234,237,239,0.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.16em; }
.brand .light { color: var(--indigo); }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--indigo); }
.nav-tools { display: flex; align-items: center; gap: 18px; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cart { color: var(--ink-soft); }
.burger { display: none; background: none; border: 0; cursor: pointer; font-size: 1.4rem; color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 82vh; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(24px, 5vw, 84px); }
.hero-copy h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); line-height: 1.02; margin: 20px 0 10px; }
.hero-copy h1 em { font-style: italic; color: var(--indigo); }
.hero-copy p.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin: 6px 0 30px; }
.hero-form { display: flex; gap: 10px; max-width: 430px; flex-wrap: wrap; }
.hero-form input {
  flex: 1 1 220px; padding: 15px 16px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
}
.hero-form input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }
.hero-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 14px; letter-spacing: 0.02em; }
.hero-canvas-wrap { position: relative; background: var(--indigo-deep); overflow: hidden; }
#weave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-swatch-label {
  position: absolute; left: 26px; bottom: 22px; color: #C7D2EC;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-swatch-label b { color: #E4B871; font-weight: 600; }

/* generic section spacing */
section { padding: var(--step) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; margin: 14px 0 0; }

/* story */
.story { background: var(--ground-2); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.story-grid h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
.story-grid p { color: var(--ink-soft); }
.swatch { aspect-ratio: 4 / 3; border: 1px solid var(--line); }

/* collections */
.coll-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.coll-card { cursor: pointer; }
.coll-card .swatch { aspect-ratio: 3 / 4; transition: transform .5s ease; }
.coll-card:hover .swatch { transform: scale(1.02); }
.coll-card h3 { font-size: 1.3rem; margin: 16px 0 2px; }
.coll-card span { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* bestsellers */
.best { background: var(--indigo-deep); color: #EAEFF8; }
.best .eyebrow { color: #E4B871; }
.best h2 { color: #fff; }
.best .section-head p { color: #B9C6E0; }
.best-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod .swatch { aspect-ratio: 1 / 1; border-color: rgba(255,255,255,0.16); }
.prod h3 { color: #fff; font-size: 1.12rem; margin: 14px 0 2px; }
.prod .price { font-size: 0.85rem; color: #A9B8D6; letter-spacing: 0.04em; }

/* craft band */
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.craft-item .glyph {
  width: 46px; height: 46px; margin: 0 auto 16px; border: 1px solid var(--ochre);
  border-radius: 50%; display: grid; place-items: center; color: var(--ochre);
}
.craft-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.craft-item p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 auto; max-width: 30ch; }

/* newsletter */
.news { background: var(--indigo); color: #fff; text-align: center; }
.news h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.news p { color: #C9D5EE; max-width: 48ch; margin: 14px auto 28px; }
.news-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.news-form input {
  flex: 1 1 240px; padding: 15px 16px; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font-body); font-size: 0.95rem;
}
.news-form input::placeholder { color: #B9C6E0; }
.news-form input:focus { outline: 2px solid #E4B871; }
.news-form .btn { background: #E4B871; border-color: #E4B871; color: var(--indigo-deep); }
.news-form .btn:hover { background: #d8a856; border-color: #d8a856; }
.form-msg { margin-top: 16px; font-size: 0.9rem; min-height: 1.2em; color: #E4B871; letter-spacing: 0.04em; }

/* instagram */
.ig-head { text-align: center; margin-bottom: 34px; }
.ig-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ig-grid .swatch { aspect-ratio: 1 / 1; }

/* footer */
footer { background: var(--ink); color: #AEB7C4; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
footer .brand { color: #fff; margin-bottom: 14px; }
footer p { font-size: 0.92rem; max-width: 34ch; }
footer h4 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #E4B871; margin: 0 0 16px; font-family: var(--font-body); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; font-size: 0.92rem; }
footer a:hover { color: #fff; }
footer .mail { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 0.78rem; letter-spacing: 0.06em; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-canvas-wrap { min-height: 300px; order: -1; }
  .coll-grid, .best-row { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .story-grid, .craft-grid, .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-links { display: none; }
  .burger { display: block; }
}
@media (max-width: 520px) {
  .coll-grid, .best-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.nav-links.open {
  display: flex; position: absolute; top: 68px; left: 0; right: 0;
  flex-direction: column; gap: 0; background: var(--ground);
  border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
}
.nav-links.open li { padding: 10px 0; border-top: 1px solid var(--line); }

a:focus-visible, .burger:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
