/* =========================================================
   Happy Bees — shared design system
   Palette locked · Raleway (display) + Lato (body) · no black
   ========================================================= */

:root {
  --cream: #FBF3E3;
  --cream-deep: #F3E6C8;
  --cream-cell: #FBF3E3;
  --amber: #E8A33D;
  --gold: #D4A017;
  --honey-line: #C9862F;
  --brown: #4A2E1F;
  --brown-deep: #2E1A0F;
  --brown-soft: #7A5A3E;

  --maxw: 1100px;
  --radius-pill: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--brown);
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; }

/* ---- Honeycomb background texture (faint, page-wide) ---- */
.hex-field {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 48px, rgba(201,134,47,0.07) 48px, rgba(201,134,47,0.07) 50px),
    repeating-linear-gradient(-60deg, transparent, transparent 48px, rgba(201,134,47,0.07) 48px, rgba(201,134,47,0.07) 50px),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(201,134,47,0.05) 48px, rgba(201,134,47,0.05) 50px);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   Nav — floating pill, logo + divider + highlighted CTA
   Mobile menu via pure-CSS checkbox hack (no JS)
   ========================================================= */
.nav-wrap {
  position: relative;
  z-index: 20;
  padding: 20px 6vw 0;
}

nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(251, 243, 227, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,134,47,0.28);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(74,46,31,0.06);
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 1.4rem;
  border-right: 1px solid rgba(201,134,47,0.3);
  text-decoration: none;
}

.logo svg { width: 24px; height: 24px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--brown-soft);
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--brown-deep); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--brown-deep); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brown-deep) !important;
  background: rgba(212,160,23,0.16);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  margin-left: 0.6rem;
  transition: background 0.2s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: rgba(212,160,23,0.3); }

/* mobile menu controls — hidden on desktop */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--brown-deep);
  box-shadow: 0 6px 18px rgba(212,160,23,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--brown-soft);
}
.btn:hover { transform: translateY(-2px); }

/* =========================================================
   Hero (home) + page headers (interior)
   ========================================================= */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4vw 6vw 8vw;
  overflow: hidden;
}

.page-header {
  position: relative;
  text-align: center;
  padding: 5vw 6vw 3vw;
  overflow: hidden;
}

.eyebrow {
  position: relative;
  z-index: 5;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey-line);
  margin-bottom: 1.4rem;
}

h1 {
  position: relative;
  z-index: 5;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  color: var(--brown-deep);
  max-width: 16ch;
  margin: 0 auto;
}
h1 strong { font-weight: 700; color: var(--gold); font-style: normal; }

.hero-sub, .header-sub {
  position: relative;
  z-index: 5;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--brown-soft);
  max-width: 46ch;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.hero-cta {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 1rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Hand-drawn bee flying a honeycomb path ---- */
.bee-path-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.bee { animation: flyPath 14s ease-in-out infinite; }
@keyframes flyPath {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
.flight-path {
  offset-path: path('M -50,420 C 200,280 400,520 650,340 S 1000,180 1250,360');
  offset-rotate: auto;
}
.wing {
  animation: flutter 0.18s ease-in-out infinite alternate;
  transform-origin: 15px 5px;
}
@keyframes flutter {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .bee { animation: none; offset-distance: 62%; }
  .wing { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Generic content sections
   ========================================================= */
.section {
  position: relative;
  z-index: 5;
  padding: 7vw 6vw 5vw;
}
.section-inner { position: relative; z-index: 2; }

.section-head { text-align: center; margin-bottom: 3.4rem; }

.section-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey-line);
}
.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brown-deep);
  margin-top: 0.6rem;
}
.section-title strong { font-weight: 700; color: var(--gold); font-style: normal; }

/* Prose block for text-heavy pages (about, hive, vdd) */
.prose {
  max-width: 62ch;
  margin: 0 auto;
}
.prose h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--brown-deep);
  margin: 2.6rem 0 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 1.05rem;
  color: var(--brown);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.prose p.lead {
  font-size: 1.2rem;
  color: var(--brown-soft);
  font-weight: 300;
}
.prose strong { color: var(--brown-deep); font-weight: 600; }
.prose h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey-line);
  margin: 1.9rem 0 0.4rem;
}

/* ---- Talk cards (The Hive) — a stack that scales to any number of talks ---- */
.talks {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.talk-card {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(201, 134, 47, 0.28);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 2px 22px rgba(74, 46, 31, 0.05);
}
.talk-kicker {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-line);
  margin-bottom: 0.5rem;
}
.talk-body {
  max-width: none;
  margin: 0;
}
.talk-booking {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(201, 134, 47, 0.22);
  font-size: 0.98rem;
  color: var(--brown-soft);
}
.talk-booking strong { color: var(--brown-deep); }

