/* ==========================================================================
   MT Traitement — site vitrine
   Palette industrielle sobre · responsive mobile-first
   ========================================================================== */

:root {
  /* Couleurs — calées sur le logo MT Traitement (navy profond + or) */
  --c-ink:        #0d2e48;   /* navy profond du logo, fond sombre principal */
  --c-ink-2:      #15405f;   /* navy moyen */
  --c-ink-3:      #1e5278;   /* navy clair */
  --c-text:       #0d2e48;   /* texte navy sur fond clair (cohérence) */
  --c-text-muted: #5a6a7a;
  --c-surface:    #ffffff;
  --c-surface-alt:#faf7f0;   /* off-white légèrement chaud (rappel or) */
  --c-tint:       #f4ead4;   /* sable très clair */
  --c-border:     #e5dcc6;
  --c-border-dark:#26446a;

  /* Accent : or chaud du logo + navy en secondaire */
  --c-accent:     #c8a05a;   /* or du logo */
  --c-accent-dk:  #a8853d;   /* or assombri pour hover */
  --c-accent-lt:  #dbb87b;   /* or clair pour fonds sombres */
  --c-accent-2:   #1e5278;   /* navy moyen, pour gradients secondaires */

  /* Typographie */
  --ff-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espacements */
  --container: 1200px;
  --pad-x: clamp(1rem, 4vw, 2rem);
  --section-py: clamp(4rem, 8vw, 6.5rem);

  /* Radius / ombres */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --shadow-sm: 0 2px 12px rgba(13, 46, 72, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 46, 72, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 46, 72, 0.18);
  --shadow-accent: 0 10px 30px rgba(200, 160, 90, 0.32);
}

/* ============================ RESET / BASE ============================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-dk); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(200, 160, 90, 0.35); color: var(--c-ink); }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--c-ink); color: white;
  padding: 0.5rem 1rem; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================ LAYOUT ============================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-py); position: relative; overflow: hidden; }
.section-light { background: var(--c-surface); }
.section-alt   { background: var(--c-surface-alt); }
.section-tint  { background: var(--c-tint); }
.section-dark  { background: var(--c-ink); color: #e0e6ec; }
.section-dark h2, .section-dark h3 { color: white; }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head-dark .lead { color: rgba(255,255,255,0.72); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .split-reverse { grid-template-columns: 0.9fr 1.1fr; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .contact-form { order: 2; }
}

/* ============================ TYPO HELPERS ============================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  margin: 0 0 1.25rem;
}
.eyebrow .bar {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--c-accent);
}
.eyebrow-light { color: var(--c-accent-lt); }
.eyebrow-light .bar { background: var(--c-accent-lt); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--c-text-muted);
}
.lead-light { color: rgba(255,255,255,0.75); }
.h-light { color: white; }

.accent { color: var(--c-accent); }

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: var(--shadow-accent);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--c-accent-dk);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(200, 160, 90, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.section-dark .btn-ghost,
.hero .btn-ghost {
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.btn-ghost:hover {
  background: var(--c-tint);
  color: var(--c-accent-dk);
}
.section-dark .btn-ghost:hover,
.hero .btn-ghost:hover {
  background: rgba(200, 160, 90, 0.12);
  color: var(--c-accent-lt);
  border-color: var(--c-accent-lt);
}

.btn-full { width: 100%; }

/* ============================ HEADER ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-text);
}
.logo:hover { color: var(--c-text); }
.logo-img {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 10px;
  transition: transform .2s;
}
.logo:hover .logo-img { transform: translateY(-1px); }
.logo-img-lg { height: 72px; }

.logo-wordmark {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .logo-img { height: 48px; }
  .site-header .logo-wordmark { display: none; }
}

.site-footer .logo-wordmark {
  color: var(--c-accent);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-primary a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-accent);
  position: relative;
}
.nav-primary a:not(.nav-cta):hover { color: var(--c-accent-dk); }
.nav-primary a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width .25s;
}
.nav-primary a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--c-accent);
  color: white !important;
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-md);
  font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--c-accent-dk); color: white !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-text);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  border-top: 1px solid var(--c-border);
  background: white;
  padding: 1rem var(--pad-x) 1.5rem;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0.5rem;
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-sm);
}
.nav-mobile a:hover { background: var(--c-tint); }
.nav-mobile .nav-cta {
  background: var(--c-accent);
  color: white !important;
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 700;
}

@media (max-width: 880px) {
  .nav-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================ HERO ============================ */

