/* ChocoBloom — design system
   Colours, type, and spacing all flow from :root. Never hardcode a hex
   outside this block — see CLAUDE.md "Design system". */

:root {
  --cocoa: #241611;
  --ivory: #FBF7F2;
  --tint: #F3EBE2;
  --blush: #D98E96;
  --gold: #B98A46;
  --ink: #4A342B;

  --white: #FFFFFF;
  --line: rgba(36, 22, 17, 0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Jost', sans-serif;

  --r: 4px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container: 1120px;
  --shadow: 0 8px 24px rgba(36, 22, 17, 0.08);
  --transition: 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0ms; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--cocoa); margin: 0 0 var(--space-sm); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-2xl) 0; }
.bg-ivory { background: var(--ivory); }
.bg-tint { background: var(--tint); }

/* Section rhythm intro pattern */
.section-intro { max-width: 640px; margin: 0 auto var(--space-lg); text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}
.h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.lede { font-size: 1.05rem; color: var(--ink); opacity: 0.85; margin: 0; }

/* Focus visibility — accessibility floor, do not remove */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blush); color: var(--white); }
.btn-primary:hover { background: #c97a83; }
.btn-secondary { background: transparent; color: var(--cocoa); border-color: var(--cocoa); }
.btn-secondary:hover { background: var(--cocoa); color: var(--ivory); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1fb959; }

/* Logo intro splash */
#logoIntro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
}
.logo-intro-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint);
  box-shadow: var(--shadow);
  transform-origin: center center;
  transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.logo-intro-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#logoIntro.animate {
  background: transparent;
  transition: background-color 500ms ease 300ms;
  pointer-events: none;
}
#logoIntro.animate .logo-intro-circle {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--scale, 1));
}
#logoIntro.hide { display: none; }
@media (prefers-reduced-motion: reduce) {
  #logoIntro { display: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--space-md);
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 68px;
  width: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: var(--space-sm); }
.nav-whatsapp-mobile { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cocoa);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: var(--space-md);
    gap: var(--space-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-secondary,
  .nav-cta .btn-whatsapp { display: none; }
  .nav-whatsapp-mobile { display: block; }
}

/* Hero */
.hero { padding-top: var(--space-2xl); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--space-sm); }
.hero-copy .h2 { text-align: left; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.hero-copy .lede { font-size: 1.15rem; margin-bottom: var(--space-md); }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-image { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy .h2, .hero-copy .lede { text-align: left; }
}

/* Placeholder image tiles — swap for real photos, see CLAUDE.md open work */
.img-placeholder {
  background: linear-gradient(135deg, var(--tint), var(--blush) 160%);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: center;
  padding: var(--space-sm);
  opacity: 0.85;
  aspect-ratio: 4 / 3;
}
.hero-image .img-placeholder { aspect-ratio: 1 / 1; }

/* Facts row */
.facts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.fact-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-md);
  text-align: center;
}
.fact-card strong { display: block; font-family: var(--font-display); color: var(--cocoa); margin-bottom: 0.25rem; }

/* Category / product grid */
.category-block { margin-bottom: var(--space-xl); }
.category-block:last-child { margin-bottom: 0; }
.category-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--line);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.product-card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-3px); }
.product-card-body { padding: var(--space-sm); }
.product-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.product-card p { margin: 0; font-size: 0.85rem; opacity: 0.75; }

.bloom-stack-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
#bases .product-grid {
  position: relative;
  display: block;
  height: 460px;
  margin: 0;
  padding: 0;
}
#bases .product-card {
  position: absolute;
  inset: 0;
  max-width: 360px;
  margin: 0 auto;
  touch-action: none;
  will-change: transform;
  cursor: grab;
}
#bases .product-card:active { cursor: grabbing; }

/* Mould gallery */
.mould-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.mould-card { text-align: center; }
.mould-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.mould-card h4 { margin-top: var(--space-sm); font-size: 1.05rem; }
.mould-card p { font-size: 0.85rem; opacity: 0.8; margin: 0.25rem 0 0; }

/* Size guide */
.size-table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { font-family: var(--font-display); color: var(--cocoa); background: var(--tint); }
tbody tr:last-child td { border-bottom: none; }
.table-note { font-size: 0.85rem; opacity: 0.7; margin-top: var(--space-sm); }

/* Pricing */
.pricing-note {
  background: var(--white);
  border: 1px dashed var(--gold);
  border-radius: var(--r);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}
