/* ============================================
   Materni — Brand Stylesheet
   Colours (from brand sheet):
   Grey   Pantone 4278 C  #7E7E82
   Tan    Pantone 7506 C  #EFDBB2
   Coral  Pantone 2032 C  #D05A57
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --coral: #D05A57;
  --coral-dark: #B84744;
  --tan: #EFDBB2;
  --tan-light: #F8F0DD;
  --tan-soft: #FBF6EA;
  --grey: #7E7E82;
  --ink: #46454A;
  --ink-soft: #6b6a6f;
  --cream: #FDFBF6;
  --white: #FFFFFF;

  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 30px rgba(126, 126, 130, 0.14);
  --shadow-card: 0 6px 20px rgba(126, 126, 130, 0.12);

  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--coral);
  margin-bottom: 0.9em;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(208, 90, 87, 0.32);
}
.btn-primary:hover { background: var(--coral-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--grey);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }

.btn-light {
  background: var(--white);
  color: var(--coral);
  box-shadow: var(--shadow-card);
}
.btn-light:hover { background: var(--tan-light); }

.btn-sm { padding: 0.6em 1.3em; font-size: 0.88rem; }

/* ---------- Top banner ---------- */
.top-banner {
  background: var(--grey);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(126, 126, 130, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--coral); border-color: var(--coral); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, var(--tan-light) 0%, var(--cream) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6em;
}

.flag-icon {
  width: 18px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(126,126,130,0.15);
}

.amazon-choice-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 1px -3px;
  background: #161D26;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: opacity 0.15s ease;
}
.amazon-choice-badge:hover { opacity: 0.88; }

.retailer-logo-badge {
  padding: 6px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.retailer-logo-badge:hover {
  border-color: rgba(208, 90, 87, 0.4);
  transform: translateY(-1px);
}
.retailer-logo-badge img {
  height: 18px;
  width: auto;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid rgba(126,126,130,0.18);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }

/* ---------- Image placeholder / frame system ----------
   Drop a real photo at the referenced path and it will
   automatically replace this placeholder — no code edits needed. */
.img-frame {
  position: relative;
  background: linear-gradient(135deg, var(--tan) 0%, var(--tan-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  min-height: 220px;
}
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame .img-label {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}
.img-frame .img-label svg { width: 30px; height: 30px; margin-bottom: 8px; opacity: 0.55; }

.hero-image .img-frame { aspect-ratio: 4 / 5; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tan { background: var(--tan-soft); }
.section-white { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 3em;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Mission strip ---------- */
.mission-strip {
  background: var(--grey);
  color: var(--white);
  padding: 60px 0;
}
.mission-strip h2 { color: var(--white); }
.mission-strip .lede { color: rgba(255,255,255,0.85); }
.mission-strip .container { text-align: center; max-width: 780px; }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
}
.card .icon-badge svg { width: 22px; height: 22px; stroke: var(--coral-dark); }

/* ---------- Product cards ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.product-card .img-frame { border-radius: 0; aspect-ratio: 1 / 1; box-shadow: none; }
.product-card .product-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product-card .product-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 0.8em;
}
.tag-available { background: rgba(208, 90, 87, 0.12); color: var(--coral-dark); }
.tag-soon { background: rgba(126, 126, 130, 0.14); color: var(--ink-soft); }

.product-card .product-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 1.2em; }

.retailer-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 0.6em; }
.retailer-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid rgba(126,126,130,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a.retailer-pill:hover { border-color: var(--coral); color: var(--coral-dark); }

/* ---------- Featured split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media .img-frame { aspect-ratio: 4 / 5; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--tan) 0%, var(--tan-light) 100%);
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide .img-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}
.carousel-arrow svg { width: 15px; height: 15px; }
.carousel-arrow:hover { background: var(--coral); color: var(--white); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 2;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.9); }
.carousel-dot.active { background: var(--coral); transform: scale(1.3); }

.feature-list { list-style: none; margin: 1.4em 0; padding: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.7em;
  font-weight: 600;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
}

/* ---------- Letter callout (About) ---------- */
.letter {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  box-shadow: var(--shadow-soft);
  max-width: 720px;
  margin: 0 auto;
  border-top: 4px solid var(--coral);
}
.letter p { color: var(--ink-soft); }
.letter .letter-sign {
  margin-top: 1.6em;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Values grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-pill {
  text-align: center;
  padding: 26px 16px;
  background: var(--tan-soft);
  border-radius: var(--radius-md);
}
.value-pill .word {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--coral-dark);
  display: block;
  margin-top: 0.4em;
}

/* ---------- Timeline (About journey) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--tan);
}
.timeline-item { position: relative; padding-left: 56px; margin-bottom: 2.2em; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: 10px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--tan-soft);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--coral-dark);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-info-card {
  background: var(--grey);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card .contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1.3em;
}
.contact-info-card .contact-line svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--tan); }
.contact-info-card a:hover { color: var(--tan); }

.social-row { display: flex; gap: 10px; margin-top: 1.6em; }
.footer-grid .social-row { margin-top: 14px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.social-row a svg { width: 17px; height: 17px; stroke: var(--white); }
.social-row a:hover { background: var(--coral); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(126,126,130,0.25);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--cream);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--coral);
}
.form-row textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8em; }

.form-success {
  display: none;
  background: rgba(208, 90, 87, 0.1);
  border: 1px solid rgba(208, 90, 87, 0.3);
  color: var(--coral-dark);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

.faq-item { border-bottom: 1px solid rgba(126,126,130,0.18); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 20px 2px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--coral-dark); }
.faq-item.open .faq-question { color: var(--coral-dark); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--coral);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-answer > div { overflow: hidden; min-height: 0; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { margin: 0; padding: 0 2px 20px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */
.site-footer {
  background: #38373b;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { color: var(--white); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6em; display:flex; align-items:center; gap:8px; }
.footer-grid h5 { color: var(--white); font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.7em; }
.footer-grid a:hover { color: var(--tan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 60px;
  background: linear-gradient(180deg, var(--tan-light) 0%, var(--cream) 100%);
  text-align: center;
}
.page-hero .eyebrow { }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1em; }
.breadcrumb a:hover { color: var(--coral); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero load-in (page load, not scroll-triggered) ---------- */
@keyframes loadIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.load-in {
  opacity: 0;
  animation: loadIn 0.5s ease both;
}
.load-in.load-in-delay {
  animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .load-in {
    opacity: 1;
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-text { order: initial; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 16px;
    box-shadow: var(--shadow-soft);
  }
  .nav.open .nav-actions .btn { display: inline-flex; margin-top: 4px; }
  .nav.open .nav-actions { flex-direction: column; align-items: flex-start; }
  .grid-3 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .letter { padding: 34px 26px; }
  .cta-banner { padding: 40px 26px; }
}
