/* ==========================================================================
   Stelimasa Health — stelimasahealth.com
   style.css
   Pure CSS, mobile-first. Brand tokens from the design system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --deep-green: #0C5C3A;
  --deep-green-dark: #094a2f;
  --warm-gold: #C9A84C;
  --warm-gold-dark: #b3923c;
  --warm-cream: #FAF8F4;
  --dark-charcoal: #1A1A1A;
  --soft-mint: #E8F5EE;
  --off-white: #F5F2ED;
  --mid-grey: #555555;
  --soft-teal: #B2D8CC;
  --white-on-dark: #FFFFFF;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --maxw: 1140px;
  --gap: 1.5rem;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(12, 92, 58, 0.08);
  --shadow-hover: 0 8px 28px rgba(12, 92, 58, 0.16);
  --transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px minimum */
  line-height: 1.65;
  color: var(--dark-charcoal);
  background-color: var(--warm-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-green);
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--deep-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--warm-gold-dark); }

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

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

.section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subheading {
  text-align: center;
  color: var(--mid-grey);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep-green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background-color: var(--warm-gold);
  color: var(--dark-charcoal);
}
.btn-gold:hover {
  background-color: var(--warm-gold-dark);
  color: var(--dark-charcoal);
}

.btn-green {
  background-color: var(--deep-green);
  color: #fff;
}
.btn-green:hover {
  background-color: var(--deep-green-dark);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--deep-green);
  border-color: var(--deep-green);
}
.btn-outline:hover {
  background-color: var(--deep-green);
  color: #fff;
}

.btn-full { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--warm-cream);
  border-bottom: 1px solid var(--soft-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--deep-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover { color: var(--deep-green); }
.brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--deep-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Real logo image (header). Falls back to .brand-mark text if image missing. */
.brand .brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--deep-green);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Mobile: collapsed menu */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--warm-cream);
  border-bottom: 1px solid var(--soft-teal);
  padding: 0.5rem 1.25rem 1rem;
}
.nav-menu.is-open { display: flex; }
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--off-white);
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--deep-green); }
.nav-menu .nav-shop {
  color: var(--deep-green);
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .nav-menu a {
    padding: 0.25rem 0;
    border: 0;
  }
  .nav-menu .nav-shop {
    background: var(--deep-green);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius);
  }
  .nav-menu .nav-shop:hover { background: var(--deep-green-dark); color: #fff; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--deep-green);
  background-image:
    linear-gradient(rgba(12, 92, 58, 0.82), rgba(12, 92, 58, 0.82)),
    url('../images/hero-stelimasahealth.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.25rem;
}
@media (min-width: 768px) {
  .hero { padding: 7rem 1.25rem; }
}

.hero-inner { max-width: 46rem; margin: 0 auto; }

/* SEO H1 — present, styled as the gold eyebrow above the brand headline */
.hero h1 {
  color: var(--warm-gold);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-headline {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--soft-teal);
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   8. Icon strip (value pillars)
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  background: var(--warm-cream);
  border: 1px solid var(--soft-teal);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.pillar .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--deep-green);
}
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--mid-grey); margin: 0; }

/* --------------------------------------------------------------------------
   9. Guide cards
   -------------------------------------------------------------------------- */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 720px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.guide-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Gradient header panel — volume tag + icon, no photo required */
