/* A.P. Trees & Hedges — site styles (mobile-first) */
:root {
  --ink: #1F3A2D;
  --canopy: #2E5E43;
  --trunk: #3A5240;
  --sun: #C98A2B;
  --stone: #9A8B6E;
  --cream: #F3EEE2;
  --cream-deep: #ECE5D6;
  --rule: #E0D9CC;
  --leaf: #9DBE8E;
  --r-control: 8px;   /* buttons, inputs, nav */
  --r-surface: 10px;  /* cards, media, hero — one tidy radius for every panel */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Space Grotesk', sans-serif; color: var(--ink);
  background: var(--cream); font-size: 16px; line-height: 1.6;
}
h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.5px; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--leaf); color: var(--ink); }
:focus-visible { outline: 2px solid var(--canopy); outline-offset: 2px; }
a { color: var(--canopy); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 0 0 8px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- photos ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; }

/* ---------- instagram feed (Behold) ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ig-item { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; display: block; background: var(--cream-deep); border: 1px solid var(--rule); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.ig-item:hover img { transform: scale(1.04); }
.ig-placeholder { aspect-ratio: 1 / 1; border-radius: 10px; background: var(--cream-deep); border: 1px dashed var(--stone); display: grid; place-items: center; color: var(--stone); font-size: 12px; text-align: center; padding: 12px; }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .bwm { display: flex; flex-direction: column; line-height: 1.04; }
.brand .b1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.4px; color: var(--ink); }
.brand .b2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.4px; color: var(--canopy); }
.nav { display: none; }
.nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; padding: 12px; border-radius: 6px; transition: background-color 0.15s ease; }
.nav a:hover { background: var(--cream-deep); }
.nav a.active { color: var(--canopy); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  min-height: 44px; transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--canopy); color: #fff; }
.btn-solid:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: #B07820; }
.burger { background: none; border: 1.5px solid var(--ink); border-radius: 8px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.btn-call .call-num { display: none; }
.btn-call .cdot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); margin: 0 12px 0 4px; vertical-align: middle; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 32px; }
.hero-media { width: 100%; height: 420px; border-radius: var(--r-surface); overflow: hidden; position: relative; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slides .slide.is-active { opacity: 1; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -1.2px; }
.hero h1.slogan { font-size: clamp(44px, 7vw, 72px); line-height: 0.98; letter-spacing: -1.6px; text-wrap: nowrap; }
.hero h1.slogan .dot { display: inline-block; width: 0.15em; height: 0.15em; margin-left: 0.11em; border-radius: 50%; background: var(--sun); vertical-align: baseline; }
.hero .lede { font-size: 17px; color: #4a4538; margin-top: 18px; max-width: 480px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-ctas .btn { width: 100%; }            /* full-width tap target on mobile */
.form-grid button[type="submit"] { width: 100%; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 13.5px; color: var(--trunk); font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex-shrink: 0; }

