/* HealthIsCalling.com -- site stylesheet */

:root {
  --heading-font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body-font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body-text: #16241c;
  --body-background: #ffffff;
  --muted-text: #4d5f54;
  --forest-dark: #0d2b1c;
  --forest-green: #144d30;
  --forest-green-accent: #1f7a4d;
  --forest-green-light: #4fa876;
  --sand: #f4f2ea;
  --header-border: #e3e6de;
  --header-height: 84px;
  --max-width: 1240px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(13, 43, 28, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--body-font);
  color: var(--body-text);
  background: var(--body-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--forest-dark);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--body-text); }

a { color: var(--forest-green-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.2em; }

img, svg { max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest-dark);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--header-border);
  z-index: 500;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-dark);
}
.brand:hover { text-decoration: none; }

.brand-mark svg {
  width: 30px; height: 30px;
  fill: var(--forest-green-accent);
  color: var(--sand);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted-text); font-size: 0.72rem; }

.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a {
  color: var(--body-text);
  font-size: 0.95rem;
  text-decoration: none;
}
.desktop-nav a:hover { color: var(--forest-green-accent); }

.header-actions { display: flex; align-items: center; gap: 4px; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--forest-dark);
  background: transparent;
  border: none;
  cursor: pointer;
}
.icon-button:hover { background: var(--sand); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-button svg path[fill], .icon-button svg circle[fill] { fill: currentColor; }

.menu-toggle { display: none; }
.menu-toggle svg { fill: currentColor; stroke: none; }

.mobile-panel {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--forest-dark);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 400;
  overflow-y: auto;
}
.mobile-panel.is-open { display: flex; }
.mobile-panel-label {
  color: var(--forest-green-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.mobile-panel a {
  color: #fff;
  font-size: 1.4rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ---------------------------------------------------------------- */
/* Buttons, links, layout */
/* ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.button.primary { background: var(--forest-green); color: #fff; }
.button.primary:hover { background: var(--forest-dark); text-decoration: none; }
.button.secondary { background: transparent; color: var(--forest-dark); border-color: var(--forest-dark); }
.button.secondary:hover { background: var(--forest-dark); color: #fff; text-decoration: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5em; }
.button-row.centered { justify-content: center; }

.text-link { font-weight: 500; }

main { display: block; }

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.content-band {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}

.split-band { max-width: var(--max-width); margin: 0 auto; }

.section-heading { margin-bottom: 32px; max-width: 640px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; max-width: 720px; }
.section-heading h2 { font-size: 2rem; }
.section-heading p { color: var(--muted-text); }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin: 24px 0 8px;
}
.breadcrumbs a { color: var(--muted-text); }
.breadcrumbs span { margin: 0 6px; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--forest-green-accent);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; fill: currentColor; }

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

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.4em;
}
.hero-copy h1 .accent {
  display: block;
  color: var(--forest-green-accent);
  font-weight: 400;
  font-size: 0.55em;
  margin-top: 0.35em;
}
.hero-copy p { color: var(--muted-text); font-size: 1.1rem; max-width: 46ch; }

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 340px; }

/* ---------------------------------------------------------------- */
/* Trust bar */
/* ---------------------------------------------------------------- */

.trust-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--header-border);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--heading-font); font-weight: 500; color: var(--forest-dark); margin-bottom: 4px; }
.trust-item span { color: var(--muted-text); font-size: 0.92rem; }

/* ---------------------------------------------------------------- */
/* Topic grid */
/* ---------------------------------------------------------------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.topic-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  position: relative;
}
.topic-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--forest-green-accent);
  margin-bottom: 14px;
}
.topic-media svg { width: 26px; height: 26px; fill: currentColor; }
.topic-card h2, .topic-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.topic-card h2 a, .topic-card h3 a { color: var(--forest-dark); }
.topic-card p { color: var(--muted-text); font-size: 0.9rem; }
.media-link { position: absolute; inset: 0; z-index: 0; }
.topic-card > * { position: relative; z-index: 1; }
.topic-card .media-link { z-index: 0; }

/* ---------------------------------------------------------------- */
/* Snapshot / score widget */
/* ---------------------------------------------------------------- */

.snapshot-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
  background: var(--forest-dark);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  color: #fff;
}

.score-ring {
  --score: 72;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--forest-green-light) calc(var(--score) * 3.6deg), rgba(255,255,255,0.14) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  padding: 10px;
}
.score-ring-circle {
  width: 148px; height: 148px;
  border-radius: 50%;
  background: var(--forest-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring-circle strong { font-size: 2.4rem; font-family: var(--heading-font); font-weight: 300; color: #fff; }
.score-ring-circle span { color: var(--forest-green-light); font-size: 0.85rem; }
.score-ring em { display: none; }

.snapshot-copy h2 { color: #fff; }
.snapshot-copy p { color: rgba(255,255,255,0.78); max-width: 52ch; }

/* ---------------------------------------------------------------- */
/* Constellation section */
/* ---------------------------------------------------------------- */

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.constellation-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius);
  color: var(--body-text);
}
.constellation-card:hover { border-color: var(--forest-green-accent); text-decoration: none; }
.constellation-role {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--forest-green-accent);
}
.constellation-card strong { font-family: var(--heading-font); font-size: 1.05rem; color: var(--forest-dark); }
.constellation-card span:last-child { color: var(--muted-text); font-size: 0.88rem; }
.constellation-inline { color: var(--muted-text); }

/* ---------------------------------------------------------------- */
/* Trust block */
/* ---------------------------------------------------------------- */

.trust-block { background: var(--sand); border-radius: 24px; max-width: var(--max-width); margin: 0 auto 56px; }
.trust-block-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-block-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-block-item strong { margin-bottom: 4px; color: var(--forest-dark); }
.trust-block-item span { color: var(--muted-text); font-size: 0.9rem; }

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

.page-hero { max-width: 760px; margin-bottom: 24px; }
.page-hero p { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--forest-green-accent); margin-bottom: 6px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero span { display: block; color: var(--muted-text); font-size: 1.05rem; }
.page-hero.compact h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

/* ---------------------------------------------------------------- */
/* Split band: article + sidebar */
/* ---------------------------------------------------------------- */

.split-band {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 24px 0 48px;
}
.split-band.content-band { padding-left: 24px; padding-right: 24px; }

.article-body h2 { font-size: 1.35rem; margin-top: 1.4em; }
.article-body h2:first-child { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--header-border);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--forest-green-light);
}
.check-list li:last-child { border-bottom: none; }

