/* ============================================================
   Les services S.L — Séguin Leblanc
   Design system — premium dark, editorial-motion
   Brand: luminous blue (windows) · warm copper/bronze (asphalt)
          champagne gold (vision) on a deep near-black canvas
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- TOKENS ---------- */
:root {
  /* neutrals — cool near-black */
  --bg:        #080a0e;
  --bg-2:      #0b0e14;
  --surface:   #10141c;
  --surface-2: #161b26;
  --surface-3: #1c2230;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.13);
  --ink:       #f4f7fc;
  --ink-soft:  rgba(244,247,252,.74);
  --ink-mute:  rgba(244,247,252,.52);
  --ink-faint: rgba(244,247,252,.34);

  /* brand palette */
  --blue:    #3aaee6;  --blue-l:  #82d2f4;  --blue-d:  #1f86bd;  --blue-rgb: 58,174,230;
  --cyan:    #22d3ee;  --cyan-l:  #7fe7f7;  --cyan-rgb: 34,211,238;
  --bronze:  #d09457;  --bronze-l:#ecb87e;  --bronze-d:#9a6328;  --bronze-rgb: 208,148,87;
  --gold:    #e6c483;  --gold-l:  #f4dca6;  --gold-d:  #b8902f;  --gold-rgb: 230,196,131;
  --green:   #34d399;

  /* themed accent (overridden per page) */
  --accent:   var(--blue);
  --accent-l: var(--blue-l);
  --accent-d: var(--blue-d);
  --accent-rgb: var(--blue-rgb);

  /* type */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.7rem, 7.4vw, 6.2rem);
  --fs-h1:      clamp(2.2rem, 5.2vw, 4.1rem);
  --fs-h2:      clamp(1.85rem, 3.8vw, 3rem);
  --fs-h3:      clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead:    clamp(1.02rem, 1.5vw, 1.22rem);

  /* spacing / shape */
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --section-y: clamp(64px, 9vw, 130px);
  --container: 1180px;
  --container-narrow: 760px;

  /* shadows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow:    0 18px 50px rgba(0,0,0,.45);
  --shadow-lg: 0 40px 90px rgba(0,0,0,.55);

  /* motion */
  --ease:   cubic-bezier(.22,.61,.36,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --spring: cubic-bezier(.34,1.32,.5,1);

  /* z-scale */
  --z-bg: 0; --z-base: 1; --z-nav: 100; --z-sticky: 200; --z-overlay: 300; --z-top: 400;
}

/* per-page accent themes */
body[data-theme="asphalt"] { --accent: var(--bronze); --accent-l: var(--bronze-l); --accent-d: var(--bronze-d); --accent-rgb: var(--bronze-rgb); }
body[data-theme="windows"] { --accent: var(--blue);   --accent-l: var(--blue-l);   --accent-d: var(--blue-d);   --accent-rgb: var(--blue-rgb); }
body[data-theme="vision"]  { --accent: var(--gold);   --accent-l: var(--gold-l);   --accent-d: var(--gold-d);   --accent-rgb: var(--gold-rgb); }

/* ---------- BASE ---------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
::selection { background: rgba(var(--accent-rgb), .3); color: #fff; }

/* atmospheric backdrop */
.bg-field {
  position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none; overflow: hidden;
}
.bg-field::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(var(--accent-rgb), .14), transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 71px, rgba(255,255,255,.012) 72px),
    repeating-linear-gradient(90deg, transparent, transparent 71px, rgba(255,255,255,.012) 72px);
}
.bg-field .orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; }
.orb-a { width: 540px; height: 540px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(var(--accent-rgb),.30), transparent 70%); animation: drift1 26s var(--ease-io) infinite alternate; }
.orb-b { width: 420px; height: 420px; bottom: -120px; right: -100px; background: radial-gradient(circle, rgba(var(--blue-rgb),.16), transparent 70%); animation: drift2 32s var(--ease-io) infinite alternate; }
.grain {
  position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.narrow { max-width: var(--container-narrow); }
section { padding-block: var(--section-y); position: relative; z-index: var(--z-base); }
.section-band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; font-optical-sizing: auto; }
.display { font-size: var(--fs-display); font-weight: 600; line-height: .98; letter-spacing: -.035em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.7; }
.serif-em { font-style: italic; font-family: var(--font-display); }

