/* Heartland Healthy Heads - shared design system (orchestrator-owned).
   Page subagents may ONLY append page-scoped rules below, each under a banner
   comment reading page: followed by the slug. Do not edit this shared block. */

:root {
  --purple: #8e1f8e;
  --purple-dark: #741574;
  --purple-band: #9c1c96;
  --green: #8cbe1e;
  --green-dark: #79a417;
  --text: #3f3f3f;
  --text-light: #ffffff;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --radius: 10px;
  --radius-pill: 40px;
  --shadow: 0 4px 18px rgba(0,0,0,0.10);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --maxw: 1180px;
  --font-head: 'Gochi Hand', 'Comic Sans MS', cursive;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --space: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--purple);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover { background: var(--purple-dark); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); color:#fff; }
.btn::after { content: "\27A4"; font-size: 0.8em; }
.btn-white { background: #fff; color: var(--purple); }
.btn-white:hover { background: #f0e6f0; color: var(--purple); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { height: 62px; width: auto; }
.main-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.nav-list > li { position: relative; }
.nav-list a {
  color: #4a4a4a;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  display: inline-block;
}
.nav-list a:hover, .nav-list a.active { color: var(--purple); text-decoration: none; }
.nav-list a.active { border-bottom: 2px solid var(--green); }

/* dropdown submenu */
.has-sub > .sub {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 210px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1200;
}
.has-sub:hover > .sub,
.has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: hhh-fadeIn 0.25s ease both;
}
.has-sub > .sub li { padding: 0; }
.has-sub > .sub a { display: block; padding: 8px 18px; font-size: 0.9rem; }
.has-sub > a::after { content: " \25BE"; color: var(--green); }

.btn-contact {
  background: var(--purple);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-contact:hover { background: var(--purple-dark); text-decoration: none; color: #fff; transform: translateY(-2px); }

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

/* ---------- Page hero band (interior pages) ---------- */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ddd;
}
.page-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero .page-hero-title {
  position: relative;
  z-index: 1;
  color: var(--purple);
  font-size: 3.4rem;
  text-align: center;
  text-shadow: 0 1px 10px rgba(255,255,255,0.6);
}

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: #fff;
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  max-width: var(--maxw);
  margin: 0 auto 24px;
}
.footer-logo {
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  width: 300px;
  height: auto;
}
.footer-financing { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-financing img { width: 210px; height: auto; border-radius: 4px; }
.financing-placeholder {
  width: 210px;
  aspect-ratio: 227 / 90;
  background: #2b6fb0;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  padding: 8px;
}
.serving-title { color: #fff; text-align: center; font-size: 2.6rem; margin: 10px 0 20px; }
.serving-list {
  list-style: none;
  margin: 0 auto 24px;
  padding: 0 24px;
  max-width: var(--maxw);
  columns: 6;
  column-gap: 24px;
  font-size: 0.8rem;
}
.serving-list li { break-inside: avoid; margin-bottom: 4px; color: #fff; }
.serving-list li::before { content: "\2022  "; }
.copyright { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.9); margin: 12px 0 0; }

/* ---------- Forms (match the original Wix Forms styling) ---------- */
.hhh-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 19px;
  max-width: 781px;
  margin: 0 auto;
  color: #000;
}
.hhh-form .f-field { min-width: 0; }
.hhh-form .f-full { grid-column: 1 / -1; }
.hhh-form label, .hhh-form legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  color: #000;
}
.hhh-form .req { font-size: 11px; margin-left: 2px; }
.hhh-form input[type="text"], .hhh-form input[type="email"], .hhh-form input[type="tel"],
.hhh-form input[type="date"], .hhh-form textarea {
  display: block;
  width: 100%;
  height: 55px;
  padding: 0 22px;
  background: rgba(128, 0, 128, 0.1);
  border: 1px solid #800080;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #000;
}
.hhh-form textarea { height: 108px; padding: 14px 22px; resize: vertical; }
.hhh-form input[data-date] {
  padding-right: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-opacity='.55' d='M1.5 2.5h13v12h-13zM1.5 5.5h13'/%3E%3Cpath fill='%23000' fill-opacity='.55' d='M4 8h2v1.5H4zm3 0h2v1.5H7zm3 0h2v1.5h-2zM4 11h2v1.5H4zm3 0h2v1.5H7zm3 0h2v1.5h-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}
.hhh-form input[data-date]::-webkit-calendar-picker-indicator { opacity: 0; }
.hhh-form input:focus, .hhh-form textarea:focus { outline: none; border-width: 2px; }
.hhh-form input::placeholder { color: #000; opacity: 1; }
.hhh-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hhh-form .f-options { display: grid; gap: 8px; }
.hhh-form .f-options.f-inline { grid-template-columns: 1fr 1fr; }
.hhh-form .f-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}
.hhh-form .f-choice input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.hhh-form .f-choice .f-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid #800080;
  border-radius: 50%;
  background: rgba(128, 0, 128, 0.1);
}
.hhh-form .f-choice input:checked + .f-dot { background: #800080; box-shadow: inset 0 0 0 3px #f2e5f2; }
.hhh-form .f-choice input:focus-visible + .f-dot { outline: 2px solid #800080; outline-offset: 2px; }
.hhh-form .f-submit {
  width: 144px;
  height: 50px;
  border: 0;
  border-radius: 7px;
  background: #800080;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hhh-form .f-submit:hover { background: #88aa00; }
.hhh-form .f-actions { grid-column: 1 / -1; }
.hhh-form .f-actions.f-center { text-align: center; }
.hp-field { position: absolute; left: -9999px; overflow: hidden; height: 0; width: 0; }
@media (max-width: 700px) {
  .hhh-form { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
@keyframes hhh-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hhh-fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* On-load entrance reveals: element ALWAYS ends visible (animation always runs) */
.reveal { animation: hhh-fadeInUp 0.7s ease both; }
.reveal-2 { animation: hhh-fadeInUp 0.7s ease 0.15s both; }
.reveal-3 { animation: hhh-fadeInUp 0.7s ease 0.3s both; }

/* ---------- Swiper tweaks ---------- */
.swiper { width: 100%; padding-bottom: 10px; }
.swiper-button-next, .swiper-button-prev { color: #fff; }
.swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.swiper-pagination-bullet-active { opacity: 1; background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  h1, .page-hero .page-hero-title { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  .nav-toggle { display: block; }
  .main-nav .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 12px 24px;
    gap: 6px;
    box-shadow: var(--shadow);
  }
  .main-nav.open .nav-list { display: flex; }
  .has-sub > .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 4px 0 4px 16px;
  }
  .serving-list { columns: 2; }
  .footer-top { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-2, .reveal-3 { opacity: 1 !important; transform: none !important; }
}
