/* =========================================================
   CJ's Small Engine Repairs — shared stylesheet
   Light / bright / blue theme to match the shop logo
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg:            #ffffff;
  --bg-2:          #eef1f7;
  --surface:       #ffffff;
  --surface-2:     #e7ebf2;
  --border:        #e2e7ef;
  --border-light:  #cbd3e0;

  --text:          #171b21;
  --text-muted:    #4d5768;
  --text-dim:      #6d7789;

  /* fills (buttons, underlines, decorative) */
  --brand:         #2f6fed;
  --brand-600:     #1a46c4;
  /* bright accent used ONLY on dark photo overlays (hero, cta band, badges) */
  --brand-400:     #5b9dff;
  /* accessible blue for text/icon accents on light surfaces */
  --accent:        #1958d1;
  --brand-glow:    rgba(47, 111, 237, .35);

  --radius:        14px;
  --radius-lg:     22px;
  --radius-pill:   999px;

  --shadow-sm:     0 2px 12px -4px rgba(23, 32, 55, .10);
  --shadow:        0 18px 40px -18px rgba(23, 32, 55, .22);
  --shadow-blue:   0 14px 30px -12px var(--brand-glow);

  --maxw:          1180px;
  --gutter:        clamp(1.1rem, 4vw, 2.5rem);
  --section-y:     clamp(3.75rem, 9vw, 7rem);

  --font-display:  "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body:     "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .5px;
  text-transform: uppercase;
}

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--alt { background: var(--bg-2); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand);
}
.section-head.center .eyebrow::before { display: none; }

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  color: var(--text);
}
.section-title .hl { color: var(--accent); }

.section-sub {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -10px var(--brand-glow); }

/* default (light-surface) secondary button — nav, footer, light sections */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-600);
  background: rgba(47, 111, 237, .08);
  transform: translateY(-2px);
}

/* secondary button for use ON TOP OF a dark photo (hero, page-hero, cta band) */
.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px -14px rgba(23, 32, 55, .3);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px -16px rgba(23, 32, 55, .25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 50px;
  width: auto;
  border-radius: 10px;
}
.nav-logo .nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  font-size: 1rem;
}
.nav-logo .nav-logo-text span { display: block; color: var(--accent); font-size: .7rem; letter-spacing: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: .55rem .9rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .92rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg-2); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .2rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: .6rem; margin-left: 1rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -8px); }
.nav-toggle span::after  { transform: translate(-50%, 6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Hero (dark photo section — stays dark for legible overlay text) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 16vh, 11rem) clamp(3rem, 8vh, 6rem);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: saturate(.9) contrast(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(8, 12, 22, .96) 30%, rgba(8, 12, 22, .78) 55%, rgba(8, 12, 22, .55) 100%);
}

.hero__inner { max-width: 720px; }

.hero__problem {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  margin-bottom: 1.6rem;
  max-width: 100%;
}
.hero__problem-brands {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.hero__problem-brands img {
  height: 34px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 7px 11px;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  color: #fff;
  letter-spacing: .5px;
}
.hero__title .hl {
  color: var(--brand-400);
  display: inline-block;
}

.hero__desc {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: rgba(255, 255, 255, .82);
  max-width: 34em;
}

.hero__cta { margin-top: 2.2rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
}
.hero__stat span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .62);
  margin-top: .4rem;
}

/* ---------- Brands banner ---------- */
.brands { border-block: 1px solid var(--border); background: var(--bg-2); }
.brands__label {
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 1.9rem;
}
.brands__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 84px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-chip img { max-height: 46px; width: auto; object-fit: contain; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}
.service-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__num {
  position: absolute;
  top: .8rem; left: .8rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(8, 12, 22, .72);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .9rem;
  color: #dce8ff;
}
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.4rem 1.4rem 1.6rem;
  flex: 1;
}
.service-card__body h3 { font-size: 1.28rem; color: var(--text); }
.service-card__body p { color: var(--text-muted); font-size: .96rem; }
.service-card__link {
  margin-top: auto;
  padding-top: .4rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .85rem;
  color: var(--accent);
}
.service-card__link svg { width: 1em; height: 1em; transition: transform .18s ease; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

.services-cta {
  margin-top: 2.6rem;
  display: flex;
  justify-content: center;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.testimonial:nth-child(4),
.testimonial:nth-child(5) { grid-column: span 1; }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.testimonial p {
  color: var(--text);
  font-size: .98rem;
  line-height: 1.6;
}
.testimonial footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: .4rem;
  border-top: 1px solid var(--border);
}
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}
.testimonial cite {
  font-style: normal;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  font-size: .95rem;
}
.testimonial cite span { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--text-dim); font-size: .8rem; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.step__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(47, 111, 237, .1);
  border: 1px solid rgba(47, 111, 237, .28);
  color: var(--accent);
  margin-bottom: 1rem;
}
.step__icon svg { width: 24px; height: 24px; }
.step__num {
  position: absolute;
  top: 1.3rem; right: 1.3rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--surface-2);
  -webkit-text-stroke: 1px var(--border-light);
  line-height: 1;
}
.step h3 { font-size: 1.1rem; color: var(--text); margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .92rem; }

