@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── TOKENS ───────────────────────────────────────────────────────────────── */
:root {
  --color-primary:   #ff7a3d;
  --color-accent:    #ffffff;
  --color-bg:        #0a0a0a;
  --color-surface:   #141414;
  --color-text:      #f0f0f0;
  --color-muted:     #888888;
  --color-border:    #2a2a2a;

  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.6);

  --nav-h:     70px;
  --container: 1140px;
}

/* ── RESET ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem;
        line-height: 1.7; color: var(--color-text); background: var(--color-bg); }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* Distinctive heading face — default Inter-everywhere is one of the
   strongest "this was AI-generated" tells; a second, geometric display
   font on headings/numerals (while keeping Inter for body copy, which
   reads better at small sizes) breaks that immediately. */
h1, h2, h3, h4,
.hero-title, .section-heading, .page-hero-title,
.stat-number, .cta-phone, .process-num, .full-service-name,
.service-card-name, .nav-logo-text, .footer-brand-name {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
input, textarea, button { font-family: inherit; }

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
section { padding-block: 5.5rem; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 2rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: filter .18s, transform .15s, box-shadow .18s;
  white-space: nowrap; text-decoration: none; letter-spacing: .01em;
}
.btn-pill:hover { filter: brightness(.88); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-pill.primary { background: var(--color-primary); color: #fff; }
.btn-pill.accent  { background: var(--color-accent);  color: #fff; }
.btn-pill.outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-pill.outline:hover { background: var(--color-primary); color: #fff; filter: none; }
.btn-pill.outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-pill.outline-white:hover { background: rgba(255,255,255,.12); filter: none; }
.btn-pill.sm { padding: .5rem 1.25rem; font-size: .88rem; }
.btn-pill.full { width: 100%; }

/* ── NAVIGATION ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
  height: var(--nav-h);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.nav-brand { font-size: 1.05rem; font-weight: 900; color: var(--color-text); letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2rem; flex: 1; justify-content: center; }
.nav-link { font-size: .88rem; font-weight: 600; color: var(--color-muted); transition: color .15s; white-space: nowrap; }
.nav-link:hover { color: var(--color-text); }
.nav-link.active { color: var(--color-primary); }
.nav-phone { flex-shrink: 0; font-size: .88rem !important; padding: .5rem 1.25rem !important; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 8px; flex-shrink: 0; }
.hamburger span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ── MOBILE MENU ──────────────────────────────────────────────────────────── */
.mobile-menu { position: fixed; inset: 0; z-index: 600; background: var(--color-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-close { position: absolute; top: 1.25rem; right: 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 50%; width: 42px; height: 42px; font-size: 1.1rem; cursor: pointer; color: var(--color-text); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.mobile-close:hover { background: var(--color-border); }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.mobile-nav-links a { font-size: 1.7rem; font-weight: 900; color: var(--color-text); transition: color .15s; }
.mobile-nav-links a:hover { color: var(--color-primary); }
.mobile-phone { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-primary);
  position: relative; overflow: hidden;
}
/* Layered hero motion, per CLAUDE.md's hero rule: a slow-drifting radial
   glow (::before) plus a faint animated grid overlay (::after) — two
   effects sharing the brand color and a similarly slow, unhurried pace so
   they read as one atmosphere instead of two things competing. Different
   durations (18s / 26s) and easing keep them from ever visually syncing
   into a mechanical pulse. */
.hero::before {
  content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 55%);
  animation: gns-hero-glow 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-primary) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  animation: gns-hero-grid-drift 26s linear infinite;
}
.hero-content { position: relative; z-index: 1; }
@keyframes gns-hero-glow {
  0%   { transform: translate(-4%, -3%) scale(1);    opacity: .7; }
  100% { transform: translate(4%, 3%) scale(1.15);   opacity: 1;  }
}
@keyframes gns-hero-grid-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(48px, 32px); }
}

/* Split layout when a real photo is available — text on one side, image on
   the other, so not every built site reads as the same centered template. */
.hero.has-image {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 3rem; text-align: left; max-width: var(--container); margin-inline: auto;
}
.hero.has-image .hero-content { max-width: none; }
.hero.has-image.image-left .hero-photo { order: -1; }
.hero-photo { position: relative; z-index: 1; }
.hero-photo img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.hero-photo-credit {
  position: absolute; bottom: .6rem; right: .6rem;
  font-size: .68rem; color: rgba(255,255,255,.75); background: rgba(0,0,0,.45);
  padding: .2rem .55rem; border-radius: var(--radius-pill); text-decoration: none;
}
.hero-photo-credit:hover { color: #fff; }

@media (max-width: 860px) {
  .hero.has-image { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero.has-image .hero-photo { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
}
.hero-content { max-width: 720px; }
.hero-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .18em; color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 900;
  line-height: 1; letter-spacing: -.03em; color: var(--color-text); margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 400;
  color: var(--color-muted); margin-bottom: 2.5rem; line-height: 1.65;
}
.hero .btn-pill { font-size: 1.05rem; padding: .9rem 2.5rem; }

/* Variant 2 — full-bleed photo background with a dark overlay, centered
   text. A genuinely different treatment from the split layout above (not
   a color swap), picked deterministically per business — see hashVariant
   in build-fallback-site.js. Vetted and screenshot-checked like everything
   else, not generated fresh per build. */
.hero.style-overlay {
  background-size: cover; background-position: center; text-align: center;
}
/* The overlay variant's ::after is spoken for by the legibility scrim over
   the photo, so its ::before (idle in the split variant's stacking scheme)
   carries the grid drift instead — a radial glow would fight the photo
   visually, a faint grid texture reads well over one. Combined with the
   JS scroll-parallax on the background-position below, this variant gets
   the same layered treatment as the split one, just via different layers. */
.hero.style-overlay::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-bg) 85%, #fff) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-bg) 85%, #fff) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .18;
  animation: gns-hero-grid-drift 26s linear infinite;
}
.hero.style-overlay::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, var(--color-bg) 5%, color-mix(in srgb, var(--color-bg) 55%, transparent) 55%, color-mix(in srgb, var(--color-bg) 75%, transparent));
}
.hero.style-overlay .hero-content { margin-inline: auto; position: relative; z-index: 2; }
.hero.style-overlay .hero-photo-credit {
  position: absolute; bottom: 1rem; right: 1.5rem; z-index: 2;
  font-size: .68rem; color: rgba(255,255,255,.75); text-decoration: none;
  background: rgba(0,0,0,.4); padding: .2rem .6rem; border-radius: var(--radius-pill);
}

/* ── TRUST BAR ────────────────────────────────────────────────────────────── */
.trust-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding-block: 2rem; }
.trust-items { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; }
.trust-icon { width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent); }

