/* ============================================================
   Busy Bee Tree Service — Coastal Arborist (Direction A)
   Pine green / bone / honey. Fraunces + Manrope.
   ============================================================ */

:root {
  /* Color tokens — OKLCH primary, hex fallback for older browsers */
  --bone:        #f4eee5;
  --bone-2:      #ebe3d6;
  --bone-3:      #ded3c1;
  --ink:         #1c241d;
  --ink-2:       #3a463b;
  --ink-soft:    #5a6760;
  --pine:        #2c4a39;
  --pine-deep:   #1c3326;
  --pine-line:   #46604f;
  --pine-soft:   #6f8b76;
  --moss:        #b6c5b3;
  --honey:       #d6a558;
  --honey-deep:  #b48438;
  --shadow-pine: 0 12px 40px -20px rgba(28, 51, 38, 0.45);
  --rule:        #d8cfba;

  /* Typographic system */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --font-body:    'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --container: 78rem;
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;
}

@supports (color: oklch(50% 0 0)) {
  :root {
    --bone:        oklch(95.5% 0.012 85);
    --bone-2:      oklch(92% 0.014 85);
    --bone-3:      oklch(86% 0.018 85);
    --ink:         oklch(22% 0.018 145);
    --ink-2:       oklch(36% 0.018 145);
    --ink-soft:    oklch(48% 0.018 145);
    --pine:        oklch(38% 0.06 155);
    --pine-deep:   oklch(28% 0.05 152);
    --pine-line:   oklch(46% 0.045 152);
    --pine-soft:   oklch(58% 0.04 155);
    --moss:        oklch(76% 0.035 145);
    --honey:       oklch(78% 0.13 75);
    --honey-deep:  oklch(64% 0.12 70);
    --rule:        oklch(86% 0.012 85);
  }
}

/* ============ Reset / base ============ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pine); color: var(--bone);
  padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 56rem) {
  .wrap { padding: 0 2.5rem; }
}

/* ============ Typography rhythm ============ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.4vw + 0.6rem, 4.6rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.6rem, 2.7rem); line-height: 1.12; }
h3 { font-size: clamp(1.4rem, 1.6vw + 0.6rem, 1.85rem); line-height: 1.2; font-weight: 600; }

p { margin: 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1rem;
}
.kicker-light { color: var(--moss); }
.kicker-honey { color: var(--honey-deep); }

/* ============ Announce bar ============ */

.announce {
  background: var(--pine-deep);
  color: var(--bone-2);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.62rem 1.5rem;
  text-align: center;
}
.announce a { color: var(--bone); text-decoration: none; font-weight: 600; }
.announce a:hover { color: var(--honey); }
.announce .sep { color: var(--pine-line); font-weight: 400; }
.announce .star-row { display: inline-flex; align-items: center; gap: 0.4rem; }
.announce .star { width: 13px; height: 13px; fill: var(--honey); }

@media (max-width: 36rem) {
  .announce { font-size: 0.72rem; padding: 0.5rem 1rem; gap: 0.55rem; }
  .announce .sep { display: none; }
}

/* ============ Sticky nav ============ */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 229, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav-logo .mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.nav-logo .sub {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 1.85rem;
  justify-self: center;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms cubic-bezier(.2,.6,.2,1), border-color 180ms cubic-bezier(.2,.6,.2,1);
}
.nav-links a:hover { color: var(--pine); border-bottom-color: var(--honey); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pine);
  color: var(--bone);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 180ms cubic-bezier(.2,.6,.2,1), transform 180ms cubic-bezier(.2,.6,.2,1);
}
.nav-cta svg { width: 14px; height: 14px; fill: currentColor; }
.nav-cta:hover { background: var(--pine-deep); transform: translateY(-1px); }

@media (max-width: 56rem) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 1rem; }
  .nav-logo .sub { display: none; }
}

/* ============ Hero (full-bleed photo + bottom-left overlay) ============ */

