/* ============================================================
   Approach Outdoor Co. — shared styles for service / area pages
   Reuses the homepage design system (tokens, nav, footer).
   ============================================================ */

:root {
  --charcoal: #1F2528;
  --limestone: #D8D0C3;
  --greige: #F3F0EA;
  --limestone-bg: #EDE7DD;
  --taupe: #9A7C65;
  --green: #566B5F;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --nav-h: 72px;
  --pad: clamp(24px, 5vw, 80px);
  --sec: clamp(72px, 9vw, 120px);
  --max: 1380px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); background: var(--greige); color: var(--charcoal);
  overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--sec) 0; }

.label {
  font-family: var(--font-sans); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; padding: 13px 26px;
  cursor: pointer; border: none; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--greige); }
.btn-primary:hover { background: var(--taupe); }
.btn-secondary { background: transparent; color: var(--charcoal); border: 1px solid rgba(31,37,40,0.22); }
.btn-secondary:hover { border-color: var(--charcoal); background: rgba(31,37,40,0.04); }
.btn-light { background: var(--limestone); color: var(--charcoal); }
.btn-light:hover { background: #fff; }

/* ── Nav (solid, for subpages) ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; background: var(--greige);
  border-bottom: 1px solid rgba(31,37,40,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}
.nav-logo { display: flex; flex-direction: column; gap: 2px; }
.nav-logo-wordmark {
  font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--charcoal); line-height: 1;
}
.nav-logo-sub {
  font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--taupe);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.03em;
  color: var(--charcoal); opacity: 0.7; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-mobile-btn {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-mobile-btn span { width: 22px; height: 1.5px; background: var(--charcoal); transition: 0.3s; }
.nav-mobile.open .nav-mobile-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile.open .nav-mobile-btn span:nth-child(2) { opacity: 0; }
.nav-mobile.open .nav-mobile-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Breadcrumb ──────────────────────────────────────── */
.breadcrumb { padding-top: calc(var(--nav-h) + 28px); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; color: var(--taupe); }
.breadcrumb a { opacity: 0.85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--charcoal); opacity: 0.6; }

/* ── Page hero ───────────────────────────────────────── */
.page-hero { padding: 40px 0 var(--sec); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.page-hero h1 em { font-style: italic; color: var(--taupe); }
.page-hero .lead { font-size: 1.0625rem; font-weight: 300; color: rgba(31,37,40,0.75); max-width: 44ch; margin-bottom: 32px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero-img { aspect-ratio: 4/3; overflow: hidden; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Generic content ─────────────────────────────────── */
.prose h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.prose h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; margin: 28px 0 10px; }
.prose p { font-weight: 300; color: rgba(31,37,40,0.8); margin-bottom: 18px; max-width: 68ch; }
.prose p strong { font-weight: 600; color: var(--charcoal); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.9rem,3.6vw,3rem); line-height: 1.08; letter-spacing: -0.02em; margin-top: 12px; }

/* ── Includes / feature list ─────────────────────────── */
.limestone { background: var(--limestone-bg); }
.charcoal-sec { background: var(--charcoal); color: var(--limestone); }
.charcoal-sec .section-head h2, .charcoal-sec h2, .charcoal-sec h3 { color: var(--greige); }
.charcoal-sec p { color: rgba(216,208,195,0.7); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(31,37,40,0.08); border: 1px solid rgba(31,37,40,0.08); }
.feature-grid .cell { background: var(--greige); padding: 30px 28px; }
.limestone .feature-grid .cell { background: var(--limestone-bg); }
.feature-grid .cell h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 8px; }
.feature-grid .cell p { font-size: 0.9375rem; font-weight: 300; color: rgba(31,37,40,0.7); margin: 0; }

/* ── Why-it-matters cards ────────────────────────────── */
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.reason { padding: 28px; background: rgba(216,208,195,0.10); border: 1px solid rgba(216,208,195,0.14); }
.reason .num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--taupe); }
.reason h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; margin: 6px 0 10px; }
.reason p { font-size: 0.9375rem; font-weight: 300; margin: 0; }