.guide-card .card-header {
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  color: #fff;
  background: var(--card-gradient, linear-gradient(135deg, var(--deep-green), var(--deep-green-dark)));
}
.guide-card .card-header .card-vol-tag {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.guide-card .card-header .card-icon {
  width: 44px;
  height: 44px;
  color: #fff;
  opacity: 0.95;
  align-self: flex-end;
}

/* Gradient tokens per volume */
.gradient-sleep  { --card-gradient: linear-gradient(135deg, #1B2D59, #2a4180); }
.gradient-gut    { --card-gradient: linear-gradient(135deg, #0C8A56, #0a6e45); }
.gradient-calm   { --card-gradient: linear-gradient(135deg, #5a8a6a, #6fa182); }
.gradient-thrive { --card-gradient: linear-gradient(135deg, #c4607a, #E07A9A); }

.guide-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.guide-card .card-vol {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gold-dark);
  margin-bottom: 0.35rem;
}
.guide-card h3 { margin-bottom: 0.6rem; }
.guide-card .card-desc { color: var(--mid-grey); flex: 1; }
.guide-card .card-byline {
  font-size: 0.8rem;
  color: var(--mid-grey);
  font-style: italic;
  margin: 0.9rem 0 1.1rem;
}
.guide-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   10. Newsletter strip
   -------------------------------------------------------------------------- */
.newsletter {
  background: var(--deep-green);
  color: #fff;
  text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--soft-teal); }
.newsletter .newsletter-inner { max-width: 40rem; margin: 0 auto; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 1.5rem auto 1rem;
}
@media (min-width: 560px) {
  .newsletter-form { flex-direction: row; }
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--dark-charcoal);
}
.newsletter-form input[type="email"]:focus {
  outline: 3px solid var(--warm-gold);
  outline-offset: 1px;
}
.newsletter .disclaimer {
  font-size: 0.85rem;
  color: var(--soft-teal);
  margin: 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   11. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--soft-mint);
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}
.trust-list li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--deep-green);
}
.trust-list .icon { width: 38px; height: 38px; color: var(--deep-green); }

/* --------------------------------------------------------------------------
   12. Editorial standards panel
   -------------------------------------------------------------------------- */
.editorial-panel {
  background: var(--soft-mint);
}
.editorial-panel .panel-inner {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--warm-cream);
  border: 1px solid var(--soft-teal);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.editorial-panel h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: 0.75rem; }
.editorial-panel p { color: var(--dark-charcoal); margin-bottom: 1rem; }
.editorial-panel .panel-link { font-weight: 600; }

/* --------------------------------------------------------------------------
   13. About snippet
   -------------------------------------------------------------------------- */
.about-snippet { background: var(--off-white); }
.about-snippet .about-inner { max-width: 44rem; margin: 0 auto; text-align: center; }
.about-snippet p { color: var(--dark-charcoal); font-size: 1.05rem; }
.about-snippet .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   14. Generic content pages
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--deep-green);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: var(--soft-teal); max-width: 40rem; margin: 0 auto; }

.breadcrumb {
  background: var(--off-white);
  font-size: 0.9rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0;
  margin: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; color: var(--mid-grey); }

.prose { max-width: 46rem; margin: 0 auto; }
.prose h2 { margin: 2rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--dark-charcoal); }
.prose ul { margin-bottom: 1rem; }
.prose .byline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--mid-grey);
  border-top: 1px solid var(--soft-teal);
  margin-top: 2.5rem;
  padding-top: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--deep-green);
}
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--soft-teal);
  border-radius: var(--radius);
  background: #fff;
  color: var(--dark-charcoal);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--deep-green);
}
.contact-form textarea { min-height: 150px; resize: vertical; }

.info-card {
  background: var(--soft-mint);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.info-card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* FAQ */
.faq { max-width: 46rem; margin: 2.5rem auto 0; }
.faq details {
  background: #fff;
  border: 1px solid var(--off-white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
}
.faq summary {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--deep-green);
  cursor: pointer;
}
.faq details p { margin-top: 0.75rem; color: var(--mid-grey); }

/* Blog */
.blog-cta { text-align: center; max-width: 40rem; margin: 0 auto; }
.blog-cta .btn { margin-top: 1.5rem; }

/* 404 */
.notfound {
  text-align: center;
  padding: 5rem 1.25rem;
  max-width: 38rem;
  margin: 0 auto;
}
.notfound .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-charcoal);
  color: #d8d8d8;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.site-footer a { color: #d8d8d8; text-decoration: none; }
.site-footer a:hover { color: var(--warm-gold); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-brand .brand { color: #fff; }
.footer-brand .brand .brand-mark { background: var(--warm-gold); color: var(--dark-charcoal); }

/* Footer icon mark — logo image sits in a white circle on the dark footer */
.footer-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.footer-icon-circle img { width: 32px; height: 32px; object-fit: contain; display: block; }
.footer-brand p { margin-top: 0.75rem; color: #b8b8b8; max-width: 22rem; }

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }

.social-list {
  list-style: none;
  display: flex;
  gap: 0.85rem;
  padding: 0;
  margin: 0.5rem 0 0;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  border-radius: 50%;
  transition: background-color var(--transition), border-color var(--transition);
}
.social-list a:hover { background: var(--deep-green); border-color: var(--deep-green); }
.social-list .icon { width: 20px; height: 20px; color: #fff; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: #9a9a9a;
  max-width: 60rem;
}
.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 0;
  margin: 0;
}
.footer-copyright { font-size: 0.85rem; color: #9a9a9a; }

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover,
  .guide-card:hover { transform: none; }
}
