/* ===========================
   BAYWOODS GLOBAL STYLESHEET
   baywoods.io — Mobile First
=========================== */

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

:root {
  --green-forest: #1B4332;
  --green-deep:   #2D6A4F;
  --green-mid:    #40916C;
  --bark:         #5C3D2E;
  --brown-warm:   #7B4F3A;
  --gold:         #D4A843;
  --cream:        #F5EFE6;
  --off-white:    #FAF7F2;
  --white:        #FFFFFF;
  --charcoal:     #1C1C1E;
  --muted:        #6B7280;
  --border:       rgba(27,67,50,0.10);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', Arial, sans-serif; background: var(--off-white); color: var(--charcoal); overflow-x: hidden; }

/* ====== NAV ====== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled, #navbar.solid {
  background: var(--green-forest);
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; z-index: 201; }
.nav-logo span { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: var(--cream); letter-spacing: 0.03em; }

/* Desktop nav links */
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--cream); text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--gold) !important; color: var(--green-forest) !important;
  border-radius: 5px; padding: 9px 18px !important;
  font-weight: 700 !important; opacity: 1 !important; white-space: nowrap;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 4px; z-index: 201;
  background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: var(--green-forest); flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  padding: 80px 5% 40px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 20px; font-weight: 600; color: var(--cream); text-decoration: none; opacity: 0.9; }
.nav-mobile a:hover { opacity: 1; }
.nav-mobile .nav-cta-mobile {
  margin-top: 16px; background: var(--gold); color: var(--green-forest) !important;
  border-radius: 6px; padding: 14px 32px !important;
  font-weight: 700 !important; font-size: 16px !important; opacity: 1 !important;
}

/* ====== FOOTER ====== */
footer { background: var(--charcoal); padding: 48px 5%; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-name { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: var(--cream); }
.footer-domain { font-size: 12px; color: rgba(245,239,230,0.35); margin-left: 6px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(245,239,230,0.5); text-decoration: none; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 12px; color: rgba(245,239,230,0.28); }

/* ====== UTILITIES ====== */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 14px; }
.eyebrow-gold { color: var(--gold) !important; }
.section-title { font-family: Georgia, serif; font-size: clamp(24px, 4vw, 40px); font-weight: 700; color: var(--charcoal); line-height: 1.25; }
.section-title-light { color: var(--cream) !important; }
.section-intro { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 560px; }
.section-intro-light { color: rgba(245,239,230,0.72) !important; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.tag {
  display: inline-block; background: rgba(64,145,108,0.12);
  color: var(--green-deep); border-radius: 4px; padding: 4px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.tag-gold { background: rgba(212,168,67,0.18) !important; border: 1px solid rgba(212,168,67,0.4); color: var(--gold) !important; }

.btn-gold {
  display: inline-block; background: var(--gold); color: var(--green-forest);
  border-radius: 6px; padding: 14px 28px; font-size: 15px; font-weight: 700;
  text-decoration: none; box-shadow: 0 6px 28px rgba(212,168,67,0.35);
  border: none; cursor: pointer; text-align: center;
}
.btn-ghost {
  display: inline-block; background: transparent; color: var(--cream);
  border: 1.5px solid rgba(245,239,230,0.35); border-radius: 6px;
  padding: 14px 28px; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-green { display: inline-block; background: var(--green-forest); color: var(--cream); border-radius: 6px; padding: 12px 24px; font-size: 14px; font-weight: 600; text-decoration: none; }
.btn-bark  { display: inline-block; background: var(--bark); color: var(--cream); border-radius: 6px; padding: 12px 24px; font-size: 14px; font-weight: 600; text-decoration: none; }
.card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 2px 16px rgba(27,67,50,0.06); }

/* ====== PAGE HERO (inner pages) ====== */
.page-hero {
  padding: 110px 5% 72px;
  background: linear-gradient(150deg, var(--green-forest) 0%, var(--bark) 100%);
  text-align: center;
}
.page-hero h1 {
  font-family: Georgia, serif; font-size: clamp(28px, 5vw, 52px);
  font-weight: 700; color: var(--cream); line-height: 1.2;
  max-width: 720px; margin: 0 auto 20px;
}
.page-hero p {
  font-size: clamp(15px, 2vw, 18px); color: rgba(245,239,230,0.75);
  max-width: 540px; margin: 0 auto; line-height: 1.75;
}

/* ====== SECTIONS ====== */
.section    { padding: 72px 5%; }
.section-sm { padding: 48px 5%; }
.section-white    { background: var(--white); }
.section-offwhite { background: var(--off-white); }
.section-dark  { background: linear-gradient(135deg, var(--green-forest) 0%, var(--bark) 100%); }
.section-bark  { background: linear-gradient(135deg, var(--bark) 0%, var(--green-forest) 100%); }
.max-w     { max-width: 1080px; margin: 0 auto; }
.max-w-900 { max-width: 900px;  margin: 0 auto; }

/* ====== RESPONSIVE GRID ====== */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* Two-col flex used in split sections */
.flex-row { display: flex; flex-direction: column; gap: 40px; }

/* ====== CHECKLIST ====== */
.checklist { list-style: none; padding: 0; }
.checklist li {
  font-size: 14px; color: var(--muted); padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-start;
}
.checklist li::before { content: "✓"; color: var(--green-mid); font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.checklist-bark li::before { color: var(--brown-warm); }

/* ====== CTA ROW ====== */
.cta-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-row a { text-align: center; }

/* ====== STAT ROW ====== */
.stat-row {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(245,239,230,0.12);
  padding-top: 40px; width: 100%; max-width: 760px;
  margin-top: 56px;
}
.stat-item {
  text-align: center; padding: 20px 0;
  border-bottom: 1px solid rgba(245,239,230,0.10);
}
.stat-item:last-child { border-bottom: none; }
.stat-num { font-family: Georgia, serif; font-size: 28px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 12px; color: rgba(245,239,230,0.55); margin-top: 6px; line-height: 1.5; }

/* ====== TABLET & DESKTOP BREAKPOINTS ====== */
@media (min-width: 600px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cta-row { flex-direction: row; justify-content: center; align-items: center; }
  .cta-row a { text-align: left; }
  .stat-row { flex-direction: row; }
  .stat-item { border-bottom: none; border-right: 1px solid rgba(245,239,230,0.10); padding: 0 32px; flex: 1; }
  .stat-item:last-child { border-right: none; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .flex-row { flex-direction: row; align-items: center; gap: 64px; }
  .nav-hamburger { display: none; }
  .nav-links { display: flex; }
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  #navbar { background: var(--green-forest); }
}