/* ── Before / after (static, no-JS) ──────────────────── */
.ba2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba2 figure { position: relative; margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.ba2 figure img { width: 100%; height: 100%; object-fit: cover; }
.ba2 figcaption {
  position: absolute; top: 14px; left: 14px; font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: rgba(31,37,40,0.72); padding: 5px 12px;
}
.ba-cap { margin-top: 16px; font-size: 0.9375rem; font-weight: 300; color: rgba(31,37,40,0.7); }

/* ── Pricing tiers ───────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { padding: 32px 28px; background: var(--charcoal); border: 1px solid rgba(216,208,195,0.14); display: flex; flex-direction: column; }
.tier .t-name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--greige); margin-bottom: 6px; }
.tier .t-price { font-size: 1.6rem; font-weight: 300; color: var(--limestone); margin-bottom: 4px; }
.tier .t-time { font-size: 0.8125rem; font-weight: 300; color: rgba(216,208,195,0.5); margin-bottom: 20px; }
.tier ul { list-style: none; margin-bottom: 24px; flex: 1; }
.tier li { font-size: 0.875rem; font-weight: 300; color: rgba(216,208,195,0.8); padding: 7px 0 7px 20px; position: relative; border-top: 1px solid rgba(216,208,195,0.08); }
.tier li:before { content: '—'; position: absolute; left: 0; color: var(--taupe); }

/* ── FAQ (semantic accordion, no JS needed) ──────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid rgba(31,37,40,0.12); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(31,37,40,0.12); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: '+'; position: absolute; right: 4px; top: 20px; font-size: 1.5rem; font-weight: 300; color: var(--taupe); transition: transform 0.2s; }
.faq details[open] summary:after { content: '–'; }
.faq details p { padding: 0 0 24px; font-weight: 300; color: rgba(31,37,40,0.78); max-width: 70ch; }

/* ── CTA band ────────────────────────────────────────── */
.cta-band { background: var(--charcoal); color: var(--limestone); text-align: center; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2rem,4vw,3.25rem); line-height: 1.1; color: var(--greige); margin-bottom: 18px; letter-spacing: -0.02em; }
.cta-band p { font-weight: 300; color: rgba(216,208,195,0.65); max-width: 52ch; margin: 0 auto 32px; }

/* ── Related links ───────────────────────────────────── */
.related { display: flex; flex-wrap: wrap; gap: 12px; }
.related a { font-size: 0.8125rem; font-weight: 400; padding: 10px 18px; border: 1px solid rgba(31,37,40,0.16); transition: 0.2s; }
.related a:hover { border-color: var(--charcoal); background: rgba(31,37,40,0.04); }

/* ── Area pills ──────────────────────────────────────── */
.area-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.area-pills span, .area-pills a { font-size: 0.75rem; font-weight: 300; padding: 7px 14px; border: 1px solid rgba(31,37,40,0.16); color: rgba(31,37,40,0.7); }
.charcoal-sec .area-pills span, .charcoal-sec .area-pills a { border-color: rgba(216,208,195,0.2); color: rgba(216,208,195,0.7); }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: #141a1d; padding: clamp(60px,8vw,100px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; padding-bottom: 56px; border-bottom: 1px solid rgba(216,208,195,0.07); margin-bottom: 36px; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 400; letter-spacing: 0.04em; color: var(--limestone); margin-bottom: 6px; }
.footer-brand-tag { font-size: 0.75rem; font-weight: 300; color: rgba(216,208,195,0.35); margin-bottom: 20px; max-width: 34ch; line-height: 1.6; }
.footer-col-hl { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(216,208,195,0.5); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.8125rem; font-weight: 300; color: rgba(216,208,195,0.48); transition: color 0.2s; }
.footer-links a:hover { color: var(--limestone); }
.footer-areas { font-size: 0.8125rem; font-weight: 300; color: rgba(216,208,195,0.48); line-height: 1.9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-legal { font-size: 0.75rem; font-weight: 300; color: rgba(216,208,195,0.3); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: 0.75rem; font-weight: 300; color: rgba(216,208,195,0.45); }
.footer-social a:hover { color: var(--limestone); }

/* ── Before/after drag slider (shared; index.html keeps its own inline copy) ── */
.ba-slider {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  cursor: ew-resize; user-select: none; background: #2a2a2a;
}
.ba-before, .ba-after {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.ba-before-bg, .ba-after-bg {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: white; transform: translateX(-50%);
  z-index: 10; pointer-events: none; transition: left 0s;
}
.ba-handle-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.ba-tags {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; pointer-events: none; z-index: 5;
}
.ba-tag {
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 12px; background: rgba(31,37,40,0.65); color: rgba(243,240,234,0.8);
  backdrop-filter: blur(4px);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-mobile.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--greige); padding: 20px var(--pad); gap: 18px; border-bottom: 1px solid rgba(31,37,40,0.08);
  }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-img { order: -1; }
  .feature-grid, .reason-grid, .ba2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
