/* ==========================================================================
   Anvil & Axle Auto Body — stylesheet (wit / paars thema)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --white: #FFFFFF;
  --surface: #F8F6FC;
  --surface-alt: #F1ECFB;
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --purple-light: #EDE4FD;
  --ink: #211A35;
  --muted: #6B6580;
  --border: #E7E1F5;
  --success: #1E9E67;
  --danger: #C0392B;

  --display: 'Poppins', 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -22px rgba(93, 43, 195, 0.28);
  --shadow-sm: 0 8px 20px -10px rgba(93, 43, 195, 0.18);
  --header-h: 78px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; overflow-x: hidden; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img{ max-width:100%; display:block; }
a{ color: inherit; }

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p{ margin: 0 0 1em; color: var(--muted); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--purple);
  display:inline-block;
  border-radius: 2px;
}

/* ---------------- header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself, because
   backdrop-filter/filter establish a containing block for position:fixed
   descendants - which would trap the fixed mobile nav inside the header's
   own (tiny) box instead of the viewport. */
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
}
.site-header .container{
  display:flex; align-items:center; justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}
.logo{
  display:flex; align-items:center; gap:12px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration:none;
  color: var(--ink);
  min-width: 0;
  flex-shrink: 1;
}
.logo .mark{
  width: 38px; height:38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  box-shadow: var(--shadow-sm);
}
.logo .mark span{
  font-family: var(--mono);
  font-weight:600;
  color: var(--white);
  font-size: 0.85rem;
}
.logo small{
  display:block;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.logo-img{
  height: 48px;
  width: auto;
  flex-shrink: 0;
}
.site-header .logo-img{
  height: 62px;
}

nav.main-nav{ display:flex; align-items:center; gap: 30px; }
nav.main-nav a{
  text-decoration:none;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active{
  color: var(--purple);
  border-bottom-color: var(--purple);
}
.nav-cta{
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration:none;
  color: var(--white) !important;
  background: var(--purple);
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover{ background: var(--purple-dark); transform: translateY(-1px); }

.menu-toggle{
  display:none;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  color: var(--ink);
  font-size: 1.1rem;
  cursor:pointer;
  position: relative;
  z-index: 101;
}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  cursor:pointer;
  transition: all .15s ease;
  background: transparent;
  color: var(--purple);
}
.btn-primary{ background: var(--purple); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--purple-dark); border-color: var(--purple-dark); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--border); color: var(--ink); }
.btn-ghost:hover{ background: var(--surface); border-color: var(--purple); color: var(--purple); }

