/* =============================================================================
   Carovacare — Site Stylesheet
   ========================================================================== */

:root {
  --navy: #1F3864;
  --navy-deep: #16294a;
  --teal: #2E7D6E;
  --teal-light: #5FA895;
  --gold: #D98E30;
  --amber-bg: #FFF3E2;
  --amber-fg: #B4700C;
  --red: #C0392B;
  --off: #F5F8F7;
  --ink: #24303D;
  --muted: #6B7A82;
  --line: #E7EEEC;
  --line2: #DCE4E2;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 30, 50, 0.08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; text-decoration: none; transition: transform .08s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(217,142,48,.35); }
.btn-secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost { background: var(--off); color: var(--ink); border: 1px solid var(--line); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---- Header / Nav ---- */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.brand span { color: var(--teal); }
.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.btn-ghost-nav { padding: 9px 16px; border: 1.5px solid var(--navy); border-radius: 8px; color: var(--navy) !important; }
.btn-primary-nav { padding: 9px 18px; border-radius: 8px; background: var(--gold); color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 90px 0 100px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,0.04);
}
.hero-inner { max-width: 640px; position: relative; z-index: 1; }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: .8rem; color: var(--gold); margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #CADCFC; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; font-size: .85rem; color: #9FB3C8; }

/* ---- Sections ---- */
section { padding: 80px 0; }
section.alt { background: var(--off); }
.section-head { max-width: 680px; margin: 0 auto 48px auto; text-align: center; }
.section-head .kicker { color: var(--teal); }

/* ---- Feature grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--off);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.feature-card p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; position: relative; display: flex; flex-direction: column;
}
.price-card.featured { background: var(--navy); border-color: var(--navy); box-shadow: 0 16px 34px rgba(31,56,100,.25); }
.price-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 14px; text-transform: uppercase;
}
.price-card h3 { margin-bottom: 4px; }
.price-card.featured h3, .price-card.featured .unit { color: #fff; }
.price-card .price { font-size: 2.1rem; font-weight: 800; color: var(--teal); margin: 10px 0 2px 0; }
.price-card.featured .price { color: var(--gold); }
.price-card .unit { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px 0; flex: 1; }
.price-card li { padding: 7px 0; font-size: .9rem; color: var(--ink); }
.price-card.featured li { color: #fff; }
.price-card li::before { content: '\2713'; color: var(--teal); font-weight: 800; margin-right: 8px; }
.price-card.featured li::before { color: var(--teal-light); }

/* ---- Forms ---- */
.form-card {
  max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-card.wide { max-width: 620px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line2); font-size: .95rem; font-family: inherit; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,125,110,.12); }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.care-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.care-type-option {
  padding: 12px; border-radius: 10px; text-align: center; font-size: .88rem; font-weight: 700;
  border: 1.5px solid var(--line2); cursor: pointer; background: #fff;
}
.care-type-option.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.care-type-option input { display: none; }

.captcha-box { background: var(--off); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.captcha-box label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.captcha-box input[type=text] { width: 140px; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line2); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; }
.alert-error { background: #FBEAE7; color: var(--red); border: 1px solid #F3C6BE; }
.alert-success { background: #EAF3F0; color: var(--teal); border: 1px solid #BFE0D6; }

/* ---- Onboarding step indicator ---- */
.step-indicator { text-align: center; margin-bottom: 28px; }
.step-indicator .step-label { font-size: .75rem; font-weight: 800; color: var(--teal); letter-spacing: 1px; text-transform: uppercase; }
.step-indicator .step-track { display: flex; gap: 6px; margin-top: 10px; }
.step-indicator .step-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--line2); }
.step-indicator .step-dot.done { background: var(--teal); }

/* ---- Trust badges ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trust-badge { border: 1.5px solid var(--teal); color: var(--navy); font-size: .78rem; font-weight: 700; padding: 8px 16px; border-radius: 20px; background: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #CADCFC; padding: 56px 0 0 0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-family: inherit; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col a { display: block; color: #AFC2DC; font-size: .9rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer span { color: var(--teal-light); }
.footer-brand p { font-size: .85rem; color: #9FB3C8; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .8rem; color: #8095B0; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 16px 24px; border-bottom: 1px solid var(--line); display: none; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .btn-ghost-nav, .btn-primary-nav { text-align: center; }
}

/* ---- Admin CMS ---- */
.admin-body { background: var(--off); font-family: inherit; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--navy); color: #fff; flex-shrink: 0; padding: 24px 0; }
.admin-sidebar .brand { color: #fff; padding: 0 24px 24px 24px; display: block; }
.admin-sidebar .brand span { color: var(--teal-light); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 24px; color: #AFC2DC; font-weight: 600; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a.active { background: var(--navy-deep); color: #fff; text-decoration: none; }
.admin-main { flex: 1; padding: 32px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.kpi-card .kpi-label { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.kpi-card .kpi-value { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-top: 6px; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
table.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pill { font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 10px; display: inline-block; }
.pill-ok { background: #EAF3F0; color: var(--teal); }
.pill-warn { background: var(--amber-bg); color: var(--amber-fg); }
.pill-bad { background: #FBEAE7; color: var(--red); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); }
