/* ==========================================================================
   TechLink — main stylesheet
   1. Tokens        5. Hero
   2. Base          6. Sections & components
   3. Layout        7. Footer
   4. Header        8. Responsive
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------ */
:root {
  --ink:        #0B1220;
  --navy:       #0F172A;
  --navy-2:     #16233D;
  --slate-900:  #1E293B;
  --slate-700:  #334155;
  --slate-500:  #64748B;
  --slate-400:  #94A3B8;
  --slate-300:  #CBD5E1;
  --slate-200:  #E2E8F0;
  --slate-100:  #F1F5F9;
  --slate-50:   #F8FAFC;
  --white:      #FFFFFF;

  --blue:       #2563EB;
  --blue-dark:  #1D4ED8;
  --blue-light: #3B82F6;
  --cyan:       #06B6D4;
  --cyan-light: #22D3EE;

  --grad:       linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --grad-deep:  linear-gradient(135deg, #0B1220 0%, #142244 55%, #0E3A5A 100%);

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow:     0 4px 16px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  --shadow-lg:  0 18px 50px -12px rgba(15,23,42,.18), 0 4px 12px rgba(15,23,42,.06);
  --shadow-blue:0 16px 40px -12px rgba(37,99,235,.45);

  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head:  'Sora', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;

  --wrap:       1180px;
  --gutter:     24px;
  --header-h:   78px;
}

/* 2. BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-dark); }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong { color: var(--navy); font-weight: 650; }

blockquote {
  margin: 1.6em 0; padding: 1.2em 1.6em;
  border-left: 4px solid var(--blue);
  background: var(--slate-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem; color: var(--slate-700);
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.tl-hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* 3. LAYOUT ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.section { padding: clamp(64px, 8vw, 108px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--alt  { background: var(--slate-50); }
.section--dark { background: var(--navy); color: var(--slate-300); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.sec-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.sec-head--left { margin-left: 0; text-align: left; }
.sec-head p { font-size: 1.08rem; color: var(--slate-500); margin: 0; }
.section--dark .sec-head p { color: var(--slate-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section--dark .eyebrow { color: var(--cyan-light); }
.eyebrow--center { justify-content: center; }

.grid { display: grid; gap: 24px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 650; font-size: .97rem; line-height: 1;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center; white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 46px -12px rgba(37,99,235,.55); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--slate-300); }
.btn--ghost:hover { color: var(--navy); border-color: var(--navy); background: var(--slate-50); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--slate-300); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--slate-500); font-size: .97rem; margin: 0; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.14));
  color: var(--blue);
}
.icon-tile .icon { width: 25px; height: 25px; }

/* 4. HEADER ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px -12px rgba(15,23,42,.22); }
.header-inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img, .custom-logo { height: 42px; width: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-head); line-height: 1; white-space: nowrap;
}
.brand-word-main { font-weight: 800; font-size: 1.34rem; letter-spacing: -.035em; color: var(--navy); }
.brand-word-sub {
  font-family: var(--font-body); font-weight: 600; font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--slate-500);
}
.brand-word-alt { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand--light .brand-word-main { color: #fff; }
.brand--light .brand-word-sub { color: #8FA3BE; }
.brand--light .brand-word-alt { background: linear-gradient(100deg, #60A5FA, #22D3EE); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-main { display: flex; align-items: center; gap: 6px; }
.nav-main ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-main li { margin: 0; position: relative; }
.nav-main a {
  display: block; padding: 9px 15px; border-radius: 999px;
  color: var(--slate-700); font-weight: 550; font-size: .95rem;
  transition: background .18s ease, color .18s ease;
}
.nav-main a:hover { background: var(--slate-100); color: var(--navy); }
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a,
.nav-main .current-menu-ancestor > a { color: var(--blue); background: rgba(37,99,235,.09); }

/* Dropdown */
.nav-main .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; flex-direction: column; align-items: stretch; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-main li:hover > .sub-menu,
.nav-main li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-main .sub-menu a { border-radius: 10px; padding: 10px 14px; font-size: .93rem; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--slate-700); font-weight: 600; font-size: .92rem; }
.header-phone .icon { width: 17px; height: 17px; color: var(--blue); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--slate-200);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Top bar */
.topbar { background: var(--navy); color: var(--slate-300); font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: var(--slate-300); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--cyan-light); }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; }
/* The hours block is a plain span, so it needs the same inline-flex
   treatment as the links — otherwise the icon wraps onto its own line. */
.topbar-right span,
.topbar-left span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .icon { flex: none; }

