/* ============================================================
   Outlaw Outdoor Services — marketing site
   Black + green, clean/bold, mobile-first.

   IMPORTANT: server/utils/marketingPublisher.js hardcodes markup for
   machine-published pages (project pages, county-page rebuilds) using these
   exact classes: #nav/.nav-inner/.nav-logo/.nav-links/.nav-dropdown/
   .dropdown-menu/.nav-right/.nav-phone/.btn.btn-red/#nav-hamburger/#nav-drawer,
   footer/.footer-inner/.footer-brand/.footer-copy, .page-hero(+.has-photo)/
   .page-hero-photo/.page-hero-overlay/.page-hero-inner/.page-hero-label/
   .page-hero-ctas, .bg-white/.section-inner/.cta-band.bg-black.dark/
   .btn-white/.btn-outline-white, .card.card-red-top/.card-grid-3/
   .section-label/.section-title/.section-sub. Those rules must stay defined
   here even though nothing on THIS hand-authored set of pages looks
   surprising about them — a future publisher-written page depends on them.
   (Class is literally named "btn-red"/"card-red-top" from the shared,
   whitelabeled codebase — styled in the brand's actual green here, not red.)
   ============================================================ */

:root {
  --ink:        #0b0c0a;
  --ink-2:      #16181a;
  --ink-3:      #23262a;
  --paper:      #ffffff;
  --paper-2:    #f4f5f2;
  --muted:      #555f57;
  --muted-2:    #8a938c;

  --accent:      #3e6b35;
  --accent-dark: #2c4d26;
  --accent-soft: #e9f1e6;

  --line:       rgba(11,12,10,.12);
  --line-dark:  rgba(255,255,255,.14);

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -8px rgba(0,0,0,.18);
  --shadow:    0 18px 40px -20px rgba(0,0,0,.35);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px var(--gut); }
.section-inner.narrow { max-width: 760px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-transform: none; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
p { margin: 0 0 1em; }
.prose p { color: var(--muted); max-width: 68ch; }

.section-label {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin: 0 0 .6em; display: flex; align-items: center; gap: .6em;
}
.section-label::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex-shrink: 0; }
.section-label.center { justify-content: center; margin-inline: auto; }
.section-label.center::before { display: none; }
.section-title { margin-bottom: .4em; }
.section-sub { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.section-head { margin-bottom: 34px; }
.section-head.center { text-align: center; }
.section-head.center .section-label { justify-content: center; margin-inline: auto; }
.section-head.center .section-label::before { display: none; }
.section-head.center .section-sub { margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .9rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }
.btn-red { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-red:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.08); }
.btn-outline-dark { color: var(--ink); border-color: var(--line); background: transparent; display: inline-flex; }
.btn-outline-dark:hover { background: rgba(0,0,0,.04); }
.btn-white { background: #fff; color: var(--ink); font-weight: 700; padding: 1rem 1.6rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: .5em; }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ============================================================
   NAV — matches marketingPublisher.js NAV_HTML exactly
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  display: flex; align-items: center; gap: 20px; height: 66px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; color: rgba(255,255,255,.86);
  font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-dropdown .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--ink-2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: rgba(255,255,255,.82); font-size: .92rem; }
.dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-phone { display: none; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-weight: 600; font-size: .92rem; }
.nav-phone .icon { display: inline-flex; color: var(--accent); }
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: none; padding: 0; flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: var(--ink);
  transform: translateX(100%); transition: transform .25s ease; z-index: 199; overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer ul { padding: 18px var(--gut) 40px; display: flex; flex-direction: column; gap: 2px; }
