/* ==========================================================================
   Saffron Care Health — global stylesheet
   ========================================================================== */

:root {
  --saffron: #d98e2b;
  --saffron-dark: #a86a1a;
  --saffron-light: #f3c877;
  --teal: #1f4a47;
  --teal-light: #2f6863;
  --sage: #7c9885;
  --cream: #fbf5e9;
  --cream-deep: #f3e9d4;
  --ink: #2a241c;
  --ink-soft: #57503f;
  --white: #ffffff;
  --border: #e7dcc4;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 36, 28, 0.08);
  --shadow-lg: 0 20px 50px rgba(42, 36, 28, 0.14);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--saffron);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--saffron);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(217, 142, 43, 0.35);
}

.btn-primary:hover {
  background: var(--saffron-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-outline.on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline.on-dark:hover {
  background: var(--white);
  color: var(--teal);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--teal);
}

.brand svg { width: 34px; height: 34px; flex-shrink: 0; }

.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.btn) {
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.main-nav a:not(.btn):hover,
.main-nav a.active {
  color: var(--teal);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(217, 142, 43, 0.18), transparent),
    radial-gradient(50% 45% at 8% 95%, rgba(31, 74, 71, 0.12), transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--teal);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(155deg, var(--teal), var(--teal-light));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-art .bloom {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.hero-art .card-float {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.hero-art .card-float p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-art .card-float strong {
  display: block;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 48px;
  text-align: left;
}

.alt-bg { background: var(--white); }
.deep-bg {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.92);
}
.deep-bg h2, .deep-bg h3 { color: var(--white); }
.deep-bg .lede { color: rgba(255, 255, 255, 0.78); }

/* ---------- Grids & cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--saffron-dark);
}

.card .icon svg { width: 24px; height: 24px; }

.card p:last-child { margin-bottom: 0; }

.card.on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
}

.card.on-dark h3 { color: var(--white); }
.card.on-dark .icon { background: rgba(255, 255, 255, 0.14); color: var(--saffron-light); }

/* ---------- Numbered steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.step h3, .step p { grid-column: 2; }

.step:last-child { border-bottom: none; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--saffron-dark);
  background: var(--cream-deep);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Pull quote / value strip ---------- */

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.value-strip .item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--saffron);
}

.value-strip .item span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- Table ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 560px;
}

th, td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  background: var(--cream-deep);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
}

tr:last-child td { border-bottom: none; }

/* ---------- States/coverage badges ---------- */

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }

.badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream-deep);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
}

.badge.pending .dot { background: var(--saffron); }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--saffron), var(--saffron-dark));
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 55ch; margin: 0 auto 28px; }
.cta-banner .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.7); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--saffron-dark); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(217, 142, 43, 0.18);
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Formspree's AJAX library toggles these by writing/clearing text content
   rather than a class, so visibility is driven off :empty. */
.form-success,
.form-error { display: block; }

.form-success:empty,
.form-error:empty { display: none; }

.form-success {
  background: var(--cream-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  color: var(--teal);
  font-weight: 600;
}

.form-error {
  background: #fbeae1;
  border: 1px solid #e3ab8d;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  color: #a8451f;
  font-weight: 600;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a8451f;
}

.field-error:empty { margin-top: 0; }

/* ---------- Contact info cards ---------- */

.contact-methods {
  display: grid;
  gap: 18px;
}

.contact-methods .card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
}

.contact-methods .icon { margin-bottom: 0; flex-shrink: 0; }
.contact-methods h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-methods p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(217, 142, 43, 0.14), transparent);
  border-bottom: 1px solid var(--border);
}

.page-hero .lede { margin-top: 14px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--saffron-dark); font-weight: 600; }

/* ---------- Timeline (about / how it works) ---------- */

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}

.timeline .t-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline .t-item:last-child { padding-bottom: 0; }

.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--cream);
}

.timeline h3 { margin-bottom: 4px; }
.timeline .t-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-grid .brand { color: var(--white); margin-bottom: 14px; }
.footer-grid p { font-size: 0.9rem; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.82rem;
}

.footer-legal-note {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--teal);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 28px 24px; gap: 24px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .main-nav .nav-cta { margin-top: 8px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  section { padding: 64px 0; }
  .value-strip { grid-template-columns: 1fr 1fr; }
}
