/* ============================================
   BayBloom — Design tokens (sampled from brand logo)
   ============================================ */
:root {
  --ink: #0B3D42;
  --ink-soft: #12474D;
  --paper: #FFFFFF;
  --cream: #F3EFE4;
  --green: #4B9852;
  --green-text: #3D7D43;
  --gold: #B8862E;
  --gold-button: #936B25;
  --stone: #6B6B63;
  --stone-light: #9A988F;
  --border: #E9E4D8;

  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --max-width: 1120px;
  --gap: clamp(1.5rem, 3vw, 3rem);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body, h1, h2, h3, p, ul, ol, li, figure, form {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  max-width: 26ch;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p { max-width: 62ch; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-button);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================
   Buttons
   ============================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button-primary {
  background: var(--gold-button);
  color: var(--paper);
  border: 1px solid var(--gold-button);
}
.button-primary:hover { background: #7C5A1E; border-color: #7C5A1E; }
.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stone-light);
}
.button-ghost:hover { border-color: var(--ink); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 61, 66, 0.96);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.wordmark { display: inline-flex; align-items: center; }
.logo-header { height: 30px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:not(.nav-cta) { color: var(--cream); opacity: 0.8; transition: opacity 0.2s ease; }
.site-nav a:not(.nav-cta):hover { opacity: 1; }
.nav-cta {
  background: var(--gold-button);
  color: var(--paper);
  padding: 0.55rem 1.15rem;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}
.nav-cta:hover { background: #7C5A1E; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero { background: var(--paper); padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 15ch;
  margin-bottom: 1.25rem;
}

.hero-copy .lede {
  font-size: 1.1rem;
  color: var(--stone);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: clamp(260px, 32vw, 380px);
}

.hero-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-arcs path { animation: arc-fade 1.6s ease-out both; }
.hero-arcs path:nth-child(2) { animation-delay: 0.12s; }
.hero-arcs path:nth-child(3) { animation-delay: 0.24s; }

.hero-icon {
  position: absolute;
  left: 50%;
  top: 4%;
  width: clamp(110px, 14vw, 170px);
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 30px rgba(11, 61, 66, 0.18));
  animation: icon-reveal 1s ease-out 0.15s both;
}

@keyframes arc-fade {
  from { opacity: 0; }
}
@keyframes icon-reveal {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ============================================
   Problem
   ============================================ */
.problem { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.problem-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--gap);
}

.problem-intro p { color: var(--stone); margin-top: 1rem; }

.problem-list { display: flex; flex-direction: column; }
.problem-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}
.problem-list li:last-child { border-bottom: 1px solid var(--border); }
.problem-list p { color: var(--stone); }

/* ============================================
   Species
   ============================================ */
.species { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.species > .wrap > p { color: var(--stone); margin-top: 1rem; }

.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 2.5rem;
}

.species-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--stone-light);
  border-radius: 4px;
  padding: 1.75rem;
}
.species-card-green { border-top-color: var(--green); }
.species-card-gold { border-top-color: var(--gold); }
.species-card-ink { border-top-color: var(--ink); }

.species-class {
  display: block;
  font-size: 0.8rem;
  color: var(--stone);
  margin-bottom: 0.9rem;
}
.species-card h3 { margin-bottom: 0; }
.species-common {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--stone);
}
.species-card > p { font-size: 0.92rem; color: var(--stone); margin-top: 0.75rem; }
.species-uses { color: var(--ink) !important; }
.species-uses strong { font-weight: 600; }

.species-samples { margin-top: 2.25rem; color: var(--stone); }
.species-samples a {
  color: var(--green-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.species-illustration {
  height: 130px;
  margin: -1.75rem -1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.species-card-green .species-illustration { background: color-mix(in srgb, var(--green) 14%, var(--paper)); }
.species-card-gold .species-illustration { background: color-mix(in srgb, var(--gold) 14%, var(--paper)); }
.species-card-ink .species-illustration { background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
.species-illustration-svg { width: 100%; height: 100%; max-width: 190px; }

.sway-a, .sway-b, .sway-c { transform-origin: 100px 150px; }
.sway-a { animation: sway-a 6s ease-in-out infinite; }
.sway-b { animation: sway-b 7s ease-in-out infinite 0.3s; }
.sway-c { animation: sway-c 5s ease-in-out infinite 0.6s; }
@keyframes sway-a { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes sway-b { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } }
@keyframes sway-c { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }

.bubble { opacity: 0; animation: rise 4.5s ease-in infinite; }
.bubble-2 { animation-delay: 1.2s; }
.bubble-3 { animation-delay: 2.4s; }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.45; }
  85% { opacity: 0.2; }
  100% { transform: translateY(-45px); opacity: 0; }
}

/* ============================================
   Process
   ============================================ */
.process { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.process h2 { margin-bottom: 2.5rem; }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.process-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.process-list p { color: var(--stone); font-size: 0.95rem; }

/* ============================================
   Why (comparison rows)
   ============================================ */
.why { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper); }
.why h2 { margin-bottom: 2.5rem; }

.why-table { border-top: 1px solid var(--border); }
.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.why-row-head span {
  font-weight: 600;
  color: var(--stone);
  font-size: 0.9rem;
}
.why-row:not(.why-row-head) span:first-child { color: var(--stone); }
.why-row:not(.why-row-head) span:last-child { color: var(--ink); font-weight: 500; }


/* ============================================
   Contact
   ============================================ */
.contact { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact-intro p { color: var(--cream); opacity: 0.85; margin-top: 1rem; }
.contact-direct a { color: var(--cream); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--gap);
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label { font-size: 0.9rem; color: var(--cream); opacity: 0.8; margin-bottom: 0.35rem; display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid rgba(243, 239, 228, 0.25);
  border-radius: 3px;
  padding: 0.8rem 0.9rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--stone-light); }
.contact-form button { align-self: flex-start; margin-top: 0.25rem; }
.bot-field-wrap { position: absolute; left: -9999px; }
.form-status { font-size: 0.9rem; color: var(--cream); min-height: 1.2em; }

/* ============================================
   Footer
   ============================================ */
.site-footer { padding: 2.75rem 0; background: var(--ink); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.logo-footer { height: 24px; width: auto; }
.footer-inner p { color: var(--cream); opacity: 0.6; font-size: 0.85rem; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-inner,
  .problem-grid,
  .contact-inner { grid-template-columns: 1fr; }

  .species-grid { grid-template-columns: 1fr; }

  .hero-visual { order: -1; height: 220px; }

  .process-list { grid-template-columns: repeat(2, 1fr); }

  .why-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .why-row-head { display: none; }
  .why-row:not(.why-row-head) span:first-child::before { content: 'Usually: '; font-weight: 600; color: var(--stone-light); }
  .why-row:not(.why-row-head) span:last-child::before { content: 'BayBloom: '; font-weight: 600; color: var(--green-text); }
}

@media (max-width: 520px) {
  .process-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