/* ---------------- hero ---------------- */
.hero{
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% 10%, rgba(124,58,237,0.10), transparent 45%),
    var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items:center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero h1{
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 em{
  font-style:normal;
  color: var(--purple);
}
.hero .lead{
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 40px;}

.hero-stats{
  display:flex; gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-stats div strong{
  display:block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-stats div span{
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- signature element: werkbon kaart --- */
.work-order{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position:relative;
  box-shadow: var(--shadow);
}

/* ---------------- fotografie ---------------- */
.hero-visual{
  position: relative;
  padding-bottom: 56px; /* ruimte voor overlappende werkbon */
}
.hero-photo{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}
.hero-visual::after{
  /* subtiele paarse grading zodat elke foto bij het merk kleurt */
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  aspect-ratio: 1152 / 896;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(124,58,237,0.10), rgba(124,58,237,0) 55%);
  pointer-events:none;
}
.hero-visual .work-order{
  position: absolute;
  left: -20px;
  bottom: 0;
  width: min(340px, 88%);
  z-index: 2;
}
.gallery-photo{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: block;
}
.gallery-panel{ position: relative; }
.gallery-panel:has(.gallery-photo)::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(124,58,237,0.08), rgba(124,58,237,0) 50%);
  pointer-events:none;
}

.wo-head{
  display:flex; justify-content:space-between; align-items:flex-start;
  padding: 24px 26px 18px;
  border-bottom: 1px dashed var(--border);
}
.wo-head h4{
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin:0 0 6px;
}
.wo-head .wo-id{ color: var(--ink); font-family: var(--mono); font-size: 1rem; }
.wo-stamp{
  border: 2px solid var(--success);
  color: var(--success);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  font-weight:600;
}
.wo-body{ padding: 18px 26px; }
.wo-row{
  display:flex; justify-content:space-between;
  font-size: 0.86rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.wo-row span:last-child{ color: var(--ink); font-weight: 500; }
.wo-total{
  display:flex; justify-content:space-between;
  align-items:center;
  padding: 20px 26px;
  background: var(--purple-light);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
}
.wo-total strong{ color: var(--purple-dark); font-size: 1.05rem; }

/* ---------------- trust bar ---------------- */
.trust-bar{
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-bar .container{
  display:flex; flex-wrap:wrap; gap: 28px;
  justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}
.trust-bar .container > div{ display:flex; align-items:center; gap:9px; }
.trust-bar .dot{ width:7px; height:7px; background: var(--purple); border-radius:50%; flex-shrink:0; }

/* ---------------- sections ---------------- */
section{ padding: 96px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2{ font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.two-col-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 24px; flex-wrap:wrap;
}

/* service grid */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--purple); }
.service-card .num{
  font-family: var(--mono);
  color: var(--purple);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.service-card h3{
  font-size: 1.15rem;
  margin: 14px 0 10px;
}
.service-card p{ font-size: 0.92rem; margin-bottom: 14px; }
.service-card a{
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration:none;
  color: var(--purple);
}
.service-card a:hover{ color: var(--purple-dark); }

/* process */
.process-list{ list-style:none; margin:0; padding:0; }
.process-list li{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.process-list li:last-child{ border-bottom: 1px solid var(--border); }
.process-list .step-num{
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--purple-light);
  -webkit-text-stroke: 1px var(--purple);
  color: transparent;
}
.process-list h3{ font-size: 1.08rem; margin-bottom: 6px; }
.process-list p{ margin:0; max-width: 60ch; }

/* testimonial */
.testimonial-block{
  background: linear-gradient(135deg, var(--purple-light), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  position: relative;
}
.testimonial-block blockquote{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.45;
}
.testimonial-cite{
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--purple-dark);
}

/* cta band */
.cta-band{
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
}
.cta-band .container{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap: 24px;
}
.cta-band h2{ color: var(--white); margin:0; }
.cta-band .btn-primary{ background: var(--white); color: var(--purple-dark); border-color: var(--white); }
.cta-band .btn-primary:hover{ background: var(--purple-light); transform: translateY(-1px); }

/* ---------------- footer ---------------- */
footer.site-footer{
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--surface);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4{
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-grid ul{ list-style:none; margin:0; padding:0; }
.footer-grid li{ margin-bottom: 8px; }
.footer-grid a{ text-decoration:none; color: var(--muted); font-size: 0.92rem; }
.footer-grid a:hover{ color: var(--purple); }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------- utility classes (replace ad hoc inline styles) ---------------- */
.lead-narrow{ max-width: 60ch; }
.lead-wide{ max-width: 70ch; }
.footer-tagline{ max-width: 32ch; }
.footer-logo{ margin-bottom: 14px; }
.text-flush{ margin: 0; }
.form-submit{ align-self: flex-start; }
.section-alt{
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service-lead{ margin-bottom: 0.6em; }
.service-detail .service-lead strong{ color: var(--ink); }

/* ---------------- voor/na slider (werk.html) ---------------- */
.ba-card{ margin: 0 0 48px; }
.ba-card:last-of-type{ margin-bottom: 32px; }
.ba-frame{
  position: relative;
  aspect-ratio: 800 / 520;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--purple-light);
  touch-action: pan-y;
}
.ba-layer{ position:absolute; inset:0; }
.ba-layer svg, .ba-layer img{
  width:100%; height:100%;
  display:block;
  object-fit: cover;
}
.ba-after{
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-divider{
  position:absolute; top:0; bottom:0;
  left: var(--pos, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(33,26,53,0.12);
  pointer-events:none;
}
.ba-knob{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.05rem;
  color: var(--purple);
  user-select:none;
}
.ba-range{
  position:absolute; inset:0;
  width:100%; height:100%;
  margin:0;
  opacity:0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba-frame:focus-within{ outline: 3px solid var(--purple); outline-offset: 2px; }
.ba-tag{
  position:absolute; top:16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events:none;
}
.ba-tag-before{ left:16px; background: rgba(255,255,255,0.92); color: var(--muted); border: 1px solid var(--border); }
.ba-tag-after{ right:16px; background: var(--purple); color: var(--white); }
.ba-card figcaption{
  margin-top: 14px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.ba-card .cap-note{
  display:block;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}
.ba-disclaimer{
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 3px solid var(--purple-light);
  padding-left: 14px;
  max-width: 64ch;
}
.gallery-cta{ text-align:center; margin-top: 32px; }

/* ---------------- page header (interior pages) ---------------- */
.page-header{
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-header h1{ font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.breadcrumb{
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}
.breadcrumb a{ text-decoration:none; color: var(--muted); }
.breadcrumb a:hover{ color: var(--purple); }

/* ---------------- services page ---------------- */
.service-detail{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.service-detail:last-child{ border-bottom: 1px solid var(--border); }
.service-detail .icon{
  width: 46px; height:46px;
  border-radius: var(--radius-sm);
  background: var(--purple-light);
  display:flex; align-items:center; justify-content:center;
  color: var(--purple-dark);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
}
.service-detail h3{ font-size: 1.25rem; margin-bottom: 8px; }
.service-detail .tags{
  display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px;
}
.service-detail .tags span{
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--purple-dark);
  background: var(--purple-light);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------------- contact page ---------------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:start;
}
.contact-info-block{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
  background: var(--surface);
}
.contact-info-block h4{
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.hours-row{
  display:flex; justify-content:space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--muted);
}
.hours-row span:last-child{ color: var(--ink); font-weight: 500; }

form.quote-form{ display:flex; flex-direction:column; gap: 18px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label{
  display:block;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 0.94rem;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
}
.field textarea{ resize: vertical; min-height: 110px; }
.form-note{
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--muted);
}
.form-success{
  display:none;
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.88rem;
  margin-top: 14px;
  background: #EAFAF2;
}
.form-success.visible{ display:block; }
.form-error{
  display:none;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.88rem;
  margin-top: 14px;
  background: #FBEAE8;
}
.form-error.visible{ display:block; }
.honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-grid iframe{
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 600 / 450;
  display: block;
}

.map-frame{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 260px;
  background: var(--surface);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 20px;
}

/* ---------------- icons ---------------- */
.icon-sprite{ position:absolute; width:0; height:0; overflow:hidden; }
.icon-svg{ width:22px; height:22px; display:block; }
.service-detail .icon .icon-svg{ width:24px; height:24px; }
.service-card .card-icon{
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--purple-light);
  display:flex; align-items:center; justify-content:center;
  color: var(--purple-dark);
  margin-bottom: 16px;
}

/* ---------------- gallery / illustrations ---------------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-panel{ margin:0; }
.gallery-panel svg{
  width:100%; height:auto;
  display:block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.gallery-panel figcaption{
  margin-top: 14px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.gallery-panel .cap-note{
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}

.header-illustration{
  margin-top: 32px;
}
.header-illustration svg{
  width:100%; height:auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------------- reveal-on-scroll ---------------- */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }

/* prevent grid/flex items (esp. ones containing images) from forcing their
   track wider than the container - the classic grid/flex "blowout" bug */
.hero .container > *,
.grid-3 > *,
.gallery-grid > *,
.footer-grid > *,
.contact-grid > *,
.form-row > *,
.service-detail > *,
.process-list li > *{
  min-width: 0;
}

/* ---------------- responsive ---------------- */

/* focus visibility for keyboard users (buttons/links don't get the input focus ring above) */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* anchor targets shouldn't hide under the sticky header when jumped to */
.service-detail{ scroll-margin-top: calc(var(--header-h) + 16px); }

/* tablet: tighten container rhythm, tier the 3-col grids down to 2 */
@media (max-width: 1024px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-visual{ padding-bottom: 0; }
  .hero-visual .work-order{ position: static; width: 100%; margin-top: 20px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }

  .menu-toggle{ display:flex; align-items:center; justify-content:center; }

  nav.main-nav{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open{ transform: translateX(0); }

  nav.main-nav a{
    padding: 14px 2px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  nav.main-nav .nav-cta{
    margin-top: 18px;
    width: 100%;
    justify-content: center;
    text-align: center;
    border-bottom: none;
    padding: 14px 20px;
  }

  body.nav-open{ overflow: hidden; }
}

@media (max-width: 640px){
  .footer-grid{ grid-template-columns: 1fr; }
  section{ padding: 64px 0; }
  .testimonial-block{ padding: 32px; }
  .grid-3{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }

  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; }

  .trust-bar .container{ flex-direction: column; align-items: flex-start; gap: 12px; }

  .cta-band .container{ flex-direction: column; align-items: flex-start; }
  .cta-band .btn{ width: 100%; justify-content: center; }
}

@media (max-width: 480px){
  :root{ --header-h: 64px; }
  .site-header .logo small{ display: none; }
  .logo{ font-size: 0.98rem; gap: 10px; }
  .logo .mark{ width: 34px; height: 34px; }
  .site-header .logo-img{ height: 48px; }
  .menu-toggle{ width: 38px; height: 38px; font-size: 1rem; }

  .container{ padding: 0 18px; }
  section{ padding: 48px 0; }
  .page-header{ padding: 40px 0 32px; }

  .service-detail{ grid-template-columns: 1fr; }
  .service-detail .icon{ margin-bottom: 6px; }
  .process-list li{ grid-template-columns: 56px 1fr; gap: 16px; }
  .testimonial-block{ padding: 24px; }
  .work-order .wo-row{ font-size: 0.82rem; }
}
