/* ===========================================================
   Little Loom — B2B Baby & Toddler Apparel
   Fresh, soft maternal aesthetic
   =========================================================== */

:root {
  /* Core palette (5 colors) */
  --cream: #f7f3ec;        /* base background */
  --ink: #2f2a24;          /* primary text */
  --sage: #8ca583;         /* primary brand accent */
  --clay: #c87f5e;         /* warm accent */
  --muted: #8a8175;        /* secondary text */

  /* Derived surfaces */
  --surface: #fffdf9;
  --surface-2: #efe8dc;
  --border: #e3dacc;
  --border-soft: #e7e0d4;
  --sage-soft: #e7ede2;
  --clay-soft: #f2e2d8;
  --pink-soft: #f1e2e0;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --shadow: 0 14px 40px -22px rgba(47, 42, 36, 0.4);
  --shadow-sm: 0 6px 20px -14px rgba(47, 42, 36, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }

.text-muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-prose { max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: #423b32; }
.btn--accent { background: var(--sage); color: #fff; }
.btn--accent:hover { background: #7c956f; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--sage);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-serif); font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--sage); }
.nav-links a.active { color: var(--sage); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.ll-language-menu { position: relative; display: inline-flex; align-items: center; }
.ll-language-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ll-language-toggle:hover, .ll-language-menu.open .ll-language-toggle { border-color: var(--sage); color: var(--sage); }
.ll-language-panel { position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px; display: none; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 200; }
.ll-language-menu.open .ll-language-panel { display: flex; }
.ll-language-panel a { padding: 9px 10px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.ll-language-panel a:hover, .ll-language-panel a.is-active { color: var(--sage); background: var(--sage-soft); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.25s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .ll-language-panel { left: 0; right: auto; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}
.hero p { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.hero-badge strong { font-family: var(--font-serif); font-size: 20px; display: block; }
.hero-badge span { font-size: 12px; color: var(--muted); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border-soft);
}
.hero-stats .stat strong {
  font-family: var(--font-serif);
  font-size: 34px;
  display: block;
  color: var(--ink);
}
.hero-stats .stat span { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ---------- Section heading ---------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Category / product grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 19px; }
.card-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage);
}
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.card-meta .moq { font-size: 13px; color: var(--muted); }
.card-link { font-size: 13px; font-weight: 600; color: var(--clay); }

/* soft colored category tiles */
.cat-tile {
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  border: 1px solid var(--border-soft);
  transition: transform 0.2s ease;
}
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile h3 { font-size: 22px; margin-bottom: 6px; }
.cat-tile p { font-size: 14px; color: var(--muted); }
.cat-tile .count { font-size: 13px; font-weight: 600; color: var(--ink); }
.bg-sage { background: var(--sage-soft); }
.bg-clay { background: var(--clay-soft); }
.bg-pink { background: var(--pink-soft); }
.bg-cream { background: var(--surface-2); }

/* ---------- Feature blocks ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.feature .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sage-soft);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature .ic svg { width: 24px; height: 24px; stroke: var(--sage); }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--muted); }

/* ---------- Split block ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
}
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin: 14px 0 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; }
.check-list .dot svg { width: 14px; height: 14px; stroke: var(--sage); }

/* ---------- Banner / CTA ---------- */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}
.cta-band h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(247, 243, 236, 0.7); margin-top: 12px; }
.cta-band .btn--ghost { color: var(--cream); border-color: rgba(247,243,236,0.3); }
.cta-band .btn--ghost:hover { background: rgba(247,243,236,0.1); }
.cta-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } .cta-actions { justify-content: flex-start; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border-soft); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 14px 0 16px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 600px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--sage); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.18s;
}
.chip:hover { border-color: var(--sage); }
.chip.active { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; gap: 30px; } }
.pd-gallery .pd-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; background: var(--surface-2); }
.pd-gallery .pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.pd-thumbs .thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--border-soft); cursor: pointer; opacity: 0.7; transition: 0.18s; }
.pd-thumbs .thumb.active, .pd-thumbs .thumb:hover { opacity: 1; border-color: var(--sage); }
.pd-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 14px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; }
.swatch-row { display: flex; gap: 10px; margin: 14px 0 24px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-success {
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  color: #5d7553;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  display: none;
}
.form-success.show { display: block; }

/* ---------- Info list (contact) ---------- */
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sage-soft); display: grid; place-items: center; }
.info-item .ic svg { width: 20px; height: 20px; stroke: var(--sage); }
.info-item h4 { font-family: var(--font-sans); font-size: 14px; margin-bottom: 2px; }
.info-item p { font-size: 14px; color: var(--muted); }

/* ---------- Logos / certs ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 16px; }
.cert {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px; font-weight: 600;
}
.cert .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--sage-soft); display: grid; place-items: center; }
.cert .ic svg { width: 16px; height: 16px; stroke: var(--sage); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}
.step .num {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--sage);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band .stat strong { font-family: var(--font-serif); font-size: 40px; display: block; color: var(--ink); }
.stat-band .stat span { font-size: 14px; color: var(--muted); }

/* ---------- Fabric blocks ---------- */
.fabric-card { display: grid; grid-template-columns: 200px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 620px) { .fabric-card { grid-template-columns: 1fr; } }
.fabric-card .fabric-media { aspect-ratio: 1/1; }
.fabric-card .fabric-media img { width: 100%; height: 100%; object-fit: cover; }
.fabric-card .fabric-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.fabric-card h3 { font-size: 22px; }
.fabric-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.fabric-tags .t { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--sage-soft); color: #5d7553; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 64px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--cream); margin-bottom: 14px; }
.site-footer p { color: rgba(247, 243, 236, 0.6); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,243,236,0.55); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(247, 243, 236, 0.82); }
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(247, 243, 236, 0.5);
}

/* ---------- Reveal animation ---------- */
 .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
 .reveal.in { opacity: 1; transform: none; }
 /* Safety: never keep content hidden if JS fails or motion is reduced */
 .no-js .reveal { opacity: 1; transform: none; }
 @media (prefers-reduced-motion: reduce) {
   .reveal { opacity: 1; transform: none; transition: none; }
 }
