/* =========================================================================
   NEPO Construction Ltd — design system
   Palette/typography deliberately steer away from Joseph's KPR Plumbing build
   (dark charcoal/gold, fixture close-ups): warm stone base, charcoal text,
   a single restrained forest-green accent, airy architectural photography.
   ========================================================================= */

:root {
  /* --- colour tokens --- */
  --stone:        #F5F1E7;
  --stone-2:      #EBE4D3;
  --paper:        #FFFFFF;
  --charcoal:     #232019;
  --charcoal-soft:#4A453C;
  --charcoal-60:  rgba(35, 32, 25, .62);
  --charcoal-40:  rgba(35, 32, 25, .4);
  --line:         rgba(35, 32, 25, .13);
  --line-soft:    rgba(35, 32, 25, .07);
  --accent:       #2E4A3A;
  --accent-dark:  #1F3327;
  --accent-light: #5C7C68;
  --accent-pale:  #AEC2B7;
  --accent-wash:  #E4EAE3;
  --cream:        #FBF9F3;

  /* --- type: Space Grotesk for headings/eyebrows (the pairing from the
     original approved mockup, reinstated here as a deliberate display face —
     distinct from body text, not a single-family site), Plus Jakarta Sans
     for body copy and UI (buttons, nav, form fields, captions). --- */
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1240px;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -.03em; color: var(--charcoal); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
::selection { background: var(--accent); color: var(--cream); }

/* --- layout helpers --- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .wrap { padding: 0 2.5rem; } }

.section { padding: 3.5rem 0; }
.section-alt { background: var(--stone-2); }
.section-charcoal { background: var(--charcoal); color: var(--stone); }
.section-charcoal h2, .section-charcoal h3 { color: var(--stone); }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-tight { padding: 2.5rem 0; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  display: inline-block;
}
.section-charcoal .eyebrow, .social-strip .eyebrow { color: var(--accent-pale); }

.rule {
  position: relative;
  display: block;
  padding-bottom: .9em;
}
.rule::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 2.75rem;
  background: var(--accent);
}
.section-charcoal .rule::after, .social-strip .rule::after { background: var(--accent-light); }

.max-w-copy { max-width: 42rem; }
.max-w-narrow { max-width: 34rem; }

/* H1 targets ~72-88px on 1280-1440px desktop viewports, per the bpmarine/
   modulex benchmark — scales down to a legible ~44px on mobile via clamp. */
.h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em; }
.h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; letter-spacing: -.02em; }
.lede { font-size: 1.1rem; color: var(--charcoal-soft); font-weight: 300; line-height: 1.7; }
.section-charcoal .lede { color: rgba(245,241,231,.72); }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  letter-spacing: -.01em;
  font-weight: 600;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--stone); }
.section-charcoal .btn-outline { border-color: var(--stone); color: var(--stone); }
.section-charcoal .btn-outline:hover { background: var(--stone); color: var(--charcoal); }
.btn-sm { padding: .7rem 1.4rem; font-size: .78rem; }