/* 5. HERO -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-deep); color: var(--slate-300);
  padding: clamp(70px, 9vw, 118px) 0 clamp(78px, 9vw, 120px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.hero::after {
  content: ''; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(6,182,212,.30), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .grad {
  background: linear-gradient(100deg, #60A5FA 10%, #22D3EE 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lede { font-size: 1.14rem; color: #C7D3E6; max-width: 560px; margin-bottom: 32px; }
.hero .eyebrow { color: var(--cyan-light); }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  font-size: .84rem; color: #DBE6F5; backdrop-filter: blur(8px);
}
.hero-pill b { color: #fff; font-weight: 650; }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.22); }

.hero-trust { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust span { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #8FA3BE; margin-bottom: 14px; font-weight: 600; }
.hero-trust ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hero-trust li { margin: 0; }
.hero-trust li a, .hero-trust li span.t {
  display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #E2E8F0;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.hero-trust li a:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); transform: translateY(-2px); color: #fff; }

/* Hero panel (right) */
.hero-panel {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl); padding: 28px; backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.hero-panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.hero-panel > p { color: #9FB3CE; font-size: .88rem; margin-bottom: 22px; }
.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 18px;
}
.metric b { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.metric span { font-size: .8rem; color: #9FB3CE; }
.metric--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.metric--wide .icon { width: 22px; height: 22px; color: var(--cyan-light); flex: none; }
.metric--wide p { margin: 0; font-size: .88rem; color: #C7D3E6; }

/* 6. SECTIONS & COMPONENTS -------------------------------------------- */

/* Logo strip */
.strip { background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 26px 0; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.strip-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); }
.strip-items { display: flex; gap: 12px 30px; flex-wrap: wrap; justify-content: center; }
.strip-items span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--slate-400);
  transition: color .2s ease;
}
.strip-items span:hover { color: var(--slate-700); }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 30px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc-card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--brand, var(--blue)); opacity: .9;
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--slate-300); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-badge {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, #fff);
  margin-bottom: 20px; flex: none;
}
.svc-badge span { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--brand); letter-spacing: -.02em; }
.svc-card h3 { margin-bottom: .4em; }
.svc-card p { color: var(--slate-500); font-size: .96rem; margin-bottom: 18px; }
.svc-list { list-style: none; margin: 0 0 22px; padding: 0; }
.svc-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--slate-700); margin-bottom: 9px; }
.svc-list .icon { width: 17px; height: 17px; color: var(--brand, var(--blue)); flex: none; margin-top: 4px; }
.svc-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: .93rem; color: var(--navy);
}
.svc-more .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.svc-card:hover .svc-more { color: var(--brand, var(--blue)); }
.svc-card:hover .svc-more .icon { transform: translateX(4px); }

/* Feature / value grid */
/* Feature tile — the quieter card used inside split layouts.
   Declared after .card:hover so it also governs its own hover state; without
   that, .card:hover (higher specificity) drew a large shadow around a box
   that had no background, border or padding. */
.feature {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
  height: 100%;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--slate-300);
}
.feature .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.feature .icon-tile .icon { width: 21px; height: 21px; }
.feature h3 { font-size: 1.06rem; margin-bottom: .4em; }
.feature p { color: var(--slate-500); font-size: .94rem; }

/* Split (image/content) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 68px); align-items: center; }
.split--reverse .split-media { order: 2; }

.stack-list { list-style: none; margin: 26px 0 0; padding: 0; }
.stack-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.stack-list .icon-tile { width: 42px; height: 42px; border-radius: 12px; margin: 0; flex: none; }
.stack-list .icon-tile .icon { width: 20px; height: 20px; }
.stack-list h4 { margin: 0 0 3px; }
.stack-list p { margin: 0; font-size: .95rem; color: var(--slate-500); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step {
  position: relative; background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 28px 26px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  margin-bottom: 18px; box-shadow: var(--shadow-blue);
}
.step h3 { font-size: 1.08rem; margin-bottom: .4em; }
.step p { font-size: .94rem; color: var(--slate-500); margin: 0; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1;
  background: linear-gradient(100deg, #60A5FA, #22D3EE);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat span { font-size: .92rem; color: var(--slate-400); }

/* Testimonials */
.quote {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.quote-stars { color: #F59E0B; letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.quote p { font-size: 1rem; color: var(--slate-700); margin-bottom: 18px; }
.quote-by { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--slate-100); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--accent, var(--blue)), color-mix(in srgb, var(--accent, var(--blue)) 55%, var(--cyan)));
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  flex: none; letter-spacing: .01em;
}
.quote-by b { display: block; color: var(--navy); font-size: .95rem; font-weight: 650; }
.quote-meta { min-width: 0; }
.quote-role { display: block; font-size: .83rem; color: var(--slate-500); line-height: 1.45; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--slate-300); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-head); font-weight: 650; font-size: 1.02rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--slate-400); border-bottom: 2px solid var(--slate-400);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--slate-500); font-size: .98rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--grad-deep); color: var(--slate-300); }
.cta-band::after {
  content: ''; position: absolute; width: 560px; height: 560px; left: -160px; bottom: -280px;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 65%); filter: blur(10px);
}
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #C7D3E6; font-size: 1.08rem; margin-bottom: 30px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.contact-item .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.contact-item .icon-tile .icon { width: 21px; height: 21px; }
.contact-item h4 { margin: 0 0 3px; font-size: .98rem; }
.contact-item p, .contact-item a { margin: 0; font-size: .96rem; color: var(--slate-500); }
.contact-item a:hover { color: var(--blue); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: var(--font-body); font-size: .96rem; color: var(--navy);
  background: var(--slate-50); border: 1.5px solid var(--slate-200); border-radius: 12px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--slate-400); margin-top: 12px; text-align: center; }