/* two-column wrapper pairing the process list with an image — image only
   shows once the list switches to its vertical layout (see the desktop
   media query), so on tablet/mobile this just falls back to a plain block. */
.how__media { display: none; }

/* ---------- Experience / Why us ---------- */
.exp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.exp__list { display: grid; gap: 1.1rem; margin: 1.8rem 0 2.2rem; }
.exp__list li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.exp__list svg {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--accent);
  margin-top: 2px;
}
.exp__list b { color: var(--text); font-family: var(--font-display); letter-spacing: .5px; }
.exp__list span { display: block; color: var(--text-muted); font-size: .95rem; }

.exp__media { position: relative; }
.exp__media > img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.exp__badges {
  position: absolute;
  right: clamp(-1rem, -2vw, -2rem);
  bottom: 1.5rem;
  display: grid;
  gap: .7rem;
  width: min(58%, 260px);
}
.exp__badge {
  background: rgba(10, 14, 24, .82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow);
}
.exp__badge b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-400);
  display: block;
  line-height: 1;
}
.exp__badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, .68); }

/* variant for 4 badges: 2x2 instead of one tall column */
.exp__badges--quad {
  grid-template-columns: repeat(2, 1fr);
  width: min(86%, 340px);
}
.exp__badges--quad .exp__badge { padding: .75rem .85rem; }
.exp__badges--quad .exp__badge b { font-size: 1.3rem; }

/* mirrored variant: media first (left), body second (right). DOM order is
   left untouched (text still reads first for screen readers) — this only
   reorders the visual columns, and flips the badge overhang to the outer
   (left) edge of the image so it still points away from the text. */
.exp--flip .exp__body { order: 2; }
.exp--flip .exp__media { order: 1; }
.exp--flip .exp__badges { right: auto; left: clamp(-1rem, -2vw, -2rem); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--border-light);
}
.stat-strip div { text-align: center; }
.stat-strip b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  color: var(--text);
  line-height: 1;
}
.stat-strip span {
  display: block;
  margin-top: .5rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

/* ---------- CTA band (dark photo section) ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--border);
}
.cta-band__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 18, 40, .92), rgba(47, 111, 237, .62));
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); color: #fff; max-width: 16ch; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: .6rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .8rem;
  color: var(--text-muted);
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: .8rem .9rem;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--text-dim); margin-top: .3rem; }
.form-status {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(47, 111, 237, .1); border: 1px solid rgba(47, 111, 237, .3); color: var(--accent); }
.form-status.err { background: rgba(200, 55, 55, .1); border: 1px solid rgba(200, 55, 55, .35); color: #b02a2a; }

.contact-aside { display: grid; gap: 1rem; }
.contact-line {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.contact-line svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-line b { font-family: var(--font-display); letter-spacing: .5px; color: var(--text); display: block; text-transform: uppercase; font-size: .9rem; }
.contact-line a, .contact-line span { color: var(--text-muted); font-size: .96rem; }
.contact-line a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 7vw, 5rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand img {
  height: 100px;
  width: auto;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.footer-brand p { color: var(--text-muted); font-size: .95rem; max-width: 32ch; }
.footer-brand .tagline {
  margin-top: .8rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-size: .85rem;
}
.footer-col h4 {
  font-size: .9rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: .96rem;
  transition: color .15s ease, padding .15s ease;
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-btns { display: grid; gap: .7rem; margin-top: 1.2rem; }

/* business card block */
.footer-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.footer-card__img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.footer-card__img img { width: 100%; display: block; }
.footer-card__text h3 { font-size: clamp(1.4rem, 3.5vw, 2rem); color: var(--text); margin-bottom: .8rem; }
.footer-card__text p { color: var(--text-muted); margin-bottom: 1.3rem; }

/* photo strip (kept from Wix, cleaned up) */
.footer-gallery { padding-block: 2.6rem; border-bottom: 1px solid var(--border); }
.footer-gallery h4 {
  font-size: .9rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  text-align: center;
}
.footer-gallery__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .9rem;
}
.footer-gallery__row figure {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.footer-gallery__row img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
  filter: grayscale(.25) brightness(.94);
}
.footer-gallery__row figure:hover img { transform: scale(1.08); filter: grayscale(0) brightness(1); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.8rem;
  color: var(--text-dim);
  font-size: .85rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .socials { display: flex; gap: .6rem; }
.footer-bottom .socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 9px;
  transition: background .15s ease, border-color .15s ease;
}
.footer-bottom .socials a:hover { background: rgba(47, 111, 237, .1); border-color: var(--brand); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- Page hero (interior pages — dark photo section) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(8rem, 18vh, 12rem) clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 22, .8), rgba(8, 12, 22, .95));
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .82); margin-top: 1rem; max-width: 46ch; font-size: 1.1rem; }
.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-size: .85rem; color: rgba(255, 255, 255, .65);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
}
.breadcrumb a:hover { color: var(--brand-400); }