/* =========================================================================
   HEADER / NAV — persistent light header on every page (not overlaid on
   hero imagery), keeps the site reading light/architectural throughout
   rather than the dark-nav-on-photo pattern used on the KPR build.
   ========================================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 231, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 42px; width: auto; }
@media (max-width: 479px) { .brand { margin-left: .85rem; } }
@media (min-width: 768px) { .brand img { height: 50px; } }
.brand-text { display: none; }
@media (min-width: 480px) {
  .brand-text {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    line-height: 1.15;
  }
  .brand-text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: .15rem; }
}

.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.nav-link {
  position: relative;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-soft);
  padding: .3rem 0;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--charcoal); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

.header-social {
  display: none;
  align-items: center;
  gap: .9rem;
  padding-right: 1.4rem;
  margin-right: 1.4rem;
  border-right: 1px solid var(--line);
}
@media (min-width: 1024px) { .header-social { display: flex; } }
.header-social a { color: var(--charcoal-soft); transition: color .25s ease; }
.header-social a:hover { color: var(--accent); }
.header-social svg { width: 17px; height: 17px; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; color: var(--charcoal);
}
@media (min-width: 1024px) { .menu-btn { display: none; } }

#mobile-menu {
  display: none;
  background: var(--stone);
  border-top: 1px solid var(--line);
  padding: 1.5rem;
}
#mobile-menu.open { display: block; }
#mobile-menu a.nav-link { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: .85rem; }
.mobile-social { display: flex; gap: 1.25rem; padding-top: 1.25rem; }
.mobile-social a { color: var(--charcoal-soft); }
.mobile-social svg { width: 20px; height: 20px; }
#mobile-menu .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* =========================================================================
   HOME HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 640px;
  height: 88svh;
  max-height: 900px;
  width: 100%;
  overflow: hidden;
  background: var(--charcoal);
}
.hero picture, .hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,11,.28) 0%, rgba(15,14,11,.36) 40%, rgba(15,14,11,.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4.5rem;
  /* Lets clicks/drags in the empty upper photo area fall through to the
     before/after slider beneath; only the actual buttons opt back in below. */
  pointer-events: none;
}
.hero-content .eyebrow { color: var(--accent-pale); margin-bottom: 1.25rem; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-content h1 { color: var(--cream); max-width: 40rem; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-content .lede { color: rgba(251,249,243,.92); max-width: 30rem; margin-top: 1.4rem; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero-cta { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta a { pointer-events: auto; }
.hero-cta .btn-outline { border-color: var(--cream); color: var(--cream); }
.hero-cta .btn-outline:hover { background: var(--cream); color: var(--charcoal); }

/* =========================================================================
   PAGE HERO (service / portfolio / about / reviews / contact banners)
   ========================================================================= */
.page-hero {
  position: relative;
  height: 46vh;
  min-height: 320px;
  max-height: 560px;
  overflow: hidden;
  background: var(--charcoal);
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,11,.25) 0%, rgba(15,14,11,.35) 35%, rgba(15,14,11,.82) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.75rem;
}
.page-hero-content .eyebrow { color: var(--accent-pale); margin-bottom: 1rem; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.page-hero-content h1 { color: var(--cream); max-width: 38rem; text-shadow: 0 2px 24px rgba(0,0,0,.45); }

.breadcrumb {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--stone);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .74rem; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; color: var(--charcoal-60); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--charcoal); font-weight: 500; }

/* =========================================================================
   SERVICE ROWS (home overview + services hub)
   ========================================================================= */
.service-row { border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .service-row-inner { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.5rem 0; }
  .service-row:nth-child(even) .img-col { order: 2; }
}
.img-frame { overflow: hidden; border-radius: var(--radius); }
.img-frame img { width: 100%; height: auto; display: block; transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
.img-frame:hover img { transform: scale(1.04); }
.service-num { font-family: var(--font-head); font-size: .9rem; color: var(--charcoal-60); letter-spacing: .05em; }
.service-row h3 { margin-top: .9rem; margin-bottom: 1.1rem; }
.service-row p { color: var(--charcoal-soft); font-weight: 300; max-width: 30rem; line-height: 1.7; }
.service-row .btn { margin-top: 1.5rem; }

/* --- service card grid (services hub + homepage) ---
   Flex-wrap + centre rather than a fixed-column grid: any item count wraps
   and centres its own last row, so 5 cards never leave one orphaned or
   force a mismatched "featured" card just to fill space. Icon-led cards
   (not photos) also mean every card is naturally the same size. */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  /* Fixed width, not flex-grow — a card must render the same size whether
     its row holds 1, 2 or 3 of them, so an incomplete last row centres
     without any card silently stretching to fill the gap. */
  flex: 0 1 300px;
  width: 300px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(35,32,25,.25); border-color: var(--accent-light); }
.service-icon {
  width: 76px; height: 76px;
  margin-top: 2.25rem;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 34px; height: 34px; }
.service-num-big {
  margin-top: 2.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
}
.service-num-rule {
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--accent-light);
  margin: 1.1rem 0 0;
}
.service-card-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; align-items: center; flex: 1; }
.service-card-body .service-num { margin-bottom: .9rem; }
.service-card-body h3 { font-size: 1.3rem; margin-bottom: .65rem; }
.service-card-body p { color: var(--charcoal-soft); font-weight: 300; font-size: .95rem; flex: 1; margin-bottom: 1.25rem; }
.service-card-body .card-link { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.service-card-body .card-link svg { width: 14px; height: 14px; transition: transform .25s ease; }
.service-card:hover .card-link svg { transform: translateX(3px); }

/* =========================================================================
   WHY NEPO
   ========================================================================= */
.why-grid { display: grid; gap: 2.75rem; margin-top: 1rem; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.why-item { padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .why-item { padding-top: 0; border-top: none; padding: 0 2.5rem; border-left: 1px solid var(--line); }
  .why-item:first-child { padding-left: 0; border-left: none; }
  .why-item:last-child { padding-right: 0; }
}
.why-item h3 { font-size: 1.4rem; margin-bottom: .85rem; }
.why-item p { color: var(--charcoal-soft); font-weight: 300; line-height: 1.7; }

/* =========================================================================
   SOCIAL / FOLLOW THE BUILD STRIP
   Given a much bigger visual role than a standard content section — this is
   the company's strongest channel, so it gets the same dark, high-contrast
   treatment as Reviews rather than sitting quietly on the light background.
   ========================================================================= */
.social-strip { background: var(--charcoal); color: var(--stone); padding: 6rem 0; }
@media (min-width: 768px) { .social-strip { padding: 8rem 0; } }
.social-strip h2 { color: var(--stone); font-size: clamp(2.25rem, 4.8vw, 3.5rem); }
.social-strip .lede { color: rgba(245,241,231,.72); }
.social-strip-inner { display: flex; flex-direction: column; gap: 3rem; align-items: flex-start; }
@media (min-width: 1000px) { .social-strip-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 4rem; } }
.social-cta-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.social-strip .social-pill {
  background: transparent;
  border-color: rgba(245,241,231,.3);
  color: var(--stone);
}
.social-strip .social-pill:hover { border-color: var(--accent-light); background: rgba(245,241,231,.06); }
.social-strip .social-pill svg { color: var(--accent-light); }
.social-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .8rem 1.4rem;
  font-size: .82rem; font-weight: 600; letter-spacing: -.005em;
  transition: border-color .25s ease, transform .25s ease;
}
.social-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-pill svg { width: 18px; height: 18px; color: var(--accent); }
.btn-instagram svg { width: 19px; height: 19px; }

/* Larger, feed-like tiles rather than a small strip of thumbnails — this
   channel gets real visual weight, not an afterthought. */
.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; max-width: 34rem; }
@media (min-width: 560px) { .insta-grid { grid-template-columns: repeat(2, 1fr); max-width: 30rem; } }
.insta-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta-grid a:hover img { transform: scale(1.08); }
.insta-grid .insta-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(35,32,25,0); transition: background .3s ease;
  color: #fff; opacity: 0;
}
.insta-grid a:hover .insta-icon { background: rgba(35,32,25,.35); opacity: 1; }
.insta-grid .insta-icon svg { width: 22px; height: 22px; }

/* =========================================================================
   PORTFOLIO GALLERY + LIGHTBOX
   ========================================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: .6rem 1.25rem;
  font-size: .82rem; letter-spacing: -.005em; font-weight: 600;
  color: var(--charcoal-soft);
  transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--stone); }

/* Fewer, larger tiles with real whitespace between them, rather than a dense
   wall of small thumbnails — two columns at every width beyond mobile. */
.gallery-hint { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--charcoal-60); margin: -1.5rem 0 1.75rem; }
.gallery-hint svg { flex-shrink: 0; color: var(--accent); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; cursor: pointer; background: var(--stone-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gi-tag {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 1.6rem .9rem .8rem;
  background: linear-gradient(0deg, rgba(35,32,25,.72), transparent);
  color: var(--cream);
  font-size: .74rem; letter-spacing: .04em;
}
.gallery-item .gi-ba-badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(35,32,25,.55);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 18, 14, .94);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; }
.lightbox-ba { display: none; width: min(1100px, 92vw); max-height: 82vh; aspect-ratio: 4/3; margin: 0; }
.lightbox.has-before .lightbox-single-img { display: none; }
.lightbox.has-before .lightbox-ba { display: block; }
.lightbox-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: var(--stone); font-size: .85rem; letter-spacing: .03em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: var(--stone);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 26px; height: 26px; }

/* --- before/after comparison slider --- */
.ba-slider {
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  cursor: ew-resize;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.ba-slider img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ba-tag { position: absolute; top: 1rem; z-index: 2; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); padding: .4rem .7rem; pointer-events: none; }
.ba-tag.before { left: 1rem; background: rgba(35,32,25,.72); }
.ba-tag.after { right: 1rem; background: var(--accent); }
.ba-handle { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.ba-handle-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--cream); transform: translateX(-50%); }
.ba-handle-grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* =========================================================================
   TESTIMONIALS / TRUST STRIP
   ========================================================================= */
.testimonial-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.testimonial .stars, .testimonial-slide .stars { color: var(--accent-pale); letter-spacing: .14em; font-size: .85rem; margin-bottom: 1.25rem; }
.section:not(.section-charcoal) .testimonial .stars, .section:not(.section-charcoal) .testimonial-slide .stars { color: var(--accent); }
.testimonial blockquote, .testimonial-slide blockquote { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.55; margin: 0 0 1.5rem; }
.testimonial cite, .testimonial-slide cite { display: block; font-style: normal; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal-60); margin-bottom: .85rem; }
.section-charcoal .testimonial cite, .section-charcoal .testimonial-slide cite { color: rgba(245,241,231,.55); }
.testimonial-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent);
}
.testimonial-link svg { width: 13px; height: 13px; }
.testimonial-link img { width: 15px; height: 15px; }
.section-charcoal .testimonial-link { color: var(--accent-pale); }
.testimonial-link:hover { text-decoration: underline; }

