/* CalPhusion temporary one-page site
   Self-contained. No external frameworks or font CDNs. */

:root {
  --forest: #1b3a2a;
  --forest-deep: #12261c;
  --pine: #2c5a3f;
  --leaf: #3d7a4f;
  --sage: #5e7a68;
  --ca-yellow: #f0e000;
  --cream: #f6f3ea;
  --paper: #fffcf6;
  --sand: #e8dfc8;
  --earth: #8a6f45;
  --earth-dark: #5c4a2e;
  --ink: #1c241e;
  --muted: #5a645c;
  --line: #d8d0be;
  --confirm-bg: #f4ecd8;
  --confirm-ink: #5c4a2e;
  --confirm-bar: #c4a36a;
  --radius: 16px;
  --shadow: 0 12px 36px rgba(18, 38, 28, 0.08);
  --max: 1120px;
  --nav-h: 84px;
  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); }
a:hover { color: var(--leaf); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link img {
  height: 58px;
  width: auto;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--forest);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav a:hover { color: var(--leaf); }

.site-nav .nav-cta {
  background: var(--forest);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--pine); color: #fff; }

/* Hero */
.hero {
  padding: 3.2rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--earth);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 4.4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--forest-deep);
}

.lede {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  color: #2c332e;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.btn-primary:hover { background: var(--pine); border-color: var(--pine); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: #fff; }

.hero-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}

/* Confirm placeholders */
.confirm-note {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--confirm-ink);
  background: var(--confirm-bg);
  border-left: 3px solid var(--confirm-bar);
  padding: 0.55rem 0.8rem;
  margin: 0.75rem 0 0;
  border-radius: 0 8px 8px 0;
}
.confirm-note strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Sections */
section { padding: 4rem 0; }

.band-forest { background: var(--forest-deep); color: #eef3ee; }
.band-sage { background: #e4ece4; }
.band-paper { background: var(--paper); }

.section-head { max-width: 40rem; margin-bottom: 2.2rem; }

.section-head h2,
.approach-block h3,
.product-card h3,
.quote-card footer,
.contact-card h3 {
  font-family: var(--font-serif);
}

.section-head h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--forest-deep);
  line-height: 1.2;
}

.band-forest .section-head h2,
.band-forest .section-head p { color: #f3f6f3; }
.band-forest .section-head .eyebrow { color: #e2c98a; }

.section-head p { margin: 0; color: var(--muted); }

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.video-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.4);
}

.band-forest .video-card { background: #1a3326; border-color: #2a4a38; box-shadow: none; }

.video-card h3 {
  margin: 0;
  padding: 1rem 1.15rem 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--forest-deep);
}
.band-forest .video-card h3 { color: #f3f6f3; }

.video-card .card-copy {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.band-forest .video-card .card-copy { color: #c5d2c8; }

.video-frame {
  position: relative;
  background: #0d1a13;
  aspect-ratio: 16 / 9;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d1a13;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.video-missing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(18, 38, 28, 0.2), rgba(18, 38, 28, 0.72)),
    repeating-linear-gradient(
      -45deg,
      #163224,
      #163224 12px,
      #1a3a2a 12px,
      #1a3a2a 24px
    );
  color: #f3f6f3;
}
.video-missing[hidden] { display: none; }
.video-missing .eyebrow { color: #e2c98a; }
.video-missing h3 { color: #fff; margin: 0 0 0.5rem; font-family: var(--font-serif); }
.video-missing p { margin: 0; max-width: 24rem; color: #d5e0d8; font-size: 0.95rem; }
.video-missing code {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  color: #f0e000;
  font-size: 0.88rem;
}

/* Biology approach */
.approach-list {
  display: grid;
  gap: 1.1rem;
}

.approach-block {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.3rem 1.35rem;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem 1.15rem;
  align-items: start;
}

.approach-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.approach-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--forest-deep);
  grid-column: 2;
}
.approach-block .approach-body { grid-column: 2; }
.approach-block p { margin: 0; }
.approach-block p + p { margin-top: 0.75rem; }
.approach-block .confirm-note { margin-top: 0.8rem; }

.approach-rizo::after {
  content: "";
  display: table;
  clear: both;
}
.rizo-figure {
  float: right;
  width: min(46%, 22rem);
  margin: 0.1rem 0 1rem 1.35rem;
}
.rizo-figure a { display: block; }
.rizo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f0eee8;
}
.rizo-figure figcaption {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}


/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem 1.35rem;
}

.product-card.featured {
  grid-column: 1 / -1;
  background: var(--forest);
  color: #eef3ee;
  border-color: var(--forest);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.product-card.featured h3,
.product-card.featured p { color: #f3f6f3; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--ca-yellow);
  color: var(--forest-deep);
  margin-bottom: 0.55rem;
}

.product-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--forest-deep);
}

.product-card .analysis {
  font-weight: 700;
  color: var(--pine);
  margin: 0 0 0.5rem;
}
.product-card.featured .analysis { color: #e2c98a; }

.product-card p { margin: 0; color: var(--muted); }
.product-card.featured p { color: #c5d2c8; }
.product-card .confirm-note { margin-top: 0.9rem; }

.product-card.wide { grid-column: 1 / -1; }

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.quote-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: #243028;
}

.quote-card footer {
  font-size: 0.92rem;
  color: var(--forest);
}
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  display: block;
}
.quote-card .role {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
}

.contact-card h3 { margin: 0 0 0.8rem; font-size: 1.2rem; color: var(--forest-deep); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li { margin: 0 0 0.85rem; }

.contact-list a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-list a:hover { text-decoration: underline; }

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 0.15rem;
}

address { font-style: normal; }

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: #c5d2c8;
  padding: 2rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #f6f3ea;
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
}

.footer-logo-wrap img { height: 52px; width: auto; }
.footer-brand .eg-mark { height: 40px; width: 40px; }

.site-footer p { margin: 0; }
.site-footer strong { color: #f3f6f3; }

/* Mobile */
@media (max-width: 860px) {
  .hero-grid,
  .video-grid,
  .product-grid,
  .quote-grid,
  .contact-grid,
  .product-card.featured {
    grid-template-columns: 1fr;
  }

  .nav-toggle-btn { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0.35rem;
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }

  .site-nav a { padding: 0.55rem 0.25rem; }
  .site-nav .nav-cta { text-align: center; margin-top: 0.3rem; }

  .hero { padding-top: 2rem; }
  .hero-photo { aspect-ratio: 16 / 9; }
  .approach-block { grid-template-columns: 1fr; }
  .approach-num { margin-top: 0; }
  .approach-block h3,
  .approach-block .approach-body { grid-column: 1; }
}

@media (max-width: 700px) {
  .rizo-figure {
    float: none;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto 1.1rem;
  }
}

@media (max-width: 520px) {
  .header-inner, .wrap, .footer-inner {
    width: min(var(--max), calc(100% - 1.5rem));
  }
  .logo-link img { height: 46px; }
  section { padding: 3rem 0; }
}

.benefits-label {
  margin: 1rem 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
}

.benefit-list {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.benefit-list li {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.sell-sheet {
  font-weight: 700;
  text-decoration: none;
}

.sell-sheet[hidden] {
  display: none !important;
}

.rates {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
}