/* ---------- Chip list (machine types) ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}
.chip-list li {
  padding: .6rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .5px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip-list li:hover { border-color: var(--brand); color: var(--accent); background: rgba(47, 111, 237, .08); }

/* ---------- Detailed services (multi-page) ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.svc-detail:not(:last-child) { border-bottom: 1px solid var(--border); }
.svc-detail:nth-child(even) .svc-detail__media { order: 2; }
.svc-detail__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.svc-detail__body .eyebrow { margin-bottom: .7rem; }
.svc-detail__body .eyebrow::before { display: none; }
.svc-detail__body h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--text); margin-bottom: .9rem; }
.svc-detail__body p { color: var(--text-muted); margin-bottom: 1rem; }
.svc-detail__body ul { display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.svc-detail__body li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text); font-size: .96rem; }
.svc-detail__body li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }

.price-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.price-note svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.price-note b { color: var(--text); font-family: var(--font-display); letter-spacing: .5px; }
.price-note p { color: var(--text-muted); font-size: .95rem; margin-top: .2rem; }

/* ---------- Utilities ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Responsive ---------- */

/* "How it works" as a vertical list on real desktop widths, instead of the
   3-up card grid used everywhere else on the page (an experiment — revert
   by deleting this block if it doesn't earn its keep). */
@media (min-width: 1025px) {
  .how {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
  }
  .how__media { display: block; }
  .how__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--shadow);
  }
  .steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
  }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 1.75rem;
    align-items: start;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1.75rem 0;
  }
  .step:not(:last-child) { border-bottom: 1px solid var(--border); }
  .step__icon { display: none; }
  .step__num {
    position: static;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--accent);
    -webkit-text-stroke: 0;
  }
  .step h3 { grid-column: 2; margin-bottom: .35rem; }
  .step p { grid-column: 2; }
}

@media (max-width: 1024px) {
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-gallery__row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -16px rgba(23, 32, 55, .22);
    padding: .8rem var(--gutter) 1.4rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav-links.open { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .9rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links a.active::after { display: none; }

  .exp { grid-template-columns: 1fr; }
  .exp__media { max-width: 460px; }
  .exp__badges { width: min(70%, 240px); right: 1rem; }
  .exp__badges--quad { width: min(90%, 300px); }
  .exp--flip .exp__badges { right: auto; left: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
  .footer-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .testimonial-grid,
  .steps,
  .stat-strip { grid-template-columns: 1fr; }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-gallery__row { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 1.2rem 1.8rem; }
  .btn-row .btn { flex: 1 1 auto; }
  /* Brand bubble: force an even 3-across grid instead of flex-wrap's
     uneven 4-then-2, since each logo has a different natural width. */
  .hero__problem { width: 100%; }
  .hero__problem-brands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    width: 100%;
  }
  .hero__problem-brands img {
    width: 100%;
    height: 38px;
    object-fit: contain;
  }
  /* Services stay 2-up even on phones (inherited from the 1024px rule
     above); just tighten the cards so two fit comfortably. */
  .services-grid { gap: .8rem; }
  .service-card__body { padding: 1rem 1rem 1.2rem; gap: .45rem; }
  .service-card__body h3 { font-size: 1.05rem; }
  .service-card__body p { font-size: .84rem; }
  .service-card__link { font-size: .76rem; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
