/* MilSpecWellness — Global Styles */
:root {
  --ms-white: #f7f6f1;
  --ms-sage-light: #e8eedf;
  --ms-sage-mid: #b8c9a0;
  --ms-olive: #4a5e38;
  --ms-olive-dark: #3a4a2c;
  --ms-stone: #d4c9b0;
  --ms-tan: #8a7a5a;
  --ms-dark: #2e3828;
  --ms-cream: #faf9f5;
  --ms-warn: #a13a2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ms-dark);
  background: var(--ms-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  color: var(--ms-dark);
  line-height: 1.2;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.subhead {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: var(--ms-tan);
  font-size: 1.15rem;
  margin-bottom: 1.2em;
}

p { margin-bottom: 1em; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid var(--ms-olive);
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--ms-olive); color: var(--ms-white); }
.btn-primary:hover { background: var(--ms-olive-dark); border-color: var(--ms-olive-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--ms-olive); }
.btn-outline:hover { background: var(--ms-olive); color: var(--ms-white); text-decoration: none; }
.btn-light { border-color: var(--ms-white); color: var(--ms-white); background: transparent; }
.btn-light:hover { background: var(--ms-white); color: var(--ms-olive); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(rgba(46,56,40,0.75), rgba(46,56,40,0.85)),
    url('https://images.unsplash.com/photo-1509316785289-025f5b846b35?w=1600&q=80') center/cover;
  color: var(--ms-white);
  padding: 8rem 0 6rem;
  text-align: center;
}
.hero h1 { color: var(--ms-white); }
.hero .subhead { color: var(--ms-sage-light); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.page-hero {
  background: var(--ms-dark);
  color: var(--ms-white);
  padding: 6rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--ms-white); }
.page-hero p { color: var(--ms-sage-light); max-width: 700px; margin: 0 auto; }

/* Trust bar */
.trust-bar {
  background: var(--ms-sage-light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--ms-sage-mid);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.trust-item {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ms-olive);
}
.trust-item .icon { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }

/* Sections */
.section-alt { background: var(--ms-sage-light); }
.section-dark { background: var(--ms-dark); color: var(--ms-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ms-white); }
.section-stone { background: var(--ms-stone); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 640px; margin: 0 auto; color: var(--ms-tan); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--ms-cream);
  padding: 2rem;
  border: 1px solid var(--ms-sage-mid);
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(46,56,40,0.12); }
.card h3 { color: var(--ms-olive); margin-bottom: 0.5rem; }
.card .card-icon {
  font-size: 2rem; color: var(--ms-olive); margin-bottom: 1rem; display: block;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--ms-olive);
  color: var(--ms-white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--ms-olive);
  color: var(--ms-olive);
}
.badge-tan { background: var(--ms-tan); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; padding: 1rem; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ms-olive); color: var(--ms-white);
  font-family: 'Lora', Georgia, serif; font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--ms-olive);
  color: var(--ms-white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--ms-white); }
.cta-banner p { color: var(--ms-sage-light); max-width: 600px; margin: 0 auto 1.5rem; }

/* Forms */
.form-wrap {
  background: var(--ms-cream);
  padding: 2.5rem;
  border: 1px solid var(--ms-sage-mid);
  border-radius: 4px;
  max-width: 720px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  color: var(--ms-dark);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--ms-sage-mid);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--ms-white);
  color: var(--ms-dark);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ms-olive);
  box-shadow: 0 0 0 3px rgba(74,94,56,0.15);
}
textarea { min-height: 120px; resize: vertical; }
.radio-group { display: flex; gap: 1.5rem; }
.radio-group label { display: inline-flex; align-items: center; gap: 0.4rem; text-transform: none; font-weight: 400; }

.form-notice {
  background: var(--ms-sage-light);
  padding: 1rem;
  border-left: 3px solid var(--ms-olive);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.form-notice .lock::before { content: "🔒 "; }

.hipaa-consent {
  background: var(--ms-white);
  padding: 1rem;
  border: 1px solid var(--ms-sage-mid);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  display: flex; gap: 0.6rem; align-items: flex-start;
}
.hipaa-consent input { margin-top: 0.3rem; }

/* Tables */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.price-card {
  background: var(--ms-cream);
  padding: 2rem;
  border: 1px solid var(--ms-sage-mid);
  border-radius: 4px;
  text-align: center;
}
.price-card.featured { border: 2px solid var(--ms-olive); background: var(--ms-white); }
.price-tier { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--ms-tan); font-weight: 600; }
.price-amount { font-family: 'Lora', Georgia, serif; font-size: 2.5rem; color: var(--ms-olive); margin: 0.5rem 0; }
.price-features { list-style: none; text-align: left; margin: 1.5rem 0; }
.price-features li { padding: 0.4rem 0; border-bottom: 1px solid var(--ms-sage-light); font-size: 0.92rem; }
.price-features li::before { content: "✓ "; color: var(--ms-olive); font-weight: 700; }

