/* =========================================================================
   Custom Fence — Design System
   Local & family-owned fence contractor, Northern Utah
   ========================================================================= */

/* ---- Inter (self-hosted, latin subset, woff2) ---- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/inter-400.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/assets/fonts/inter-500.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/inter-600.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/inter-700.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap; src:url('/assets/fonts/inter-800.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* Brand palette — pulled from customfence.com (logo #00a94f, deep green #0c3231) */
  --green-900: #0c3231;
  --green-800: #0d5a30;
  --green-700: #0a7a36;  /* accessible accent for text/links (AA on white) */
  --green-600: #00a94f;
  --green-500: #23bf67;
  --green-300: #8fdcb0;
  --green-50:  #e9f7ef;

  --amber-600: #b9762a;
  --amber-500: #d8923c;
  --amber-300: #e6b878;

  --ink:       #1b2420;
  --slate:     #4a564f;
  --muted:     #6d7872;
  --line:      #e2e6e3;
  --paper:     #ffffff;
  --cream:     #f7f5f0;
  --cream-2:   #f1ede4;

  --ok:        #2f7d52;

  /* Type */
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(22,39,29,.06), 0 2px 8px rgba(22,39,29,.05);
  --shadow-md: 0 8px 28px rgba(22,39,29,.10);
  --shadow-lg: 0 20px 50px rgba(22,39,29,.18);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-700); }
ul, ol { padding-left: 1.15rem; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; color: var(--green-900); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--slate); }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight-top { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-cream { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-green { background: var(--green-800); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--slate); }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--green-700); margin-bottom: .85rem;
}
.bg-green .eyebrow { color: var(--green-300); }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; }
.section-head.center { margin-inline: auto; }
.measure { max-width: 68ch; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green-800); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .2s, color .18s;
  line-height: 1.15; text-align: center;
}
/* Icons scale with the button text and share its line-height, so buttons with
   an icon stay exactly as tall as text-only buttons beside them. */
.btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--green-700); color: #fff; }
.btn--dark:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--green-300); color: var(--green-800); }
.btn--ghost:hover { background: var(--green-50); color: var(--green-900); }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: var(--cream); color: var(--green-900); transform: translateY(-2px); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line);
}
.topbar { background: var(--green-900); color: #d9e4dd; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; flex-wrap: wrap; }
.topbar a { color: #eaf1ec; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar__contacts { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar__contacts span { display: inline-flex; align-items: center; gap: .35rem; }
/* Condensed: show only the "Serving Cache & Davis County" line */
@media (max-width: 720px){
  .topbar__hours, .topbar__phones { display: none; }
  .topbar .wrap { justify-content: center; }
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; color: var(--green-900); font-size: 1.3rem; letter-spacing: -.01em; }
.brand:hover { color: var(--green-900); }
.brand svg { flex: none; }
.brand__logo { display: block; height: 44px; width: auto; flex: none; }
.brand__logo--white { filter: brightness(0) invert(1); height: 48px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-600); }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav__links > li { position: relative; }
.nav__links a { display: block; padding: .6rem .8rem; color: var(--green-900); font-weight: 600; font-size: .98rem; border-radius: 8px; }
.nav__links a:hover { background: var(--green-50); }
.nav__links a[aria-current="page"] { color: var(--green-700); }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .3rem; color: var(--muted); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: .5rem; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { padding: .55rem .7rem; font-weight: 600; font-size: .94rem; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__toggle { display: none; }

@media (max-width: 980px) {
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: .55rem; cursor: pointer;
  }
  .nav__toggle span { width: 26px; height: 2.5px; background: var(--green-900); border-radius: 2px; transition: .25s; }
  .nav[data-open="true"] .nav__toggle span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
  .nav[data-open="true"] .nav__toggle span:nth-child(2){ opacity: 0; }
  .nav[data-open="true"] .nav__toggle span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86%); background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 5.5rem 1.25rem 2rem;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .nav[data-open="true"] .nav__links { transform: translateX(0); }
  .nav__links a { padding: .85rem .6rem; border-radius: 8px; font-size: 1.05rem; }
  .has-sub > a::after { float: right; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .4rem .7rem; padding: 0 0 0 .5rem;
    display: none;
  }
  .has-sub[data-expanded="true"] .submenu { display: block; }
}
.nav__scrim { display: none; }
@media (max-width: 980px) {
  .nav__scrim { position: fixed; inset: 0; background: rgba(16,24,20,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: -1; }
  .nav[data-open="true"] .nav__scrim { opacity: 1; visibility: visible; }
}

/* ---- Hero ---- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(16,33,24,.92) 0%, rgba(20,40,29,.78) 45%, rgba(20,40,29,.35) 100%);
}
.hero__inner { padding: clamp(3.5rem, 9vw, 7rem) 0; max-width: 660px; }
.hero h1 { color: #fff; }
.hero p { color: #e6efe8; font-size: 1.2rem; margin-top: 1rem; }
.hero .btn-row { margin-top: 1.9rem; }
.hero__trust { display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 2rem; margin-top: 2.2rem; color: #cdddd2; font-size: .92rem; }
@media (max-width: 400px){ .hero__trust { grid-template-columns: 1fr; } }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero--page .hero__inner { max-width: 760px; padding: clamp(3rem, 7vw, 5rem) 0; }
/* Centered hero (service-area location pages) */
.hero--center .hero__inner { margin-inline: auto; text-align: center; }
.hero--center .breadcrumbs { justify-content: center; }
.hero--center .btn-row { justify-content: center; }
.hero--center .hero__trust { justify-content: center; }
.breadcrumbs { font-size: .85rem; color: #cdddd2; margin-bottom: 1rem; }
.breadcrumbs a { color: #eaf1ec; }
.breadcrumbs span { opacity: .6; margin: 0 .35rem; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px){ .grid-2 { grid-template-columns: 1fr; } }
/* Card & box grids: centered flex so a partial last row sits centered under the
   header instead of hanging on the left. Full rows still fill edge-to-edge. */
.grid-3, .grid-4 { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-3 > * { flex: 1 1 300px; max-width: 380px; }
.grid-4 > * { flex: 1 1 235px; max-width: 300px; }
@media (max-width: 620px){ .grid-3 > *, .grid-4 > * { flex-basis: 100%; max-width: none; } }
/* Service-area hub: centered, self-balancing city cards */
.area-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.area-cards > .card { flex: 0 1 340px; }
.area-cards .card__body { text-align: center; align-items: center; }
@media (max-width: 620px){ .area-cards > .card { flex-basis: 100%; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--green-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { font-size: .98rem; margin-bottom: 1rem; }
.card__link { margin-top: auto; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: .35rem; }
.card__link::after { content: "→"; transition: transform .2s; }
.card:hover .card__link::after { transform: translateX(4px); }

/* Feature (icon) cards */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.bg-green .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.bg-green .feature h3, .bg-green .feature p { color: #eaf1ec; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin-bottom: 1rem; }
.bg-green .feature__icon { background: rgba(255,255,255,.14); color: var(--green-300); }
.feature h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.feature p { font-size: .97rem; }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split__body h2 { margin-bottom: 1rem; }
.split__body > p { margin-bottom: 1rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--slate); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--green-50) 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='%2300a94f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checklist li strong { color: var(--ink); }
.bg-green .checklist li { color: #dbe6df; }
.bg-green .checklist li strong { color: #fff; }
.bg-green .checklist li::before { background-color: rgba(255,255,255,.92); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 620px){ .stats { grid-template-columns: 1fr; gap: 1rem; } }
.stat { padding: 1.2rem; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3rem); color: var(--green-300); font-weight: 700; line-height: 1; }
.bg-cream .stat__num, .bg-cream-2 .stat__num { color: var(--green-600); }
.stat__label { color: #cdddd2; font-weight: 600; margin-top: .5rem; letter-spacing: .02em; }
.bg-cream .stat__label, .bg-cream-2 .stat__label { color: var(--slate); }

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.gallery figure { flex: 1 1 240px; max-width: 320px; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
@media (max-width: 620px){ .gallery figure { flex-basis: calc(50% - .45rem); max-width: none; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }

/* Reviews */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review__stars { display: inline-flex; gap: 2px; color: var(--amber-500); margin-bottom: .8rem; }
.review__text { color: var(--ink); font-style: italic; margin-bottom: 1.1rem; }
.review__who { font-weight: 700; color: var(--green-900); margin-top: auto; }
.review__loc { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce8e0; max-width: 60ch; margin: .8rem auto 1.6rem; }

/* FAQ accordion */
.faq { max-width: 820px; margin-inline: auto; }
.faq__group-title { margin: 2.2rem 0 1rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: .8rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green-900);
  padding: 1.15rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q:hover { color: var(--green-700); }
.faq__q .ico { flex: none; width: 1.4rem; height: 1.4rem; position: relative; transition: transform .25s; }
.faq__q .ico::before, .faq__q .ico::after { content: ""; position: absolute; background: var(--green-600); border-radius: 2px; }
.faq__q .ico::before { width: 100%; height: 2.5px; top: 50%; transform: translateY(-50%); }
.faq__q .ico::after { height: 100%; width: 2.5px; left: 50%; transform: translateX(-50%); transition: transform .25s; }
.faq__item[open] .ico::after { transform: translateX(-50%) scaleY(0); }
.faq__a { padding: 0 1.3rem 1.25rem; }
.faq__a p { color: var(--slate); }
details.faq__item summary { list-style: none; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.6rem, 4vw, 2.4rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--green-900); margin-bottom: .4rem; font-size: .95rem; }
.field .req { color: var(--green-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(60,115,85,.2); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; gap: 0; } }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.form-success { display: none; background: var(--green-50); border: 1px solid var(--green-300); color: var(--green-800); padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 600; }

/* Contact info blocks */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 720px){ .contact-cards { grid-template-columns: 1fr; } }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.loc-card h3 { margin-bottom: .8rem; }
.loc-card dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; margin: 0; font-size: .97rem; }
.loc-card dt { color: var(--muted); font-weight: 600; }
.loc-card dd { margin: 0; color: var(--ink); }
.loc-card a { font-weight: 600; }

/* Prose */
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin: 2rem 0 1rem; }
.prose h3 { margin: 1.6rem 0 .7rem; }
.prose ul { margin-bottom: 1.1rem; display: grid; gap: .4rem; }

/* Pills / chips */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.pills li { background: var(--green-50); color: var(--green-800); font-weight: 600; font-size: .9rem; padding: .4rem .9rem; border-radius: 6px; border: 1px solid var(--line); }
.pills a { color: inherit; }

/* Footer */
.site-footer { background: var(--green-900); color: #c4d3ca; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.2rem; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.site-footer a { color: #c4d3ca; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer-brand p { color: #9fb3a7; font-size: .95rem; margin: 1rem 0; max-width: 34ch; }
.footer-contact { display: grid; gap: .7rem; font-size: .95rem; }
.footer-contact strong { color: #fff; display: block; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.6rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8ba093; }
.footer-bottom a { color: #8ba093; }

/* Misc */
.tag { display:inline-block; background: var(--green-600); color:#fff; font-weight:700; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:.3rem .7rem; border-radius:6px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }
.anchor-offset { scroll-margin-top: 120px; }
.float-cta { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: none; }
@media (max-width: 980px){ .float-cta { display: block; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Areas We Service — balanced county directory */
.areas { max-width: 940px; margin: 0 auto; }
.areas-region { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.areas-region + .areas-region { margin-top: 1.6rem; }
.areas-region__title { font-family: var(--font-head); font-size: 1.1rem; color: var(--green-900); background: var(--green-50); padding: .85rem 1.5rem; margin: 0; border-bottom: 1px solid var(--line); letter-spacing: -.01em; }
.county { display: grid; grid-template-columns: 210px 1fr; gap: 1.5rem; align-items: start; padding: 1.15rem 1.5rem; }
.county + .county { border-top: 1px solid var(--line); }
.county__name { font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--green-900); }
.county__body { min-width: 0; }
.county__cities { margin: 0; font-size: .96rem; line-height: 1.9; }
.county__cities a { font-weight: 600; }
.county__extra { margin: .5rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.county__cities + .county__extra { border-top: 1px dashed var(--line); padding-top: .55rem; }
@media (max-width: 640px){
  .county { grid-template-columns: 1fr; gap: .5rem; padding: 1.1rem 1.2rem; }
  .areas-region__title { padding: .8rem 1.2rem; }
}

/* Blog */
.post-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); margin-bottom: .55rem; }
.post-meta { color: var(--muted); font-size: .92rem; margin: 0 0 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.blog-post { max-width: 760px; }

/* Cookie consent banner */
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 540px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: .9rem; color: var(--slate); margin: 0; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: .6rem; justify-content: flex-end; }
@media (min-width: 640px){ .cookie-banner { left: 1.5rem; right: auto; bottom: 1.5rem; } }

/* Form error + consent checkbox */
.form-error { display: none; background: #f7ece9; border: 1px solid #e3c7c1; color: #8a2b22; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 600; }
.form-error a { color: inherit; text-decoration: underline; }
.field--check label { display: block; position: relative; padding-left: 1.75rem; font-weight: 400; font-size: .92rem; line-height: 1.5; color: var(--slate); cursor: pointer; margin: 0; }
.field--check input { position: absolute; left: 0; top: .15rem; width: 18px; height: 18px; min-width: 18px; margin: 0; }

.hp { display: none !important; }

/* A11y: footer CTA keeps white text; underline in-text links */
.site-footer .btn--primary { color: #fff; }
.prose a, .cookie-banner__text a, .field--check a, .form-error a, .county__cities a { text-decoration: underline; }
