/* ==========================================================================
   Lansley Digital — shared stylesheet
   Design tokens sampled directly from the live production site
   (bg #FAF9F6, ink #131C17, green #0D7A4F, tag bg #E4F2EA)
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #FAF9F6;
  --ink:       #131C17;
  --muted:     rgba(19,28,23,0.6);
  --muted-2:   rgba(19,28,23,0.4);
  --green:     #0D7A4F;
  --green-hov: #0a6440;
  --tag-bg:    #E4F2EA;
  --border:    rgba(19,28,23,0.12);
  --border-2:  rgba(19,28,23,0.08);
  --surface:   #ffffff;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ── NAV ── */
nav.site-nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-2);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.nav-wordmark { font-weight: 800; font-size: 15px; letter-spacing: -0.2px; color: var(--ink); }
.nav-wordmark .accent { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--green-hov) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: all .2s; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-mobile { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 24px; flex-direction: column; gap: 4px; z-index: 99; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  nav.site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── GENERIC PAGE LAYOUT (for local/service/about pages) ── */
.page-hero {
  padding: 56px 24px 40px;
  max-width: 880px;
  margin: 0 auto;
}
.page-hero .tag { display:inline-flex; align-items:center; gap:8px; background:var(--tag-bg); color:var(--green); font-size:13px; font-weight:700; padding:6px 16px; border-radius:20px; margin-bottom:20px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 18px; }
.page-hero p.lede { font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.7; }

.section { padding: 48px 24px; max-width: 880px; margin: 0 auto; border-top: 1px solid var(--border-2); }
.section h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.section p { color: var(--muted); margin-bottom: 14px; max-width: 700px; }
.section ul { margin-left: 20px; color: var(--muted); margin-bottom: 14px; }
.section li { margin-bottom: 8px; }

.hero-actions { display:flex; flex-wrap:wrap; gap: 16px; align-items:center; }

.about-grid { display:grid; grid-template-columns: 160px 1fr; gap: 32px; max-width: 700px; margin: 0 auto; align-items: start; }
.about-photo { width: 160px; height: 160px; border-radius: 8px; background: var(--tag-bg); display:flex; align-items:center; justify-content:center; color: var(--green); font-size:12px; font-weight:700; text-align:center; padding: 10px; }
@media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; } .about-photo { margin: 0 auto; } }

.local-links { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }
.local-links a { font-size: 13px; font-weight:600; color: var(--green); text-decoration:none; border:1px solid var(--border); border-radius: 20px; padding: 8px 16px; transition: background .15s; }
.local-links a:hover { background: var(--tag-bg); }

.faq-item { padding: 20px 0; border-bottom: 1px solid var(--border-2); }
.faq-item:first-child { border-top: 1px solid var(--border-2); }
.faq-q { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.faq-a { color: var(--muted); }

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-hov); }
.btn-secondary {
  display: inline-block;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
  transition: background .15s;
}
.btn-secondary:hover { background: rgba(19,28,23,0.06); }

.contact-block { padding: 56px 24px 72px; max-width: 640px; margin: 0 auto; text-align: center; }
.contact-block h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.contact-block p { color: var(--muted); margin-bottom: 28px; }
.contact-row { display:flex; justify-content:center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

form.mockup-form { text-align: left; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
form.mockup-form label { font-size: 13px; font-weight: 700; margin-bottom: 4px; display:block; }
form.mockup-form input, form.mockup-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
form.mockup-form input:focus, form.mockup-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
form.mockup-form .form-note { font-size: 12px; color: var(--muted-2); }

footer.site-footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand { font-weight: 700; font-size: 13px; color: var(--muted); }
.footer-links { display:flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration:none; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 11px; color: var(--muted-2); }

@media (max-width: 640px) {
  .contact-row { flex-direction: column; align-items: stretch; }
}

/* ── MOVEMENT: scroll reveal + hover lift, applied automatically by script.js ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-auto {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
  }
  .reveal-auto.in { opacity: 1; transform: none; }
}

.card, .pkg, .process-step, .demo-card, .faq-item, .svc, .price-card, .offer-box, .stat-block {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover, .pkg:hover, .process-step:hover, .demo-card:hover, .svc:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}
.faq-item { transition: padding-left .18s ease, border-color .18s ease; }
.faq-item:hover { border-color: var(--green); padding-left: 6px; }

.btn-primary, .btn-secondary { transition: background .18s ease, transform .12s ease, border-color .18s ease; }
.btn-primary:active, .btn-secondary:active { transform: scale(0.97); }

.local-links a { transition: transform .15s ease, background .15s ease; }
.local-links a:hover { transform: translateY(-2px); }