.grad-accent {
  background: linear-gradient(110deg, var(--accent-l), var(--accent) 60%, var(--accent-d));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-l);
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(var(--accent-rgb), .08);
  border: 1px solid rgba(var(--accent-rgb), .22);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin: 16px 0 14px; }
.section-head p { color: var(--ink-mute); }

/* ---------- BUTTONS ---------- */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-sans); font-weight: 700; font-size: .94rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  -webkit-tap-highlight-color: transparent; position: relative; overflow: hidden;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-l), var(--accent));
  color: #07090d;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), .32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(var(--accent-rgb), .42); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--ink);
  border-color: var(--line-2); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--accent-l); transform: translateY(-2px); background: rgba(var(--accent-rgb), .06); }
.btn-lg { --pad-y: 18px; --pad-x: 34px; font-size: 1rem; }
.btn:focus-visible { outline: 2px solid var(--accent-l); outline-offset: 3px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px clamp(18px, 5vw, 40px);
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 11px;
  background: rgba(8,10,14,.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; transition: height .35s var(--ease); }
.nav.scrolled .nav-logo img { height: 38px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: .9rem; color: var(--ink);
  padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  transition: border-color .2s, color .2s, background .2s;
}
.nav-phone:hover { border-color: rgba(var(--accent-rgb),.5); color: var(--accent-l); }
.nav-phone svg { width: 16px; height: 16px; }
.nav-burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(8,10,14,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 40px clamp(24px, 8vw, 60px);
  transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a.m-link {
  font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; transition: color .2s, padding-left .25s var(--ease);
}
.mobile-menu a.m-link:hover { color: var(--accent-l); padding-left: 10px; }
.mobile-menu .m-phones { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: var(--z-top); background: linear-gradient(90deg, var(--accent), var(--accent-l)); box-shadow: 0 0 12px rgba(var(--accent-rgb),.6); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: clamp(130px, 18vh, 200px); padding-bottom: clamp(60px, 9vw, 110px); z-index: var(--z-base); }
.hero-spotlight {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(var(--accent-rgb), .12), transparent 65%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero:hover .hero-spotlight { opacity: 1; }

/* ---------- CARDS / GRID ---------- */
.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 34px); text-decoration: none; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.06) 50%, transparent 68%);
  transform: translateX(-110%); transition: transform .65s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .4); box-shadow: var(--shadow), 0 0 50px rgba(var(--accent-rgb), .1); }
.card:hover::after { transform: translateX(110%); }
.card .card-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .2); color: var(--accent-l);
}
.card .card-ico svg { width: 28px; height: 28px; }
.card h3 { color: #fff; margin-bottom: 10px; }
.card p { color: var(--ink-mute); font-size: .92rem; flex: 1; }
.card .card-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: var(--accent-l); }
.card .card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }

/* feature tiles (home) carry their own accent */
.tile-asphalt { --accent: var(--bronze); --accent-l: var(--bronze-l); --accent-d: var(--bronze-d); --accent-rgb: var(--bronze-rgb); }
.tile-windows { --accent: var(--blue);   --accent-l: var(--blue-l);   --accent-d: var(--blue-d);   --accent-rgb: var(--blue-rgb); }
.tile-vision  { --accent: var(--gold);   --accent-l: var(--gold-l);   --accent-d: var(--gold-d);   --accent-rgb: var(--gold-rgb); }

/* benefit cards */
.benefit {
  position: relative; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.benefit:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), .35); }
