/* ==========================================================================
   Progressive EU — light corporate design system
   References: seoimage.com (navy + orange, numbered services, results band),
   prostarseo.com (navy hero, pill CTA with arrow, cyan highlight, Plus Jakarta Sans),
   geekytech.co.uk (photo heroes, case cards, arrow lists).
   ========================================================================== */
:root {
  --navy: #0b1f3f;
  --navy-2: #102a54;
  --navy-3: #16336a;
  --ink: #111c33;
  --text: #3d4a63;
  --muted: #6d7891;
  --bg: #ffffff;
  --bg-warm: #f7f5f1;
  --bg-cool: #f2f5fa;
  --line: #e3e8f0;
  --line-strong: #cfd7e4;
  --accent: #f0571f;
  --accent-dark: #d4470f;
  --accent-soft: #fff1ea;
  --cyan: #38b6dd;
  --cyan-soft: #e6f6fb;
  --green: #1a9c6b;
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 63, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 63, 0.14);
  --container: 1200px;
  --narrow: 860px;
  --gutter: 16px;
  --header-h: 72px;
  --topbar-h: 36px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--narrow); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- buttons (pill + arrow circle, prostar-style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(240, 87, 31, .28); padding-right: .6rem; }
.btn-primary::after { content: '→'; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 1rem; transition: transform .2s; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240, 87, 31, .35); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-cool); }
.hero .btn-ghost, .cta-section .btn-ghost, .site-footer .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover, .cta-section .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-sm.btn-primary { padding-right: .5rem; }
.btn-sm.btn-primary::after { width: 24px; height: 24px; font-size: .85rem; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy); color: #c9d4e6; font-size: .8rem; height: var(--topbar-h); display: none; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar a { color: #dbe4f3; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #fff; }
.topbar .ico { width: 14px; height: 14px; }
.topbar-left, .topbar-right { display: flex; gap: 1.4rem; }
@media (min-width: 900px) { .topbar { display: block; } }
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.25rem; position: relative; overflow: hidden; }
.logo-mark::after { content: ''; position: absolute; right: -8px; bottom: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.logo-text small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); line-height: 1; margin-top: 2px; }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.site-footer .logo-mark { background: #fff; color: var(--navy); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 31, 63, .08); }
.main-nav { display: none; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .1rem; }
.nav-item > a { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .7rem; color: var(--ink); font-weight: 600; font-size: .9rem; border-radius: var(--radius-sm); }
.nav-item > a::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-item > a:hover::after, .nav-item.active > a::after { transform: scaleX(1); }
.nav-item > a:hover, .nav-item.active > a { color: var(--ink); }
.nav-item .chev { width: 14px; height: 14px; opacity: .55; transition: transform .2s; }
.has-mega:hover .chev { transform: rotate(180deg); }
/* Panels open under their own item. Centred by default; the first item's panel is left-aligned and the
   last items' panels right-aligned so wide panels cannot leave the viewport; main.js adds --shift as a final clamp. */
.has-mega { position: relative; }
.mega {
  --shift: 0px; --tx: -50%;
  position: absolute; left: 50%; top: 100%; transform: translateX(var(--tx)) translateY(8px);
  translate: var(--shift) 0; /* viewport clamp from main.js — separate property, so it is never animated */
  width: max-content; max-width: min(1200px, calc(100vw - 24px));
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; padding-top: 12px; z-index: 50;
}
.has-mega:first-child .mega { left: 0; --tx: 0px; }
.has-mega:nth-last-child(-n+2) .mega { left: auto; right: 0; --tx: 0px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: translateX(var(--tx)) translateY(0); }
.mega-inner::before { content: ''; position: absolute; top: 5px; left: var(--caret, 50%); width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.mega-inner { position: relative; }
.mega-inner { display: flex; flex-wrap: wrap; gap: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-lg); min-width: 280px; }
.mega-col { min-width: 170px; flex: 0 0 auto; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-col li a { display: block; padding: .32rem 0; font-size: .88rem; color: var(--text); white-space: nowrap; }
.mega-col li a:hover, .mega-col li a[aria-current] { color: var(--accent); }
.mega-title { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; padding-bottom: .4rem; border-bottom: 2px solid var(--accent); }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-cta .btn { display: none; }
.burger { width: 42px; height: 42px; border: 1px solid var(--line-strong); background: #fff; border-radius: 10px; display: grid; place-items: center; gap: 4px; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0; background: #fff; z-index: 90; overflow: auto; padding: 1.5rem var(--gutter) 3rem; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.mobile-nav > ul > li > a { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; display: block; padding: .4rem 0; }
.mobile-nav ul ul { padding-left: .8rem; }
.mobile-nav ul ul > li > a { font-weight: 600; color: var(--navy-3); font-size: .95rem; display: block; padding: .3rem 0; }
.mobile-nav ul ul ul a { font-weight: 400; color: var(--text); font-size: .92rem; }
.mobile-nav li.has-sub { position: relative; }
.mobile-nav li.has-sub > a { padding-right: 44px; }
.mobile-nav li.has-sub > ul { display: none; }
.mobile-nav li.has-sub.open > ul { display: block; }
.sub-toggle { position: absolute; right: 0; top: .35rem; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px; display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: transform .2s; }
.mobile-nav li.has-sub.open > .sub-toggle { transform: rotate(180deg); }
.mobile-nav > ul > li > .sub-toggle { top: .9rem; }
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; }
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .burger { display: none; }
  .header-cta .btn { display: inline-flex; }
}
@media (min-width: 1200px) and (max-width: 1360px) {
  .nav-item > a { padding: .6rem .5rem; font-size: .84rem; }
  .logo { font-size: 1.05rem; }
}

/* ---------- hero (navy, photo/abstract background, animated entrance) ---------- */
.hero { --py: 0px; position: relative; padding: 4.5rem 0 3.8rem; overflow: hidden; background: var(--navy); color: #d7e0ef; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: -10% 0; background: url('../img/hero-page.jpg') center/cover no-repeat; transform: translateY(var(--py)) scale(1.04); z-index: -2; animation: hero-zoom 18s ease-out both; }
.hero-home::after { background-image: url('../img/hero-home.jpg'); }
.hero-home { padding: 6rem 0 4.5rem; min-height: 560px; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 24, 54, .96) 0%, rgba(8, 24, 54, .82) 45%, rgba(8, 24, 54, .45) 100%); }
.hero-glow { position: absolute; right: -8%; top: -30%; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(56,182,221,.35), rgba(240,87,31,.12) 45%, transparent 70%); filter: blur(30px); animation: blob 14s ease-in-out infinite alternate; }
.hero .container { position: relative; }
.hero .eyebrow, .hero h1, .hero .lead, .hero .article-meta, .hero .hero-actions, .hero .hero-trust, .hero .breadcrumbs { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .breadcrumbs { animation-delay: 0s; }
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .lead { animation-delay: .28s; }
.hero .article-meta { animation-delay: .34s; }
.hero .hero-actions { animation-delay: .4s; }
.hero .hero-trust { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: translateY(var(--py)) scale(1.12); } to { transform: translateY(var(--py)) scale(1.04); } }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.15); } }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em, .grad-text { font-style: normal; color: var(--cyan); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.1rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.content-section .eyebrow { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #e6ecf6; max-width: 680px; margin-bottom: 1.7rem; }
.content-section .lead { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.hero-trust { list-style: none; padding: 1.2rem 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; font-size: .88rem; color: #c9d4e6; border-top: 1px solid rgba(255,255,255,.14); max-width: 720px; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .ico { width: 18px; height: 18px; color: var(--cyan); }
.breadcrumbs { font-size: .8rem; margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumbs li { margin: 0; color: #9fb0cb; }
.breadcrumbs li + li::before { content: '/'; margin-right: .3rem; opacity: .5; }
.breadcrumbs a { color: #d7e0ef; }
.breadcrumbs a:hover { color: #fff; }
.article-meta { font-size: .88rem; color: #b8c5db; margin-bottom: 1rem; }
.article-meta a { color: var(--cyan); }

/* ---------- content sections ---------- */
.content-section { position: relative; padding: 4.2rem 0; overflow: hidden; }
.content-section.alt { background: var(--bg-warm); }
.content-section.alt::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(56,182,221,.16), transparent 70%); pointer-events: none; }
/* faint section number in the background (geekytech-style big word) */
.content-section[data-n]::before { content: attr(data-n); position: absolute; right: 2vw; top: 1.2rem; font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 12vw, 10rem); line-height: 1; color: var(--ink); opacity: .04; pointer-events: none; user-select: none; letter-spacing: -.04em; }
.content-section.dark[data-n]::before { color: #fff; opacity: .06; }
.content-section .container { position: relative; }
.content-section h2 { margin-bottom: 1.1rem; padding-bottom: .7rem; position: relative; }
.content-section h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); }
/* dark band variant */
.content-section.dark { background: var(--navy); color: #c9d4e6; }
.content-section.dark h2, .content-section.dark h3, .content-section.dark strong { color: #fff; }
.content-section.dark h2 + p:first-of-type, .content-section.dark .lead { color: #d7e0ef; }
.content-section.dark a:not(.btn) { color: var(--cyan); }
.content-section.dark .card, .content-section.dark .step, .content-section.dark .testimonial, .content-section.dark .member, .content-section.dark .faq-item, .content-section.dark .table-wrap, .content-section.dark .clients { border-color: transparent; }
.content-section.dark .card p, .content-section.dark .step p, .content-section.dark .card ul, .content-section.dark .testimonial blockquote, .content-section.dark .member p, .content-section.dark .faq-a, .content-section.dark td { color: var(--text); }
.content-section.dark .card h3, .content-section.dark .step h3, .content-section.dark .member strong, .content-section.dark .testimonial strong, .content-section.dark .faq-item summary h3 { color: var(--ink); }
.content-section.dark .stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.content-section.dark .check li::before { background-color: rgba(56,182,221,.18); }
.content-section.dark .note { background: rgba(255,255,255,.06); color: #e6ecf6; }
.content-section.dark .case { background: #fff; color: var(--text); }
.content-section.dark .case h3 { color: var(--ink); }
.content-section.dark .case-metrics { border-top-color: var(--line); }
.content-section.dark .case-metrics strong { color: var(--accent); }
.content-section.dark .case-geo { color: var(--muted); }
.content-section.dark .case::after { background: radial-gradient(circle, rgba(240,87,31,.14), transparent 70%); }
.content-section h2 + p:first-of-type { font-size: 1.08rem; color: var(--text); max-width: 760px; }
.content-section h3 { margin-top: 1.6rem; color: var(--ink); }
.prose li { margin-bottom: .5em; }
@media (min-width: 1260px) {
  .narrow .cards, .narrow .steps, .narrow .stats, .narrow .team, .narrow .testimonials, .narrow .cases, .narrow .contact-grid, .narrow .clients { margin-left: calc((var(--container) - var(--narrow)) / -2); margin-right: calc((var(--container) - var(--narrow)) / -2); }
}
.page-article .content-section { padding: 2.4rem 0; }
.page-article .content-section.alt { background: transparent; }

/* ---------- cards (white, numbered eyebrow like seoimage) ---------- */
/* Balanced grids: --cols is set by main.js from the item count (5 → 3+2, 6 → 3+3, 7 → 4+3, 11 → 4+4+3);
   items are flex so a short last row stretches to the full width — no orphan card in the corner. */
.cards, .steps, .team, .testimonials, .cases { --cols: 3; --gap: 1.1rem; display: flex; flex-wrap: wrap; gap: var(--gap); }
.cards > *, .steps > *, .team > *, .testimonials > *, .cases > * { flex: 1 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: min(100%, 230px); }
.cards { margin: 1.6rem 0 1rem; counter-reset: card; }
.cols-2 { --cols: 2; }
.cols-3 { --cols: 3; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card h3 { font-size: 1.08rem; margin: 0 0 .5rem; }
.card p { font-size: .93rem; margin-bottom: .5rem; color: var(--text); }
.card ul { font-size: .93rem; margin-bottom: .3rem; }
.md-block.cards .card { counter-increment: card; padding-top: 2.4rem; }
.md-block.cards .card::before { content: '0' counter(card); position: absolute; top: 1.1rem; left: 1.5rem; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.md-block.cards .card::after { content: ''; position: absolute; top: 1.45rem; left: 3.2rem; width: 22px; height: 2px; background: var(--accent); opacity: .5; }
.card-link { display: flex; flex-direction: column; color: var(--text); overflow: hidden; }
.card-link::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card-link:hover::before { transform: scaleX(1); }
.card-link:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); transform: translateY(-5px); color: var(--text); }
.card-link .more { margin-top: auto; padding-top: .6rem; color: var(--accent); font-size: .88rem; font-weight: 700; font-family: var(--font-head); }
.card-link .more span { display: inline-block; transition: transform .2s; }
.card-link:hover .more span { transform: translateX(4px); }
.card-link:hover .more { color: var(--accent-dark); }
.card-ico { width: 44px; height: 44px; color: var(--navy); margin-bottom: 1rem; padding: 10px; background: var(--cyan-soft); border-radius: 12px; transition: background .25s, color .25s, transform .25s; }
.card-link:hover .card-ico { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.05); }

/* ---------- steps ---------- */
.steps { margin: 1.6rem 0; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-n { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--accent); line-height: 1; margin-bottom: .6rem; }
.step h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.step p { font-size: .92rem; margin: 0; }
.alt .step, .alt .card, .alt .stat, .alt .testimonial, .alt .member { box-shadow: none; }

/* ---------- misc blocks ---------- */
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.5rem 0; color: var(--ink); }
.note p:last-child { margin: 0; }
.check ul { list-style: none; padding: 0; }
.check li { padding-left: 1.8em; position: relative; }
.check li::before { content: ''; position: absolute; left: 0; top: .42em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0571f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .8rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--bg-cool); }
blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--accent); color: var(--ink); font-style: italic; }

/* ---------- stats (navy tiles, big numbers — seoimage "documented results") ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; margin: 1.6rem 0; }
.stat { text-align: center; background: var(--navy); border-radius: var(--radius); padding: 1.5rem .8rem; color: #fff; }
.stat-v { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: #fff; line-height: 1.05; }
.stat-l { display: block; font-size: .85rem; margin-top: .4rem; color: #b8c5db; }

/* ---------- clients / testimonials / team / cases ---------- */
.clients { list-style: none; margin: 1.6rem 0; padding: 1.4rem 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem 2rem; justify-content: center; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.clients li { margin: 0; font-family: var(--font-head); font-weight: 800; color: #9aa6bc; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.testimonials { margin: 1.6rem 0; }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.testimonial::before { content: '“'; position: absolute; top: .4rem; right: 1.2rem; font-family: Georgia, serif; font-size: 4rem; color: var(--accent); opacity: .25; line-height: 1; }
.testimonial blockquote { margin: 0 0 1rem; padding: 0; border: 0; font-style: normal; font-size: .95rem; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; font-size: .88rem; }
.testimonial figcaption strong { display: block; color: var(--ink); }
.testimonial figcaption > div > span { display: block; color: var(--muted); }
.t-avatar, .m-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; object-fit: cover; }
.team { margin: 1.6rem 0; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow); }
.member .m-avatar { width: 84px; height: 84px; margin: 0 auto .9rem; font-size: 1.4rem; border: 4px solid var(--cyan-soft); }
.member-name { display: block; color: var(--ink); }
.member strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.m-role { display: block; font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: .6rem; }
.member p { font-size: .88rem; margin: 0; }
.cases { margin: 1.6rem 0; }
.case { background: var(--navy); border-radius: var(--radius); padding: 1.7rem; color: #d7e0ef; position: relative; overflow: hidden; }
.case::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(56,182,221,.35), transparent 70%); }
.case-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-head); font-weight: 700; }
.case-tag { color: var(--cyan); }
.case-geo { color: #9fb0cb; }
.case h3 { font-size: 1.12rem; color: #fff; }
.case p { font-size: .92rem; }
.case-metrics { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; border-top: 1px solid rgba(255,255,255,.14); }
.case-metrics li { margin: 0; }
.case-metrics strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.case-metrics span { font-size: .74rem; color: #9fb0cb; }

/* ---------- SEO "details" section (webterra-style block before the footer) ---------- */
.seo-section { background: var(--bg-cool); border-top: 1px solid var(--line); }
.seo-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .seo-grid { grid-template-columns: 260px 1fr; gap: 3rem; } .seo-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.seo-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.seo-toc-title { display: block; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.seo-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.seo-toc li { margin: 0; counter-increment: toc; }
.seo-toc a { display: flex; gap: .6rem; padding: .4rem 0; font-size: .9rem; color: var(--text); border-top: 1px solid var(--line); }
.seo-toc li:first-child a { border-top: 0; }
.seo-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .78rem; padding-top: .15em; }
.seo-toc a:hover { color: var(--ink); }
.seo-body { position: relative; }
.seo-inner h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.seo-inner h3 { font-size: 1.12rem; margin-top: 1.6rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.seo-inner p, .seo-inner li { font-size: .97rem; }
.seo-inner ul { columns: 1; }
@media (min-width: 720px) { .seo-inner ul.two-col { columns: 2; column-gap: 2rem; } }
.seo-body[data-collapsed] .seo-inner { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.seo-more { margin-top: .6rem; }
.seo-body:not([data-collapsed]) .seo-more::after { content: ' ↑'; }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.6rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.3rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1rem; margin: 0; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.2rem; top: .75rem; font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--line-strong); }
.faq-a { padding: 0 1.3rem 1.1rem; font-size: .95rem; }
.faq-a p:last-child { margin: 0; }

/* ---------- CTA band (navy) ---------- */
.cta-section { padding: 4rem 0; background: var(--bg-warm); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; background: var(--navy) url('../img/hero-page.jpg') center/cover no-repeat; border-radius: 22px; padding: 2.6rem; position: relative; overflow: hidden; color: #d7e0ef; }
.cta-inner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,24,54,.95), rgba(8,24,54,.6)); }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.cta-inner p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } .cta-actions { justify-content: flex-end; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; margin: 1.6rem 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.contact-form label { display: block; font-size: .85rem; color: var(--ink); font-weight: 600; margin-bottom: 1rem; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); padding: .75rem .9rem; font: inherit; font-size: .95rem; font-weight: 400;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(240,87,31,.2); border-color: var(--accent); }
.f-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.consent { display: flex !important; gap: .6rem; align-items: flex-start; font-size: .82rem !important; font-weight: 400 !important; }
.consent input { margin-top: .25rem; }
.form-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.form-success { background: #e9f8f1; border: 1px solid #bfe9d4; padding: 1rem; border-radius: var(--radius-sm); color: var(--ink); }
.form-error { background: var(--accent-soft); border: 1px solid #f7c4ad; padding: .8rem 1rem; border-radius: var(--radius-sm); color: var(--ink); margin-bottom: 1rem; }
.contact-side { background: var(--navy); color: #d7e0ef; border-radius: var(--radius); padding: 1.8rem; }
.contact-side h3 { margin-top: 0; color: #fff; }
.contact-side p { margin-bottom: .7rem; }
.contact-side a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; }
.contact-side a:hover { color: var(--cyan); }
.contact-side .addr { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; margin-top: 1rem; color: #b8c5db; }
.depts-title { margin-top: 1.6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan) !important; }
.depts { list-style: none; padding: 0; margin: 0 0 .5rem; }
.depts li { margin: 0; padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: .1rem; }
.depts li span { font-size: .8rem; color: #9fb0cb; }
.depts li a { font-weight: 600; font-size: .95rem; }
.contact-side p, .contact-side .depts { position: relative; }
.card a[href^="mailto:"] { display: inline-block; margin-top: .4rem; font-family: var(--font-head); font-weight: 700; color: var(--accent); }

/* ---------- footer (navy) ---------- */
.site-footer { background: var(--navy); color: #b8c5db; padding: 3.8rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.f-brand p { margin-top: 1rem; max-width: 360px; }
.f-contact a { color: #fff; }
.f-social a { color: #dbe4f3; }
.f-col h4 { margin-bottom: .9rem; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { margin-bottom: .3rem; }
.f-col li a { color: #b8c5db; }
.f-col li a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; justify-content: space-between; font-size: .8rem; color: #8fa0bb; }
.footer-bottom p { margin: 0; }
.f-legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; }
.f-legal li { margin: 0; }
.f-legal li a { color: #b8c5db; }
.f-rg { flex-basis: 100%; }
.f-rg a { color: #dbe4f3; }
.age { display: inline-block; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 50%; width: 30px; height: 30px; line-height: 27px; text-align: center; font-weight: 700; font-size: .7rem; margin-right: .4rem; vertical-align: middle; }

/* ---------- cookie ---------- */
.cookie { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; box-shadow: var(--shadow-lg); font-size: .88rem; max-width: 720px; margin: 0 auto; color: var(--text); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie div { display: flex; gap: .5rem; }

/* ---------- WordPress specifics ---------- */
.logo-img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; }
.nav-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; }
.nav-links .page-numbers { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: .9rem; }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.alignwide { margin-left: calc((var(--container) - var(--narrow)) / -2); margin-right: calc((var(--container) - var(--narrow)) / -2); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
figure { max-width: 100%; margin: 1.5rem 0; }
figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); }
.content-section img { border-radius: var(--radius-sm); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- reveal-on-scroll (classes added by main.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { --d: 0ms; opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d), transform .7s cubic-bezier(.2,.7,.2,1) var(--d), box-shadow .25s, border-color .25s, background .25s, color .25s; }
  .reveal.from-left { transform: translateX(-36px); }
  .reveal.from-right { transform: translateX(36px); }
  .reveal.in { opacity: 1; transform: none; }
  .card-link.reveal.in:hover { transform: translateY(-5px); }
  .step.reveal.in:hover { transform: translateY(-3px); }
}
.cta-inner::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(240,87,31,.18); pointer-events: none; animation: blob 12s ease-in-out infinite alternate; }
.step:hover .step-n { transform: scale(1.1); }
.step-n { display: inline-block; transition: transform .25s; }
.stat { transition: transform .25s, box-shadow .25s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
