/* ═══════════════════════════════════════════
   ORIGIN HEALTH — Bioluminescent Depth
   Shared Design System
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0c1423;
  --charcoal:   #141E2E;
  --surface:    #141E2E;
  --surface2:   #1a2540;
  --border:     rgba(255,255,255,0.06);
  --teal:       #0A677C;
  --teal-light: #4DBDD0;
  --teal-glow:  #6DD8E8;
  --offwhite:   #E8EDE9;
  --muted:      #9BB5AF;
  --amber:      #D4884A;
  --amber-l:    #E8A66A;
  --forest:     #0c1423;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--navy); color: var(--offwhite); line-height: 1.6; overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', Georgia, serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
p { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* LAYOUT */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.max-w     { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.max-w-sm  { max-width: 680px;  margin: 0 auto; padding: 0 1.5rem; }
.max-w-xs  { max-width: 560px;  margin: 0 auto; padding: 0 1.5rem; text-align: center; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.75rem 1.625rem; border-radius: 100px; border: none; cursor: pointer; transition: all 0.25s; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--offwhite); box-shadow: 0 0 20px rgba(10,103,124,0.2); }
.btn-primary:hover { background: var(--teal-light); color: var(--navy); box-shadow: 0 0 40px rgba(77,189,208,0.35); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost:hover { border-color: var(--teal); color: var(--offwhite); }
.btn-sm { font-size: 0.6875rem; padding: 0.5rem 1.125rem; }
.btn-lg { font-size: 0.875rem; padding: 0.875rem 2rem; }

/* TYPOGRAPHY */
.label { font-family: 'DM Sans', sans-serif; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-light); }
.section-label { font-family: 'DM Sans', sans-serif; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-light); }
.rule-line { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.rule-line::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--teal); flex-shrink: 0; }
.section-rule { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.section-rule::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--teal); flex-shrink: 0; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.04); } }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.6); } }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* NAV */
nav { position: sticky; top: 0; z-index: 50; background: rgba(12,20,35,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo-text { font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; }
.nav-logo-text .accent { color: var(--teal-light); }
.nav-links { display: flex; align-items: center; gap: 1.625rem; list-style: none; }
.nav-links a { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-light); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--muted); transition: all 0.2s; }
.mobile-menu { display: none; background: rgba(12,20,35,0.98); border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; flex-direction: column; gap: 1rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mobile-menu a:hover { color: var(--offwhite); }
.mobile-divider { height: 1px; background: var(--border); }
@media(max-width: 960px) { .nav-links { display: none; } .nav-actions .btn-ghost { display: none; } .hamburger { display: flex; } }

/* PAGE HERO (inner pages) */
.page-hero { padding: 6rem 0 4rem; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--navy), rgba(20,30,46,0.8)); }
.page-hero-eyebrow { margin-bottom: 1.25rem; }
.page-hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 500; color: var(--offwhite); line-height: 1.08; margin-bottom: 1rem; }
.page-hero h1 em { color: var(--teal-light); font-style: italic; font-weight: 400; }
.page-hero-sub { font-size: 1.0625rem; font-weight: 300; line-height: 1.75; color: rgba(232,237,233,0.55); max-width: 44rem; margin-bottom: 2rem; }
.page-hero-btns { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.breadcrumb { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb span { color: rgba(155,181,175,0.4); }

/* SECTIONS */
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--charcoal); }
.cta-band { padding: 5rem 0; background: var(--navy); border-bottom: 1px solid var(--border); text-align: center; }
.cta-h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 500; color: var(--offwhite); line-height: 1.1; margin-bottom: 1rem; }
.cta-h2 em { color: var(--teal-light); font-style: italic; }
.cta-sub { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; max-width: 36rem; margin: 0 auto 2rem; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.875rem; }

/* CARDS */
.card { background: var(--charcoal); border: 1px solid var(--border); border-radius: 0.625rem; padding: 1.75rem; transition: border-color 0.2s; }
.card:hover { border-color: rgba(10,103,124,0.3); }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.oh-input { width: 100%; background: rgba(20,30,46,0.8); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.375rem; padding: 0.75rem 1rem; font-size: 0.9375rem; color: var(--offwhite); font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.15s; }
.oh-input:focus { border-color: var(--teal); }
.oh-input::placeholder { color: rgba(155,181,175,0.4); }
.oh-select { width: 100%; background: rgba(20,30,46,0.8); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.375rem; padding: 0.75rem 1rem; font-size: 0.9375rem; color: var(--offwhite); font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.15s; cursor: pointer; }
.oh-select:focus { border-color: var(--teal); }
.input-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* TOOL RESULTS */
.tool-result { background: var(--navy); border: 1px solid rgba(10,103,124,0.2); border-radius: 0.5rem; padding: 1.5rem; display: none; }
.tool-result.show { display: block; }
.result-score { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 500; line-height: 1; }
.result-label { font-size: 0.875rem; font-weight: 700; color: var(--offwhite); }
.result-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 1.125rem 0; font-family: 'DM Sans', sans-serif; font-size: 0.9375rem; font-weight: 600; color: var(--offwhite); transition: color 0.15s; gap: 1rem; }
.faq-q:hover { color: var(--teal-light); }
.faq-icon { font-size: 1.25rem; color: var(--teal); flex-shrink: 0; }
.faq-a { display: none; font-size: 0.9375rem; color: var(--muted); line-height: 1.75; padding-bottom: 1.25rem; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* PROCESS STEPS */
.process-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* LOADING */
.loading-spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid rgba(232,237,233,0.2); border-top-color: var(--teal-light); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 0.5rem; }

/* TRUST BAR */
.trust-bar { background: var(--charcoal); border-bottom: 1px solid var(--border); overflow: hidden; }
.trust-items { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; padding: 1rem 1.5rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* FOOTER */
footer { padding: 3.5rem 0 2rem; background: var(--navy); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 500; color: var(--offwhite); margin-bottom: 0.75rem; display: block; }
.footer-brand span { color: var(--teal-light); }
.footer-desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.65; max-width: 20rem; }
.footer-col-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232,237,233,0.5); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.8125rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-copy { font-size: 0.75rem; color: rgba(232,237,233,0.4); margin-bottom: 0.75rem; }
.footer-disc { font-size: 0.6875rem; color: rgba(232,237,233,0.25); line-height: 1.7; max-width: 70rem; }
@media(max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* MOBILE */
@media(max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 4rem 0 3rem; }
  .cta-band { padding: 3.5rem 0; }
}
