/* ==========================================================
   BlueCorex — Estimating / CAD / Preconstruction
   ========================================================== */
:root {
  --navy-950: #040b1a;
  --navy-900: #071226;
  --navy-800: #0b1b38;
  --navy-700: #12274d;
  --blue-600: #0b5cff;
  --blue-500: #1a6bff;
  --blue-400: #3d8bff;
  --cyan-400: #38bdf8;
  --ink: #0b1b38;
  --text: #4a5873;
  --muted: #7a879e;
  --line: #e3e9f3;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #0b5cff 0%, #3d8bff 55%, #38bdf8 100%);
  --grad-dark: linear-gradient(160deg, #071226 0%, #0b1b38 60%, #0d2a63 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(7, 18, 38, .06);
  --shadow: 0 18px 50px -18px rgba(7, 18, 38, .25);
  --shadow-blue: 0 18px 40px -14px rgba(11, 92, 255, .55);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -12px rgba(11, 92, 255, .7); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--navy-900); transform: translateY(-2px); }
.btn-outline { color: var(--blue-600); border-color: rgba(11, 92, 255, .3); background: #fff; }
.btn-outline:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow.light { color: var(--cyan-400); }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); }
.section-head p { font-size: 17px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #b9c4d8; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 44px; gap: 20px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--cyan-400); }
.topbar-left { display: flex; gap: 28px; }
.topbar-right { color: #7f8ba3; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(7, 18, 38, .25); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: var(--bg-soft); color: var(--blue-600); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 15px; }
.header-phone .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--blue-600); transition: background .3s, color .3s; }
.header-phone:hover .ic { background: var(--blue-600); color: #fff; }
.header-phone .ic svg { width: 18px; height: 18px; }
.header-phone small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.2; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url("../img/hero.jpg") center/cover no-repeat; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4, 11, 26, .96) 0%, rgba(7, 18, 38, .88) 42%, rgba(11, 60, 160, .55) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000 0%, transparent 75%); }
.hero .container { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: center; padding-top: 90px; padding-bottom: 180px; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; margin-bottom: 26px; backdrop-filter: blur(6px); }
.hero-tag b { background: var(--grad); padding: 4px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 26px; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .arrow { color: var(--cyan-400); font-weight: 400; margin-right: 10px; }
.hero p.lead { font-size: 18px; color: #c4cee0; max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(18px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero-card h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.hero-card > p { color: #aab6cc; font-size: 14px; margin-bottom: 22px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.hero-stat { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 18px; border: 1px solid rgba(255, 255, 255, .08); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 34px; color: #fff; line-height: 1; margin-bottom: 6px; }
.hero-stat > span { font-size: 13px; color: #9fb0cc; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); margin-top: 10px; transition: background .3s, border-color .3s; }
.contact-line:hover { background: rgba(26, 107, 255, .25); border-color: rgba(56, 189, 248, .5); }
.contact-line .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.contact-line .ic svg { width: 18px; height: 18px; }
.contact-line small { display: block; color: #8fa0bd; font-size: 12px; line-height: 1.2; }
.contact-line b { color: #fff; font-size: 15px; word-break: break-all; }

/* Service strip overlapping the hero */
.service-strip { position: relative; z-index: 5; margin-top: -120px; }
.service-strip .grid { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.strip-item { padding: 34px 26px; border-right: 1px solid var(--line); position: relative; transition: background .35s var(--ease); }
.strip-item:last-child { border-right: 0; }
.strip-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.strip-item:hover { background: var(--bg-soft); }
.strip-item:hover::after { transform: scaleX(1); }
.strip-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(11, 92, 255, .08); color: var(--blue-600); margin-bottom: 18px; transition: background .35s, color .35s, transform .35s var(--ease); }
.strip-icon svg { width: 28px; height: 28px; }
.strip-item:hover .strip-icon { background: var(--grad); color: #fff; transform: rotate(-6deg); }
.strip-item h3 { font-size: 17px; margin-bottom: 8px; }
.strip-item p { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--blue-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- About ---------- */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 2; aspect-ratio: 470/531; }
.about-media .main img { width: 100%; height: 100%; object-fit: cover; }
.about-media::before { content: ""; position: absolute; inset: -22px auto auto -22px; width: 60%; height: 60%; border-radius: var(--radius-lg); background: var(--grad); opacity: .9; z-index: 1; }
.about-media::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px; z-index: 0; background-image: radial-gradient(var(--blue-400) 2px, transparent 2px); background-size: 18px 18px; opacity: .45; }
.about-badge { position: absolute; z-index: 3; right: -28px; bottom: 48px; background: #fff; border-radius: 20px; padding: 20px 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.about-badge strong { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.about-badge > span { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.about h2 { font-size: clamp(32px, 4vw, 46px); }
.about .lead { font-size: 18px; color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 15px; }
.check-list li svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; margin-top: 1px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); overflow: hidden; }
.services::before { content: ""; position: absolute; top: -200px; right: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .18), transparent 70%); }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; }
.svc-card { grid-column: span 2; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 3; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-thumb img { transform: scale(1.07); }
.svc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 18, 38, .55)); }
.svc-num { position: absolute; left: 20px; bottom: 16px; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.svc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 22px; }
.svc-body p { font-size: 15px; flex: 1; }
.center { text-align: center; }
.mt-50 { margin-top: 50px; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; transition: all .25s; }
.filter:hover { border-color: var(--blue-400); color: var(--blue-600); }
.filter.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.project { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 420/507; box-shadow: var(--shadow-sm); transition: opacity .35s, transform .35s; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 18, 38, 0) 35%, rgba(7, 18, 38, .92) 100%); transition: background .4s; }
.project:hover img { transform: scale(1.08); }
.project:hover::after { background: linear-gradient(180deg, rgba(11, 92, 255, .15) 0%, rgba(7, 18, 38, .95) 100%); }
.project-info { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #fff; }
.project-info span { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); margin-bottom: 10px; }
.project-info h3 { color: #fff; font-size: 19px; margin: 0; }
.project.hide { display: none; }
.projects-empty { display: none; grid-column: 1 / -1; text-align: center; padding: 60px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.projects-empty.show { display: block; }
.projects-empty h3 { font-size: 20px; }

/* ---------- Find out more (tabs) ---------- */
.story { background: var(--grad-dark); color: #c4cee0; overflow: hidden; }
.story::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 20% 30%, #000, transparent 70%); }
.story .container { position: relative; }
.story h2 { color: #fff; }
.story .section-head p { color: #a9b6cd; }
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: stretch; }
.tab-list { display: flex; flex-direction: column; gap: 12px; }
.tab-btn { text-align: left; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #d6deec; font-family: var(--font-display); font-weight: 600; font-size: 18px; transition: all .3s var(--ease); }
.tab-btn .n { font-size: 13px; color: var(--cyan-400); font-weight: 700; }
.tab-btn:hover { background: rgba(255, 255, 255, .08); }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); transform: translateX(6px); }
.tab-btn.active .n { color: #fff; }
.tab-panel { display: none; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 22px; animation: fadeUp .5s var(--ease); }
.tab-panel.active { display: grid; }
.tab-panel img { border-radius: 20px; width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.tab-panel h3 { color: #fff; font-size: 28px; }
.tab-panel p { font-size: 16.5px; color: #c4cee0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.counter { padding: 28px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.counter strong { display: block; font-family: var(--font-display); font-size: 48px; line-height: 1; color: #fff; margin-bottom: 8px; }
.counter strong em { font-style: normal; color: var(--cyan-400); }
.counter > span { font-size: 15px; color: #a9b6cd; }

/* ---------- Clients marquee ---------- */
.clients { padding: 70px 0; border-bottom: 1px solid var(--line); }
.clients p.label { text-align: center; font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 34px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { display: flex; align-items: center; height: 70px; }
.marquee-track img { max-height: 62px; max-width: 160px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.marquee-track a:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band { padding: 90px 0 0; }
.cta-box { position: relative; overflow: hidden; border-radius: 32px; padding: 64px; background: var(--grad); color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-blue); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: url("../img/ctac_bg.jpg") center/cover; opacity: .14; mix-blend-mode: overlay; }
.cta-box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box .eyebrow { color: #e0ecff; }
.cta-box .eyebrow::before { background: #fff; }
.cta-box h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.cta-box p { color: #e6efff; font-size: 17px; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-pill { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 20px; padding: 18px 22px; transition: background .3s, transform .3s var(--ease); backdrop-filter: blur(6px); }
.cta-pill:hover { background: #fff; color: var(--navy-900); transform: translateY(-3px); }
.cta-pill:hover small { color: var(--muted); }
.cta-pill .ic { width: 50px; height: 50px; border-radius: 14px; background: #fff; color: var(--blue-600); display: grid; place-items: center; flex: none; }
.cta-pill .ic svg { width: 22px; height: 22px; }
.cta-pill small { display: block; font-size: 13px; color: #dce8ff; line-height: 1.2; }
.cta-pill b { font-family: var(--font-display); font-size: 20px; word-break: break-all; }

/* ---------- FAQ ---------- */
.faq .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro h2 { font-size: clamp(32px, 4vw, 46px); }
.faq-help { margin-top: 30px; padding: 26px; border-radius: 22px; background: var(--bg-soft); border: 1px solid var(--line); }
.faq-help h4 { font-size: 18px; margin-bottom: 6px; }
.faq-help p { font-size: 15px; }
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-item { border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: box-shadow .3s, border-color .3s; }
.acc-item.open { border-color: rgba(11, 92, 255, .35); box-shadow: var(--shadow); }
.acc-btn { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.acc-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background .3s, color .3s; color: var(--blue-600); }
.acc-icon svg { width: 16px; height: 16px; }
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 26px 24px; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; border-radius: 32px; overflow: hidden; background: var(--grad-dark); color: #c4cee0; padding: 64px 56px; box-shadow: var(--shadow); position: relative; }
.contact-wrap::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 70%); pointer-events: none; }
.contact-info { position: relative; z-index: 1; }
.contact-info h2 { color: #fff; font-size: clamp(30px, 3.4vw, 40px); }
.contact-info > p { margin-bottom: 0; }
.cta-stack { position: relative; z-index: 1; display: grid; gap: 16px; }
.cta-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; backdrop-filter: blur(6px); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.cta-card:hover { background: rgba(26, 107, 255, .28); border-color: rgba(56, 189, 248, .6); transform: translateY(-3px); }
.cta-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px rgba(11, 92, 255, .35); }
.cta-ic svg { width: 24px; height: 24px; }
.cta-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.cta-txt small { color: var(--cyan-400); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cta-txt strong { color: #fff; font-size: clamp(17px, 1.7vw, 21px); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.cta-txt em { color: #8fa0bd; font-size: 13px; font-style: normal; }
.cta-arrow { width: 22px; height: 22px; flex: none; color: #8fa0bd; transition: transform .3s var(--ease), color .3s; }
.cta-card:hover .cta-arrow { transform: translateX(4px); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #95a3bd; padding-top: 90px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer .logo img { height: 56px; margin-bottom: 22px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 22px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { transition: color .2s, padding .2s; }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer .contact-line { background: rgba(255, 255, 255, .03); }
.footer .contact-line b { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 26px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom .powered a { color: var(--cyan-400); font-weight: 700; transition: color .2s; }
.footer-bottom .powered a:hover { color: #fff; }

.to-top { position: fixed; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-blue); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .35s var(--ease); z-index: 90; border: 0; cursor: pointer; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Legal pages ---------- */
.page-hero { position: relative; color: #fff; padding: 110px 0 120px; overflow: hidden; isolation: isolate; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero.jpg") center/cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(4, 11, 26, .95), rgba(11, 40, 110, .82)); }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: #c4cee0; max-width: 640px; margin: 0 auto 22px; font-size: 17px; }
.crumbs { display: inline-flex; gap: 10px; align-items: center; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--cyan-400); }
.legal { padding: 90px 0 110px; background: var(--bg-soft); }
.legal .container { display: grid; grid-template-columns: 290px 1fr; gap: 50px; align-items: start; }
.toc { position: sticky; top: 110px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; max-height: calc(100vh - 140px); overflow: auto; }
.toc h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; transition: background .2s, color .2s; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--blue-400); font-size: 12px; padding-top: 1px; }
.toc a:hover, .toc a.active { background: var(--bg-soft); color: var(--blue-600); }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 56px 60px; box-shadow: var(--shadow-sm); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.legal-meta span { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); }
.legal-intro { font-size: 18px; color: var(--ink); padding-bottom: 30px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal-body section { padding: 30px 0 8px; border-bottom: 1px solid var(--line); }
.legal-body section:last-of-type { border-bottom: 0; }
.legal-body h2 { font-size: 24px; display: flex; gap: 14px; align-items: baseline; }
.legal-body h2 .num { font-size: 14px; color: #fff; background: var(--grad); border-radius: 10px; padding: 4px 10px; flex: none; }
.legal-body h3 { font-size: 18px; margin-top: 22px; }
.legal-body ul { padding: 0; margin: 0 0 1.2em; list-style: none; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 28px; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.legal-body ul.cols { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.legal-body a { color: var(--blue-600); font-weight: 600; }
.legal-body dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; margin: 0 0 1em; }
.legal-body dt { font-weight: 700; color: var(--ink); }
.legal-body dd { margin: 0; }
.callout { background: linear-gradient(135deg, rgba(11, 92, 255, .07), rgba(56, 189, 248, .07)); border: 1px solid rgba(11, 92, 255, .18); border-left: 4px solid var(--blue-600); border-radius: 16px; padding: 18px 22px; margin: 0 0 1.2em; color: var(--ink); }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.contact-card a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 700; transition: all .3s var(--ease); word-break: break-all; }
.contact-card a:hover { background: var(--blue-600); color: #fff; transform: translateY(-3px); border-color: var(--blue-600); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card small { display: block; font-size: 12px; font-weight: 600; opacity: .7; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone div { display: none; }
  .service-strip .grid { grid-template-columns: repeat(3, 1fr); }
  .strip-item:nth-child(3) { border-right: 0; }
  .strip-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .header .container { position: relative; }
  .nav { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .3s var(--ease); }
  .nav a { padding: 14px 18px; }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .burger { display: grid; }
  .header-cta .btn { display: none; }
  .hero .container, .about .container, .faq .container, .contact-wrap, .cta-box, .tabs, .legal .container { grid-template-columns: 1fr; }
  .hero .container { padding-top: 70px; gap: 40px; }
  .about .container { gap: 60px; }
  .about-media { max-width: 520px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 1; }
  .svc-card:nth-child(5) { grid-column: 1 / -1; }
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tab-btn { flex: none; }
  .tab-btn.active { transform: none; }
  .counters { grid-template-columns: 1fr 1fr; }
  .faq-intro { position: static; }
  .toc { position: static; max-height: none; }
  .cta-box { padding: 44px 32px; }
}
@media (max-width: 680px) {
  .hero h1 .line { white-space: normal; }
  .cta-pill { padding: 14px 16px; }
  .cta-pill b { font-size: 15px; }
  .cta-pill .ic { width: 42px; height: 42px; }
  .hero .container > *, .about .container > *, .faq .container > *, .contact-wrap > *, .legal .container > * { min-width: 0; }
  .topbar-right, .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-left { gap: 18px; font-size: 13px; }
  .header .container { height: 72px; }
  .logo img { height: 42px; }
  .section { padding: 80px 0; }
  .hero { min-height: 0; }
  .hero .container { padding-bottom: 150px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-card { padding: 22px; }
  .service-strip .grid { grid-template-columns: 1fr; }
  .strip-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
  .check-list { grid-template-columns: 1fr; }
  .about-badge { right: 10px; bottom: 20px; }
  .about-media::before { inset: -14px auto auto -14px; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .svc-card:nth-child(5) { grid-column: auto; }
  .tab-panel { grid-template-columns: 1fr; padding: 16px; }
  .counter strong { font-size: 38px; }
  .counter { padding: 20px; }
  .contact-wrap { padding: 40px 22px; gap: 28px; }
  .cta-card { padding: 18px; gap: 14px; }
  .cta-ic { width: 46px; height: 46px; }
  .cta-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-body { padding: 34px 22px; border-radius: 22px; }
  .legal-body ul.cols, .contact-card { grid-template-columns: 1fr; }
  .legal-body dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-body dd { margin-bottom: 10px; }
  .page-hero { padding: 80px 0 90px; }
  .container { padding: 0 16px; }
}
