/* =============================================================
   Evidence by Design — Dr. Tariku Jibat Beyene
   Design system: health-economics consulting practice
   Palette: pine green + gold accent on warm paper
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --pine:        #0B4A2D;   /* deep forest — dark bands, footer */
  --forest:      #126F43;   /* mid green — headings, links */
  --moss:        #2E8B60;   /* lighter green — hovers, accents */
  --gold:        #D9A441;   /* primary accent / CTA */
  --gold-deep:   #C08A2A;   /* gold hover */
  --teal:        #14757F;   /* data / tool accent */

  /* Neutrals */
  --ink:         #1B2A24;   /* body text */
  --ink-soft:    #4A5B52;   /* secondary text */
  --line:        #E4E7E1;   /* hairlines */
  --paper:       #FAF9F6;   /* warm page bg */
  --paper-2:     #F3F1EA;   /* alt band */
  --sage:        #E8F0EC;   /* tinted band */
  --white:       #FFFFFF;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Structure */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,74,45,.06), 0 2px 8px rgba(11,74,45,.05);
  --shadow-md: 0 6px 22px rgba(11,74,45,.10), 0 2px 6px rgba(11,74,45,.06);
  --shadow-lg: 0 18px 50px rgba(11,74,45,.16);
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--moss); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--pine); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.band-white { background: var(--white); }
.band-paper { background: var(--paper); }
.band-alt   { background: var(--paper-2); }
.band-sage  { background: var(--sage); }
.band-pine  { background: var(--pine); color: #E7F0EA; }
.band-pine h1, .band-pine h2, .band-pine h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--forest);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.band-pine .eyebrow { color: var(--gold); }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }
.band-pine .lead { color: #C9D8CF; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold); --btn-fg: #26200E;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--gold-deep); color: #26200E; }
.btn--primary { --btn-bg: var(--gold); }
.btn--dark { --btn-bg: var(--pine); --btn-fg: #fff; }
.btn--dark:hover { background: var(--forest); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--pine); border-color: rgba(11,74,45,.25); box-shadow: none;
}
.btn--ghost:hover { background: rgba(11,74,45,.06); color: var(--pine); border-color: var(--pine); }
.band-pine .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.band-pine .btn--ghost:hover { background: rgba(255,255,255,.1); color:#fff; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.04rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

.arrow-link { font-family: var(--font-sans); font-weight: 600; color: var(--forest); display: inline-flex; align-items: center; gap: .4rem; }
.arrow-link span { transition: transform .2s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.18rem; color: var(--pine); }
.brand:hover { color: var(--pine); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--forest), var(--pine));
  display: grid; place-items: center; color: var(--gold); font-weight: 700;
  font-family: var(--font-sans); box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.nav-spacer { flex: 1; }

.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-sans); font-weight: 500; font-size: .93rem;
  color: var(--ink); padding: .55rem .7rem; border-radius: 8px;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--pine); background: rgba(11,74,45,.06); }