table.styled {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
table.styled th, table.styled td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--ms-sage-mid);
}
table.styled th {
  background: var(--ms-olive);
  color: var(--ms-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.styled tr:nth-child(even) { background: var(--ms-sage-light); }

/* FAQ accordion */
.faq-section { margin-bottom: 2rem; }
.faq-section h3 { color: var(--ms-olive); border-bottom: 2px solid var(--ms-sage-mid); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.faq-item {
  border-bottom: 1px solid var(--ms-sage-mid);
  padding: 0.25rem 0;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  color: var(--ms-dark);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--ms-olive); }
.faq-q.active::after { content: "−"; }
.faq-a { display: none; padding: 0 0 1rem; color: var(--ms-tan); }
.faq-a.show { display: block; }

/* Testimonials */
.testimonial {
  background: var(--ms-cream);
  padding: 2rem;
  border-left: 4px solid var(--ms-olive);
  border-radius: 2px;
}
.testimonial-text { font-style: italic; color: var(--ms-dark); margin-bottom: 1rem; }
.testimonial-name { font-weight: 700; color: var(--ms-olive); font-size: 0.9rem; }
.testimonial-meta { color: var(--ms-tan); font-size: 0.82rem; }
.stars { color: #c9a227; letter-spacing: 0.1em; margin-bottom: 0.6rem; }

/* Warning banners */
.warn-banner {
  background: var(--ms-warn);
  color: var(--ms-white);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.disclaimer-banner {
  background: var(--ms-stone);
  padding: 1rem;
  border-left: 4px solid var(--ms-tan);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* Bottom disclaimer */
.bottom-disclaimer {
  background: var(--ms-dark);
  color: var(--ms-sage-light);
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-style: italic;
}

/* States grid */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.state-cell {
  background: var(--ms-cream);
  padding: 0.8rem;
  border: 1px solid var(--ms-sage-mid);
  border-radius: 3px;
  text-align: center;
  font-size: 0.88rem;
}
.state-cell .status {
  display: block; font-size: 0.7rem; text-transform: uppercase;
  color: var(--ms-tan); margin-top: 0.3rem; letter-spacing: 0.05em;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--ms-cream);
  border: 1px solid var(--ms-sage-mid);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.blog-thumb {
  background: var(--ms-sage-light);
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ms-tan); font-size: 0.85rem;
}
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.78rem; color: var(--ms-tan); margin-bottom: 0.5rem; }
.blog-body h3 { font-size: 1.2rem; }
.blog-body .read-more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Team */
.team-card { text-align: center; }
.team-photo {
  width: 120px; height: 120px;
  background: var(--ms-sage-light);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ms-tan);
  border: 3px solid var(--ms-sage-mid);
}

/* Peptide library */
.peptide-card {
  background: var(--ms-cream);
  padding: 1.5rem;
  border: 1px solid var(--ms-sage-mid);
  border-radius: 4px;
}
.peptide-card h3 { color: var(--ms-olive); margin-bottom: 0.3rem; }

/* Lab explainer */
.lab-result {
  background: var(--ms-sage-light);
  padding: 1.5rem;
  border-left: 4px solid var(--ms-olive);
  margin-top: 1.5rem;
  display: none;
}
.lab-result.show { display: block; }
.lab-result h4 { color: var(--ms-olive); margin-bottom: 0.5rem; }
.lab-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ms-sage-mid); }
.lab-item:last-child { border-bottom: none; }
.lab-tag {
  display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; border-radius: 2px; margin-right: 0.4rem;
}
.lab-tag.low { background: #c9a227; color: white; }
.lab-tag.normal { background: var(--ms-olive); color: white; }
.lab-tag.high { background: var(--ms-warn); color: white; }

/* Veterans page */
.vet-hero {
  background: linear-gradient(rgba(46,56,40,0.88), rgba(46,56,40,0.92)),
    url('https://images.unsplash.com/photo-1556075798-4825dfaaf498?w=1600&q=80') center/cover;
  color: var(--ms-white);
  padding: 7rem 0 5rem;
  text-align: center;
}
.vet-hero h1 { color: var(--ms-white); font-size: clamp(2.4rem, 6vw, 4rem); }
.vet-hero .pepmyvet-brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ms-sage-mid);
  margin-bottom: 1rem;
}
.idme-placeholder {
  background: rgba(255,255,255,0.08);
  border: 2px dashed var(--ms-sage-mid);
  padding: 2rem;
  max-width: 420px; margin: 2rem auto;
  text-align: center;
  border-radius: 4px;
}

/* Calendly placeholder */
.calendly-placeholder {
  background: var(--ms-sage-light);
  border: 2px dashed var(--ms-sage-mid);
  padding: 3rem;
  text-align: center;
  color: var(--ms-tan);
  border-radius: 4px;
  margin-top: 2rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--ms-tan); }

/* Responsive helpers */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; }
}
