/* =========================================================
   JBMZ Agency — health insurance one-page site
   Palette: deep teal + medical blue, fresh green action color
   ========================================================= */

:root {
  --paper: #FBFDFC;
  --mint: #E9F4EE;
  --mint-2: #DBEDE6;
  --ink: #0C2A28;
  --muted: #4C645F;
  --deep: #0A3B39;      /* deep teal */
  --deep-2: #072E2C;
  --blue: #1E6E9E;      /* medical blue */
  --blue-deep: #124E73;
  --green: #22A36B;     /* action green */
  --green-deep: #198253;
  --line: rgba(12, 42, 40, 0.10);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 50px -24px rgba(10, 59, 57, 0.45);
  --radius: 18px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--green);
  display: inline-block;
}
.eyebrow.on-dark { color: #8fd8b6; }
.eyebrow.on-dark::before { background: #8fd8b6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(34, 163, 107, 0.7);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost.on-dark { color: #fff; border-color: var(--line-light); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 253, 252, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--deep), var(--blue));
  display: grid; place-items: center;
  color: #fff; font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: -0.03em;
  flex-shrink: 0;
}
.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1;
}
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-phone span { color: var(--muted); font-weight: 500; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(34,163,107,0.28), transparent 55%),
    radial-gradient(90% 80% at 5% 110%, rgba(30,110,158,0.35), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--blue-deep) 100%);
  color: #eafaf3;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  margin: 20px 0 0;
}
.hero h1 em {
  font-style: normal;
  color: #7fe0b0;
}
.hero-sub {
  color: #cfeadf;
  font-size: 1.18rem;
  margin-top: 22px;
  max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
  font-size: 14px; color: #bfe3d5;
}
.hero-trust b { color: #fff; font-weight: 600; }

/* hero card */
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line-light);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.15rem; }
.hero-card p { color: #cfeadf; font-size: 0.98rem; margin-top: 8px; }
.stat-row { display: flex; gap: 14px; margin-top: 22px; }
.stat {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}
.stat .num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.7rem; font-weight: 700; color: #7fe0b0; line-height: 1;
}
.stat .lbl { font-size: 12px; color: #bfe3d5; margin-top: 6px; letter-spacing: 0.02em; }

/* pulse line */
.pulse {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 90px;
  z-index: 1;
  opacity: 0.5;
}
.pulse path {
  fill: none;
  stroke: #7fe0b0;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 4.5s ease-out forwards, glow 3s ease-in-out 4.5s infinite;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-mint { background: var(--mint); }
.section-deep {
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(34,163,107,0.22), transparent 55%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #eafaf3;
}
.section-head { max-width: 620px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 16px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.1rem; }
.section-deep .section-head h2 { color: #fff; }
.section-deep .section-head p { color: #cfeadf; }

/* ---------- Coverage grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--blue), var(--green));
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-ico svg { width: 24px; height: 24px; stroke: #fff; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin-top: 10px; font-size: 0.98rem; }

/* ---------- Why us ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 44px;
  margin-top: 52px;
}
.value {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.value-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--mint);
  display: grid; place-items: center; flex-shrink: 0;
}
.value-mark svg { width: 22px; height: 22px; stroke: var(--green-deep); }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin-top: 6px; font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.step {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: rgba(255,255,255,0.04);
}
.step-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.6rem; font-weight: 700;
  color: #7fe0b0; line-height: 1;
  letter-spacing: -0.03em;
}
.step h3 { color: #fff; font-size: 1.25rem; margin-top: 14px; }
.step p { color: #cfeadf; margin-top: 10px; font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  margin-top: 52px;
  align-items: start;
}
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,163,107,0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-status {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 20px;
}
.form-status.ok { background: var(--mint); color: var(--green-deep); border: 1px solid rgba(34,163,107,0.3); }
.form-status.err { background: #fdeceb; color: #b3261e; border: 1px solid rgba(179,38,30,0.25); }

.contact-aside { padding-top: 6px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-item .ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--mint); display: grid; place-items: center; flex-shrink: 0;
}
.contact-item .ic svg { width: 20px; height: 20px; stroke: var(--blue-deep); }
.contact-item .k { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item .v { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 3px; }
.contact-item .v span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-2); color: #bfe3d5; padding: 62px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 0.95rem; color: #a9d3c4; }
.footer-col h4 {
  font-family: "Figtree", sans-serif;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #7fe0b0; margin: 0 0 16px;
}
.footer-col a, .footer-col p { display: block; font-size: 0.96rem; color: #bfe3d5; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 26px; font-size: 0.82rem; color: #85b6a6;
}
.footer-bottom p { max-width: 62ch; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav, .header-phone { display: none; }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line); background: transparent; cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top, .footer-brand { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse path { animation: none; stroke-dashoffset: 0; }
  .btn:hover, .card:hover { transform: none; }
}
