/* ============================================================
   ORIVIA CARE — Global Stylesheet
   Brand: #7b3fa0 purple · Cormorant Garamond + DM Sans
   ============================================================ */

/* ── Design Tokens ── */
:root {
  /* Colors */
  --purple:        #7b3fa0;
  --purple-dark:   #5c2e7a;
  --purple-deeper: #3d1a54;
  --purple-light:  #a05fc0;
  --purple-bright: #c084e0;
  --purple-pale:   #ede0f8;
  --purple-dim:    rgba(123,63,160,.08);
  --purple-dim2:   rgba(123,63,160,.15);

  --bg:     #faf8fd;
  --bg2:    #f3eefa;
  --white:  #ffffff;
  --text:   #1a1128;
  --text2:  #3d2e50;
  --muted:  #8a7a9a;
  --border: #e4d8f0;

  --success: #2d8a5e;
  --danger:  #c0404a;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py: 100px;

  /* Radii */
  --radius:    20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(123,63,160,.07);
  --shadow:    0 4px 32px rgba(123,63,160,.09);
  --shadow-md: 0 8px 48px rgba(123,63,160,.14);
  --shadow-lg: 0 20px 60px rgba(123,63,160,.16);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--sans); }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  line-height: 1.1;
  font-weight: 600;
  color: var(--text);
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; font-family: var(--sans); }
p  { color: var(--text2); font-weight: 300; line-height: 1.75; }

em { font-style: italic; color: var(--purple); }

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 36px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { padding: var(--section-py) 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-header p { font-size: 17px; margin-top: 14px; }

/* ── Utility ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-dim2);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  font-family: var(--sans);
}
.text-purple { color: var(--purple); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  transition: all .22s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,63,160,.28);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123,63,160,.36);
}
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-outline:hover {
  background: var(--purple-dim);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-sm { padding: 20px; border-radius: var(--radius-md); }

/* ── Badges / Tags ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
}
.badge-purple { background: var(--purple-dim2); color: var(--purple); }
.badge-green  { background: rgba(45,138,94,.1); color: var(--success); }
.badge-muted  { background: var(--bg2); color: var(--muted); }

/* ── Forms ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-field label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.form-field label .req { color: var(--purple); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,63,160,.1);
}
.form-control.error { border-color: var(--danger); }
.form-control-error {
  font-size: 12px;
  color: var(--danger);
  display: none;
}
.form-field.has-error .form-control-error { display: block; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-error-banner {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--danger);
  display: none;
  margin-bottom: 14px;
}
.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--purple), #9b50c4);
  border: none;
  border-radius: 99px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
  box-shadow: 0 4px 20px rgba(123,63,160,.28);
  font-family: var(--sans);
}
.submit-btn:hover { opacity: .9; transform: translateY(-1px); }
.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.6;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 70px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,248,253,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(123,63,160,.07);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-link:hover, .nav-link.active {
  color: var(--purple);
  background: var(--purple-dim);
}
.nav-cta {
  margin-left: 8px;
  padding: 9px 22px;
  background: var(--purple);
  color: #fff;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(123,63,160,.24);
  transition: background .18s, transform .15s, box-shadow .18s;
}
.nav-cta:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(123,63,160,.32);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background .18s;
}
.hamburger:hover { background: var(--purple-dim); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  z-index: 199;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: background .15s, color .15s;
}
.mobile-link:hover { background: var(--purple-dim); color: var(--purple); }
.mobile-link.active { color: var(--purple); background: var(--purple-dim); }
.mobile-cta { color: var(--purple); font-weight: 600; margin-top: 6px; }
@media (max-width: 800px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 120px 0 56px;
  background: linear-gradient(160deg, var(--bg2) 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  /* Use box-shadow instead of filter:blur — avoids stacking context */
  box-shadow: 0 0 80px 40px currentColor;
  pointer-events: none;
  opacity: .15;
}
.page-hero-orb-1 {
  width: 420px; height: 420px;
  background: rgba(160,95,192,.12);
  top: -100px; right: -60px;
}
.page-hero-orb-2 {
  width: 280px; height: 280px;
  background: rgba(123,63,160,.07);
  bottom: -40px; left: -40px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.trust-item + .trust-item { border-left: 1px solid var(--border); }
@media (max-width: 640px) {
  .trust-item { border-left: none !important; padding: 6px 12px; }
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-deeper), var(--purple-dark), var(--purple));
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 32px;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer {
  background: var(--purple-deeper);
  color: rgba(255,255,255,.9);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 240px;
  color: rgba(255,255,255,.8);
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--sans);
}
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* Gentle page fade-in, defined here (render-blocking CSS) so it applies from
   the very first paint. Previously this was injected by JS after the page was
   already visible, which snapped the body to opacity:0 and caused a full-page
   blink on every navigation. */
body { animation: pageFadeIn .4s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
.delay-4 { transition-delay: .4s; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
  user-select: none;
}
.faq-card:hover { box-shadow: var(--shadow); border-color: var(--purple-bright); }
.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
}
.faq-q::after {
  content: '＋';
  color: var(--purple);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-card.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  display: none;
  line-height: 1.75;
}
.faq-card.open .faq-a { display: block; }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .25s, transform .25s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stars { color: #f0a500; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple-dim2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 16px; font-weight: 700;
  color: var(--purple);
  flex-shrink: 0;
}

/* ── MEAL PHOTOS ── */
.meal-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg2);
}
.meal-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.meal-photo-card:hover img { transform: scale(1.04); }
.meal-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(28,10,50,.75));
}
.meal-overlay-title { color: #fff; font-size: 13px; font-weight: 600; }
.meal-overlay-sub { color: rgba(255,255,255,.75); font-size: 11px; margin-top: 2px; }

/* ── PROCESS STEPS ── */
.process-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.process-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.process-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.process-step p { font-size: 14px; }

/* ── CHECKLIST ── */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text2);
}
.checklist li:last-child { border-bottom: none; }
.check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--purple-dim2);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── STAT CARDS ── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-val {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ── PULL QUOTE ── */
.pull-quote {
  padding: 18px 22px;
  background: var(--purple-dim);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--purple);
  margin: 20px 0;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  margin: 0;
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn .4s ease both;
}
.success-icon { font-size: 56px; margin-bottom: 16px; }

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 900px) {
  :root { --section-py: 72px; }
  h1 { font-size: clamp(34px, 7vw, 56px); }
}
@media (max-width: 640px) {
  :root { --section-py: 56px; }
  .section-header { margin-bottom: 40px; }
}

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute;
  top: -40px; left: 16px;
  background: var(--purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }
