/* ==========================================================================
   iTechFix — Premium Redesign 2026
   Theme: "Crimson Chrome" with light + dark modes
   Synced to the iTechFix shield emblem logo.
   ========================================================================== */

:root {
  /* fixed brand colors (both themes) */
  --black: #050507;
  --red: #e51d2a;
  --red-bright: #ff2b38;
  --red-600: #c4121f;
  --red-700: #960c16;
  --red-soft: rgba(229,29,42,.13);
  --red-soft-2: rgba(229,29,42,.22);
  --red-glow: rgba(229,29,42,.55);
  --red-grad: linear-gradient(135deg, #ff2b38 0%, #c4121f 100%);
  --logo-chip: #0c0c11;

  /* theming surfaces (dark default) */
  --surface: #0a0a0d;
  --surface-2: #0f0f14;
  --surface-3: #131319;
  --card: #15151c;
  --card-2: #1c1c25;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --fill: rgba(255,255,255,.05);
  --fill-2: rgba(255,255,255,.09);
  --head: #f5f6f8;
  --ink: #c3c8d2;
  --muted: #868d9b;
  --chrome-text: linear-gradient(180deg, #ffffff 0%, #d4d7de 46%, #9197a3 54%, #eef0f3 100%);
  --hero-bg: radial-gradient(120% 120% at 50% -10%, #1c0c10 0%, var(--black) 56%);
  --hero-tint: linear-gradient(90deg, rgba(8,8,11,.95) 0%, rgba(8,8,11,.5) 58%, rgba(8,8,11,.74) 100%);
  --dot: rgba(255,255,255,.05);

  --shadow: 0 24px 60px rgba(0,0,0,.55);
  --shadow-red: 0 18px 50px rgba(229,29,42,.35);
  --ring: 0 0 0 4px rgba(229,29,42,.25);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 26px;
  --maxw: 1220px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

:root[data-theme="light"] {
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-3: #eaeef5;
  --card: #ffffff;
  --card-2: #f5f7fb;
  --line: rgba(13,18,28,.10);
  --line-2: rgba(13,18,28,.16);
  --fill: rgba(13,18,28,.04);
  --fill-2: rgba(13,18,28,.07);
  --head: #13151b;
  --ink: #444b59;
  --muted: #6b7280;
  --chrome-text: linear-gradient(180deg, #2b2e36 0%, #5a5f6b 50%, #2b2e36 100%);
  --hero-bg: radial-gradient(120% 120% at 50% -10%, #ffe7e9 0%, var(--surface) 55%);
  --hero-tint: linear-gradient(90deg, rgba(244,247,251,.96) 0%, rgba(244,247,251,.62) 58%, rgba(244,247,251,.85) 100%);
  --dot: rgba(13,18,28,.05);
  --shadow: 0 20px 50px rgba(20,30,55,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--surface); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; color: var(--head); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 66px 0; position: relative; }
section { position: relative; }
.s-alt { background: var(--surface-2); }

/* ---------- Helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #ff5d67; background: var(--red-soft); padding: 8px 16px; border-radius: 100px;
  margin-bottom: 20px; border: 1px solid var(--red-soft-2);
}
.eyebrow svg { width: 15px; height: 15px; }
.lead { font-size: 1.14rem; color: var(--ink); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }
.chrome-text { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.red-text { color: var(--red); -webkit-text-fill-color: var(--red); }
.muted { color: var(--muted); }
strong { color: var(--head); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; padding: 15px 28px; border-radius: 100px;
  cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red-grad); color: #fff; box-shadow: 0 12px 30px rgba(229,29,42,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(229,29,42,.55); }
.btn-ghost { background: var(--fill); color: var(--head); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--fill-2); border-color: var(--red-soft-2); transform: translateY(-2px); }
.btn-chrome { background: var(--head); color: var(--surface); box-shadow: var(--shadow); }
.btn-chrome:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--head); border: 1.5px solid var(--line-2); }
.btn-outline:hover { background: var(--red-soft); border-color: var(--red); color: var(--head); transform: translateY(-2px); }
.btn-light { background: #fff; color: #15151c; box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
/* buttons that always sit on dark/red bands */
.on-dark .btn-ghost, .cta-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.on-dark .btn-ghost:hover, .cta-actions .btn-ghost:hover { background: rgba(255,255,255,.16); }

/* ---------- Announcement bar ---------- */
.topbar { background: var(--red-grad); color: #fff; font-size: .86rem; font-weight: 500; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; text-align: center; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; }
.topbar a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px){ .topbar .tb-hide { display: none; } }
@media (max-width: 560px){
  .topbar { font-size: .72rem; letter-spacing: -.005em; }
  .topbar .container { gap: 14px; min-height: 32px; padding-top: 4px; padding-bottom: 4px; flex-wrap: nowrap; white-space: nowrap; }
  .topbar svg { width: 13px; height: 13px; }
  .topbar a { text-decoration: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(8,8,11,.96);
  backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.6); border-bottom-color: var(--red-soft-2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 86px; gap: 18px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
/* The header / footer / drawer are dark in both themes, so the emblem's black
   background blends away with no badge box. */
.logo-chip { display: inline-flex; align-items: center; }
.logo-chip img { height: 56px; width: auto; display: block; mix-blend-mode: lighten; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: .98rem; color: #c3c8d2; padding: 10px 15px; border-radius: 100px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; font-size: .96rem; }
.nav-phone svg { width: 18px; height: 18px; color: var(--red-bright); }
.theme-toggle, .nav-toggle { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); cursor: pointer; padding: 0; color: #fff; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.theme-toggle:hover, .nav-toggle:hover { background: rgba(255,255,255,.12); border-color: var(--red-soft-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.nav-toggle svg { width: 24px; height: 24px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }

/* ---------- glow ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-red { background: rgba(229,29,42,.42); }

/* ---------- Hero (theme-aware) ---------- */
.hero { background-image: linear-gradient(to bottom, transparent 72%, var(--surface)), var(--hero-bg); color: var(--head); overflow: hidden; padding: 32px 0 104px; transition: background .3s, color .3s; }
.hero::after { content:''; position:absolute; inset:0; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 26px 26px; opacity:.6; pointer-events:none; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: center; }
.hero h1 { color: var(--head); }
.hero p { color: var(--ink); font-size: 1.16rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust .ht { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); background: var(--fill); border: 1px solid var(--line); padding: 8px 14px; border-radius: 100px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--red-bright); flex-shrink: 0; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-emblem-wrap { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; display: grid; place-items: center; }
.hero-emblem-wrap .glow-red { width: 68%; height: 68%; top: 16%; left: 16%; }
.hero-emblem { position: relative; z-index: 2; width: 100%; mix-blend-mode: lighten; filter: drop-shadow(0 20px 50px rgba(229,29,42,.4)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
.hero-badge { position: absolute; z-index: 3; background: rgba(20,20,26,.92); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 15px; padding: 13px 17px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; backdrop-filter: blur(8px); }
.hero-badge .hb-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--red-grad); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.hero-badge .hb-ico svg { width: 21px; height: 21px; }
.hero-badge .hb-top { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1; }
.hero-badge .hb-sub { font-size: .76rem; color: #9aa0ab; }
.hero-badge.b1 { top: 8%; left: -10px; }
.hero-badge.b2 { bottom: 10%; right: -10px; }
.hero-photo-wrap { position: relative; width: 100%; max-width: 480px; }
.hero-photo-wrap .glow-red { width: 72%; height: 72%; top: 12%; left: 14%; }
.hero-photo-frame { position: relative; z-index: 2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); aspect-ratio: 4 / 3.5; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.stars { color: #ffb020; letter-spacing: 1px; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: var(--red-grad); opacity:.8; }
.stat .num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--head); line-height: 1; letter-spacing: -.03em; }
.stat .num span { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: 10px; font-weight: 500; }

/* ---------- Section heads ---------- */
.sec-head { max-width: 740px; margin: 0 auto 54px; }
.sec-head.left { margin-left: 0; text-align: left; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.card:hover { transform: translateY(-6px); border-color: var(--red-soft-2); box-shadow: var(--shadow); }
.card-ico { width: 56px; height: 56px; border-radius: 15px; background: var(--red-soft); color: var(--red-bright); display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--red-soft-2); }
.card-ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; color: var(--head); }
.card p { font-size: .98rem; margin-bottom: 0; color: var(--ink); }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--red-bright); font-size: .95rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* service card w/ photo */
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--red-soft-2); box-shadow: var(--shadow); }
.svc-card .ph { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.svc-card .ph::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 45%, rgba(8,8,11,.5)); }
.svc-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.svc-card:hover .ph img { transform: scale(1.07); }
.svc-card .bd { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 1.14rem; color: var(--head); }
.svc-card p { font-size: .94rem; flex: 1; color: var(--ink); }
.svc-card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--red-bright); font-size: .92rem; }
.svc-card .card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.svc-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- NEW device category cards ---------- */
.dev2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dev2-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px 30px; overflow: hidden; transition: transform .18s ease, box-shadow .28s, border-color .28s; isolation: isolate; transform-style: preserve-3d; will-change: transform; }
.dev2-card::before { content:''; position:absolute; inset:0; border-radius: inherit; background: radial-gradient(240px circle at var(--mx,80%) var(--my,12%), var(--red-soft) 0%, transparent 60%); opacity:0; transition: opacity .3s; z-index:-1; pointer-events:none; }
.dev2-card:hover { transform: translateY(-8px); border-color: var(--red-soft-2); box-shadow: var(--shadow-red); }
.dev2-card:hover::before { opacity: 1; }
.dev2-num { position: absolute; top: 24px; right: 28px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--red-bright); letter-spacing: .05em; opacity: .85; }
.dev2-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--red-grad); color: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 12px 26px rgba(229,29,42,.35); transition: transform .3s; }
.dev2-card:hover .dev2-ico { transform: translateY(-3px) rotate(-4deg); }
.dev2-ico svg { width: 32px; height: 32px; }
.dev2-card h3 { font-size: 1.32rem; margin-bottom: 8px; color: var(--head); }
.dev2-card p { font-size: .95rem; color: var(--ink); margin-bottom: 22px; }
.dev2-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--head); font-size: .92rem; }
.dev2-link svg { width: 16px; height: 16px; color: var(--red-bright); transition: transform .25s; }
.dev2-card:hover .dev2-link svg { transform: translateX(5px); }
.dev2-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--red-grad); transition: width .35s ease; border-radius: 0 4px 0 0; }
.dev2-card:hover .dev2-bar { width: 100%; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.feature-list { display: grid; gap: 16px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color .2s, transform .2s; }
.feature-row:hover { border-color: var(--red-soft-2); transform: translateX(4px); }
.feature-row .fi { width: 48px; height: 48px; border-radius: 13px; background: var(--red-soft); color: var(--red-bright); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--red-soft-2); }
.feature-row .fi svg { width: 24px; height: 24px; }
.feature-row h4 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 600; color: var(--head); font-family: var(--font); }
.feature-row p { margin: 0; font-size: .95rem; color: var(--ink); }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-wrap { position: relative; }
.media-float { position: absolute; bottom: -22px; right: -22px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); }
.media-float .num { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--head); line-height: 1; }
.media-float .num span { color: var(--red); }
.media-float .lbl { font-size: .8rem; color: var(--muted); }

/* ---------- Brand marquee ---------- */
.brand-strip { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; align-items: center; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.m-logo { display: grid; place-items: center; width: 138px; height: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); flex: 0 0 auto; padding: 14px 20px; overflow: hidden; }
.m-logo img { max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; }

.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 18px; transition: transform .2s, border-color .2s, box-shadow .2s; min-height: 110px; overflow: hidden; }
.brand-tile img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; }
.brand-tile:hover { transform: translateY(-4px); border-color: var(--red-soft-2); box-shadow: var(--shadow); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--red-soft-2); transform: translateY(-4px); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 20px; right: 26px; font-family: var(--display); font-size: 2.8rem; font-weight: 700; color: var(--fill-2); line-height: 1; }
.step .s-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--red-grad); color: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 10px 24px rgba(229,29,42,.3); }
.step .s-ico svg { width: 27px; height: 27px; }
.step h3 { font-size: 1.14rem; margin-bottom: 6px; color: var(--head); }
.step p { font-size: .95rem; margin: 0; color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface-2); overflow: hidden; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.t-card:hover { border-color: var(--red-soft-2); transform: translateY(-4px); }
.t-card .t-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.t-card .av { width: 44px; height: 44px; border-radius: 50%; background: var(--red-grad); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; flex-shrink: 0; }
.t-card .t-id { flex: 1; min-width: 0; }
.t-card .nm { font-weight: 600; font-size: .98rem; color: var(--head); text-decoration: none; }
.t-card .nm:hover { color: var(--red-bright); text-decoration: underline; }
.t-card .mt { font-size: .82rem; color: var(--muted); }
.t-card .t-g { flex-shrink: 0; display: grid; place-items: center; opacity: .9; }
.t-card .stars { margin-bottom: 12px; display: block; font-size: 1.05rem; }
.t-card p { color: var(--ink); font-size: .98rem; margin: 0; }
.rs-g { margin-left: 2px; display: inline-grid; place-items: center; }
.rating-summary { display: inline-flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 12px 26px; margin-top: 40px; transition: border-color .2s, transform .2s; }
.rating-summary:hover { border-color: var(--red-soft-2); transform: translateY(-2px); }
.rating-summary .big { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--head); }
.rating-summary .meta { font-size: .85rem; color: var(--muted); text-align: left; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 840px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--red-soft-2); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 24px; font-size: 1.06rem; font-weight: 600; color: var(--head); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font); }
.faq-q .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, background .2s; color: var(--red-bright); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--red-grad); color: #fff; }
.faq-q .pm svg { width: 18px; height: 18px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-in { padding: 0 24px 22px; color: var(--ink); font-size: .98rem; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.loc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.loc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red-soft-2); }
.loc-map { aspect-ratio: 16/7; width: 100%; border: 0; }
:root[data-theme="dark"] .loc-map, :root:not([data-theme="light"]) .loc-map { filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }
.loc-body { padding: 28px; }
.loc-city { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red-bright); margin-bottom: 10px; }
.loc-city svg { width: 15px; height: 15px; }
.loc-body h3 { font-size: 1.28rem; margin-bottom: 4px; color: var(--head); }
.loc-row { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); font-size: .96rem; margin-top: 12px; }
.loc-row svg { width: 19px; height: 19px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.loc-row a { color: var(--head); font-weight: 600; }
.loc-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Inner page hero (theme-aware) ---------- */
.page-hero { background-image: linear-gradient(to bottom, transparent 68%, var(--surface)), var(--hero-bg); color: var(--head); overflow: hidden; padding: 32px 0 82px; transition: background .3s, color .3s; }
.page-hero::after { content:''; position:absolute; inset:0; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 26px 26px; opacity:.4; pointer-events:none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero.img-hero { background-image: linear-gradient(to bottom, transparent 60%, var(--surface)), var(--hero-tint), var(--hero-img); background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero.img-hero::after { display: none; }
.page-hero h1 { color: var(--head); max-width: 20ch; }
.page-hero p { color: var(--ink); max-width: 62ch; font-size: 1.12rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red-bright); }
.crumbs span { opacity: .5; }

/* ---------- CTA band (always red) ---------- */
.cta-inner { background: var(--red-grad); border-radius: var(--radius-lg); padding: 64px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-red); }
.cta-inner::before { content:''; position:absolute; inset:0; background: radial-gradient(600px 320px at 18% 15%, rgba(255,255,255,.22), transparent 60%); }
.cta-inner::after { content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; opacity:.5; }
.cta-inner > * { position: relative; z-index: 2; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.92); max-width: 60ch; margin: 0 auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Prose ---------- */
.prose { max-width: 840px; margin: 0 auto; color: var(--ink); }
.prose h2 { font-size: 1.55rem; margin-top: 2em; color: var(--head); }
.prose h3 { font-size: 1.18rem; margin-top: 1.6em; color: var(--head); }
.prose p { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--red-bright); font-weight: 600; }
.prose .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.4em; }

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 46px; align-items: start; }
.detail-body { color: var(--ink); }
.detail-body h2 { margin-top: 1.4em; color: var(--head); }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checklist li svg { width: 22px; height: 22px; color: var(--red-bright); flex-shrink: 0; margin-top: 1px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: sticky; top: 104px; }
.aside-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--red-grad); padding: 7px 14px; border-radius: 100px; margin-bottom: 16px; }
.aside-tag svg { width: 14px; height: 14px; }
.aside-card h3 { font-size: 1.32rem; color: var(--head); margin-bottom: 8px; }
.aside-card .aside-sub { font-size: .95rem; color: var(--ink); margin-bottom: 4px; }
.aside-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.aside-list li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink); }
.aside-list svg { width: 18px; height: 18px; color: var(--red-bright); flex-shrink: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-size: .88rem; font-weight: 500; color: var(--ink); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 7px; color: var(--head); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; color: var(--head); background: var(--fill); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--card); color: var(--head); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }
.info-list { display: grid; gap: 18px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .ii { width: 50px; height: 50px; border-radius: 14px; background: var(--red-soft); color: var(--red-bright); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--red-soft-2); }
.info-row .ii svg { width: 24px; height: 24px; }
.info-row h4 { margin: 0 0 3px; font-size: 1.04rem; color: var(--head); font-family: var(--font); font-weight: 600; }
.info-row p { margin: 0; font-size: .96rem; color: var(--ink); }
.info-row a { color: var(--red-bright); font-weight: 600; }
.form-success { display: none; background: rgba(22,163,74,.12); border: 1px solid rgba(34,197,94,.4); color: #16a34a; border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 500; margin-bottom: 18px; }
.form-success.show { display: block; }

/* ---------- Footer (always dark) ---------- */
.site-footer { background: var(--black); color: #aab2c2; padding-top: 76px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 42px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .logo-chip { background: transparent; border: 0; padding: 0; box-shadow: none; margin-bottom: 18px; }
.footer-brand .logo-chip img { height: 66px; }
.footer-brand p { color: #7c8699; font-size: .96rem; max-width: 36ch; }
.footer-hours { margin-top: 22px; }
.footer-hours h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-family: var(--font); font-weight: 600; }
.footer-hours .h-row { display: flex; justify-content: space-between; gap: 16px; color: #7c8699; font-size: .9rem; line-height: 1.9; }
.footer-hours .h-row strong { color: #aab2c2; font-weight: 500; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; font-family: var(--font); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: #7c8699; font-size: .96rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-news p { color: #7c8699; font-size: .94rem; }
.news-form { display: flex; gap: 8px; margin-top: 14px; }
.news-form input { flex: 1; padding: 12px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font-family: inherit; font-size: .92rem; }
.news-form input::placeholder { color: #7c8699; }
.news-form input:focus { outline: 0; border-color: var(--red); }
.news-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red-grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform .2s; }
.news-form button:hover { transform: scale(1.06); }
.foot-contact { display: grid; gap: 12px; margin-top: 22px; }
.foot-contact a { display: flex; gap: 10px; align-items: center; color: #7c8699; font-size: .94rem; }
.foot-contact a:hover { color: #fff; }
.foot-contact svg { width: 18px; height: 18px; color: var(--red-bright); flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .9rem; color: #7c8699; }
.footer-bottom .fb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom .fb-links a { color: #7c8699; font-size: .9rem; }
.footer-bottom .fb-links a:hover { color: #fff; }
.footer-disclaimer { font-size: .82rem; color: #5b6170; padding-bottom: 32px; max-width: 920px; line-height: 1.6; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-emblem { animation: none; } }

/* ---------- Mobile drawer ---------- */
.nav-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s; }
.nav-drawer.open { opacity: 1; visibility: visible; }
.nav-drawer-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(86vw, 340px); background: #0b0b0f; border-left: 1px solid rgba(255,255,255,.08); padding: 24px; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; overflow-y: auto; }
.nav-drawer.open .nav-drawer-panel { transform: none; }
.nav-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.nav-drawer-close { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; color: #fff; }
.nav-drawer-close svg { width: 24px; height: 24px; }
.nav-drawer-links { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer-links a { padding: 14px 16px; border-radius: 12px; font-weight: 500; font-size: 1.05rem; color: #f5f6f8; }
.nav-drawer-links a:hover, .nav-drawer-links a.active { background: rgba(255,255,255,.06); color: var(--red-bright); }
.nav-drawer .btn { margin-top: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; max-width: 640px; margin: 0 auto; }
  .hero-grid > .reveal:not(.hero-visual) { display: contents; }
  .hero-grid > .reveal:not(.hero-visual) > .eyebrow { order: 1; }
  .hero-grid > .reveal:not(.hero-visual) > h1 { order: 2; }
  .hero-visual { width: 100%; max-width: 560px; margin: 8px auto 4px; order: 3; }
  .hero-photo-wrap { max-width: 100%; }
  .hero-grid > .reveal:not(.hero-visual) > p { order: 4; max-width: none; }
  .hero-grid > .reveal:not(.hero-visual) > .hero-actions { order: 5; }
  .hero-grid > .reveal:not(.hero-visual) > .hero-trust { order: 6; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .detail-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .dev2-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: grid; }
  .nav { height: 76px; }
  .logo-chip img { height: 44px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { padding: 44px 26px; }
  .hero-badge.b1 { left: 0; }
  .hero-badge.b2 { right: 0; }
  /* Hero on tablet/mobile: image sits between heading and description, eyebrow at bottom */
  .hero { padding: 28px 0 48px; }
  .hero-grid { display: flex; flex-direction: column; gap: 22px; }
  .hero-grid > .reveal:first-child { display: contents; }
  .hero-grid > .reveal:first-child > h1 { order: 1; margin-top: 0; }
  .hero-visual { order: 2; margin: 4px 0; }
  .hero-grid > .reveal:first-child > p { order: 3; }
  .hero-grid > .reveal:first-child > .hero-actions { order: 4; margin: 8px 0 6px; }
  .hero-grid > .reveal:first-child > .hero-trust { order: 5; }
  .hero-grid > .reveal:first-child > .eyebrow { order: 6; margin-top: 18px; align-self: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; }
  .dev2-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .footer-brand, .footer-news { grid-column: 1 / -1; }
  .footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .footer-brand > a { flex: 0 0 auto; }
  .footer-brand .logo-chip { margin-bottom: 0; }
  .footer-brand > p { flex: 1 1 0; min-width: 0; margin: 0; max-width: none; }
  .footer-brand > .footer-hours { flex: 1 1 100%; }
  .footer-top > .footer-col:nth-child(3) { text-align: right; }
  .footer-top > .footer-col:nth-child(3) h4 { text-align: right; }
  .footer-top > .footer-col:nth-child(3) ul { justify-items: end; }
  .footer-top > .footer-col:nth-child(3) a:hover { padding-left: 0; padding-right: 4px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-col ul { gap: 5px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .section { padding: 44px 0; }
  .section-sm { padding: 28px 0; }
  .card, .form-card { padding: 24px; }
  .logo-chip { padding: 7px 12px; }
  .logo-chip img { height: 40px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { display: none; }
  .cta-inner { padding: 36px 22px; }
  .hero { padding: 24px 0 36px; }
  .hero-grid { gap: 24px; }
  .hero-grid > .reveal:first-child > .hero-actions { margin: 20px 0 18px; }
  .hero-grid > .reveal:first-child > .eyebrow { margin-top: 22px; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Animations & interactivity
   ========================================================================== */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red-grad); z-index: 300; box-shadow: 0 0 12px rgba(229,29,42,.6); transition: width .08s linear; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red-grad); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, box-shadow .2s; box-shadow: 0 12px 30px rgba(229,29,42,.4); z-index: 120; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(229,29,42,.55); }
.to-top svg { width: 22px; height: 22px; }

/* Staggered reveal (delay set inline by JS); add a soft scale to cards */
.reveal { will-change: opacity, transform; }

/* Button sheen sweep on hover */
.btn-primary, .btn-chrome, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-chrome::after, .btn-light::after { content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); transition: left .65s ease; pointer-events: none; }
.btn-primary:hover::after, .btn-chrome:hover::after, .btn-light:hover::after { left: 150%; }

/* Animated nav underline */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--red-grad); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Pulsing hero glow */
@keyframes glowPulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.glow-red { animation: glowPulse 5.5s ease-in-out infinite; }

/* Gentle float on hero photo */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-photo-wrap { animation: floatY 6.5s ease-in-out infinite; }

/* Icon micro-interactions */
.card-ico, .step .s-ico, .feature-row .fi, .info-row .ii, .dev2-ico { transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.card:hover .card-ico { transform: translateY(-3px) scale(1.06); }
.step:hover .s-ico { transform: scale(1.08) rotate(-5deg); }
.feature-row:hover .fi { transform: scale(1.08) rotate(3deg); }
.info-row:hover .ii { transform: scale(1.08); }

/* Subtle lift + cursor spotlight for content cards */
.card, .svc-card, .t-card, .loc-card, .step { background-image: radial-gradient(260px circle at var(--mx, -100%) var(--my, -100%), var(--red-soft), transparent 55%); background-repeat: no-repeat; }

/* Eyebrow shimmer */
@keyframes eyebrowDot { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.eyebrow svg { animation: eyebrowDot 2.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .glow-red, .hero-photo-wrap, .eyebrow svg { animation: none; }
  .btn-primary::after, .btn-chrome::after, .btn-light::after { display: none; }
  .scroll-progress { transition: none; }
}