.benefit::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 32%, rgba(var(--accent-rgb),.07) 50%, transparent 68%); transform: translateX(-110%); transition: transform .6s var(--ease); }
.benefit:hover::after { transform: translateX(110%); }
.benefit .b-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(var(--accent-rgb), .1); color: var(--accent-l); }
.benefit .b-ico svg { width: 24px; height: 24px; }
.benefit h4 { font-family: var(--font-sans); font-weight: 700; font-size: .98rem; letter-spacing: -.01em; margin-bottom: 8px; color: #fff; }
.benefit p { color: var(--ink-mute); font-size: .85rem; line-height: 1.62; }

/* info box */
.info-box {
  display: flex; gap: 16px; align-items: flex-start; max-width: 760px;
  background: rgba(var(--accent-rgb), .05); border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: var(--r); padding: 22px 24px;
}
.info-box .ib-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent-l); }
.info-box .ib-ico svg { width: 22px; height: 22px; }
.info-box strong { display: block; color: var(--accent-l); font-family: var(--font-sans); margin-bottom: 5px; font-size: .95rem; }
.info-box p { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }

/* ---------- STEPS / TIMELINE ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb),.12));
  transform: scaleX(0); transform-origin: left;
}
.steps.in-view::before { animation: lineGrow 1.3s var(--ease) .25s forwards; }
.step { text-align: center; padding: 0 8px; }
.step .step-n {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 20px; position: relative; z-index: 1;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #07090d;
  background: linear-gradient(140deg, var(--accent-l), var(--accent));
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), .4);
}
.step h4 { font-family: var(--font-sans); font-weight: 700; font-size: .98rem; margin-bottom: 8px; color: #fff; }
.step p { color: var(--ink-mute); font-size: .85rem; line-height: 1.6; }

/* ---------- STATS ---------- */
.stat-grid { display: grid; gap: 16px; }
.stat { padding: 28px 26px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--accent-rgb),.08), transparent 70%); }
.stat .stat-v { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 600; color: var(--accent-l); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .stat-l { color: var(--ink-mute); font-size: .85rem; line-height: 1.55; margin-top: 8px; }

/* ---------- ZONES ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; margin-inline: auto; }
.zone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .25s, color .25s, transform .25s;
}
.zone:hover { border-color: rgba(var(--accent-rgb),.4); color: #fff; transform: translateY(-3px); }
.zone .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* ---------- BEFORE / AFTER SLIDER ---------- */
.ba {
  position: relative; width: 100%; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); cursor: ew-resize; user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { z-index: 1; }                 /* full base layer = APRÈS (black) */
.ba .ba-before { z-index: 2; clip-path: inset(0 50% 0 0); } /* top layer = AVANT (grey), reveals left */
.ba .ba-tag { position: absolute; top: 16px; z-index: 4; font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill); pointer-events: none; }
.ba .tag-before { left: 16px; background: rgba(0,0,0,.7); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.ba .tag-after { right: 16px; background: var(--accent); color: #07090d; }
.ba .ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; z-index: 5; background: #fff; transform: translateX(-50%); box-shadow: 0 0 18px rgba(255,255,255,.5); }
.ba .ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 6;
  width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.5);
}
.ba .ba-knob svg { width: 22px; height: 22px; color: #07090d; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 7; margin: 0; }
.ba input[type="range"]:focus-visible + .ba-divider { outline: 2px solid var(--accent-l); outline-offset: 4px; }

/* ---------- PHOTO GALLERY ---------- */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 16px;
  font-size: .82rem; color: var(--ink-soft); font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
}