.nav-drawer li > a { display: block; padding: 14px 4px; color: rgba(255,255,255,.9); font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-drawer li > a.btn { border-bottom: none; margin-top: 12px; }

body { padding-top: 66px; }

/* ============================================================
   FOOTER — matches marketingPublisher.js FOOTER_HTML exactly
   ============================================================ */
footer { background: var(--ink); padding: 40px var(--gut) 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand img { height: 40px; width: auto; }
.footer-copy { color: rgba(255,255,255,.55); font-size: .85rem; }

/* ============================================================
   PAGE HERO — matches marketingPublisher.js buildFullPageHtml /
   buildServiceAreaPageHtml .page-hero output
   ============================================================ */
.page-hero { position: relative; background: var(--ink); overflow: hidden; padding-top: 20px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(62,107,53,.35), transparent 55%);
}
.page-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--ink-2); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 80%); }
.page-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 88px var(--gut) 70px; }
.page-hero-label { font-family: var(--font-display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.page-hero-inner h1 { color: #fff; margin-bottom: 16px; }
.page-hero-inner p { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 62ch; }
.page-hero-ctas { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.bg-white { background: var(--paper); }
.bg-off { background: var(--paper-2); }
.bg-black { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255,255,255,.75); }

/* ---- CTA band ---- */
.cta-band .section-inner { padding: 56px var(--gut); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid-3 { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-red-top { border-top: 3px solid var(--accent); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.card-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card-ic svg { width: 22px; height: 22px; }

/* ============================================================
   HOME HERO
   ============================================================ */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-color: var(--ink-2); background-size: cover; background-position: center; }
.hero-media img { display: none; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.72) 60%, rgba(0,0,0,.86) 100%), radial-gradient(ellipse at 15% 10%, rgba(62,107,53,.4), transparent 55%); }
.hero-inner { position: relative; z-index: 2; padding: 120px var(--gut) 80px; max-width: var(--maxw); }
.hero .page-hero-label, .hero-inner > p.page-hero-label { color: var(--accent-soft); font-family: var(--font-display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.hero-inner h1 { color: #fff; max-width: 16ch; }
.accent-word { color: var(--accent-soft); }
.hero-inner .lead { color: rgba(255,255,255,.8); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 52ch; margin-top: 8px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.86); font-size: .82rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; }

/* ---- Services overview extras ---- */
.svc-cards { }
.other-projects { margin-top: 30px; padding: 18px 22px; background: var(--paper-2); border-radius: var(--radius); font-size: .95rem; color: var(--muted); }
.other-projects a { color: var(--accent); font-weight: 600; }

/* ---- Work gallery ---- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.work-tile {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: var(--accent-soft);
  background-size: cover; background-position: center;
}

/* ---- Service area county grid ---- */
.county-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.county-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; transition: transform .18s ease, box-shadow .18s ease;
}
.county-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.county-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.county-card p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }
.county-home-tag { position: absolute; top: 16px; right: 16px; background: var(--accent-soft); color: var(--accent-dark); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.county-card .card-link { display: block; margin-top: 10px; }

/* ---- Feature cards (why-us) ---- */
.feat-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.feat-card { padding: 8px 0; }
.feat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat-ic svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feat-card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---- Content split ---- */
.split { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-body h2 { margin-bottom: 14px; }
.split-body p { color: var(--muted); }
.split-media { min-height: 200px; border-radius: var(--radius-lg); background: var(--accent-soft) center/cover no-repeat; }
.check-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--ink); }
.cl-ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cl-ic svg { width: 13px; height: 13px; }
.check-list b { font-weight: 600; }

/* ============================================================
   QUOTE FORM
   ============================================================ */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-top: 10px; }
.quote-form .field-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.quote-form .field { flex: 1; min-width: 160px; margin-bottom: 16px; }
.quote-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--accent); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 12px 13px; font-size: 1rem; font-family: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); box-sizing: border-box;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.quote-form textarea { min-height: 100px; resize: vertical; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 10px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, border-color .15s, color .15s;
}
.pill.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; font-size: .95rem; cursor: pointer; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.urgent-note { background: #fdf1ed; border: 1px solid #f3c8b8; color: #7a3319; border-radius: var(--radius-sm); padding: 10px 13px; font-size: .88rem; margin-bottom: 10px; }
.form-error { background: #fdecec; border: 1px solid #f3b8b8; color: #8a1f1f; border-radius: var(--radius-sm); padding: 10px 13px; font-size: .9rem; margin-bottom: 14px; }
.form-foot { font-size: .8rem; color: var(--muted-2); margin-top: 12px; }
.quote-form > .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-success { text-align: center; padding: 20px 6px; }
.fs-check { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.fs-check svg { width: 26px; height: 26px; }

.addr-suggestions {
  position: absolute; z-index: 20; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; margin-top: 4px;
}
.addr-suggestions li { padding: 11px 13px; font-size: .92rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.addr-suggestions li:last-child { border-bottom: none; }
.addr-suggestions li.active, .addr-suggestions li:hover { background: var(--accent-soft); }
.addr-suggestions li.no-results { color: var(--muted-2); cursor: default; }
.addr-suggestions li.no-results:hover { background: none; }
.addr-confirmed { margin-top: 6px; font-size: .82rem; color: var(--accent-dark); }

/* ---- Contact points (home) ---- */
.contact-points { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 24px 0 8px; }
.cpoint { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.cpoint svg { color: var(--accent); width: 18px; height: 18px; }

/* ---- Reviews ---- */
.rev-stars { display: flex; gap: 2px; margin-bottom: 10px; color: var(--muted-2); }
.rev-stars .star.filled { color: #d9a441; }
.rev-stars svg { width: 15px; height: 15px; }
.rev-text { font-size: .95rem; color: var(--ink); }
.rev-by { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.rev-ava, .rev-ava-img { width: 34px; height: 34px; border-radius: 50%; }
.rev-ava { background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.rev-ava-img { object-fit: cover; }
.rev-meta { display: flex; flex-direction: column; line-height: 1.3; }
.rev-meta b { font-size: .88rem; }
.rev-meta span { font-size: .78rem; color: var(--muted-2); }
.rev-foot { text-align: center; margin-top: 24px; color: var(--muted-2); font-size: .88rem; }
.rev-foot a { color: var(--accent); font-weight: 600; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — mobile-first; widen up
   ============================================================ */
@media (min-width: 640px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .county-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .nav-hamburger { display: none; }
  .nav-drawer { display: none; }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .county-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .quote-form .field-row .field { min-width: 0; }
}
@media (max-width: 899px) {
  .footer-inner { text-align: center; }
}
