/* ==========================================================================
   Nautubone — style.css
   Editorial health/wellness site. Mobile-first, minimal, fast.
   ========================================================================== */

:root {
  --color-bg: #fbfaf7;
  --color-bg-alt: #f2f5f1;
  --color-surface: #ffffff;
  --color-border: #e4e2da;
  --color-text: #26302b;
  --color-text-muted: #5b6660;
  --color-primary: #2f6f5e;
  --color-primary-dark: #234f43;
  --color-primary-light: #e4efe9;
  --color-accent: #b8875a;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(38, 48, 43, 0.08);
  --shadow-md: 0 8px 24px rgba(38, 48, 43, 0.08);
  --max-width: 1120px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--color-primary-dark); margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-light); }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.96rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 20px 18px; }
.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .header-cta { display: block; margin-top: 14px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 14px 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: var(--color-border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 40px 0 48px;
}
.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero__lede { font-size: 1.1rem; color: var(--color-text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__art { justify-self: center; }
.hero__art svg { width: 100%; max-width: 340px; }
.product-image { display:block; width:auto; max-width:100%; height:auto; object-fit:contain; margin-inline:auto; }
.product-image--hero { max-height:285px; filter:drop-shadow(0 18px 24px rgba(15,23,42,.14)); }
@media (max-width: 859px) { .product-image--hero { max-height:240px; } }
.product-image--section { max-height:320px; filter:drop-shadow(0 12px 18px rgba(15,23,42,.10)); }

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 30px 0 10px; }
.page-hero__lede { color: var(--color-text-muted); font-size: 1.08rem; max-width: 70ch; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__head { max-width: 70ch; margin-bottom: 28px; }
.section__head p { color: var(--color-text-muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.card--icon .icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--color-primary); }
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 62px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 30px; height: 30px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}

/* ---------- Notices / callouts ---------- */
.notice {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  font-size: 0.96rem;
  color: var(--color-text-muted);
}
.notice strong { color: var(--color-text); }
.notice--info { border-color: #cfe0da; background: var(--color-primary-light); }
.notice--warn { border-color: #e7d8bd; background: #faf3e7; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}
.faq-item__q .chev { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--color-primary); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item__a { padding: 0 20px 20px; color: var(--color-text-muted); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

/* ---------- Order / COD section ---------- */
.order-section {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 52px 0;
}
.order-section h2, .order-section h3 { color: #fff; }
.order-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 1fr; } }
.order-info__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.order-info__list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.9); }
.order-info__list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: #b9ddce; }

.order-card {
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.order-card h3 { color: var(--color-text); margin-bottom: 6px; }
.order-card__sub { color: var(--color-text-muted); font-size: 0.94rem; margin-bottom: 20px; }
.order-card__legal { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 16px; margin-bottom: 0; }

/* ---------- Related links ---------- */
.related-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .related-links ul { grid-template-columns: repeat(2, 1fr); } }
.related-links a {
  display: block;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-text);
}
.related-links a:hover { border-color: var(--color-primary); text-decoration: none; color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 44px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 30px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h3 { font-size: 0.95rem; font-weight: 700; color: var(--color-text); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--color-text-muted); font-size: 0.94rem; }
.footer-about p { color: var(--color-text-muted); font-size: 0.92rem; }
.footer-disclaimer {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.footer-disclaimer p { margin-bottom: 0.7em; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.eyebrow-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}