/* ---------- PPM HERO NUMBER ---------- */
.ppm { display: inline-flex; align-items: baseline; gap: 12px; position: relative; }
.ppm .ppm-n { font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 600; line-height: .9; letter-spacing: -.05em; color: var(--accent-l); font-variant-numeric: tabular-nums; }
.ppm .ppm-u { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 700; letter-spacing: .12em; color: rgba(var(--accent-rgb), .6); }
.ppm-ring { position: absolute; inset: -28px; pointer-events: none; }
.ppm-ring span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(var(--accent-rgb), .2); opacity: 0; animation: ripple 3s var(--ease-io) infinite; }
.ppm-ring span:nth-child(2) { animation-delay: 1s; }
.ppm-ring span:nth-child(3) { animation-delay: 2s; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: rgba(var(--accent-rgb), .35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ico { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .3s var(--ease); }
.faq summary .q-ico::before, .faq summary .q-ico::after { content: ''; position: absolute; background: var(--accent-l); border-radius: 2px; }
.faq summary .q-ico::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq summary .q-ico::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: transform .3s var(--ease); }
.faq details[open] summary .q-ico::after { transform: rotate(90deg); opacity: 0; }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-mute); font-size: .92rem; line-height: 1.72; }

/* ---------- CONTACT / FORM ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(var(--accent-rgb), .07), transparent 70%); pointer-events: none; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-mute); }
.field label .req { color: var(--accent-l); }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,.035); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 14px 16px; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; outline: none; -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244,247,252,.26); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(255,255,255,.05); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { cursor: pointer; } .field select option { background: var(--surface-2); color: var(--ink); }
.form-submit { margin-top: 4px; }
.form-note { text-align: center; margin-top: 12px; color: var(--ink-faint); font-size: .76rem; }
.form-success { display: none; text-align: center; padding: 40px 16px; }
.form-success.show { display: block; animation: fadeUp .5s var(--ease) both; }
.form-success .s-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: var(--green); }
.form-success .s-ico svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 10px; }
.form-success p { color: var(--ink-mute); font-size: .92rem; }

/* phone buttons row */
.phone-row { display: flex; gap: 14px; flex-wrap: wrap; }
.phone-row .btn { flex: 1; min-width: 200px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 28px; position: relative; z-index: var(--z-base); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 64px; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-mute); font-size: .9rem; max-width: 320px; }
.footer-col h5 { font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer-col a, .footer-col .f-item { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); text-decoration: none; font-size: .9rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent-l); }
.footer-col .f-badge { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: rgba(var(--accent-rgb),.12); color: var(--accent-l); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; color: var(--ink-faint); font-size: .78rem; }
.footer-bottom a { color: var(--ink-faint); text-decoration: none; } .footer-bottom a:hover { color: var(--ink-soft); }

/* ---------- STICKY MOBILE CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-sticky); gap: 10px; padding: 10px 14px; padding-bottom: max(10px, calc(env(safe-area-inset-bottom) + 6px)); background: rgba(8,10,14,.95); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: var(--r-sm); font-weight: 800; font-size: .88rem; text-decoration: none; color: #07090d; -webkit-tap-highlight-color: transparent; min-height: 48px; }
.cta-blue { background: linear-gradient(135deg, var(--blue-l), var(--blue)); }
.cta-bronze { background: linear-gradient(135deg, var(--bronze-l), var(--bronze)); }
.cta-full { background: linear-gradient(135deg, var(--accent-l), var(--accent)); }

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="blur"]  { transform: translateY(24px); filter: blur(10px); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- KEYFRAMES ---------- */
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(120px, 80px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-90px, -60px); } }
@keyframes lineGrow { to { transform: scaleX(1); } }
@keyframes ripple { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-stagger > * { animation: heroIn .9s var(--ease) both; }
.hero-stagger > *:nth-child(1) { animation-delay: .05s; }
.hero-stagger > *:nth-child(2) { animation-delay: .15s; }
.hero-stagger > *:nth-child(3) { animation-delay: .25s; }
.hero-stagger > *:nth-child(4) { animation-delay: .35s; }
.hero-stagger > *:nth-child(5) { animation-delay: .45s; }
.float { animation: floaty 3.4s var(--ease-io) infinite; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .phone-row .btn { min-width: 100%; }
}
@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* keep content clear of the sticky mobile bar */
@media (max-width: 900px) { .footer { padding-bottom: calc(28px + 78px); } }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .bg-field .orb { animation: none; }
  .hero-stagger > * { animation: none; }
}