/* ── SERVICES PREVIEW (home) ──────────────────────────────────────────────── */
.services-preview { background: var(--color-bg); }
.section-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: var(--color-primary); margin-bottom: .5rem; }
.section-heading { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.025em; color: var(--color-text); margin-bottom: .5rem; }
.section-sub { font-size: .98rem; color: var(--color-muted); max-width: 520px; margin-bottom: 3rem; }
.services-cards { display: grid;  gap: 1.25rem; margin-bottom: 2.5rem; }
.service-card { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 2px solid var(--color-primary); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 24px color-mix(in srgb, var(--color-primary) 20%, transparent); border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border)); }
.service-card-icon { font-size: 1.75rem; margin-bottom: .9rem; }
.service-card-name { font-size: 1rem; font-weight: 800; color: var(--color-text); margin-bottom: .35rem; }
.service-card-desc { font-size: .88rem; color: var(--color-muted); line-height: 1.65; }
.services-preview-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--color-primary); font-size: .92rem; transition: gap .15s; margin-top: 2rem; }
.services-preview-link:hover { gap: .6rem; }

/* ── CTA STRIP ────────────────────────────────────────────────────────────── */
.cta-strip {
  background: var(--color-surface); border-top: 2px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border); padding-block: 5rem;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
.cta-text { color: var(--color-muted); font-size: 1.05rem; line-height: 1.7; }
.cta-text strong { color: var(--color-text); font-size: 1.1rem; display: block; margin-bottom: .4rem; font-weight: 800; }
.cta-action { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.cta-phone { font-size: 2rem; font-weight: 900; color: var(--color-primary); letter-spacing: -.02em; white-space: nowrap; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer { background: #000; color: var(--color-muted); border-top: 2px solid var(--color-primary); padding-block: 3rem 2rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand-name { font-size: 1rem; font-weight: 900; color: var(--color-text); margin-bottom: .3rem; }
.footer-tagline { font-size: .85rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: var(--color-primary); }
.footer-contact { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; }
.footer-contact a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 1.5rem; font-size: .78rem; text-align: center; }

/* ── PAGE: SERVICES ───────────────────────────────────────────────────────── */
.page-hero {
  min-height: 38vh; display: flex; align-items: center; background: var(--color-surface);
  border-bottom: 2px solid var(--color-primary); padding: 2rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 55%);
  animation: gns-hero-glow 20s ease-in-out infinite alternate;
}
.page-hero-content { max-width: 680px; position: relative; z-index: 1; margin-inline: auto; }
.page-hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.03em; color: var(--color-text); margin-bottom: .6rem; }
.page-hero-sub { font-size: 1rem; color: var(--color-muted); }

