/* CapsicoHealth static site — shared styles */
:root {
  --ink: #04171c;
  --ink-2: #131a33;
  --teal: #0f9b8e;
  --teal-2: #3fd4c0;
  --teal-soft: #e2f7f3;
  --text: #12242a;
  --muted: #5a6f73;
  --line: #dfeceb;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 75%;
  --shadow: 0 18px 40px -22px rgba(6, 46, 51, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 26px -14px var(--teal); }
.btn-secondary { 
  color: #fff;
  box-shadow: 0 12px 26px -14px RGBA(231, 93, 93, 0.75);
  font-size: 100%;
  background-color: RGBA(231, 93, 93, 0.75);
  padding: .25rem 1.5rem;
}

.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline { background: #fff; color: var(--teal); border-color: #b6e6de; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 23, 28, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #1fb6c9, var(--teal-2));
  display: grid; place-items: center; font-size: .82rem; color: #fff;
  flex-shrink: 0;
}
.brand span.light { color: var(--teal-2); }

.nav-links { display: flex; justify-content: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .93rem;
  font-weight: 600;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom-color: var(--teal-2); }

.nav-cta { justify-self: end; }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: .45rem .6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding: .5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 100% at 80% 0%, #062e33 0%, #04171c 55%, #031015 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  border-radius: 999px; padding: .35rem .9rem; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.3rem;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-2); }
.hero h1 span { color: var(--teal-2); }
.hero p.lead { color: rgba(255,255,255,.74); font-size: 1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 18px; }

.chip-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: .7rem; margin-top: 1.1rem; }
.chip {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: .7rem .8rem; font-size: .8rem; font-weight: 600;
  text-align: center; color: rgba(255,255,255,.9);
}

/* ---------- Stats ---------- */
.stats {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  margin-top: -3.2rem; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 2rem 1rem;
}
.stats div { text-align: center; padding: .6rem 1rem; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: none; }
.stats b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--teal); font-weight: 800; }
.stats small { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-right: none; border-bottom: 1px solid var(--line); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Logos ---------- */
.logos { padding: 3rem 0 1rem; text-align: center; }
.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em 1rem;
    margin-top: 2rem;
}
.logo-row span {
    color: #4f6a6d;
    font-weight: 700;
    font-size: 1.05rem;
    opacity: .75;
    margin: 0em 3em;
}

/* ---------- Sections ---------- */
section.band { padding: clamp(3rem, 7vw, 5rem) 0; }
section.tint { background: linear-gradient(180deg, #f5fcfb, #e9f7f5); }
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 1.1rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--teal-soft);
  display: grid; place-items: center; margin-bottom: .9rem; font-size: 1.1rem;
}
.card p { color: var(--muted); font-size: .92rem; }
.card a.more { color: var(--teal); font-weight: 700; font-size: .88rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.feature { text-align: center; }
.feature .icon { margin: 0 auto .7rem; }
.feature h3 { font-size: .95rem; }
.feature p { color: var(--muted); font-size: .84rem; }

.rule { width: 46px; height: 3px; background: var(--teal); border-radius: 2px; margin: 0 0 1.2rem; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(100deg, #063a3c, #0a6a68 55%, #12a394);
  color: #fff; padding: 2rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: center;
}
.cta h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.cta p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Page banner (sub-pages) ---------- */
.page-banner {
  position: relative; color: #fff;
  background: #04171c center/cover no-repeat;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,23,28,.92) 10%, rgba(4,23,28,.45) 100%);
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner p { color: rgba(255,255,255,.78); max-width: 56ch; }
.crumbs { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: .8rem; }
.crumbs a:hover { color: #fff; }

.placeholder-note {
  border: 1px dashed #a9e2da; background: #f2fbf9; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; color: var(--muted); font-size: .92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #04171c; color: rgba(255,255,255,.62); padding: 3rem 0 1.6rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.2rem; padding-top: 1.2rem;
  font-size: .82rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
}


.eyebrow {
  color: var(--teal);
  font-size: .9em;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
