/* =========================================================
   Keyworth Web Design — main stylesheet
   Palette inspired by South Nottinghamshire: village green,
   Sherwood deep greens, stone, cream and a warm amber CTA.
   ========================================================= */

:root {
  /* Colour system */
  --green-950: #122b1f;
  --green-900: #17372a;
  --green-800: #1c3f2e;
  --green-700: #24513c;
  --green-600: #2f6a4e;
  --green-100: #e2ede5;
  --cream: #faf7f0;
  --beige: #f1ebde;
  --stone: #ddd3bf;
  --charcoal: #26251f;
  --ink: #2b2a24;
  --muted: #625f54;
  --white: #ffffff;
  --amber-600: #b45309;
  --amber-700: #92400e;
  --amber-soft: #f2b23e;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape and elevation */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(38, 37, 31, 0.07);
  --shadow-md: 0 10px 30px rgba(38, 37, 31, 0.1);
  --shadow-lg: 0 24px 60px rgba(23, 55, 42, 0.18);

  --container: 1160px;
  --transition: 0.25s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green-700); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.18rem; }

:focus-visible {
  outline: 3px solid var(--amber-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-900);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.alt-bg { background: var(--cream); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}

.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 0.7rem;
}
.kicker.light { color: var(--amber-soft); }

.section-sub {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--amber-600); color: var(--white); }
.btn-primary:hover { background: var(--amber-700); }

.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--cream); }

.btn-outline { background: transparent; color: var(--green-800); border-color: var(--stone); }
.btn-outline:hover { border-color: var(--green-800); }

.btn-light { background: var(--cream); color: var(--green-900); }
.btn-light:hover { background: var(--white); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.92rem; }
.btn-full { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-bottom-color: rgba(38, 37, 31, 0.08);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--green-900);
  line-height: 1.1;
}
.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--green-800);
  color: var(--amber-soft);
  border-radius: 12px;
  padding: 6px;
  flex-shrink: 0;
}
.logo-text em { font-style: normal; color: var(--amber-600); }
.logo.light { color: var(--cream); }
.logo.light .logo-mark { background: var(--cream); color: var(--green-800); }
.logo.light .logo-text em { color: var(--amber-soft); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.btn) {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  position: relative;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--amber-600);
  transition: right var(--transition);
}
.site-nav > a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(242, 178, 62, 0.14), transparent 60%),
    linear-gradient(180deg, #f6f1e5 0%, #faf7f0 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-700);
  background: var(--white);
  border: 1px solid var(--stone);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.pin-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.15);
}

.hero .lead {
  margin-top: 1.2rem;
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-points {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.55rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--green-900);
}
.hero-points li::before {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324513c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Hero visual: browser mockup with floating cards */
.hero-visual { position: relative; min-height: 380px; }

.browser-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(38, 37, 31, 0.06);
  animation: heroIn 0.9s ease both;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--beige);
  padding: 0.65rem 1rem;
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--stone); }
.browser-bar span:nth-child(1) { background: #e88f8f; }
.browser-bar span:nth-child(2) { background: #ecc94b; }
.browser-bar span:nth-child(3) { background: #7cb98a; }
.browser-url {
  flex: 1;
  margin-left: 0.6rem;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.9rem;
}

.browser-body { padding: 1.2rem 1.4rem 1.5rem; }
.mock-nav { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.mock-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--green-800); }
.mock-links { display: flex; gap: 0.5rem; flex: 1; }
.mock-links i { width: 34px; height: 8px; border-radius: 4px; background: var(--beige); }
.mock-btn { width: 74px; height: 26px; border-radius: 999px; background: var(--amber-soft); }

.mock-hero { padding: 0.4rem 0 1.2rem; }
.mock-line { border-radius: 6px; background: var(--green-100); }
.mock-line.lg { height: 20px; width: 82%; background: var(--green-800); margin-bottom: 0.7rem; }
.mock-line.md { height: 12px; width: 62%; margin-bottom: 1rem; }
.mock-cta-row { display: flex; gap: 0.6rem; }
.mock-cta { width: 108px; height: 32px; border-radius: 999px; background: var(--amber-600); }
.mock-cta.alt { background: var(--white); border: 2px solid var(--green-800); }

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.mock-cards div { height: 62px; border-radius: 12px; background: var(--cream); border: 1px solid var(--beige); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.3;
  border: 1px solid rgba(38, 37, 31, 0.06);
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.88rem; color: var(--green-900); }
.float-card span { color: var(--muted); }

.float-rank { top: -1.6rem; right: -0.5rem; animation-delay: 0.5s; }
.rank-badge {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-800);
  color: var(--amber-soft);
  font-weight: 700;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.float-review { bottom: 4.2rem; left: -2rem; animation-delay: 1.4s; }
.float-review .stars { color: var(--amber-soft); font-size: 0.95rem; letter-spacing: 2px; }
.float-lead { bottom: -1.4rem; right: 1.6rem; animation-delay: 2.3s; }
.lead-dot {
  width: 11px; height: 11px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #3f9d63;
  box-shadow: 0 0 0 4px rgba(63, 157, 99, 0.18);
}

.hero-hills {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero-hills svg { width: 100%; height: clamp(40px, 8vw, 110px); }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Trust ---------- */
.trust { background: var(--cream); }
.trust-intro {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 1.8rem;
  font-size: 1.06rem;
  color: var(--muted);
}
.trust-intro strong { color: var(--green-900); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}
.badge-item svg { width: 19px; height: 19px; color: var(--amber-600); flex-shrink: 0; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 1.4rem; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

.icon-tile {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 14px;
  margin-bottom: 1.1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.round { border-radius: 50%; }

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(38, 37, 31, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-600);
}
.service-card:hover .icon-tile { background: var(--green-800); color: var(--amber-soft); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.94rem; color: var(--muted); flex: 1; }
.card-link {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber-600);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-link::after { content: "→"; transition: transform var(--transition); }
.service-card:hover .card-link::after { transform: translateX(4px); }

/* How cards */
.how-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(38, 37, 31, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber-600);
  display: block;
  margin-bottom: 0.6rem;
}
.how-card h3 { margin-bottom: 0.5rem; }
.how-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Local section ---------- */
.local {
  position: relative;
  background:
    radial-gradient(50rem 26rem at 12% 0%, rgba(242, 178, 62, 0.1), transparent 55%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
  color: var(--cream);
  overflow: hidden;
}
.local h2 { color: var(--cream); }
.local p { color: rgba(250, 247, 240, 0.85); }

.local-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.local-copy p { margin-top: 1rem; }

.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}
.area-chips li {
  background: rgba(250, 247, 240, 0.1);
  border: 1px solid rgba(250, 247, 240, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.local-stats { display: grid; gap: 1rem; }
.stat-card {
  background: rgba(250, 247, 240, 0.07);
  border: 1px solid rgba(250, 247, 240, 0.16);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(4px);
}
.stat-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--amber-soft);
  display: block;
  margin-bottom: 0.2rem;
}
.stat-card span { font-size: 0.92rem; color: rgba(250, 247, 240, 0.8); }

.local-hills {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}
.local-hills svg { width: 100%; height: clamp(60px, 10vw, 140px); }

/* ---------- Process ---------- */
.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--beige);
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: var(--green-800);
  color: var(--amber-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.process-step h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.process-step p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Industries ---------- */
.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  text-align: center;
  border: 1px solid rgba(38, 37, 31, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.industry-card .icon-tile { margin-inline: auto; }
.industry-card:hover .icon-tile { background: var(--green-800); color: var(--amber-soft); transform: scale(1.06); }
.industry-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.industry-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.why-copy > p { margin-top: 1rem; color: var(--muted); }
.why-copy .btn { margin-top: 1.6rem; }

.why-list { list-style: none; display: grid; gap: 0.9rem; }
.why-list li {
  background: var(--cream);
  border-left: 4px solid var(--amber-600);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-list li:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); }
.why-list strong { display: block; color: var(--green-900); margin-bottom: 0.15rem; }
.why-list span { font-size: 0.94rem; color: var(--muted); }

/* ---------- Packages ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(38, 37, 31, 0.08);
  padding: 2rem 1.7rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.package-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.package-card.featured {
  background: linear-gradient(170deg, var(--green-900), var(--green-800));
  color: var(--cream);
  border: 0;
  box-shadow: var(--shadow-lg);
}
.package-card.featured h3 { color: var(--cream); }
.package-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber-600);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.package-tag { font-size: 0.92rem; color: var(--muted); margin: 0.4rem 0 1.2rem; }
.package-card.featured .package-tag { color: rgba(250, 247, 240, 0.75); }

.package-card ul { list-style: none; display: grid; gap: 0.55rem; flex: 1; }
.package-card ul li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.94rem;
}
.package-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324513c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.package-card.featured ul li::before {
  background-color: rgba(250, 247, 240, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b23e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
}

.package-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 1.4rem 0 1rem;
}
.package-price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.package-card.featured .package-price { color: var(--amber-soft); }
.package-card.featured .package-price span { color: rgba(250, 247, 240, 0.7); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--beige);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card .stars { color: var(--amber-600); letter-spacing: 3px; margin-bottom: 0.9rem; }
.testimonial-card blockquote {
  font-size: 0.99rem;
  color: var(--ink);
  flex: 1;
  font-style: italic;
}
.testimonial-card figcaption { margin-top: 1.2rem; }
.testimonial-card figcaption strong { display: block; color: var(--green-900); }
.testimonial-card figcaption span { font-size: 0.88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-container { max-width: 50rem; }
.faq-list { display: grid; gap: 0.9rem; }

.faq-item {
  background: var(--white);
  border: 1px solid rgba(38, 37, 31, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--green-900);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-100);
  transition: background var(--transition), transform var(--transition);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  background: var(--green-700);
  transform: translate(-50%, -50%);
  transition: transform var(--transition), background var(--transition);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--green-800); transform: rotate(45deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--amber-soft); }

.faq-answer { padding: 0 1.4rem 1.2rem; }
.faq-answer p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(46rem 22rem at 80% 110%, rgba(242, 178, 62, 0.16), transparent 60%),
    linear-gradient(150deg, var(--green-950), var(--green-800));
}
.final-cta-inner { text-align: center; max-width: 44rem; margin-inline: auto; }
.final-cta h2 { color: var(--cream); }
.final-cta p { color: rgba(250, 247, 240, 0.82); margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy > p { margin-top: 1rem; color: var(--muted); }

.contact-details { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.contact-details li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.contact-details svg { width: 20px; height: 20px; color: var(--amber-600); flex-shrink: 0; }
.contact-details a { color: var(--green-900); }
.contact-details a:hover { color: var(--amber-600); }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.form-field label span { color: var(--amber-600); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(47, 106, 78, 0.15);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; text-align: center; }
.form-success {
  margin-top: 1rem;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: rgba(250, 247, 240, 0.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand p { margin-top: 1rem; max-width: 22rem; }

.social-row { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.social-row a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(250, 247, 240, 0.08);
  color: var(--cream);
  transition: background var(--transition), transform var(--transition);
}
.social-row a:hover { background: var(--amber-600); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.footer-col h3 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(250, 247, 240, 0.72);
  padding: 0.22rem 0;
}
.footer-col a:hover { color: var(--amber-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid rgba(250, 247, 240, 0.12);
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  font-size: 0.85rem;
  color: rgba(250, 247, 240, 0.55);
}
.footer-bottom a { color: rgba(250, 247, 240, 0.65); }
.footer-bottom a:hover { color: var(--amber-soft); }

/* ---------- Service pages ---------- */
.page-hero {
  background:
    radial-gradient(48rem 24rem at 90% -20%, rgba(242, 178, 62, 0.13), transparent 60%),
    linear-gradient(180deg, #f6f1e5 0%, var(--cream) 100%);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.page-hero .breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.page-hero .breadcrumbs a { color: var(--green-700); font-weight: 500; }
.page-hero .breadcrumbs a:hover { color: var(--amber-600); }
.page-hero h1 { max-width: 46rem; font-size: clamp(2rem, 4.5vw, 2.9rem); }
.page-hero .lead { margin-top: 1.1rem; font-size: 1.1rem; color: var(--muted); max-width: 40rem; }

.included {
  background: var(--cream);
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2rem;
  max-width: 52rem;
  margin-inline: auto;
  list-style: none;
}
.included-grid li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem 0.85rem 2.9rem;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
}
.included-grid li::before {
  content: "";
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324513c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.page-local {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.page-local p { color: var(--muted); margin-top: 1rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger cards inside grids */
.card-grid .reveal:nth-child(2), .process-grid .reveal:nth-child(2), .why-list .reveal:nth-child(2), .package-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(3), .process-grid .reveal:nth-child(3), .why-list .reveal:nth-child(3), .package-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid .reveal:nth-child(4), .process-grid .reveal:nth-child(4), .why-list .reveal:nth-child(4) { transition-delay: 0.24s; }
.card-grid .reveal:nth-child(5), .why-list .reveal:nth-child(5) { transition-delay: 0.08s; }
.card-grid .reveal:nth-child(6), .why-list .reveal:nth-child(6) { transition-delay: 0.16s; }
.card-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.card-grid .reveal:nth-child(8) { transition-delay: 0.32s; }

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

/* ---------- Nav dropdown ---------- */
.nav-item { position: relative; }
.site-nav .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
}
.caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}
.dropdown-menu {
  min-width: 240px;
  background: var(--white);
  border: 1px solid rgba(38, 37, 31, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.55rem;
  display: grid;
  gap: 2px;
}
.dropdown-menu a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--cream); color: var(--green-800); }
.dropdown-menu .dropdown-all {
  border-top: 1px solid var(--beige);
  margin-top: 4px;
  color: var(--amber-600);
  font-weight: 600;
}

/* ---------- Prose (blog posts, legal pages) ---------- */
.prose { max-width: 44rem; margin-inline: auto; font-size: 1.02rem; }
.prose h2 { margin: 2.3rem 0 0.8rem; font-size: 1.5rem; }
.prose h3 { margin: 1.7rem 0 0.5rem; font-size: 1.15rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--amber-600); }
.prose blockquote {
  border-left: 4px solid var(--amber-600);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.3rem;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.post-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Blog cards ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(38, 37, 31, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-600); }
.blog-card .post-tag { align-self: flex-start; margin-bottom: 0.9rem; }
.blog-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.blog-card p { font-size: 0.94rem; color: var(--muted); flex: 1; }
.blog-date { font-size: 0.85rem; color: var(--muted); margin-top: 1.1rem; }
.blog-card .card-link { margin-top: 0.4rem; }
.blog-card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Case study cards ---------- */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.case-card {
  background: var(--white);
  border: 1px solid rgba(38, 37, 31, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.case-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.case-card > p { font-size: 0.96rem; color: var(--muted); }
.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.case-results div {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
}
.case-results strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-800);
}
.case-results span { font-size: 0.76rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 0.15rem; }

/* ---------- About page ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.impact-card {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.4rem;
  text-align: center;
}
.impact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-800);
  margin-bottom: 0.3rem;
}
.impact-card span { font-size: 0.92rem; color: var(--muted); }

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-copy p { margin-top: 1rem; color: var(--muted); }
.story-copy p strong { color: var(--green-900); }

.founder-card {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  text-align: center;
}
.avatar {
  width: 92px; height: 92px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--amber-soft);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.founder-card h3 { margin-bottom: 0.2rem; }
.founder-card .role { font-size: 0.9rem; color: var(--amber-600); font-weight: 600; margin-bottom: 0.9rem; }
.founder-card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Utility ---------- */
.section-cta { text-align: center; margin-top: 2.4rem; }
.page-note {
  background: var(--beige);
  border-left: 4px solid var(--amber-600);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 2.2rem auto 0;
}
.area-chips a { color: inherit; }
.area-chips li:hover { background: rgba(250, 247, 240, 0.2); }

.link-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.link-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.link-chips a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-600); }

/* 404 */
.notfound { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.notfound .big {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--green-100);
  line-height: 1;
}
.notfound h1 { margin-top: 0.5rem; }
.notfound p { color: var(--muted); margin-top: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; margin-inline: auto; width: 100%; }
  .float-review { left: -0.5rem; }
  .float-rank { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; max-width: 28rem; margin-inline: auto; }
  .story-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .package-card.featured { order: -1; }
  .why-grid, .local-inner, .contact-grid { grid-template-columns: 1fr; }
  .local-stats { grid-template-columns: 1fr; max-width: 30rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--stone);
    box-shadow: var(--shadow-md);
    padding: 0.6rem 1.25rem 1.2rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn), .site-nav .nav-item > a { padding: 0.8rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid rgba(38, 37, 31, 0.06); }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-item { width: 100%; }
  .site-nav .nav-item > a { display: flex; width: 100%; }
  .dropdown { display: none; }
  .nav-cta { margin-top: 1rem; border-bottom: 0 !important; }
}

@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .float-review { display: none; }
  .float-rank { top: -1rem; right: -0.3rem; transform: scale(0.9); }
  .float-lead { bottom: -1rem; right: 0.4rem; transform: scale(0.9); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
