/* =========================================================
   Command Line Co., Ltd. — Corporate Website
   Theme: Deep Navy & White | Trustworthy · Modern · Professional
   ========================================================= */

:root {
  /* Brand palette */
  --navy-900: #061634;
  --navy-800: #0a1f44;
  --navy-700: #0e2a5c;
  --navy-600: #133a7d;
  --blue-500: #1e63d0;
  --blue-400: #2f7bea;
  --blue-100: #e8f0fe;
  --blue-50:  #f4f8ff;

  --white: #ffffff;
  --ink: #16203a;
  --muted: #5d6b85;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 14px 40px rgba(10, 31, 68, 0.12);
  --shadow-lg: 0 30px 70px rgba(10, 31, 68, 0.20);

  --container: 1200px;
  --header-h: 78px;

  --ff-head: "Prompt", "Sarabun", system-ui, sans-serif;
  --ff-body: "Sarabun", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.25; font-weight: 600; color: var(--navy-800); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: radial-gradient(120% 140% at 80% -10%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #dfe7f5;
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: .76rem;
  color: var(--blue-500); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--blue-400); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.04rem; }
.section--navy .section-head p { color: #aebbd6; }

.eyebrow { font-size: .8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: .22s ease; white-space: nowrap;
}
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: 0 10px 24px rgba(30, 99, 208, .32); }
.btn--primary:hover { background: var(--blue-400); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 99, 208, .42); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt b { font-family: var(--ff-head); font-weight: 700; color: var(--navy-800); font-size: 1.02rem; letter-spacing: .01em; }
.brand__txt span { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--ff-head); font-weight: 500; font-size: .96rem; color: var(--navy-800);
  padding: 9px 15px; border-radius: 8px; transition: .18s; position: relative;
}
.nav a:hover { color: var(--blue-500); background: var(--blue-50); }
.nav a.active { color: var(--blue-500); }
.nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--blue-500); border-radius: 2px;
}
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-family: var(--ff-head); font-weight: 600; color: var(--navy-800); font-size: .95rem; }
.header__phone svg { color: var(--blue-500); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .25s; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf1ff; overflow: hidden;
  background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/work/hero.webp");
  background-size: cover; background-position: center; opacity: .18; mix-blend-mode: luminosity;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(47,123,234,.35) 0%, transparent 60%); pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 96px 0 104px; max-width: 760px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-family: var(--ff-head); font-size: .82rem; font-weight: 500; color: #cfe0ff; margin-bottom: 22px;
}
.hero .badge i { width: 8px; height: 8px; border-radius: 50%; background: #43d18b; box-shadow: 0 0 0 4px rgba(67,209,139,.25); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 .hl { color: var(--blue-400); }
.hero p { font-size: 1.12rem; color: #c2d1ee; max-width: 600px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 38px; margin-top: 54px; flex-wrap: wrap; }
.hero__stats .num { font-family: var(--ff-head); font-weight: 700; font-size: 2rem; color: #fff; }
.hero__stats .lbl { font-size: .9rem; color: #a9bbdd; }

/* ---------- Trust / clients strip ---------- */
.logo-strip { padding: 40px 0; border-bottom: 1px solid var(--line); }
.logo-strip p { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; font-family: var(--ff-head); letter-spacing: .06em; text-transform: uppercase; }
.logo-strip__row { display: flex; flex-wrap: wrap; gap: 34px 46px; align-items: center; justify-content: center; }
.logo-strip__row img { height: 50px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .68; transition: .25s; }
.logo-strip__row img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: .26s ease; position: relative; overflow: hidden;
}
.svc-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); transform: scaleX(0); transform-origin: left; transition: .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card .ico {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-500); margin-bottom: 20px;
}
.svc-card .ico svg { width: 30px; height: 30px; }
.svc-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: .97rem; }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--blue-500); font-family: var(--ff-head); font-weight: 600; font-size: .92rem; }
.svc-card .more svg { transition: transform .2s; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ---------- Detailed service rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 30px 0; }
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.svc-row:hover .svc-row__media img { transform: scale(1.05); }
.svc-row__body .tag { font-family: var(--ff-head); color: var(--blue-500); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.svc-row__body h3 { font-size: 1.7rem; margin: 10px 0 14px; }
.svc-row__body p { color: var(--muted); margin-bottom: 18px; }
.feat-list { display: grid; gap: 11px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .98rem; }
.feat-list li svg { flex: none; color: var(--blue-500); margin-top: 4px; }

/* ---------- Feature / why-us ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .ico { width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(47,123,234,.14); color: var(--blue-400); }
.section--navy .feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.section--navy .feature p { color: #aebbd6; font-size: .95rem; }
.feature .ico svg { width: 26px; height: 26px; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stats-band .num { font-family: var(--ff-head); font-weight: 700; font-size: 2.6rem; color: var(--blue-500); }
.stats-band .lbl { color: var(--muted); font-size: .98rem; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-split__media { position: relative; }
.about-split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.about-split__media .float-card {
  position: absolute; bottom: -26px; left: -26px; background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; gap: 14px; align-items: center; border: 1px solid var(--line);
}
.about-split__media .float-card .big { font-family: var(--ff-head); font-weight: 700; font-size: 2rem; color: var(--blue-500); }
.about-split__media .float-card .sm { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.about-split__body h2 { font-size: clamp(1.6rem,3.4vw,2.3rem); margin-bottom: 16px; }
.about-split__body p { color: var(--muted); margin-bottom: 14px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.check-grid li { display: flex; gap: 10px; align-items: center; font-family: var(--ff-head); font-weight: 500; font-size: .96rem; }
.check-grid li svg { color: var(--blue-500); flex: none; }

/* ---------- Values / vision-mission ---------- */
.vm-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.vm-card .ico { width:56px;height:56px;border-radius:14px;display:grid;place-items:center;background:var(--blue-50);color:var(--blue-500);margin-bottom:18px;}
.vm-card h3 { font-size:1.25rem;margin-bottom:10px;}
.vm-card p { color:var(--muted);font-size:.97rem;}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; left: 64px; right: -13px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

/* ---------- Portfolio ---------- */
.pf-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.pf-filter button {
  font-family: var(--ff-head); font-weight: 500; font-size: .92rem; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer; transition: .2s;
}
.pf-filter button:hover { border-color: var(--blue-500); color: var(--blue-500); }
.pf-filter button.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.pf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pf-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); cursor: pointer; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.pf-item:hover img { transform: scale(1.08); }
.pf-item__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(6,22,52,.88) 0%, rgba(6,22,52,.1) 55%, transparent 100%);
  opacity: 0; transition: .3s; color: #fff;
}
.pf-item:hover .pf-item__overlay { opacity: 1; }
.pf-item__overlay .cat { font-size: .76rem; color: var(--blue-400); font-family: var(--ff-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pf-item__overlay h4 { color: #fff; font-size: 1.05rem; margin-top: 4px; }

/* clients gallery (logos) */
.client-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.client-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  aspect-ratio: 16/10; display: grid; place-items: center; padding: 16px; transition: .22s;
}
.client-cell:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.client-cell img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ---------- Partners auto-scroll marquee ---------- */
.marquee {
  --visible: 5;            /* โชว์ครั้งละกี่โลโก้ */
  --total: 26;             /* จำนวนเซลล์ทั้งหมด = ชุดต้นฉบับ 13 × 2 ชุด */
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; width: calc(100% / var(--visible) * var(--total));
  animation: marquee-scroll 38s linear infinite; will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner-cell { flex: 0 0 calc(100% / var(--total)); padding: 0 13px; }
.partner-cell .box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 104px; display: grid; place-items: center; padding: 16px 22px; transition: .22s ease;
}
.partner-cell .box:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.partner-cell img { max-height: 58px; max-width: 100%; object-fit: contain; opacity: 1; transition: .25s; }
.partner-cell .box:hover img { transform: scale(1.04); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ชุดลูกค้าอ้างอิง (Site Reference) — รูปเยอะ จึงเลื่อนช้ากว่า */
.marquee--clients { --total: 98; }
.marquee--clients .marquee__track { animation-duration: 95s; }

/* ---------- Testimonials ---------- */
.quote-card { background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;box-shadow:var(--shadow-sm);}
.quote-card .stars { color:#f5a623; margin-bottom:14px; letter-spacing:2px;}
.quote-card p { font-size:1.02rem; color:var(--ink); margin-bottom:18px;}
.quote-card .who { display:flex;align-items:center;gap:12px;}
.quote-card .who .av { width:46px;height:46px;border-radius:50%;background:var(--blue-50);color:var(--blue-500);display:grid;place-items:center;font-family:var(--ff-head);font-weight:700;}
.quote-card .who b { font-family:var(--ff-head); font-size:.98rem;}
.quote-card .who span { display:block;color:var(--muted);font-size:.85rem;}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem,3.8vw,2.6rem); margin-bottom: 14px; }
.cta-band p { color: #b9c8e6; max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-card { background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-sm);}
.info-list { display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; }
.info-list b { font-family: var(--ff-head); display: block; margin-bottom: 2px; }
.info-list span, .info-list a { color: var(--muted); font-size: .96rem; }
.info-list a:hover { color: var(--blue-500); }

.form { display: grid; gap: 16px; background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;box-shadow:var(--shadow-sm);}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--ff-head); font-weight: 500; font-size: .9rem; color: var(--navy-800); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-soft); color: var(--ink); transition: .18s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(30,99,208,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--blue-500); cursor: pointer; }
.consent a { color: var(--blue-500); text-decoration: underline; }
.form__ok { display:none; background:#e7f8ee;border:1px solid #b5e7c9;color:#1c7a45;padding:14px 16px;border-radius:10px;font-size:.95rem;}
.form__ok.show { display:block; }
.form__ok.form__err { background:#fdecec; border-color:#f3b5b5; color:#b42318; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative; color: #fff; text-align: center; padding: 70px 0 64px;
  background: radial-gradient(120% 160% at 75% -20%, var(--navy-600), var(--navy-800) 50%, var(--navy-900));
  overflow: hidden;
}
.page-banner::after { content:""; position:absolute; right:-8%; top:-40%; width:50%; height:180%; background: radial-gradient(circle, rgba(47,123,234,.3), transparent 60%);}
.page-banner__inner { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2rem,4.5vw,3rem); margin-bottom: 12px; }
.page-banner p { color: #bcccea; max-width: 600px; margin: 0 auto; }
.crumbs { font-family: var(--ff-head); font-size: .9rem; color: #9fb2d6; margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: .6; }

/* ---------- Legal / Privacy ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.legal h2 { font-size: 1.32rem; margin: 34px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; margin-bottom: 12px; }
.legal li { color: var(--muted); margin-bottom: 7px; }
.legal a { color: var(--blue-500); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b7c5e0; padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: .95rem; color: #94a6c8; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a, .footer ul li { font-size: .95rem; color: #94a6c8; transition: .18s; }
.footer ul a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; }
.footer__contact svg { color: var(--blue-400); flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: #7e91b5; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-md); transition: .2s;
}
.fab a:hover { transform: translateY(-3px) scale(1.05); }
.fab .call { background: var(--blue-500); }
.fab .map { background: var(--navy-800); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- Mobile nav backdrop ---------- */
.nav-backdrop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pf-grid { grid-template-columns: repeat(2,1fr); }
  .client-grid { grid-template-columns: repeat(3,1fr); }
  .about-split, .contact-grid, .svc-row, .svc-row:nth-child(even) .svc-row__media { grid-template-columns: 1fr; }
  .svc-row__media { order: 0 !important; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step:not(:last-child)::after { display: none; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .marquee { --visible: 3; }
}
@media (max-width: 760px) {
  .header__phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 18px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .3s ease; gap: 2px;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 1.02rem; border-radius: 10px; }
  .nav a.active::after { display: none; }
  .nav .btn { margin-top: 8px; }
  .header__cta .btn:not(.nav-toggle) { display: none; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 64px 0 72px; }
  .hero__stats { gap: 26px; }
}
@media (max-width: 540px) {
  .grid--3, .grid--4, .grid--2, .pf-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2,1fr); }
  .check-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .marquee { --visible: 2; }
}