/* --- cycling review carousel --- */
.testimonial-carousel { max-width: 40rem; margin: 0 auto; text-align: center; }
.testimonial-slide {
  display: none;
  color: inherit; text-decoration: none;
  cursor: pointer;
  padding: 1rem; margin: -1rem;
  border-radius: var(--radius);
  transition: background-color .25s ease;
}
.testimonial-slide:hover { background: rgba(35,32,25,.035); }
.section-charcoal .testimonial-slide:hover { background: rgba(245,241,231,.05); }
.testimonial-slide:hover .testimonial-link { text-decoration: underline; }
.testimonial-slide.is-active { display: block; animation: testimonialFade .5s ease; }
@keyframes testimonialFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-carousel .stars { justify-content: center; display: flex; }
.testimonial-carousel .testimonial-link { justify-content: center; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2.25rem; }
.testimonial-arrow {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s ease, color .25s ease;
}
.testimonial-arrow:hover { border-color: var(--accent); color: var(--accent); }
.testimonial-arrow svg { width: 16px; height: 16px; }
.section-charcoal .testimonial-arrow { border-color: rgba(245,241,231,.3); color: var(--stone); }
.section-charcoal .testimonial-arrow:hover { border-color: var(--accent-light); color: var(--accent-light); }
.testimonial-dots { display: flex; gap: .55rem; }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: none; padding: 0; cursor: pointer; transition: background .25s ease, transform .25s ease; }
.testimonial-dot.is-active { background: var(--accent); transform: scale(1.35); }
.section-charcoal .testimonial-dot { background: rgba(245,241,231,.3); }
.section-charcoal .testimonial-dot.is-active { background: var(--accent-light); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 3rem;
}
.trust-strip-item { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 220px; }
.trust-strip-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-strip-icon svg { width: 22px; height: 22px; }
.trust-strip-icon--logo { background: transparent; }
.trust-strip-icon--logo img { width: 100%; height: 100%; object-fit: contain; }
.trust-strip-text p:first-child { font-weight: 600; font-size: .95rem; }
.trust-strip-text p:last-child { font-size: .82rem; color: var(--charcoal-60); }
.trust-strip-item a.trust-link { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; }
.social-pill img { width: 18px; height: 18px; }

/* =========================================================================
   CONTACT / FORM
   ========================================================================= */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--charcoal-soft); margin-bottom: .55rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  transition: border-color .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; gap: 1.4rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-hint { font-size: .78rem; color: var(--charcoal-60); margin-top: -.5rem; margin-bottom: 1.4rem; }
.form-note { font-size: .82rem; color: var(--charcoal-60); margin-top: 1rem; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.5rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: var(--accent-wash); color: var(--accent-dark); border: 1px solid var(--accent-light); }
.form-status.error { background: #F6E6E1; color: #7A2E1B; border: 1px solid #D98866; }

.info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.info-item dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal-60); margin-bottom: .4rem; }
.info-item dd { margin: 0; font-size: 1.2rem; font-family: var(--font-head); }
.info-item dd a:hover { color: var(--accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
#site-footer { background: var(--charcoal); color: var(--stone); }
.footer-top { padding: 4.5rem 0 3.5rem; display: grid; gap: 2.5rem 1.5rem; grid-template-columns: 1fr 1fr; }
.footer-top .footer-brand, .footer-top .footer-col:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; } .footer-top .footer-brand, .footer-top .footer-col:last-child { grid-column: auto; } }
@media (max-width: 767px) {
  .footer-top .footer-col { text-align: center; }
  .footer-top .footer-col ul { align-items: center; }
  .footer-top .footer-col:last-child ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem; }
  .footer-brand { text-align: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: rgba(245,241,231,.62); font-weight: 300; max-width: 22rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(245,241,231,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); transition: all .25s ease;
}
.footer-social a:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--charcoal); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { color: var(--stone); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.25rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: .8rem; }
.footer-col a { color: rgba(245,241,231,.68); font-size: .92rem; transition: color .25s ease; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(245,241,231,.14); padding: 1.75rem 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; font-size: .74rem; color: rgba(245,241,231,.5); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: center; gap: 2rem; } }
.footer-bottom a:hover { color: var(--accent-light); }

/* =========================================================================
   404
   ========================================================================= */
.error-page { padding: 7rem 0; text-align: center; }
.error-page .code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 7rem); color: var(--accent); line-height: 1; }
.error-page .btn { margin-top: 2rem; }

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --- misc --- */
.hidden { display: none; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 2.75rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.chip { display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; background: var(--accent-wash); color: var(--accent-dark); padding: .4rem .9rem; border-radius: 999px; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--charcoal); color: var(--stone); padding: .8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
