/* ==========================================================================
   Better4.Me — shared stylesheet
   ========================================================================== */

:root {
  --color-primary: #2f5233;
  --color-primary-dark: #203a24;
  --color-primary-light: #eef4ec;
  --color-accent: #b8860b;
  --color-accent-light: #f4e6c4;
  --color-bg: #faf7f0;
  --color-surface: #ffffff;
  --color-text: #24291f;
  --color-text-muted: #5b6259;
  --color-border: #e2ddd0;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(31, 41, 25, 0.08);
  --shadow-md: 0 6px 20px rgba(31, 41, 25, 0.10);
  --max-width: 1180px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -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-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
}

.section {
  padding: 64px 0;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--color-accent);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-primary-dark);
}

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 24px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 0.4em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-art {
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.trust-strip li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 800px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }
}

/* ---------- Category grid ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card .cat-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.category-card .cat-name {
  font-weight: 600;
  display: block;
}

.category-card .cat-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 700;
}

.category-card.is-placeholder {
  cursor: default;
  color: var(--color-text-muted);
}

.category-card.is-placeholder:hover {
  box-shadow: none;
  transform: none;
}

.category-card.is-placeholder .cat-tag {
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Product cards ---------- */

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

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card .product-media {
  background: var(--color-primary-light);
  aspect-ratio: 1 / 1;
}

.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.product-card .product-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-card .product-desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.product-card .product-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.92rem;
}

/* ---------- Value props ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 8px 12px;
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.05rem;
}

.value-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Section variants ---------- */

.section-alt {
  background: var(--color-primary-light);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding: 18px 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .sep {
  margin: 0 6px;
}

/* ---------- Product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  padding: 24px 0 56px;
}

.product-gallery .main-image {
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
}

.product-gallery figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

.badge {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 0.3em;
}

.product-info .product-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.size-chip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.88rem;
  background: var(--color-surface);
}

.size-chip.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.price-note {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.buy-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--color-surface);
  margin-bottom: 28px;
}

.buy-box .btn {
  margin-top: 8px;
}

.buy-box .fulfillment-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Content tabs / detail sections ---------- */

.detail-section {
  padding: 36px 0;
  border-top: 1px solid var(--color-border);
}

.detail-section h2 {
  font-size: 1.4rem;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 560px;
}

.facts-table th,
.facts-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
}

.facts-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 45%;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-list li {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--color-primary-dark);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: var(--color-accent);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 12px 0 0 30px;
  color: var(--color-text-muted);
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary-dark);
  color: #d7ddd2;
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: #b9c2b2;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  color: #a9b3a1;
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #93a08a;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .category-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