/* Alternating editorial rows, not a uniform card grid — see the comment on
   fullServiceCards in build-site.js for why. */
.full-services-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 4rem; }
.full-service-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s;
  padding: 2rem;
}
.full-service-card:hover {
  box-shadow: var(--shadow-md), 0 0 24px color-mix(in srgb, var(--color-primary) 16%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}
.full-service-num {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: var(--color-primary); margin-bottom: .6rem;
}
.full-service-name { font-size: 1.25rem; font-weight: 700; color: var(--color-text); margin-bottom: .6rem; }
.full-service-desc { font-size: .92rem; color: var(--color-muted); line-height: 1.7; }

/* Rows that have a photo: no padding on that side, image fills edge-to-edge
   for an editorial magazine feel instead of a padded card containing a photo. */
.full-service-card.has-image {
  padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  overflow: hidden;
}
.full-service-card.has-image .full-service-text { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.full-service-card.has-image.image-left .full-service-photo { order: -1; }
.full-service-photo { position: relative; min-height: 240px; }
.full-service-photo img { width: 100%; height: 100%; object-fit: cover; }
.full-service-photo .gallery-credit {
  position: absolute; bottom: .6rem; right: .6rem;
  font-size: .65rem; color: rgba(255,255,255,.85); background: rgba(0,0,0,.45);
  padding: .15rem .5rem; border-radius: var(--radius-pill); opacity: 0; transition: opacity .25s;
}
.full-service-card.has-image:hover .gallery-credit { opacity: 1; }
@media (max-width: 760px) {
  .full-service-card.has-image { grid-template-columns: 1fr; }
  .full-service-card.has-image .full-service-photo { order: -1 !important; min-height: 200px; }
}
.services-bottom-cta { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 3rem; text-align: center; }
.services-bottom-cta h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: .5rem; }
.services-bottom-cta p { color: var(--color-muted); margin-bottom: 1.75rem; }

/* ── PAGE: CONTACT ────────────────────────────────────────────────────────── */
.contact-section { background: var(--color-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--color-primary); margin-bottom: .25rem; }
.contact-biz-name { font-size: 1.8rem; font-weight: 900; letter-spacing: -.025em; margin-bottom: 2rem; }
.contact-detail-block { margin-bottom: 1.5rem; }
.contact-detail-val { font-size: .95rem; color: var(--color-text); line-height: 1.65; }
.contact-detail-val a { transition: color .15s; }
.contact-detail-val a:hover { color: var(--color-primary); }
.contact-big-phone { font-size: 1.9rem; font-weight: 900; color: var(--color-primary); letter-spacing: -.025em; transition: color .15s; }
.contact-big-phone:hover { filter: brightness(1.15); }
.contact-form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.form-group label { font-size: .8rem; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: .06em; }
.form-group .req { color: var(--color-primary); }
.form-input { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-size: .95rem; color: var(--color-text); background: var(--color-bg); transition: border-color .15s, box-shadow .15s; outline: none; }
.form-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.form-input::placeholder { color: var(--color-muted); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-disclaimer { font-size: .78rem; color: var(--color-muted); text-align: center; margin-top: .75rem; }

/* ── PAGE: WORK (build only) ──────────────────────────────────────────────── */
.work-section { background: var(--color-bg); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.photo-slot { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); background-size: cover; background-position: center; position: relative; transition: transform .3s, box-shadow .3s; }
.photo-slot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--color-muted); }
.photo-placeholder svg { width: 32px; height: 32px; opacity: .4; }
.photo-caption { margin-top: .55rem; font-size: .83rem; color: var(--color-muted); text-align: center; }
.photo-slot.has-photo .photo-placeholder { display: none; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner       { grid-template-columns: 1fr 1fr; }
  .contact-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-inner          { grid-template-columns: 1fr; }
  .cta-action         { align-items: flex-start; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-phone { display: none !important; }
  .hamburger { display: flex; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  section { padding-block: 3.5rem; }
  .photo-grid         { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr; }
  .form-row           { grid-template-columns: 1fr; }
  .cta-phone          { font-size: 1.6rem; }
  .contact-big-phone  { font-size: 1.5rem; }
  .hero-title         { letter-spacing: -.02em; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   UPDATES: CENTER HEADINGS · HERO ANIMATIONS · SCROLL ANIMATION STATES
═══════════════════════════════════════════════════════════════════════════ */

/* Change 1 — Center all section headings and subtitles */
.section-label,
.section-heading {
  text-align: center;
}
.section-sub {
  text-align: center;
  margin-inline: auto;
}
.page-hero-title,
.page-hero-sub {
  text-align: center;
}
.contact-biz-name { text-align: center; }

/* Change 2 — Hero entrance animation keyframes */
@keyframes gns-from-above {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gns-from-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gns-from-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-title   { animation: gns-from-above .6s ease-out  .1s both; }
.hero-tagline { animation: gns-from-left  .6s ease-out  .8s both; }
.hero .btn-pill { animation: gns-from-right .6s ease-out 1.4s both; }

/* Suppress hero animation replay on back navigation */
body.gns-hero-done .hero-title,
body.gns-hero-done .hero-tagline,
body.gns-hero-done .hero .btn-pill {
  animation: none !important;
}

/* Change 3 — Scroll animation base state (applied by animations.js) */
.gns-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.gns-anim.gns-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Variants — see animations.js GROUPS `anim` field. */
.gns-anim-scale { transform: scale(.92); }
.gns-anim-scale.gns-visible { transform: scale(1); }
.gns-anim-left { transform: translateX(-28px); }
.gns-anim-left.gns-visible { transform: translateX(0); }
.gns-anim-right { transform: translateX(28px); }
.gns-anim-right.gns-visible { transform: translateX(0); }

/* Respect OS-level reduced-motion preference — required by CLAUDE.md's
   hero-motion rule, no exceptions even with layered effects. Kills the
   glow drift, grid drift, hero entrance animations, and scroll-reveal
   transitions; content still appears, just without motion. JS-driven
   parallax (animations.js) checks this same media query itself and never
   attaches its scroll listener when it's set. */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .page-hero::before, .cta-strip::before { animation: none; opacity: .85; }
  .hero-title, .hero-tagline, .hero .btn-pill { animation: none !important; }
  .gns-anim { transition: none; opacity: 1; transform: none; }
  /* Line-draw is a transition on ::after, not a keyframe animation, so the
     animation-duration catch-all below doesn't reach it — needs its own
     override to render fully-drawn immediately instead of waiting on the
     scroll-triggered .gns-visible class. */
  .process-steps::after { transition: none !important; transform: scaleX(1) !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ── Fix 3: Center headings/subtitles on ALL pages (services, work, etc.) ── */
.page-hero          { text-align: center; }
.page-hero h1       { text-align: center; }
.page-hero p        { text-align: center; margin-inline: auto; }
.services-bottom-cta { text-align: center; }
.services-bottom-cta p { margin-inline: auto; }

/* ── Fix: Center section headings on all pages ───────────────────────────── */
.section-title,
.section-heading,
.section-label {
  text-align: center;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  text-align: center;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Target services and work page headings explicitly */
.services .section-title,
.services h2,
.work .section-title,
.work h2 {
  text-align: center;
  width: 100%;
  display: block;
}

/* Center page-hero-content within its container */
.page-hero-content {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-align: center;
}

/* Ensure page hero itself centers its flex child */
.page-hero {
  justify-content: center;
}

/* ── Page hero title: 50% larger on inner pages ─────────────────────────── */
.page-hero-title {
  font-size: clamp(3rem, 7.5vw, 5.25rem) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHANGES: LOGO · ABOUT · TESTIMONIALS · STICKY BAR · FAQ
═══════════════════════════════════════════════════════════════════════════ */

/* Change 1 — Logo */
.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-logo-img { height: 40px; width: auto; display: none; object-fit: contain; }
.nav-logo-text { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }

/* Change 2 — About section */
.about-section { background: var(--color-surface); padding-block: 5rem; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; margin-top: 2rem;
}
.about-text p { font-size: 1.05rem; color: var(--color-muted); line-height: 1.75; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-box {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.5rem 1rem;
  text-align: center; box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800;
  color: var(--color-accent); line-height: 1.1; white-space: nowrap;
  margin-bottom: .3rem; letter-spacing: -.02em;
}
.stat-label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--color-muted); text-transform: uppercase; letter-spacing: .08em;
}

/* ── GALLERY — asymmetric bento mosaic, not a uniform photo grid ──────────── */
.gallery-section { background: var(--color-bg); padding-block: 5rem; }
.gallery-mosaic {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem; height: 520px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-credit {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 1;
  font-size: .68rem; color: rgba(255,255,255,.9); text-decoration: none;
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .gallery-credit { opacity: 1; }
@media (max-width: 760px) {
  .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery-item, .gallery-item:first-child { grid-row: auto; height: 260px; }
}

/* ── PROCESS — 4-step timeline ─────────────────────────────────────────────── */
.process-section { background: var(--color-surface); padding-block: 5.5rem; }
/* No grid gap on purpose — the connector line below is positioned with
   percentages that assume 4 exactly-equal 25%-wide columns. A `gap` value
   would shift each column's actual center off those percentages (this is
   exactly what caused the line to not line up with the circles — the
   previous version had both a gap AND left-aligned circles, so neither the
   column math nor the circle position matched the line). Spacing between
   steps comes from padding on .process-step instead, which doesn't move
   column boundaries. */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 3rem; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 22px; left: 12.5%; right: 12.5%;
  height: 2px; background: var(--color-border); z-index: 0;
}
.process-steps::after {
  content: ''; position: absolute; top: 22px; left: 12.5%; width: 75%;
  height: 2px; background: var(--color-primary); z-index: 0;
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s ease .2s;
}
.process-steps.gns-visible::after { transform: scaleX(1); }
.process-step {
  position: relative; z-index: 1; padding-inline: 1.25rem;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.process-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-bg); border: 2px solid var(--color-primary);
  color: var(--color-primary); font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; transition: box-shadow .25s;
}
.process-step:hover .process-num { box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-primary) 12%, transparent); }
.process-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.process-desc { font-size: .9rem; color: var(--color-muted); line-height: 1.6; margin-bottom: .8rem; }
.process-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  padding: .3rem .7rem; border-radius: var(--radius-pill); letter-spacing: .02em;
}
@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .process-steps::before, .process-steps::after { display: none; }
}

/* Change 3 — Testimonials */
.testimonials-section { background: var(--color-bg); padding-block: 5rem; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2rem;
}
.testimonial-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .6rem;
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: .05em; }
.testimonial-text { font-style: italic; color: var(--color-text); line-height: 1.7; font-size: .95rem; flex: 1; }
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--color-text); }
.testimonial-city { font-size: .82rem; color: var(--color-muted); }

/* Change 4 — Sticky mobile call bar */
.sticky-call-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--color-primary); color: #fff; text-align: center;
  padding: .9rem 1rem; font-weight: 700; font-size: 1rem;
  font-family: system-ui, sans-serif; text-decoration: none; letter-spacing: .01em;
}
@media (max-width: 768px) {
  .sticky-call-bar { display: block; }
  body { padding-bottom: 60px; }
}

/* Change 5 — FAQ */
.faq-section { margin-bottom: 3rem; padding-top: 1rem; }
.faq-list { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem; background: none; border: none;
  cursor: pointer; font-size: .98rem; font-weight: 600;
  font-family: inherit; color: var(--color-text); text-align: left;
  gap: 1rem; transition: background .15s;
}
.faq-question:hover { background: rgba(0,0,0,.04); }
.faq-arrow { flex-shrink: 0; color: var(--color-muted); transition: transform .3s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { font-size: .95rem; color: var(--color-muted); line-height: 1.7; }

/* Responsive */
@media (max-width: 768px) {
  .about-grid        { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .stat-box { padding: 1rem .5rem; }
}

/* ── Logo navigation styles ─────────────────────────────────────────────── */
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1 1 auto;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: inherit;
}
@media (max-width: 480px) {
  .nav-logo-img { height: 30px; }
}

/* ── FIX 1: Grid-centered navigation ────────────────────────────────────── */
.nav-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  position: static !important;
  gap: 0;
}
.nav-brand,
.nav-logo-link {
  grid-column: 1;
  justify-self: start;
  flex: none !important;
  position: static !important;
}
.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  flex: none !important;
  position: static !important;
  transform: none !important;
  left: auto !important;
  margin: 0 !important;
}
.nav-cta,
.nav-phone {
  grid-column: 3;
  justify-self: end;
  margin-left: 0 !important;
}
.hamburger {
  grid-column: 3;
  justify-self: end;
  display: none;
}
@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: 1fr auto !important;
  }
  .nav-links {
    display: none !important;
  }
  .nav-cta,
  .nav-phone {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .services-cards,
  .full-services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Bespoke hero illustration + marquee — hand-built for this site only,   ── */
/* ── not part of the shared bold/service template.                          ── */
.rgp-illustration { display: flex; align-items: center; justify-content: center; }
.rgp-hero-svg { width: 100%; max-width: 420px; height: auto; color: var(--color-primary); overflow: visible; }

.rgp-orbit {
  transform-origin: 210px 210px;
  animation: rgp-orbit-spin 60s linear infinite;
}
@keyframes rgp-orbit-spin { to { transform: rotate(360deg); } }

.rgp-house { opacity: 0; animation: rgp-house-in 1s ease-out 0.3s forwards; }
@keyframes rgp-house-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.rgp-particle {
  animation: rgp-flow 2.4s ease-in infinite;
}
.rgp-particle.p1 { animation-delay: 0s; }
.rgp-particle.p2 { animation-delay: 0.8s; }
.rgp-particle.p3 { animation-delay: 1.6s; }
@keyframes rgp-flow {
  0%   { transform: translateY(0);    opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-95px); opacity: 0; }
}

.rgp-sun { transform-origin: 335px 95px; animation: rgp-pulse 3.5s ease-in-out infinite; }
.rgp-snow { transform-origin: 70px 140px; animation: rgp-sway 4.5s ease-in-out infinite; }
@keyframes rgp-pulse { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes rgp-sway { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.rgp-marquee {
  border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  background: var(--color-surface); overflow: hidden; padding: 0.9rem 0;
}
.rgp-marquee-track {
  display: flex; gap: 0.6rem; white-space: nowrap; width: max-content;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; color: var(--color-text-muted);
  animation: rgp-marquee-scroll 28s linear infinite;
}
.rgp-marquee-track span { padding-inline: 0.2rem; }
.rgp-marquee .rgp-dot { color: var(--color-primary); }
@keyframes rgp-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rgp-orbit, .rgp-particle, .rgp-sun, .rgp-snow, .rgp-marquee-track { animation: none !important; }
  .rgp-house { opacity: 1; transform: none; }
  .rgp-particle { opacity: 0; }
}

@media (max-width: 860px) {
  .rgp-hero-svg { max-width: 300px; }
}

/* ── Gallery page — sliding card carousel, hand-built for this site.        ── */
.rgp-gallery-section { padding-block: 4rem; }
.rgp-gallery-controls { display: flex; justify-content: flex-end; gap: 0.6rem; margin-bottom: 1.25rem; }
.rgp-gallery-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); font-size: 1.1rem; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.rgp-gallery-btn:hover { border-color: var(--color-primary); background: var(--color-surface-2); }

.rgp-gallery-track {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: thin;
}
.rgp-gallery-card {
  flex: 0 0 auto; scroll-snap-align: start;
  width: min(340px, 82vw);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.75rem; text-align: center;
}
.rgp-gallery-icon { width: 100%; height: 130px; margin-bottom: 0.75rem; }
.rgp-gallery-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; margin-bottom: 0.5rem; }
.rgp-gallery-card p { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .rgp-gallery-track { scroll-behavior: auto; }
}

/* ── Service area page — hand-built for this site.                          ── */
.rgp-area-section { padding-block: 4rem; }
.rgp-area-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 860px) { .rgp-area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rgp-area-grid { grid-template-columns: 1fr; } }
.rgp-area-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.75rem; position: relative;
}
.rgp-area-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin-bottom: 0.5rem; }
.rgp-area-card p { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.6; }
.rgp-area-hq { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.rgp-area-pin { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 1.1rem; }
.rgp-area-note { margin-top: 2rem; color: var(--color-text-muted); font-size: 0.95rem; text-align: center; }

/* ── Accessibility fix — this site's accent (#ff7a3d) is light enough that   ── */
/* ── the template's default white button text fails WCAG AA (2.6:1). Dark    ── */
/* ── text on this specific accent hits 8.1:1. Scoped to this site only —     ── */
/* ── the shared template's white-on-primary default is correct for darker    ── */
/* ── accent colors (e.g. the original navy), just not this one.              ── */
.btn-pill.primary { color: #0a0a0a; }
.sticky-call-bar  { color: #0a0a0a; }
.btn-pill.outline:hover { color: #0a0a0a; }