.form-status { padding: 14px 18px; border-radius: 12px; font-size: .93rem; margin-bottom: 18px; }
.form-status--ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.form-status--err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--grad-deep); color: var(--slate-300);
  padding: clamp(56px, 7vw, 84px) 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #C7D3E6; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .85rem; color: #8FA3BE; margin-bottom: 16px; }
.crumbs a { color: #B7C6DC; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* Service detail page */
.svc-hero-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.svc-hero-badge .svc-badge { width: 38px; height: 38px; border-radius: 11px; margin: 0; background: color-mix(in srgb, var(--brand) 88%, #000); border: 0; }
.svc-hero-badge .svc-badge span { color: #fff; font-size: .85rem; }
.svc-hero-badge b { color: #fff; font-weight: 650; font-size: .95rem; }

.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; list-style: none; margin: 0; padding: 0; }
.deliverables li { display: flex; gap: 12px; font-size: .98rem; color: var(--slate-700); margin: 0; }
.deliverables .icon { width: 20px; height: 20px; color: var(--brand, var(--blue)); flex: none; margin-top: 4px; }

.sidebar-card {
  background: var(--navy); color: var(--slate-300); border-radius: var(--radius-lg); padding: 30px;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.sidebar-card h3 { color: #fff; font-size: 1.15rem; }
.sidebar-card p { font-size: .94rem; color: var(--slate-400); margin-bottom: 22px; }
.sidebar-list { list-style: none; margin: 0 0 24px; padding: 0; }
.sidebar-list li { margin-bottom: 8px; }
.sidebar-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); color: var(--slate-300); font-size: .93rem; font-weight: 550;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar-list a:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateX(3px); }
.sidebar-list a.is-current { background: var(--grad); color: #fff; }
.dot-brand { width: 9px; height: 9px; border-radius: 3px; background: var(--brand); flex: none; }

.svc-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 48px; align-items: start; }

/* Page content (generic) */
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul li { margin-bottom: .55em; }

/* Two-column step grid used on marketplace pages */
.steps--2 { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.steps--2 h3 { font-size: 1.02rem; }

/* Stat callout on marketplace pages */
.stat-callout { margin-top: 44px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.stat-callout-value { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--brand, var(--blue)); line-height: 1; }
.stat-callout-body { flex: 1 1 220px; min-width: 0; }
.stat-callout-body p { margin: 0; color: var(--slate-700); }

/* Emphasised lede paragraph */
.lede-strong { font-size: 1.06rem; color: var(--slate-700); }

/* Long unbroken strings (emails, URLs, addresses) must never push the layout */
.contact-item a, .contact-item p,
.footer-contact a, .footer-contact span,
.topbar a, .entry-content a { overflow-wrap: anywhere; word-break: break-word; }
.svc-list span, .deliverables span, .sidebar-list a { min-width: 0; overflow-wrap: anywhere; }

/* 7. FOOTER ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--slate-400); padding: clamp(52px, 6vw, 76px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
.footer-brand .brand-word-main { font-size: 1.44rem; }
.footer-brand .brand-word-sub { font-size: .63rem; }
.footer-brand p { font-size: .94rem; color: var(--slate-400); max-width: 320px; }
.footer h4 { color: #fff; font-size: .93rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--slate-400); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 14px; font-size: .94rem; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--cyan-light); flex: none; margin-top: 4px; }
.footer-contact a { color: var(--slate-400); }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: var(--slate-300);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.footer-social a:hover { background: var(--grad); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .87rem; color: var(--slate-500);
}
.footer-bottom ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--slate-500); }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { font-size: .8rem; color: #5A6B85; padding-bottom: 26px; line-height: 1.65; max-width: 900px; }

/* Reveal on scroll.
   The hidden state only applies when JavaScript is running (html.js), so the
   page is never left blank if scripts fail to load or the observer misses. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 8. RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { max-width: 560px; }
  .svc-layout { grid-template-columns: 1fr; gap: 36px; }
  .sidebar-card { position: static; }
}

@media (max-width: 900px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-main {
    position: fixed; inset: var(--header-h) 0 auto 0; display: none;
    background: #fff; border-bottom: 1px solid var(--slate-200);
    padding: 16px var(--gutter) 26px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-main.is-open { display: block; }
  .nav-main ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-main a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav-main .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--slate-200); border-radius: 0; padding: 0 0 0 12px; margin: 4px 0 6px 14px;
  }
  .header-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .split, .contact-grid, .stats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .svc-grid, .steps, .steps--2, .grid-2, .grid-3, .grid-4, .stats, .form-row, .deliverables, .hero-metrics, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics .metric--wide { grid-column: auto; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .topbar-inner { justify-content: center; }
  .topbar-right { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom ul { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .card, .svc-card, .step, .form-card, .sidebar-card { padding: 24px; }
}

/* Small-screen polish -------------------------------------------------- */
@media (max-width: 900px) {
  /* Tap targets: every interactive element stays comfortably thumb-sized
     (WCAG 2.5.5 aims for 44x44 CSS px on touch screens). */
  .nav-main a, .btn, .sidebar-list a, .faq summary { min-height: 44px; }
  .faq summary { display: flex; align-items: center; }

  .footer-col a,
  .footer-contact a,
  .footer-bottom a,
  .contact-item a {
    display: inline-block; padding: 10px 0; line-height: 1.35;
  }
  /* Keep the top-bar links on one line — icon beside the text, never above it. */
  .topbar a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 0; white-space: nowrap; }
  .footer-col li, .footer-contact li, .footer-bottom li { margin-bottom: 0; }
  .footer-contact li { align-items: flex-start; margin-bottom: 4px; }
  .footer-contact .icon { margin-top: 12px; }
  .footer-bottom ul { gap: 8px 20px; }
  .topbar-inner { min-height: 46px; }
  .topbar .icon { flex: none; }
  .contact-item a { padding: 6px 0; }
  .strip-items a, .strip-items span { display: inline-block; padding: 8px 0; }
  .hero-trust li a { padding-top: 10px; padding-bottom: 10px; }
  .crumbs a, .crumbs span { display: inline-block; padding: 7px 0; }
  .svc-more { padding: 9px 0; }
  .sidebar-card a[href^="tel:"] { display: inline-block; padding: 10px 0; }
}

@media (max-width: 640px) {
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .hero-lede { font-size: 1.03rem; }
  .hero-panel { padding: 22px; }
  .metric { padding: 16px; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .sec-head { margin-bottom: 32px; }
  .svc-badge { width: 48px; height: 48px; border-radius: 13px; }
  .stat-callout { gap: 14px; }
  .quote { padding: 24px; }
  .faq summary { padding: 16px 48px 16px 18px; font-size: .98rem; }
  .faq summary::after { right: 18px; }
  .faq .faq-body { padding: 0 18px 18px; }
  .form-card { padding: 22px 20px; }
  .footer-grid { gap: 30px; padding-bottom: 34px; }
  .footer-brand p { max-width: none; }
  .brand-word-main { font-size: 1.18rem; }
  .brand-word-sub { font-size: .54rem; letter-spacing: .18em; }
  .brand-mark { width: 36px; height: 36px; }
  .topbar { font-size: .8rem; }
  .topbar-left { gap: 16px; justify-content: center; width: 100%; }
}

@media (max-width: 380px) {
  :root { --gutter: 15px; }
  .hero h1 { font-size: 1.85rem; }
  .brand-word-main { font-size: 1.05rem; }
  .brand-word-sub { font-size: .5rem; letter-spacing: .16em; }
  .topbar-left { gap: 12px; }
  .topbar a { font-size: .76rem; }
  .hero-trust li a, .hero-trust li span.t { font-size: .8rem; padding: 6px 12px; }
  .btn { padding: 14px 20px; font-size: .93rem; }
}