.method-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.method-card h2 { font-size: 1.1rem; }
.method-card a.text-link { display: block; margin-bottom: 8px; }

/* ---------------------------------------------------------------- */
/* Topic tabs */
/* ---------------------------------------------------------------- */

.article-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--header-border);
  padding-bottom: 12px;
}
.article-tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--forest-dark);
  font-size: 0.9rem;
}
.article-tabs a:hover { background: var(--forest-green-light); color: #fff; text-decoration: none; }

.tab-panel { padding: 20px 0; border-bottom: 1px solid var(--header-border); }
.tab-panel:last-child { border-bottom: none; }
.tab-panel h2 { font-size: 1.25rem; }

/* ---------------------------------------------------------------- */
/* Subtopic / alt / tool grids */
/* ---------------------------------------------------------------- */

.subtopic-grid, .alt-grid, .tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subtopic-card, .alt-card, .tool-card {
  border: 1px solid var(--header-border);
  border-radius: var(--radius);
  padding: 24px;
}
.subtopic-card h3, .alt-card h2, .tool-card h2 { font-size: 1.05rem; }
.subtopic-card p, .alt-card p, .tool-card p { color: var(--muted-text); font-size: 0.92rem; }

.step-list { padding-left: 1.4em; }
.step-list li { padding: 6px 0; }

/* ---------------------------------------------------------------- */
/* Go deeper / CTA band */
/* ---------------------------------------------------------------- */

.go-deeper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--sand);
  border-radius: var(--radius);
}
.go-deeper svg { width: 28px; height: 28px; fill: var(--forest-green-accent); flex-shrink: 0; }
.go-deeper p { margin: 0; color: var(--body-text); }

.cta-band {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 48px 24px;
  text-align: center;
  background: var(--forest-dark);
  border-radius: 24px;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 auto 1em; }

/* ---------------------------------------------------------------- */
/* Contact form */
/* ---------------------------------------------------------------- */

.contact-form__honeypot { position: absolute; left: -9999px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form__label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--forest-dark); }
.contact-form__control {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 0.95rem;
}
.contact-form__error { color: #b3261e; font-size: 0.82rem; margin-top: 4px; }
.form-success {
  background: var(--sand);
  border-left: 4px solid var(--forest-green-accent);
  padding: 20px;
  border-radius: 8px;
}

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

.site-footer { background: var(--forest-dark); color: #fff; margin-top: 40px; }

.footer-newsletter {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-newsletter h2 { color: #fff; font-size: 1.4rem; margin-bottom: 4px; }
.footer-newsletter p { color: rgba(255,255,255,0.72); margin: 0; }
.footer-newsletter-form { display: flex; gap: 10px; }
.footer-newsletter-form input {
  padding: 0.75em 1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: #fff;
  min-width: 240px;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter-form button {
  padding: 0.75em 1.6em;
  border-radius: 999px;
  border: none;
  background: var(--forest-green-light);
  color: var(--forest-dark);
  font-weight: 600;
  cursor: pointer;
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.footer-brand-col .footer-brand { color: #fff; margin-bottom: 14px; }
.footer-brand-col .brand-text small { color: rgba(255,255,255,0.6); }
.footer-brand-col p { color: rgba(255,255,255,0.68); font-size: 0.92rem; max-width: 32ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { color: #fff; font-family: var(--heading-font); font-weight: 500; margin-bottom: 4px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }

.disclaimer-band {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.disclaimer-band p { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin: 0; }
.disclaimer-band a { color: rgba(255,255,255,0.75); }

.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 28px;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

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

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; max-width: 260px; margin: 0 auto; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .constellation-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-block-grid { grid-template-columns: repeat(2, 1fr); }
  .snapshot-section { grid-template-columns: 1fr; text-align: center; }
  .split-band { grid-template-columns: 1fr; }
  .method-card { position: static; }
  .subtopic-grid, .alt-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
  .footer-newsletter-form { width: 100%; }
  .footer-newsletter-form input { min-width: 0; flex: 1; }
}

@media (max-width: 560px) {
  .topic-grid, .constellation-grid, .trust-block-grid, .subtopic-grid, .alt-grid, .tool-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .footer-links a, .footer-links strong { font-size: 1.8rem; }
  .footer-brand-col p { font-size: 1.6rem; max-width: none; }
  .footer-links { align-items: center; gap: 18px; }
  .footer-brand-col { display: flex; flex-direction: column; align-items: center; }
  .footer-brand { flex-direction: column; }
  .footer-brand .brand-text strong { font-size: 1.8rem; }
  .footer-brand .brand-text small { font-size: 1.2rem; }
}
