/* ChiroStore.net — Site Styles
   Palette: Navy #1F3A5F · Gold #B8860B · Teal #2E8B7A · Light Grey #F5F5F5
   Typography: Lora (headings serif), Inter (body sans)
   ============================================================ */

:root {
  --navy: #1F3A5F;
  --navy-light: #4A6B8A;
  --gold: #B8860B;
  --gold-bright: #D4A52A;
  --teal: #2E8B7A;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #E8E8E8;
  --grey-300: #CCCCCC;
  --grey-500: #888888;
  --grey-700: #555555;
  --charcoal: #333333;
  --white: #FFFFFF;
  --warm-bg: #FFF8E1;
  --teal-bg: #EDF6F4;
  --navy-bg: #EDF4FA;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1180px;
  --radius: 6px;
  --transition: 200ms ease-out;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 2.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}
a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}
.brand {
  display: flex;
  flex-direction: column;
  border: none;
}
.brand:hover { border: none; color: var(--navy); }
.brand-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.brand-divider { display: none; }
.brand-tagline {
  font-size: 0.78rem;
  color: var(--grey-500);
  letter-spacing: 0.02em;
}
.primary-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 0.95rem;
}
.primary-nav a {
  font-weight: 500;
  color: var(--charcoal);
}
.primary-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.primary-nav a.cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
}
.primary-nav a.cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* ---------- HERO ---------- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--white) 0%, var(--grey-100) 100%);
  border-bottom: 1px solid var(--grey-200);
}
.hero h1 {
  font-size: 2.6rem;
  max-width: 820px;
  margin-bottom: 24px;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--grey-700);
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.gold-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 0 32px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.btn-ghost:hover {
  color: var(--gold);
  background: transparent;
  border-color: transparent;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 80px 0;
}
section.tinted { background: var(--grey-100); }
section.dark {
  background: var(--navy);
  color: var(--white);
}
section.dark h1, section.dark h2, section.dark h3 { color: var(--white); }
section.dark .gold-rule { background: var(--gold-bright); }

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--grey-700);
  max-width: 740px;
}

/* ---------- VALUE PROP BAND ---------- */
.value-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 24px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(31, 58, 95, 0.08);
}
.value-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--gold);
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--grey-700);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- THREE PROGRAMS COMPARISON ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.program-card.featured {
  border-top: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(31, 58, 95, 0.1);
}
.program-card .program-tier {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}
.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.program-card .program-tag {
  font-size: 0.92rem;
  color: var(--grey-700);
  margin-bottom: 22px;
  min-height: 44px;
}
.program-card ul {
  list-style: none;
  padding: 0;
  flex-grow: 1;
  margin-bottom: 24px;
}
.program-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.94rem;
}
.program-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 600;
}
.program-card li:last-child { border-bottom: none; }
.program-card .btn { align-self: flex-start; }

/* ---------- HOW IT WORKS STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-200);
}
.step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: -22px;
  left: 28px;
  background: var(--navy);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.step h3 { margin-top: 12px; font-size: 1.15rem; }
.step p { color: var(--grey-700); font-size: 0.95rem; margin: 0; }

/* ---------- CALLOUT BOXES ---------- */
.callout {
  background: var(--navy-bg);
  border-left: 4px solid var(--navy);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 30px 0;
}
.callout.warm { background: var(--warm-bg); border-left-color: var(--gold); }
.callout.teal { background: var(--teal-bg); border-left-color: var(--teal); }
.callout h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
}
.callout p:last-child { margin: 0; }

/* ---------- FORMS ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--gold);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}
.form-group textarea { resize: vertical; min-height: 90px; font-family: var(--font-sans); }
.form-help {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-top: 4px;
}
.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---------- ORDER STATUS ---------- */
.order-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--grey-100);
  padding-bottom: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.order-status-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--teal);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.order-status-badge.processing { background: var(--gold); }
.order-status-badge.canceled { background: var(--grey-500); }
.order-items {
  margin-bottom: 16px;
}
.order-items table {
  width: 100%;
  border-collapse: collapse;
}
.order-items th,
.order-items td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--grey-100);
}
.order-items th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  font-weight: 600;
}
.order-total { text-align: right; font-size: 1.15rem; font-weight: 600; }
.tracking-info {
  background: var(--grey-100);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-top: 14px;
}

/* ---------- FLASH MESSAGES ---------- */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 18px 0;
}
.flash-error {
  background: #FFE8E8;
  border-left: 4px solid #D32F2F;
  color: #6B1414;
}
.flash-success {
  background: var(--teal-bg);
  border-left: 4px solid var(--teal);
  color: #1B5C50;
}
.error-banner {
  background: #FFF3E0;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.error-banner p { margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--grey-200);
  padding: 22px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.faq-item p { margin: 0; color: var(--grey-700); }

/* ---------- TRUST BADGES ---------- */
.trust-band {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.trust-item {
  text-align: center;
  font-size: 0.88rem;
  color: var(--grey-500);
}
.trust-item .label {
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  margin-bottom: 2px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); border: none; }
.site-footer a:hover { color: var(--gold-bright); border: none; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h4 {
  color: var(--gold-bright);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.footer-col p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
}
.footer-col .footer-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  line-height: 1.45;
}
.footer-bottom {
  padding-top: 28px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 6px 0; }
.footer-bottom .statement-explainer {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.85);
}
.footer-bottom .statement-explainer strong { color: var(--gold-bright); }
.footer-bottom .fda-disclaimer {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 22px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .header-inner { height: auto; padding: 16px 0; flex-direction: column; gap: 14px; }
  .primary-nav { gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 0.88rem; }
  .primary-nav a.cta { padding: 8px 14px; }
  .brand-tagline { display: none; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .hero .lede { font-size: 1.05rem; }
  section { padding: 50px 0; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  .value-band, .programs-grid, .steps { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}