/* ---- Further reading (quiet citations with a small honeycomb marker) ---- */
.further-reading {
  max-width: 62ch;
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201, 134, 47, 0.25);
}
.further-reading .fr-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-line);
  margin-bottom: 0.9rem;
}
.further-reading ul { list-style: none; }
.further-reading li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.further-reading li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 10px;
  height: 11px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,2 21,7 21,17 12,22 3,17 3,7' fill='%23D4A017' fill-opacity='0.85'/%3E%3C/svg%3E");
}
.further-reading a {
  color: var(--brown-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 134, 47, 0.4);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.further-reading a:hover {
  color: var(--brown-deep);
  border-color: var(--honey-line);
}

/* ---- Stat chips (honey pills for skill lists) ---- */
.stat-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 1.4rem;
}
.stat-chips li {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-deep);
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(201, 134, 47, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.85rem;
  line-height: 1.2;
}

/* =========================================================
   BACKGROUND A — calm cream-deep band (The Honey Drops section)
   ========================================================= */
.band {
  background: var(--cream-deep);
  border-top: 1px solid rgba(201,134,47,0.28);
  border-bottom: 1px solid rgba(201,134,47,0.28);
}

/* =========================================================
   Honey Drops — horizontal flat-top hexagon cells
   Balanced: height 168 / icon 64 / gap 1.8 / inner inset 9
   ========================================================= */
.comb-h {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.cell-h {
  position: relative;
  min-height: 168px;
  clip-path: polygon(11% 0%, 89% 0%, 100% 50%, 89% 100%, 11% 100%, 0% 50%);
  background: var(--cream-cell);
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.6rem 4.6rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cell-h:hover { transform: translateY(-3px); background: #FCF6EA; }

.cell-inner-line-h {
  position: absolute;
  inset: 9px;
  clip-path: polygon(11% 0%, 89% 0%, 100% 50%, 89% 100%, 11% 100%, 0% 50%);
  border: 1.5px solid rgba(201,134,47,0.35);
  pointer-events: none;
}

.cell-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cell-h .txt { text-align: left; position: relative; z-index: 1; }
.cell-h h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--brown-deep);
  margin-bottom: 0.35rem;
}
.cell-h p {
  font-size: 0.9rem;
  color: var(--brown-soft);
  line-height: 1.5;
  max-width: 42ch;
}
.cell-tag {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.cell-tag.muted { color: var(--brown-soft); opacity: 0.8; }

.comb-note {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--brown-soft);
  margin-top: 3rem;
}

/* =========================================================
   Call-to-action strip
   ========================================================= */
.cta-strip {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 6vw 6vw;
}
.cta-strip h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--brown-deep);
  max-width: 22ch;
  margin: 0 auto 1.6rem;
}
.cta-strip h2 strong { font-weight: 700; color: var(--gold); }

/* =========================================================
   Contact / Say hello block (Scout Bee page)
   ========================================================= */
.hello {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.hello a.mail {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 2px solid rgba(212,160,23,0.4);
  transition: border-color 0.2s ease;
}
.hello a.mail:hover { border-color: var(--gold); }

/* =========================================================
   Footer
   ========================================================= */
footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 3rem 6vw 3.4rem;
  color: var(--brown-soft);
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  border-top: 1px solid rgba(201,134,47,0.25);
}
footer .foot-links {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  list-style: none;
}
footer .foot-links a { color: var(--brown-soft); text-decoration: none; transition: color 0.2s ease; }
footer .foot-links a:hover { color: var(--brown-deep); }
footer .tagline { color: var(--honey-line); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--brown-deep);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: rgba(251, 243, 227, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201,134,47,0.28);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(74,46,31,0.12);
    padding: 0.8rem 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .nav-links a { padding: 0.7rem 0.6rem; display: block; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle:checked ~ .nav-links {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .cell-h {
    flex-direction: column;
    text-align: center;
    padding: 2.4rem 2.6rem;
    gap: 1rem;
    clip-path: polygon(6% 0%, 94% 0%, 100% 50%, 94% 100%, 6% 100%, 0% 50%);
  }
  .cell-inner-line-h { clip-path: polygon(6% 0%, 94% 0%, 100% 50%, 94% 100%, 6% 100%, 0% 50%); }
  .cell-h .txt { text-align: center; }
  .cell-h p { max-width: 34ch; }
  .hero { min-height: 74vh; }
}