.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  background: var(--pine-deep);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image:
    url('https://images.unsplash.com/photo-1644308852777-c129f2182388?w=2000&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 35%;
  z-index: 1;
  transform: scale(1.02);
}
.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(28, 51, 38, 0.35) 0%, rgba(28, 51, 38, 0.0) 30%, rgba(28, 51, 38, 0.0) 45%, rgba(28, 51, 38, 0.78) 100%),
    linear-gradient(90deg, rgba(28, 51, 38, 0.55) 0%, rgba(28, 51, 38, 0.10) 60%, rgba(28, 51, 38, 0.0) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 1.5rem 4.5rem;
  width: 100%;
  color: var(--bone);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.5rem;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 4px rgba(214, 165, 88, 0.18);
}
.hero h1 {
  color: var(--bone);
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.hero h1 .line { display: block; }
.hero h1 .line-em {
  font-style: italic;
  font-weight: 500;
  color: var(--bone);
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.hero-lead {
  max-width: 46ch;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.12rem);
  line-height: 1.55;
  color: var(--bone-2);
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

@media (min-width: 56rem) {
  .hero-content { padding: 6.5rem 2.5rem 5.5rem; }
  .hero h1 { max-width: 14ch; }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms cubic-bezier(.2,.6,.2,1),
              color 180ms cubic-bezier(.2,.6,.2,1),
              border-color 180ms cubic-bezier(.2,.6,.2,1),
              transform 180ms cubic-bezier(.2,.6,.2,1),
              box-shadow 220ms cubic-bezier(.2,.6,.2,1);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-primary {
  background: var(--honey);
  color: var(--pine-deep);
  border-color: var(--honey);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 28px -12px rgba(214, 165, 88, 0.55);
}
.btn-primary:hover {
  background: var(--honey-deep);
  border-color: var(--honey-deep);
  color: var(--bone);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244, 238, 229, 0.5);
}
.btn-ghost:hover {
  background: rgba(244, 238, 229, 0.08);
  border-color: var(--bone);
}
.btn-form { width: auto; }

/* ============ Trust bar ============ */

.trust {
  background: var(--bone);
  padding: 2.5rem 0 2rem;
}
.trust .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.rule-honey {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--honey);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.8rem;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.trust-pill .star { width: 13px; height: 13px; fill: var(--honey); }

/* ============ Services (alternating numbered rows) ============ */

.services {
  background: var(--bone);
  padding: 6rem 0 7rem;
}
.section-head {
  max-width: 56rem;
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.section-head .lede {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.services-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: baseline;
  gap: clamp(2rem, 6vw, 8rem);
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.2rem, 7vw + 0.5rem, 6.5rem);
  line-height: 0.9;
  color: var(--pine);
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
  letter-spacing: -0.02em;
}
.service-body h3 {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: 'opsz' 32;
}
.service-body p {
  color: var(--ink-2);
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.62;
}
.service-row[data-side="right"] {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.service-row[data-side="right"] .service-num {
  order: 2;
  text-align: right;
  color: var(--pine-soft);
}
.service-row[data-side="right"] .service-body {
  order: 1;
  text-align: right;
  justify-self: end;
}
.service-row[data-side="right"] .service-body p { margin-left: auto; }

@media (max-width: 48rem) {
  .service-row,
  .service-row[data-side="right"] {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 2.4rem 0;
  }
  .service-row[data-side="right"] .service-num,
  .service-row[data-side="right"] .service-body {
    order: initial;
    text-align: left;
    justify-self: start;
  }
  .service-num { font-size: 3.4rem; }
}

/* ============ About (centered editorial column) ============ */

.about {
  background: var(--pine);
  color: var(--bone-2);
  padding: 7rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(214, 165, 88, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(214, 165, 88, 0.06), transparent 50%);
  pointer-events: none;
}
.about-inner {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.about-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw + 0.7rem, 3.1rem);
  line-height: 1.18;
  color: var(--bone);
  margin: 0 auto 2rem;
  max-width: 24ch;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.about-quote .quote-mark {
  font-style: italic;
  color: var(--honey);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 0.05em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.about-inner p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--bone-2);
  max-width: 60ch;
  margin: 0 auto 1rem;
}
.about-footnote {
  font-style: italic;
  color: var(--moss);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 1.5rem !important;
}

/* ============ Service area ============ */

.area {
  background: var(--bone-2);
  padding: 5.5rem 0;
}
.area .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
  max-width: 56rem;
}
.area h2 {
  max-width: 22ch;
  margin: 0 auto 1.5rem;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.area-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  margin: 0.5rem auto 1.5rem;
  max-width: 44rem;
}
.area-grid li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.45rem 0.95rem;
  background: var(--bone);
  border: 1px solid var(--bone-3);
  border-radius: 999px;
}
.area-note {
  font-style: italic;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ============ Contact ============ */

.contact {
  background: var(--bone);
  padding: 6.5rem 0 7rem;
  border-top: 1px solid var(--rule);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 5.5rem;
    align-items: start;
  }
}

.contact-card h2 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  max-width: 14ch;
}
.contact-lede {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 38ch;
  font-size: 1.02rem;
  line-height: 1.55;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.contact-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.contact-value {
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.contact-value-strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 80, 'SOFT' 50;
}
.contact-value-strong:hover { color: var(--pine-deep); }
.star-inline { color: var(--honey); margin-right: 0.2em; }

/* form (preview / disabled) */
.contact-form {
  background: var(--bone-2);
  border: 1px solid var(--bone-3);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
}
.contact-form fieldset { border: 0; padding: 0; margin: 0; opacity: 0.78; }
.form-legend {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  cursor: not-allowed;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }
.contact-form .btn-form {
  width: 100%;
  justify-content: center;
  cursor: not-allowed;
  margin-top: 0.5rem;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

/* ============ Footer ============ */

.site-footer {
  background: var(--pine-deep);
  color: var(--bone-2);
  padding: 2.6rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  text-align: center;
  align-items: center;
}
.footer-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.footer-sub {
  font-size: 0.78rem;
  color: var(--moss);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--bone-2);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-meta a { color: var(--bone); text-decoration: none; font-weight: 600; }
.footer-meta a:hover { color: var(--honey); }
.footer-meta .sep { color: var(--pine-line); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--moss);
  letter-spacing: 0.06em;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
  .footer-meta { justify-self: center; }
  .footer-copy { justify-self: end; text-align: right; }
}

/* ============ Reduced-motion ============ */

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  html { scroll-behavior: auto; }
}