.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 0 0;
  background: var(--c-ink);
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(200,160,90,0.28), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(30,82,120,0.45), transparent 65%),
    linear-gradient(180deg, var(--c-ink) 0%, #081f31 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-inner h1 {
  color: white;
  margin-bottom: 1.75rem;
}
.hero-inner .lead {
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-inner .eyebrow { justify-content: center; color: var(--c-accent-lt); }
.hero-inner .eyebrow .bar { background: var(--c-accent-lt); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  padding: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat {
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.stat-value {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.stat-value span { color: var(--c-accent); }
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================ CARDS ============================ */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(200,160,90,0.18), rgba(200,160,90,0.04));
  color: var(--c-accent-dk);
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--c-text-muted); margin-bottom: 0; }

/* ============================ SERVICE CARDS ============================ */

.services-grid { gap: 1.75rem; }

.service-card {
  display: flex;
  flex-direction: column;
  background: white;
  color: var(--c-text);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--c-text);
}

.service-card-visual {
  height: 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
}
.service-card-visual[data-svc="phosphatation"] {
  background:
    linear-gradient(135deg, rgba(13,46,72,0.55), rgba(13,46,72,0.88)),
    repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 4px, #1a1a1a 4px, #1a1a1a 8px);
}
.service-card-visual[data-svc="zingage"] {
  background:
    linear-gradient(135deg, rgba(13,46,72,0.35), rgba(13,46,72,0.75)),
    linear-gradient(180deg, #c8d0d8 0%, #6a7888 50%, #8a98a8 100%);
}
.service-card-visual[data-svc="brunissage"] {
  background:
    linear-gradient(135deg, rgba(200,160,90,0.30), rgba(13,46,72,0.88)),
    radial-gradient(ellipse at 30% 70%, #4a3015 0%, #1a0f05 70%);
}
.svc-tag {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: var(--c-text);
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.service-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { color: var(--c-text); margin-bottom: 0.5rem; font-size: 1.2rem; }
.service-card-body p { color: var(--c-text-muted); margin-bottom: 0.9rem; font-size: 0.95rem; line-height: 1.55; }
.service-card-body .bullets { margin-bottom: 0.25rem; }
.service-card-body .bullets li { padding-left: 0; margin-bottom: 0.3rem; font-size: 0.88rem; }
.service-card-body .bullets li::before { display: none; }
.service-card-body .link-arrow { margin-top: auto; padding-top: 0.75rem; font-size: 0.9rem; }

.bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--c-text);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  background: var(--c-accent);
  transform: rotate(45deg);
}
.bullets-dark li { color: var(--c-text); }
.section-dark .bullets li { color: rgba(255,255,255,0.85); }
.section-dark .bullets li::before { background: var(--c-accent-lt); }

.link-arrow {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--c-accent);
  font-size: 0.95rem;
  transition: gap .2s;
}
.service-card:hover .link-arrow { color: var(--c-accent-dk); }

/* ============================ SECTEURS ============================ */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.sectors-grid li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color .2s, transform .2s;
}
.sectors-grid li:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
}
.sectors-grid li span {
  font-size: 1.3rem;
  line-height: 1;
}

/* ============================ ATELIER (split) ============================ */

.split-text h2 { margin-bottom: 1.25rem; }
.split-text p { margin-bottom: 1.25rem; color: var(--c-text-muted); }
.split-text .btn { margin-top: 1rem; }

.visual-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}
.visual-card::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  width: 80px; height: 80px;
  background: var(--c-accent);
  border-radius: var(--r-md);
  opacity: 0.12;
  z-index: -1;
}
.visual-tag {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.visual-address {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: var(--c-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.visual-meta { color: var(--c-text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.visual-link {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================ BG-GRID (sections sombres) ============================ */

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.section-dark .container { position: relative; z-index: 1; }

/* ============================ CONTACT FORM ============================ */

.contact-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 1rem;
}
.contact-label {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}
.contact-list a { color: white; }
.contact-list a:hover { color: var(--c-accent-lt); }
.section-dark .contact-list li > span:not(.contact-label) { color: rgba(255,255,255,0.85); }

.contact-form {
  background: white;
  color: var(--c-text);
  padding: 2.5rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}
.field input, .field textarea, .field select {
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: white;
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(200,160,90,0.25);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  text-align: center;
  margin: 0;
}
.form-success {
  padding: 1rem;
  background: rgba(45, 175, 90, 0.1);
  border: 1px solid rgba(45, 175, 90, 0.3);
  color: #1d6f3e;
  border-radius: var(--r-md);
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 600;
}

/* ============================ FOOTER ============================ */

.site-footer {
  background: #0a131c;
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand p { line-height: 1.6; max-width: 360px; }

.footer-col h4 {
  color: var(--c-accent);
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: white; }

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================ ANIMATIONS ============================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeInUp 0.7s ease-out backwards; }
.hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================ SERVICE DETAIL PAGES ============================ */

.svc-hero {
  background: var(--c-ink);
  color: white;
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.svc-hero .bg-grid { opacity: 0.7; }
.svc-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.svc-hero h1 { color: white; margin-bottom: 1.25rem; }
.svc-hero .lead { color: rgba(255,255,255,0.78); margin-bottom: 2rem; }
.svc-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.svc-breadcrumb a { color: rgba(255,255,255,0.7); }
.svc-breadcrumb a:hover { color: white; }

.svc-content { padding-block: var(--section-py); }
.svc-content .container { max-width: 1100px; }
.svc-content .container > p,
.svc-content .container > ul:not(.specs-list):not(.bullets) {
  max-width: 760px;
}

.svc-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.svc-intro h2:first-child { margin-top: 0; }
.svc-intro-text > *:last-child { margin-bottom: 0; }
.svc-intro .carousel { margin: 0; }

@media (max-width: 880px) {
  .svc-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.svc-content h2 { margin-top: 2.5rem; }
.svc-content h2:first-child { margin-top: 0; }
.svc-content p, .svc-content li { color: var(--c-text); }
.svc-content ul:not(.bullets):not(.specs-list) {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.svc-content ul li { margin-bottom: 0.5rem; }

.specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.specs-list li {
  background: var(--c-surface-alt);
  border-radius: var(--r-md);
  padding: 1.25rem;
  border-left: 3px solid var(--c-accent);
}
.specs-list strong { display: block; font-family: var(--ff-display); color: var(--c-text); margin-bottom: 0.25rem; }
.specs-list span { color: var(--c-text-muted); font-size: 0.9rem; }

.svc-cta {
  background: var(--c-tint);
  padding: 2.5rem;
  border-radius: var(--r-lg);
  text-align: center;
  margin-top: 3rem;
}

/* ============================ CAROUSEL ============================ */

.carousel {
  position: relative;
  margin: 0 0 3.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ink);
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--c-ink);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(13,46,72,0.85), transparent);
  color: white;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.9rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  color: var(--c-ink);
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s, opacity .2s;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(13,46,72,0.25);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { background: var(--c-accent); color: white; }
.carousel-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
@media (max-width: 540px) {
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-prev { left: 0.5rem; }
  .carousel-next { right: 0.5rem; }
}

.carousel-dots {
  position: absolute;
  bottom: 0.9rem; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s, width .25s;
}
.carousel-dots button:hover { background: rgba(255,255,255,0.75); }
.carousel-dots button.is-active {
  background: var(--c-accent);
  width: 24px;
  border-radius: 4px;
}
.svc-cta h3 { margin-bottom: 1rem; }
.svc-cta p { color: var(--c-text-muted); margin-bottom: 1.5rem; }