.price-value { color: var(--gold); font-weight: 500; }

/* How it works steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}
.step { position: relative; padding-left: 2.75rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2rem;
  border-radius: var(--r);
  background: var(--blush);
  color: var(--white);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.step h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.step p { margin: 0; font-size: 0.9rem; opacity: 0.8; }

/* Order configurator */
.configurator { max-width: 720px; margin: 0 auto; }

.configurator-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}
.configurator-progress::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.configurator-progress li {
  position: relative;
  z-index: 1;
  flex: 1;
  list-style: none;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.55;
}
.configurator-progress li::marker { content: ''; display: none; }
.configurator-progress .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--cocoa);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.configurator-progress li.done { opacity: 1; cursor: pointer; }
.configurator-progress li.done .step-num { background: var(--gold); color: var(--white); }
.configurator-progress li.active { opacity: 1; font-weight: 500; }
.configurator-progress li.active .step-num { background: var(--blush); color: var(--white); }

.configurator-summary-strip {
  background: var(--tint);
  border-radius: var(--r);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  margin: 0 0 var(--space-md);
}

.configurator-panel {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
}
.configurator-step-title { font-size: 1.1rem; margin-bottom: var(--space-md); }

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
}
.option-card {
  text-align: left;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ivory);
  box-shadow: var(--shadow);
  font-family: var(--font-body);
  padding: 0;
  transition: border-color var(--transition), transform var(--transition);
}
.option-card:hover { transform: translateY(-2px); }
.option-card.selected { border-color: var(--blush); }
.option-card .img-placeholder { aspect-ratio: 4 / 3; font-size: 0.7rem; border-radius: 0; }
.option-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.option-card-body { padding: 0.75rem; }
.option-card-body h4 { font-size: 0.95rem; margin: 0 0 0.15rem; color: var(--cocoa); }
.option-card-body p { font-size: 0.8rem; opacity: 0.7; margin: 0; }

.size-card-visual {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 1.25rem 0.75rem 0.4rem;
}
.size-card-visual span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blush);
}
.size-card-visual .plus { width: auto; height: auto; border-radius: 0; background: none; color: var(--blush); font-weight: 600; font-size: 0.9rem; }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--cocoa);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--gold); }
.qty-value { font-family: var(--font-display); font-size: 1.1rem; min-width: 1.5rem; text-align: center; }

.option-card:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.configurator-nav { display: flex; justify-content: space-between; margin-top: var(--space-md); }

.review-list { list-style: none; padding: 0; margin: 0 0 var(--space-md); }
.review-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.review-list li:last-child { border-bottom: none; }
.review-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); display: block; }
.review-edit {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: var(--font-body);
}

.form-row { margin-bottom: var(--space-md); }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--cocoa);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ivory);
  color: var(--ink);
}
.form-note { font-size: 0.8rem; opacity: 0.7; margin-top: var(--space-xs); }

/* Reviews — placeholder copy, replace after 15 Aug launch */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.review-card {
  background: var(--white);
  border-radius: var(--r);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}
.review-stars { color: var(--gold); letter-spacing: 0.1em; margin-bottom: var(--space-xs); }
.review-card p { font-style: italic; margin: 0 0 var(--space-sm); }
.review-name { font-size: 0.85rem; font-weight: 500; color: var(--cocoa); font-style: normal; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: var(--space-md) 0; }
.faq-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.faq-item p { margin: 0; font-size: 0.9rem; opacity: 0.85; }

/* Footer */
.site-footer {
  background: var(--cocoa);
  color: var(--ivory);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-col h4 { color: var(--ivory); font-size: 0.95rem; margin-bottom: var(--space-sm); }
.footer-col a {
  display: block;
  color: var(--ivory);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { opacity: 1; }
.footer-col-wide { grid-column: span 1; min-width: 220px; }
.stay-connected-item { margin-bottom: var(--space-sm); }
.stay-connected-item strong { display: block; color: var(--ivory); font-size: 0.9rem; margin-bottom: 0.2rem; }
.stay-connected-item p { color: var(--ivory); opacity: 0.75; font-size: 0.85rem; margin: 0; }
.footer-tagline { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.footer-legal {
  border-top: 1px solid rgba(251, 247, 242, 0.15);
  padding-top: var(--space-md);
  font-size: 0.8rem;
  opacity: 0.65;
  text-align: center;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.06); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cocoa);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r);
  z-index: 100;
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }
