/* Pico X Health — refreshed static site
   Natural / limewash / health-first aesthetic. Zero JS required. */

:root {
  --sage: #6b8068;
  --sage-deep: #4f6450;
  --sage-soft: #c7d8c0;
  --sage-wash: #eef2ec;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #2b2e2a;
  --ink-soft: #5b5f58;
  --line: #e4e7df;
  --accent: #b08d57;        /* warm limestone */
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1160px;
  --read: 720px;
  --shadow: 0 10px 40px rgba(54, 64, 50, 0.10);
  --shadow-sm: 0 4px 18px rgba(54, 64, 50, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--sage); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--sage); font-family: var(--sans); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand .dot { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--sage), var(--sage-soft)); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--sage-deep); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--sage); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { background: var(--sage-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sage-deep); border: 1.5px solid var(--sage-soft); }
.btn-ghost:hover { background: var(--sage-wash); color: var(--sage-deep); }
.menu-toggle { display: none; }

/* Services dropdown (pure CSS, hover + keyboard focus) */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.caret { font-size: 0.7em; transition: transform .15s ease; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px);
}
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown li { display: block; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--sage-wash); color: var(--sage-deep); }
.dropdown .dd-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown .dd-all a { color: var(--sage-deep); font-weight: 600; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,40,31,.30), rgba(33,40,31,.55)); }
.hero-inner { position: relative; padding: 120px 0 110px; color: #fff; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p.lede { font-size: 1.2rem; color: rgba(255,255,255,.92); margin-bottom: 1.6em; max-width: 600px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.muted { color: var(--ink-soft); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .tm { font-family: var(--serif); font-size: 1.2rem; color: var(--sage-deep); margin-bottom: 6px; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.feature.rev { grid-template-columns: 1fr 1.1fr; }
.feature.rev .feature-text { order: 2; }
.feature img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.band { background: var(--sage-wash); }
.band-deep { background: var(--sage-deep); color: #fff; }
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep .muted { color: rgba(255,255,255,.8); }

/* ---------- Article ---------- */
.post-hero { position: relative; }
.post-hero img { width: 100%; height: clamp(280px, 42vw, 460px); object-fit: cover; }
.post-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(33,40,31,.15), rgba(33,40,31,.55)); }
.post-hero .wrap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 40px; }
.post-hero h1 { color: #fff; max-width: 860px; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.post-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.article { max-width: var(--read); margin: 0 auto; padding: 56px 24px 24px; }
.article p { color: #36392f; }
.article h2 { border-left: 4px solid var(--sage-soft); padding-left: 14px; }
.article ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.article li { margin-bottom: 0.4em; }
.article blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--accent); background: var(--sage-wash); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }

.post-cta { background: var(--sage-wash); border-radius: var(--radius-lg); padding: 40px; text-align: center; margin: 40px auto; max-width: var(--read); }
.post-cta h3 { margin-top: 0; }

/* ---------- Blog index ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card .pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.post-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 16px; }
.post-card .more { margin-top: auto; font-weight: 600; color: var(--sage-deep); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.1rem; }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #21281f; color: #cdd5c8; padding: 64px 0 32px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.95rem; letter-spacing: .04em; margin: 0 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid a { color: #cdd5c8; }
.footer-grid a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; font-size: 0.92rem; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.socials a { font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; font-size: 0.82rem; color: #8f998a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 28px; }
  .feature.rev .feature-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
    width: 42px; height: 42px; border-radius: 10px; user-select: none;
  }
  .menu-toggle:hover { background: var(--sage-wash); }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 16px 16px;
  }
  .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links > li > a { display: block; padding: 14px 4px; font-size: 1.02rem; }
  /* dropdown shown inline/expanded on mobile */
  .has-dropdown .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0 0 8px 12px; min-width: 0;
  }
  .has-dropdown .caret { display: none; }
  .dropdown a { padding: 10px 8px; }
  .grid-3, .grid-2, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 84px 0 72px; }
  section { padding: 52px 0; }
}