/* ---------- stats band ---------- */
.stats { background: var(--ink); color: var(--cream); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.stat .n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.6px; color: var(--leaf); }
.stat .n .star { color: var(--sun); }
.stat .d { font-size: 13px; color: #B8AB8E; margin-top: 4px; line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
/* offset anchor jumps so the sticky header doesn't cover section tops */
#services, #work, #reviews, #contact, #instagram, #top { scroll-margin-top: 76px; }
.contact-grid { display: grid; gap: 32px; }
.alex-card { display: flex; align-items: center; gap: 18px; }
.alex-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--leaf); }
.alex-meta { display: flex; flex-direction: column; line-height: 1.3; }
.alex-meta strong { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; color: var(--ink); letter-spacing: -0.4px; }
.alex-meta span { font-size: 15px; color: var(--stone); margin-top: 2px; }
.alex-meta a { display: inline-flex; align-items: center; font-family: 'Space Grotesk', sans-serif; color: var(--canopy); text-decoration: none; }
.alex-meta a:hover { text-decoration: underline; }
.alex-meta a .cdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); margin-right: 9px; flex-shrink: 0; }
.alex-meta .alex-phone { font-weight: 600; font-size: 18px; margin-top: 10px; letter-spacing: 0.2px; }
.alex-meta .alex-email { font-weight: 500; font-size: 15px; margin-top: 7px; }
.contact-lede { font-size: 16px; color: #5a5648; margin-top: 6px; margin-bottom: 22px; }
.contact-main h2 { font-size: clamp(26px, 4vw, 32px); }
.section-head { max-width: 560px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 38px); }
.section-head .sub { font-size: 16px; color: #5a5648; margin-top: 12px; }
.section.deep { background: var(--cream-deep); }

/* ---------- forest section (What we do) — same palette as the old stats band ---------- */
.section.forest { background: var(--ink); color: var(--cream); }
.section.forest .kicker { color: var(--sun); }
.section.forest .section-head h2 { color: var(--cream); }
.section.forest .section-head .sub { color: #C2BBA8; }
.section.forest .svc-card { background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(157, 190, 142, 0.18); }
.section.forest .svc-card:hover { border-color: var(--leaf); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25); background: rgba(255, 255, 255, 0.07); }
.section.forest .svc-card h3 { color: var(--cream); }
.section.forest .svc-card p { color: #C8C1AE; }

/* ---------- service cards ---------- */
.svc-grid { display: grid; gap: 16px; }
.svc-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.svc-card:hover { border-color: var(--canopy); box-shadow: 0 4px 16px rgba(31, 58, 45, 0.08); }
.svc-card h3 { font-size: 19px; letter-spacing: -0.3px; }
.svc-card p { font-size: 14px; color: #5a5648; line-height: 1.55; }
.svc-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; margin-bottom: 4px; }

/* ---------- service detail rows ---------- */
.svc-row { display: grid; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.svc-row:last-child { border-bottom: none; }
.svc-row h3 { font-size: 24px; }
.svc-row .body { font-size: 15px; color: #4a4538; margin-top: 12px; }
.svc-row ul { margin: 14px 0 0; padding-left: 18px; font-size: 14px; color: #5a5648; line-height: 1.8; }
.svc-media { width: 100%; height: 240px; border-radius: var(--r-surface); overflow: hidden; }

/* ---------- reviews ---------- */
.rev-grid { display: grid; gap: 16px; }
.rev-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-surface); padding: 22px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.rev-card:hover { border-color: var(--stone); box-shadow: 0 4px 16px rgba(31, 58, 45, 0.06); }
.rev-card .stars { color: var(--sun); letter-spacing: 3px; font-size: 14px; }
.rev-card .quote { font-size: 14.5px; line-height: 1.6; color: #44403a; margin-top: 12px; }
.rev-card .who { font-size: 12.5px; font-weight: 600; color: var(--stone); margin-top: 14px; text-transform: uppercase; letter-spacing: 1px; }
.rev-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 14.5px; }
.rev-badge .stars { color: var(--sun); letter-spacing: 2px; }

/* ---------- gallery ---------- */
.gal-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gal-item { display: flex; flex-direction: column; gap: 8px; }
.gal-media { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-surface); overflow: hidden; }
.gal-media img { transition: transform 0.45s var(--ease-out-quart); }
.gal-item:hover .gal-media img { transform: scale(1.04); }

/* ---------- scroll / load reveal (only when JS is present) ---------- */
.js .hero .kicker, .js .hero h1, .js .hero .lede, .js .hero .hero-ctas, .js .hero .hero-trust,
.js .hero-media, .js .section-head, .js .svc-card, .js .gal-item, .js .rev-card, .js .rev-badge,
.js .ig-item, .js .alex-card {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}
.js .hero .kicker.reveal-in, .js .hero h1.reveal-in, .js .hero .lede.reveal-in, .js .hero .hero-ctas.reveal-in, .js .hero .hero-trust.reveal-in,
.js .hero-media.reveal-in, .js .section-head.reveal-in, .js .svc-card.reveal-in, .js .gal-item.reveal-in, .js .rev-card.reveal-in, .js .rev-badge.reveal-in,
.js .ig-item.reveal-in, .js .alex-card.reveal-in { opacity: 1; transform: none; }
.gal-cap { font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--stone); }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 32px; }
.about-media { width: 100%; height: 380px; border-radius: var(--r-surface); overflow: hidden; }
.cred-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cred-list li { display: flex; gap: 12px; font-size: 15px; align-items: baseline; }
.cred-list .tick { color: var(--canopy); font-weight: 700; flex-shrink: 0; }

/* ---------- quote form ---------- */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; letter-spacing: 0.3px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--canopy); border-color: var(--canopy); }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 42px; cursor: pointer; line-height: 1.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F3A2D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field .opt { font-weight: 400; color: var(--stone); text-transform: none; letter-spacing: 0; }
.field input[type="file"] { padding: 9px 12px; cursor: pointer; color: #5a5648; font-size: 14px; }
.field input[type="file"]::file-selector-button {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px;
  background: var(--cream); color: var(--ink); border: 1.5px solid var(--rule);
  border-radius: 6px; padding: 8px 14px; margin-right: 12px; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.field input[type="file"]::file-selector-button:hover { background: var(--cream-deep); border-color: var(--stone); }
.field-hint { font-size: 12.5px; color: var(--stone); margin-top: 7px; }
.form-note { font-size: 13px; color: var(--stone); }
.form-success { display: none; background: #fff; border: 1px solid var(--canopy); border-radius: var(--r-surface); padding: 16px 18px; font-size: 14.5px; color: var(--ink); }
.form-success.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--canopy); color: #fff; padding: 52px 0; }
.cta-band h2 { font-size: clamp(26px, 4.5vw, 36px); color: #fff; }
.cta-band p { color: #DCE8D8; margin-top: 10px; font-size: 16px; }
.cta-band .hero-ctas { margin-top: 24px; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--canopy); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #B8AB8E; padding: 22px 0; font-size: 12px; }
.footer-base { font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  .hero-ctas .btn { width: auto; }           /* revert to natural width on desktop */
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
  .rev-grid { grid-template-columns: repeat(3, 1fr); }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr 1fr; align-items: center; }
  .svc-row.flip .svc-media { order: 2; }
  .about-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .contact-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; gap: 48px; }
}
@media (min-width: 760px) {
  .gal-grid { gap: 20px; }
}

/* header: only switch to the full inline nav once there's room (avoids tablet wrap) */
@media (min-width: 900px) {
  .nav { display: flex; gap: 4px; position: static; padding: 0; border: none; flex-direction: row; background: none; }
  .burger { display: none; }
  .btn-call .call-num { display: inline; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav a, .svc-card, .rev-card, .ig-item img, .hero-slides .slide, .gal-media img { transition: none; }
  .ig-item:hover img, .gal-item:hover .gal-media img { transform: none; }
  /* never leave reveal content hidden for reduced-motion users */
  .js .hero .kicker, .js .hero h1, .js .hero .lede, .js .hero .hero-ctas, .js .hero .hero-trust,
  .js .hero-media, .js .section-head, .js .svc-card, .js .gal-item, .js .rev-card, .js .rev-badge,
  .js .ig-item, .js .alex-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}