.nav-link .chev { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .6; transition: transform .2s var(--ease); }
.nav-item:hover .chev { transform: rotate(225deg); margin-top: 2px; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 240px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 8px;
  color: var(--ink); font-family: var(--font-sans); font-weight: 500; font-size: .92rem;
}
.dropdown a:hover { background: var(--sage); color: var(--pine); }
.dropdown a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pine); border-radius: 2px; margin: 5px 0; transition: .25s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 500px at 78% -8%, rgba(46,139,96,.16), transparent 60%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: clamp(48px,7vw,96px) 0; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--pine); line-height: 1; }
.hero-stat .lbl { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.4rem; position: relative;
}
.hero-card h4 { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 1rem; }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.mini-bars .bar { flex: 1; background: linear-gradient(var(--moss), var(--forest)); border-radius: 6px 6px 0 0; opacity: .9; animation: grow 1s var(--ease) both; }
.mini-bars .bar:nth-child(3) { background: linear-gradient(var(--gold), var(--gold-deep)); }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } }
.hero-badge {
  position: absolute; bottom: -18px; right: -14px; background: var(--pine); color: #fff;
  border-radius: 12px; padding: .7rem .95rem; box-shadow: var(--shadow-md); display: flex; gap: .6rem; align-items: center;
  font-size: .82rem; font-family: var(--font-sans);
}
.hero-badge b { color: var(--gold); font-size: 1.1rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(18,111,67,.3); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage); color: var(--forest); margin-bottom: 1rem; font-size: 1.3rem;
}
.card h3 { margin-bottom: .4rem; font-size: 1.18rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 1rem; }
.card .arrow-link { margin-top: auto; font-size: .92rem; }
.card--link:hover { cursor: pointer; }
.tag { display: inline-block; font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); background: rgba(217,164,65,.14); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .8rem; align-self: flex-start; }
.tag--teal { color: var(--teal); background: rgba(20,117,127,.12); }
.tag--live { color: #0f7a4a; background: rgba(46,139,96,.15); }

/* section heading block */
.sec-head { max-width: 62ch; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checklist { list-style: none; display: grid; gap: .8rem; margin-top: 1.2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; }
.checklist li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: .8rem; margin-top: 1px; }
.band-pine .checklist li::before { background: rgba(217,164,65,.2); color: var(--gold); }

/* ---------- Logos / trust ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; align-items: center; justify-content: center; opacity: .85; }
.logos span { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: #9FB2A7; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items: stretch; }
.price {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); position: relative; }
.price.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #26200E; font-family: var(--font-sans); font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 999px; }
.price .plan { font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--forest); }
.price .amt { font-family: var(--font-serif); font-size: 2.6rem; color: var(--pine); font-weight: 600; margin: .4rem 0 .1rem; }
.price .amt small { font-family: var(--font-sans); font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.price ul { list-style: none; display: grid; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.price ul li { display: flex; gap: .5rem; font-size: .93rem; color: var(--ink-soft); }
.price ul li::before { content: "✓"; color: var(--forest); font-weight: 700; }
.price .btn { margin-top: auto; justify-content: center; }

/* ---------- Testimonial ---------- */
.quote { max-width: 46ch; }
.quote p { font-family: var(--font-serif); font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.35; color: #fff; }
.quote cite { font-style: normal; font-family: var(--font-sans); color: var(--gold); font-weight: 600; font-size: .95rem; display: block; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: #B8Cabf; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.4rem; }
.site-footer h5 { font-family: var(--font-sans); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.site-footer a { color: #B8CABF; font-size: .92rem; display: block; padding: .28rem 0; }
.site-footer a:hover { color: var(--gold); }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .92rem; max-width: 30ch; margin-top: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #8FA69A; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.footer-social a:hover { background: var(--gold); color: var(--pine); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--sage), var(--paper)); padding: clamp(52px,7vw,88px) 0 clamp(40px,5vw,60px); border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--font-sans); font-size: .84rem; color: var(--ink-soft); margin-bottom: 1rem; display: flex; gap: .4rem; }
.breadcrumb a { color: var(--forest); }

/* ---------- Tool / calculator ---------- */
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.panel h3 { font-family: var(--font-sans); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--forest); margin-bottom: 1.2rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-sans); font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.field input[type=number], .field input[type=text], .field select {
  width: 100%; padding: .7rem .85rem; font-size: 1rem; font-family: var(--font-sans);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(18,111,67,.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: none; background: none; font-family: var(--font-sans); font-weight: 600; font-size: .86rem; padding: .45rem .9rem; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg button.active { background: var(--white); color: var(--pine); box-shadow: var(--shadow-sm); }

.result-hero { text-align: center; padding: 1.5rem 0 1rem; border-bottom: 1px dashed var(--line); margin-bottom: 1.2rem; }
.result-hero .big { font-family: var(--font-serif); font-size: clamp(3rem,7vw,4.6rem); font-weight: 600; color: var(--pine); line-height: 1; }
.result-hero .cap { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; }
.result-list { list-style: none; display: grid; gap: .7rem; }
.result-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.result-list li b { color: var(--pine); font-family: var(--font-sans); }
.callout { background: var(--sage); border-left: 3px solid var(--forest); border-radius: 8px; padding: .9rem 1.1rem; font-size: .9rem; color: var(--ink-soft); margin-top: 1.2rem; }
.formula { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--paper-2); border-radius: 8px; padding: .7rem .9rem; font-size: .85rem; color: var(--ink); overflow-x: auto; }

/* ---------- Article / prose ---------- */
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { margin-top: 2rem; }

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .tool-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
}
@media (max-width: 720px) {
  .nav-menu, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: .5rem; box-shadow: var(--shadow-md); max-height: 78vh; overflow-y: auto;
  }
  .nav-menu.open .nav-item { width: 100%; }
  .nav-menu.open .nav-link { justify-content: space-between; width: 100%; }
  .nav-menu.open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; border-left: 2px solid var(--sage); border-radius: 0; margin: 0 0 .5rem 1rem; min-width: 0;
    display: none;
  }
  .nav-menu.open .nav-item.expanded .dropdown { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .field-row { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
