/* ============================================================
   RespireRx — rebuilt site
   Palette from the live site's own header CSS: green #7cb263 /
   #3d9429; type is the site's system stack (Arial / Helvetica).
   ============================================================ */

:root {
  --green: #2f7a21;
  --green-2: #3d9429;
  --green-3: #7cb263;
  --green-pale: #f2f7ef;
  --green-tint: #e6f0e0;
  --ink: #1b1b1b;
  --text: #474747;
  --soft: #6d6d6d;
  --line: #e1e4e5;
  --line-2: #cfd4d6;
  --paper: #ffffff;
  --paper-2: #f7f9f7;
  --red: #c00018;
  --wrap: 1140px;
  --stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--stack);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; height: auto; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .55rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 3.9vw, 3.05rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.lead { font-size: 1.1rem; max-width: 64ch; }
.small { font-size: .9rem; }
.muted { color: var(--soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.8rem; } .mt-4 { margin-top: 2.6rem; }
.mb-0 { margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); margin: 0 0 .7rem;
}
.rule { display: block; width: 44px; height: 3px; background: var(--green-3); margin-bottom: 1rem; }
.center .rule { margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: .8rem 1.1rem; }
.skip:focus { left: 0; }

/* ---------------------------------------------------------- header */
.topbar { background: var(--green); color: rgba(255, 255, 255, .9); font-size: .78rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; align-items: center; min-height: 36px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .tick { font-weight: 700; letter-spacing: .06em; }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav > li { list-style: none; }
.nav > li > a { display: inline-block; padding: .5rem .7rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.nav > li > a:hover { color: var(--green); text-decoration: none; }
.nav > li > a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green-3); }
.nav-cta { margin-left: .5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: inherit; font-size: .92rem; font-weight: 700; line-height: 1.2;
  padding: .75rem 1.3rem; border: 2px solid transparent; border-radius: 4px;
  cursor: pointer; text-align: center; transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #245f19; color: #fff; text-decoration: none; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.btn--on-dark { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.btn--white { background: #fff; color: var(--green); }
.btn--white:hover { background: var(--green-pale); color: var(--green); text-decoration: none; }
.btn--sm { padding: .5rem .95rem; font-size: .84rem; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(330px, 88vw); background: #fff; box-shadow: -12px 0 36px rgba(0, 0, 0, .16); transform: translateX(102%); transition: transform .26s ease; display: flex; flex-direction: column; padding: 1.1rem 1.3rem 1.6rem; overflow-y: auto; }
.drawer[data-open="true"], .drawer.is-open { transform: translateX(0); }
body.no-scroll { overflow: hidden; }
.drawer-close { align-self: flex-end; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; padding: .2rem .5rem; }
.drawer ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.drawer a { display: block; padding: .7rem .2rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer a[aria-current="page"] { color: var(--green); }
.drawer .btn { width: 100%; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .42); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------- hero */
.hero { background: linear-gradient(180deg, var(--green-pale), #fff); border-bottom: 1px solid var(--line); padding: clamp(40px, 5.5vw, 76px) 0 clamp(36px, 4.5vw, 60px); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .9rem; }
.hero .lead { color: #3f4442; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.hero-tags li { font-size: .78rem; font-weight: 600; color: var(--green); background: #fff; border: 1px solid var(--green-tint); border-radius: 999px; padding: .32rem .8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-figure { text-align: center; }
.hero-figure img { max-height: 340px; width: auto; margin-inline: auto; }
.hero-figure figcaption { font-size: .78rem; color: var(--soft); margin-top: .6rem; }

/* ---------------------------------------------------------- sections */
.section { padding: clamp(44px, 6vw, 78px) 0; }
.section--paper { background: var(--paper); }
.section--soft { background: var(--paper-2); }
.section--pale { background: var(--green-pale); }
.section--green { background: var(--green); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green .lead { color: rgba(255, 255, 255, .96); }
.section--green .eyebrow { color: #cfe6c3; }
.section-head { max-width: 760px; margin-bottom: clamp(22px, 3vw, 38px); }
.section-head.center { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.6vw, 54px); align-items: center; }
.split--wide { grid-template-columns: 1.08fr .92fr; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 26px); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 2.2vw, 28px); }
.card p { font-size: .95rem; margin-bottom: 0; }
.card--accent { border-top: 4px solid var(--green-3); }

.figure { margin: 0; }
.figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.figure figcaption { font-size: .8rem; color: var(--soft); margin-top: .55rem; }

.program { display: grid; grid-template-columns: 64px 1fr auto; gap: 1.2rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.program:last-child { border-bottom: 1px solid var(--line); }
.program .n { font-size: 1.5rem; font-weight: 700; color: var(--green-3); line-height: 1; }
.program h3 { margin-bottom: .2rem; }
.program p { font-size: .95rem; margin: 0; }
.program .stage { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: var(--green-pale); border-radius: 999px; padding: .35rem .8rem; white-space: nowrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table.table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 620px; background: #fff; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--green); color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { color: var(--ink); font-weight: 700; width: 30%; }

.news { display: grid; gap: .2rem; }
.news-item { display: grid; grid-template-columns: 118px 1fr; gap: 1.2rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item time { font-size: .82rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.news-item p { font-size: .9rem; margin: .25rem 0 0; }

.quote { margin: 0; padding: clamp(20px, 3vw, 34px); background: var(--green-pale); border-left: 5px solid var(--green-3); border-radius: 0 6px 6px 0; }
.quote blockquote { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--ink); font-weight: 500; }
.quote figcaption { margin-top: .8rem; font-size: .82rem; color: var(--soft); }

.callout { border: 1px solid var(--line); background: var(--paper-2); border-left: 5px solid var(--green-3); border-radius: 0 6px 6px 0; padding: clamp(16px, 2.2vw, 24px); }
.callout h3, .callout h4 { margin-bottom: .3rem; }
.callout p { font-size: .94rem; }
.notice { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 1rem 1.2rem; font-size: .92rem; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.55rem; margin-bottom: .6rem; font-size: .96rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs li:first-child { border-top: 1px solid var(--line); }
.specs .k { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding-top: .2rem; }

.person { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: start; }
.person img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--green-pale); }
.person h3 { font-size: 1rem; margin-bottom: .1rem; }
.person .role { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.person p { font-size: .9rem; margin: .4rem 0 0; }

/* video */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 26px); }
.video-card { margin: 0; }
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); cursor: pointer; background: #0d1b0c; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.video-facade .video-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green); display: flex; align-items: center; justify-content: center; z-index: 2; }
.video-facade .video-play svg { width: 20px; height: 20px; margin-left: 3px; }
.video-facade .label { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { font-size: .9rem; margin-top: .55rem; color: var(--ink); font-weight: 600; }
.video-card .src { display: block; font-size: .8rem; font-weight: 400; color: var(--soft); }

/* form */
.form { display: grid; gap: .95rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea { font-family: inherit; font-size: 1rem; color: var(--ink); padding: .7rem .85rem; border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 148, 41, .15); }
.field textarea { min-height: 120px; resize: vertical; }
.field .err { font-size: .78rem; color: var(--red); min-height: 1em; }
.field.has-error input, .field.has-error textarea { border-color: #d08a8a; background: #fffafa; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.form-status { font-size: .92rem; padding: .85rem 1rem; border-radius: 4px; background: var(--green-pale); color: var(--ink); }
.form-status.bad { background: #fdecea; color: #8f231c; }
.form-status.ok { background: #eaf5ea; color: #1f5a22; }

/* cta */
.cta-band { background: var(--green); color: #fff; padding: clamp(40px, 5.5vw, 70px) 0; }
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

/* footer */
.site-footer { background: #14290f; color: rgba(255, 255, 255, .62); padding: clamp(36px, 5vw, 58px) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: clamp(20px, 3vw, 38px); padding-bottom: 1.8rem; }
.site-footer h4 { color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 8px 10px; border-radius: 4px; margin-bottom: .8rem; }
.footer-brand p { font-size: .86rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; justify-content: space-between; font-size: .78rem; color: rgba(255, 255, 255, .48); }
.footer-bottom .disc { max-width: 66ch; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0, 0, 0, .1); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.to-top[data-show="true"] { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { max-height: 240px; }
  .program { grid-template-columns: 44px 1fr; }
  .program .stage { grid-column: 2; justify-self: start; margin-top: .4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 120px 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 1fr; gap: .2rem; }
  .news-item { grid-template-columns: 1fr; gap: .2rem; }
  .person { grid-template-columns: 72px 1fr; }
  .person img { width: 72px; height: 72px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .topbar, .drawer, .scrim, .to-top { display: none !important; }
  body { color: #000; background: #fff; }
  .section--green, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
