/* ==================================================================
   Hammerhead Construction — Modivana-style reskin
   Design tokens, fonts, and components.
   ================================================================== */

/* ---- Design tokens ---- */
:root {
  --bg:            #f0f0f0;
  --card:          #ffffff;
  --ink:           #0a0a0a;
  --ink-soft:      rgba(10, 10, 10, 0.85);
  --muted:         #666666;
  --green-dark:    #296b3f;
  --green-darker:  #1f5531;
  --green-light:   #438456;
  --green-tag-bg:  #e8f0ea;
  --border:        #e4e4e2;
  --white:         #ffffff;

  --shadow-soft:   0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-lift:   0 2px 6px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.06);

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   999px;

  --display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw:    1200px;
  --gap:     1rem;
  --gap-lg:  2rem;
}

/* ---- Self-hosted variable fonts ---- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-darker); }

/* ---- Layout primitives ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 480px) {
  .wrap { padding: 0 1rem; }
}
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-dark { background: var(--ink); color: rgba(255,255,255,0.85); }
.section-dark a { color: #fff; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; color: var(--muted); }

.lede { font-size: 1.0625rem; color: var(--muted); max-width: 58ch; line-height: 1.6; }

/* Tag pill (eyebrow) — small green-tinted pill with dot/icon */
.tag {
  display: inline-flex;
  width: auto;
  max-width: max-content;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-tag-bg);
  color: var(--green-darker);
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  line-height: 1;
  margin: 0 0 1.25rem;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-dark);
  display: inline-block;
  flex: 0 0 22px;
  background-image: radial-gradient(circle, #fff 30%, transparent 32%);
  background-size: 8px 8px;
  background-position: center;
  background-repeat: no-repeat;
}
/* Keep legacy .eyebrow selector working on inner pages — render as tag */
.eyebrow {
  display: inline-flex;
  width: auto;
  max-width: max-content;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-tag-bg);
  color: var(--green-darker);
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  margin: 0 0 1.25rem;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-dark);
  flex: 0 0 22px;
  background-image: radial-gradient(circle, #fff 30%, transparent 32%);
  background-size: 8px 8px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: nowrap;
}
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}
@media (max-width: 540px) {
  .brand { flex-shrink: 1; }
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--green-dark);
  border-radius: var(--radius-sm);
  color: #fff;
  flex: 0 0 30px;
}
.brand-reg {
  font-size: 0.65em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.15rem;
  vertical-align: super;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.site-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--green-dark); }

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.header-actions .btn { flex-shrink: 0; }
.header-icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  transition: background 0.15s, border-color 0.15s;
}
.header-icon-btn:hover { background: var(--green-tag-bg); border-color: var(--green-tag-bg); }

.nav-toggle {
  display: none;
  border: none;
  background: var(--green-dark);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-nav { display: none; order: 3; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; padding: 0.75rem 0; border-top: 1px solid var(--border); margin-top: 0.75rem; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-header .wrap { gap: 0.75rem; }
}

@media (max-width: 540px) {
  /* Compact header: shrink brand text, drop the phone-icon button, keep CTA + Menu */
  .site-header .wrap { padding-top: 0.5rem; padding-bottom: 0.5rem; min-height: 60px; }
  .brand { font-size: 1.15rem; gap: 0.5rem; }
  .brand-mark { width: 26px; height: 26px; flex-basis: 26px; }
  .header-actions { gap: 0.4rem; }
  .header-icon-btn { display: none; }
  .header-actions .btn { padding: 0.4rem 0.4rem 0.4rem 1rem; font-size: 0.95rem; min-height: 40px; gap: 0.5rem; }
  .header-actions .btn::after { width: 28px; height: 28px; }
  .nav-toggle { padding: 0.45rem 0.85rem; }
}

/* ---- Buttons / pills ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--green-dark);
  color: #fff;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-darker); color: #fff; transform: translateY(-1px); }
.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  flex: 0 0 32px;
}
.btn-arrow::after {
  content: "";
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23296b3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/14px no-repeat;
  flex: 0 0 32px;
  display: inline-block;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-ghost.btn-arrow::after {
  background-color: var(--green-dark);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>");
}

/* Link-style arrow (e.g., "Learn More ↗") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.link-arrow::after {
  content: "↗";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.15s;
}
.link-arrow:hover::after { transform: translate(2px, -2px); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: 4rem 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-image, #1a1a1a) center/cover no-repeat;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 45%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 7vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0.5rem 0 0;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}
.hero .hero-copy {
  color: rgba(255,255,255,0.92);
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 30rem;
  margin: 0 0 1.5rem;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.38);
  color: #fff;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-location::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-dark);
  flex: 0 0 22px;
  background-image: radial-gradient(circle, #fff 30%, transparent 32%);
  background-size: 7px 7px;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero { min-height: 80vh; padding: 3rem 0 2.5rem; }
}
@media (max-width: 540px) {
  .hero { min-height: 70vh; padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); line-height: 1.05; }
  .hero .hero-copy { font-size: 1rem; line-height: 1.45; }
  .hero-location { font-size: 0.78rem; padding: 0.35rem 0.75rem 0.35rem 0.35rem; }
  .hero-location::before { width: 18px; height: 18px; flex-basis: 18px; }
}

/* Inner-page hero (not the home full-bleed) — a light card with padding */
.page-head {
  padding: 5rem 0 2.5rem;
  background: var(--bg);
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); }

/* ---- Grid + cards ---- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap-lg); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.card h3 { margin: 0.25rem 0 0.25rem; color: var(--ink); }
.card p  { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.service-card { padding: 1.25rem; }
.service-card .service-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
}
.service-card .service-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-md);
}
.service-card__body { padding: 0.5rem 0.5rem 0.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.service-card__body h3 { font-size: 1.3rem; }
.service-card__body .link-arrow { margin-top: 0.5rem; }

/* ---- Stats / checkerboard ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stats-grid > * { border-radius: var(--radius-lg); }
.stat-tile {
  background: var(--card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.stat-pill svg { width: 22px; height: 22px; flex: 0 0 22px; }
.stat-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.photo-tile {
  background: #ddd;
  overflow: hidden;
  min-height: 260px;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---- Two-column feature block (split text + visual) ---- */
.split {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.split img { border-radius: var(--radius-lg); width: 100%; }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Project meta pill row ---- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}
.meta-pill svg { width: 14px; height: 14px; opacity: 0.8; }

/* ---- Before/After slider ---- */
.ba-slider {
  --cut: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  box-shadow: var(--shadow-soft);
  background: #111;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-slider .ba-after {
  clip-path: inset(0 var(--cut) 0 0);
  -webkit-clip-path: inset(0 var(--cut) 0 0);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: calc(100% - var(--cut));
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 6 9 12 15 18'/><polyline points='9 6 15 12 9 18'/></svg>") center/18px no-repeat;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: ew-resize;
  z-index: 3;
}
.ba-slider::before {
  /* Vertical divider line following the handle */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(100% - var(--cut));
  width: 2px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-1px);
  z-index: 2;
  pointer-events: none;
}
.ba-label {
  position: absolute;
  bottom: 1rem;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: #f5a623;
  font-size: 1rem;
  line-height: 1;
}
.testimonial {
  font-family: var(--sans);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  padding: 0;
  border: 0;
}
.testimonial-author {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-grid img:hover { transform: scale(1.01); }

.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: var(--radius-md); }

/* ---- Forms ---- */
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-dark);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: var(--green-tag-bg);
  border-radius: var(--radius-md);
  color: var(--green-darker);
  font-weight: 500;
  margin-bottom: 1rem;
}
.form-success.visible { display: block; }

/* ---- List restyle (used on service detail pages) ---- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-tag-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23296b3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
  margin-top: 2px;
}

/* ---- CTA band (centered, light card) ---- */
.cta-band {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.cta-band h2 { max-width: 28ch; margin: 0 auto 1rem; }
.cta-band .lede { margin: 0 auto 1.5rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: rgba(255,255,255,0.8); }
.site-footer .footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  align-items: start;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.75rem;
}
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.site-footer .footer-brand .brand-mark { background: var(--green-dark); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  opacity: 0.55;
  font-size: 0.8rem;
}
@media (max-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile-first refinements ---- */
@media (max-width: 540px) {
  /* Tighter section padding so we get more content per scroll */
  .section { padding: 3rem 0; }
  .section-tight { padding: 2rem 0; }

  /* Big headlines were too aggressive for narrow widths */
  h1 { letter-spacing: -0.025em; }
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -0.02em; }
  h3 { font-size: 1.2rem; }

  /* Tag pills can wrap on tiny screens — let them */
  .tag, .eyebrow { white-space: normal; line-height: 1.2; }

  /* Stat tile: shrink the giant number pill so it fits */
  .stat-pill { padding: 0.6rem 1.1rem; font-size: 1.75rem; }
  .stat-pill svg { width: 18px; height: 18px; flex-basis: 18px; }
  .stat-tile { padding: 1.5rem 1.25rem; }
  .photo-tile { min-height: 200px; }

  /* Service card: match mobile rhythm */
  .service-card { padding: 1rem; }
  .service-card__body { padding: 0.5rem 0.25rem 0.25rem; }
  .service-card__body h3 { font-size: 1.15rem; }

  /* Cards generally */
  .card { padding: 1.25rem; }

  /* Testimonials */
  .testimonial-card { padding: 1.5rem; }
  .testimonial { font-size: 1rem; }

  /* Two-column splits flatten to 1 col below 860 already; tighten gap further */
  .split, .split--reverse { gap: 1.5rem; }

  /* Project meta pill row wraps cleanly */
  .meta-pills { flex-wrap: wrap; }

  /* Before/After slider — bigger touch target on mobile */
  .ba-slider { aspect-ratio: 4 / 3; }
  .ba-handle { width: 48px; height: 48px; }
  .ba-label { font-size: 0.72rem; padding: 0.25rem 0.6rem; bottom: 0.6rem; }
  .ba-label-before { left: 0.6rem; }
  .ba-label-after { right: 0.6rem; }

  /* Gallery: 2 across instead of auto-fill 280 (which would be 1 across at 390) */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* Forms: full-width fields with comfortable touch targets */
  .form-field input, .form-field textarea, .form-field select {
    font-size: 16px; /* prevent iOS zoom-on-focus */
    padding: 0.85rem;
  }

  /* CTA / btn — keep them full-width on tiny screens for easy tapping */
  .cta-band .btn { width: 100%; max-width: 360px; justify-content: space-between; }
}

@media (max-width: 380px) {
  /* iPhone SE / older Android */
  .wrap { padding: 0 0.85rem; }
  .hero h1 { font-size: clamp(1.65rem, 9.5vw, 2.1rem); }
  .brand { font-size: 1rem; }
  .header-actions .btn { padding: 0.35rem 0.35rem 0.35rem 0.85rem; font-size: 0.875rem; min-height: 36px; }
  .header-actions .btn::after { width: 24px; height: 24px; }
  .nav-toggle { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
  .stat-pill { font-size: 1.5rem; padding: 0.5rem 0.95rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---- Utility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }

/* Label overrides on dark surfaces */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #fff; }
.section-dark p,
.section-dark .lede { color: rgba(255,255,255,0.78); }
.section-dark .tag,
.section-dark .eyebrow { background: rgba(255,255,255,0.12); color: #fff; }
.section-dark .tag::before,
.section-dark .eyebrow::before { background: var(--green-light); }
