@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #173a56;
  --navy-deep: #0f2438;
  --terracotta: #c45c26;
  --terracotta-deep: #a34a1c;
  --canvas: #f6f1e8;
  --white: #fffcf7;
  --ink: #1a1714;
  --muted: #6a635b;
  --line: #e6ddd0;
  --shadow: 0 18px 40px rgba(23, 58, 86, 0.08);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1140px;
  --header: 76px;
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

p { margin: 0 0 0.9em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
  border-radius: 10px;
}
.skip:focus { top: 12px; color: white; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy-deep);
  color: #d7e4ef;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar-inner {
  display: flex;
  gap: 18px 28px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 9px 0;
}
.topbar a { color: #d7e4ef; text-decoration: none; }
.topbar a:hover { color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
}
.logo span {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--navy);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-btn,
.nav-link {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 999px;
}
.nav-btn:hover,
.nav-link:hover,
.nav-link.is-active,
.nav-btn.is-active,
.nav-item:hover > .nav-btn {
  background: rgba(23, 58, 86, 0.08);
  color: var(--navy-deep);
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--terracotta); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  z-index: 40;
  box-shadow: var(--shadow);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.dropdown a:hover { background: var(--canvas); color: var(--navy); }

.header-shop { flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terracotta);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--terracotta-deep); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: white; }
.btn-small { padding: 8px 16px; font-size: 15px; }
.btn-full { width: 100%; }
.site-header .btn { background: var(--navy); color: white; }
.site-header .btn:hover { background: var(--navy-deep); color: white; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 36px auto 12px;
  padding: 8px 0 28px;
  background: transparent;
  min-height: 0;
  overflow: visible;
}
.hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--navy);
}
.hero-media img {
  width: 100%;
  height: 480px;
  min-height: 0;
  object-fit: cover;
  filter: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  justify-self: stretch;
}
.hero-copy .lead { color: var(--muted); max-width: 36rem; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; color: var(--ink); }

.eyebrow {
  color: var(--terracotta);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--sans);
}
.lead { font-size: 19px; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.panel { padding: 0; }
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin: 8px auto 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.points article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow);
}
.points article:last-child { border-right: 1px solid var(--line); }
.points article h2 { font-size: 24px; }
.points p { color: var(--muted); margin: 0; }
.points .num,
.points article::before {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 8px;
}

.section { padding: 48px 0 20px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 0;
  padding-bottom: 0;
}
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}
.feature-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  min-height: 0;
  border-radius: 0;
  padding: 16px;
}
.feature-card > div { padding: 8px 22px 22px; display: flex; flex-direction: column; justify-content: flex-start; }
.feature-card h3 { font-size: 26px; }
.price { font-weight: 800; color: var(--navy); font-family: var(--sans); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.know {
  margin: 48px auto;
  background: var(--navy);
  color: #e8eef3;
  padding: 48px 44px;
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  border: 0;
  border-radius: 28px;
}
.know h2 { font-size: clamp(28px, 4vw, 40px); color: white; }
.know a { color: #f3d2c0; }
.know .btn { background: var(--terracotta); color: white; }
.know .btn:hover { background: var(--terracotta-deep); color: white; }
.know .eyebrow { color: #f3d2c0; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  color: white;
  text-decoration: none;
  display: block;
  background: var(--navy);
  border: 0;
  border-radius: var(--radius);
}
.tile img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(15, 36, 56, 0.88));
  font-family: var(--display);
  font-size: 24px;
  color: white;
  display: block;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .body, .card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 22px; margin: 0; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card .meta { color: var(--terracotta); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--sans); font-weight: 800; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
blockquote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: var(--radius);
  padding: 24px 22px 18px;
  box-shadow: var(--shadow);
}
blockquote p { font-family: var(--display); font-size: 22px; line-height: 1.35; font-style: italic; }
blockquote footer { color: var(--muted); font-size: 14px; font-family: var(--sans); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }

.cta-band {
  margin: 40px auto 0;
  padding: 40px 44px;
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-radius: 28px;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; color: white; }
.cta-band p { color: #d7e4ef; margin: 0; }
.cta-band .hero-actions { margin-top: 0; }
.cta-band .btn-ghost { color: white; border-color: rgba(255,255,255,0.45); }
.cta-band .btn-ghost:hover { background: white; color: var(--navy); }

.page-hero { padding: 40px 0 12px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); max-width: 20ch; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.crumbs a { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; padding-bottom: 30px; }
.product-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: var(--white);
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-thumbs button.is-active { border-color: var(--terracotta); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.buy {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  border-top: 6px solid var(--terracotta);
  box-shadow: var(--shadow);
}
.meta { color: var(--terracotta); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--sans); font-weight: 800; }
.buy h1 { font-size: 32px; }
.price-lg { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0 0 6px; font-family: var(--sans); }

.prose h2 { font-size: 28px; margin-top: 1.2em; }
.prose h3 { font-size: 22px; margin-top: 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0.25em 0; }
.prose img.wide {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  margin: 0 0 1.2em;
  border-radius: var(--radius);
}
.ingredients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
}
.ingredients figure { margin: 0; }
.ingredients img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.ingredients figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.note {
  border-left: 4px solid var(--terracotta);
  color: var(--ink);
  font-size: 15px;
  background: var(--white);
  padding: 14px 16px;
  border-radius: 0 14px 14px 0;
}

label { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: 14px; margin-top: 10px; }
.check input { width: auto; margin-top: 4px; }
.totals { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.totals strong { font-size: 17px; }
.form-error { color: #8c3a32; font-size: 14px; margin: 8px 0; min-height: 1.2em; }
.field-error,
input:user-invalid,
select:user-invalid,
textarea:user-invalid { border-color: #8c3a32; background: #fff7f6; }
.how-links { margin: 4px 0 28px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 40px; }
.shop-grid .card img { aspect-ratio: 1; object-fit: contain; background: #fff; padding: 12px; }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 0;
}
details.faq summary { cursor: pointer; font-weight: 700; font-family: var(--display); }
details.faq p { margin: 10px 0 4px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; padding-bottom: 40px; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-left: 0;
  padding-left: 0;
  margin: 8px 0 24px;
}
.timeline article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  box-shadow: var(--shadow);
}
.timeline article::before { display: none; }
.timeline .eyebrow { margin-bottom: 6px; font-size: 22px; letter-spacing: 0; font-family: var(--display); font-weight: 600; text-transform: none; }
.timeline h2 { font-size: 24px; }
.timeline p { color: var(--muted); margin: 0; }

.site-footer {
  margin-top: 48px;
  background: var(--navy-deep);
  color: #d7e4ef;
  padding: 52px 0 18px;
}
.site-footer a { color: #d7e4ef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: white; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 22px; }
.site-footer h2 { font-size: 13px; font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: white; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .logo span { color: white; }
.legal-note { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 26px; padding-top: 14px; font-size: 13px; color: #9eb0bf; }
.copyright { font-size: 13px; color: #9eb0bf; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 36px; }
.related a {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.related img { width: 86px; height: 86px; object-fit: contain; background: #fff; border-radius: 10px; }
.related div { padding-right: 10px; }
.related strong { display: block; font-size: 15px; }

@media (min-width: 901px) {
  .nav-item:hover > .dropdown,
  .nav-item:focus-within > .dropdown { display: block; }
  .buy { position: sticky; top: calc(var(--header) + 16px); }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-shop { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    max-height: calc(100vh - var(--header));
    overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav-btn, .nav-link { text-align: left; width: 100%; border-radius: 10px; color: var(--navy); }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
    min-width: 0;
    background: transparent;
  }
  .dropdown a { color: var(--navy); }
  .dropdown a:hover { background: var(--canvas); color: var(--navy-deep); }
  .nav-item.open > .dropdown { display: block; }
  .hero, .featured, .know, .points, .mosaic, .cards, .quotes, .split, .contact-grid, .foot-grid, .shop-grid, .related, .ingredients, .timeline {
    grid-template-columns: 1fr;
  }
  .feature-card { flex-direction: column; }
  .tile { display: block; }
  .points article { border-right: 1px solid var(--line); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { margin-top: 20px; gap: 24px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 1; grid-row: 2; box-shadow: 8px 8px 0 var(--navy); }
  .hero-media img { height: 320px; }
  .know, .cta-band { padding: 28px 22px; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .topbar-inner { justify-content: flex-start; }
  .mosaic { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
