/* =============================================================
   Provectus — Stylesheet
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0B2447;
  --navy-soft: #14305E;
  --deep-blue: #19376D;
  --teal: #00B8B8;
  --teal-bright: #00D4D4;
  --teal-ink: #0A7E7E;
  --gold: #C9A961;
  --bg: #FCFBF8;
  --bg-alt: #F3F1EC;
  --surface: #FFFFFF;
  --text: #1A1F2E;
  --text-muted: #5A6376;
  --text-soft: #7C8596;
  --border: #E5E3DC;
  --border-strong: #CFCCC2;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --container-narrow: 960px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(11, 36, 71, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 36, 71, 0.05);
  --shadow-md: 0 8px 20px rgba(11, 36, 71, 0.07);
  --shadow-lg: 0 20px 40px rgba(11, 36, 71, 0.10);
  --shadow-xl: 0 32px 64px rgba(11, 36, 71, 0.14);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; }

/* ---------- Base typography ---------- */
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;        /* 17 — base for better screen density */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a.link { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.link:hover { color: var(--teal-ink); text-decoration-thickness: 2px; }
strong { font-weight: 600; color: var(--navy); }

::selection { background: var(--teal-bright); color: var(--navy); }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section--tight { padding: 48px 0; }
@media (min-width: 768px) { .section--tight { padding: 64px 0; } }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #E9EDF5; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--solo::before { display: none; }

.section-heading {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-heading h2 { margin: 0 0 12px; }
.section-heading p { color: var(--text-muted); font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }

.btn--accent {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 184, 184, 0.28);
}
.btn--accent:hover { background: var(--teal-bright); box-shadow: 0 6px 20px rgba(0, 184, 184, 0.36); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--navy); background: rgba(11,36,71,0.03); }

.btn--ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn--ghost-dark:hover { border-color: var(--teal-bright); color: var(--teal-bright); background: rgba(0,212,212,0.06); }

.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 248, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.site-header__logo img { height: 38px; width: auto; }
.site-nav { display: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--bg-alt); }

.site-nav__dropdown { position: relative; }
.site-nav__dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.site-nav__dropdown:hover .site-nav__dropdown-panel,
.site-nav__dropdown:focus-within .site-nav__dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.site-nav__dropdown-panel a {
  display: block;
  padding: 12px 14px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.site-header__right { display: flex; align-items: center; gap: 14px; }
.site-header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: color var(--transition);
}
.site-header__phone:hover { color: var(--teal-ink); }
.site-header__phone::before {
  content: "";
  width: 18px; height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.37 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.37 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") no-repeat center / contain;
}
.site-header__burger {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.site-header__burger:hover { background: var(--bg-alt); }
.site-header__burger-lines { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; }
.site-header__burger-lines::before,
.site-header__burger-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--navy);
}
.site-header__burger-lines::before { top: -7px; }
.site-header__burger-lines::after { top: 7px; }

.site-header__cta-mobile-hide { display: none; }
@media (min-width: 560px) { .site-header__cta-mobile-hide { display: inline-flex; } }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(380px, 92vw);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 280ms var(--ease-out);
  z-index: 100;
  padding: 28px;
  overflow-y: auto;
}
.mobile-drawer[data-open="true"] { transform: translateX(0); }
.mobile-drawer__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--navy);
  line-height: 1;
  border-radius: 50%;
}
.mobile-drawer__close:hover { background: var(--bg-alt); }
.mobile-drawer nav { margin-top: 52px; display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer nav a {
  padding: 14px 12px;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.mobile-drawer nav a.sub { padding-left: 28px; font-size: 0.9375rem; color: var(--text-muted); font-weight: 400; }
.mobile-drawer__cta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(11, 36, 71, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
  z-index: 90;
}
.drawer-backdrop[data-open="true"] { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 992px) {
  .site-nav { display: flex; align-items: center; gap: 2px; }
  .site-header__phone { display: inline-flex; }
  .site-header__burger { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(0, 184, 184, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle at center, rgba(39, 69, 255, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 992px) {
  .hero { padding: 112px 0 128px; }
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 72px; }
}
.hero__content { max-width: 600px; }
.hero h1 {
  margin: 0 0 20px;
  color: var(--navy);
}
.hero__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 32ch;
  line-height: 1.45;
}
.hero__tagline {
  font-size: 1.125rem;
  max-width: 52ch;
  margin-bottom: 36px;
  color: var(--text);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 440px;
}
.hero__trust-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 184, 184, 0.12);
  color: var(--teal-ink);
}
.hero__trust strong { color: var(--navy); }

/* Hero visual panel */
.hero__visual {
  position: relative;
  min-height: 360px;
  display: none;
}
@media (min-width: 992px) { .hero__visual { display: block; } }

.hero-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(148deg, var(--navy) 0%, var(--deep-blue) 60%, var(--teal-ink) 140%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  padding: 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card::before {
  /* decorative geometric panel from logo motif */
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background:
    conic-gradient(from 140deg at 50% 50%,
      rgba(0, 212, 212, 0.65) 0deg,
      rgba(0, 212, 212, 0) 90deg,
      rgba(140, 165, 255, 0.25) 180deg,
      rgba(0, 212, 212, 0) 270deg,
      rgba(0, 212, 212, 0.65) 360deg);
  filter: blur(26px);
  opacity: 0.9;
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255,255,255,0.04) 100%),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,0.04) 100%);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-card__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
.hero-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(0, 212, 212, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 212, 212, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 212, 0.08); }
}
.hero-card__body {
  position: relative;
  z-index: 2;
}
.hero-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-card__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.hero-card__value small {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  font-family: var(--font-sans);
  font-style: normal;
  color: rgba(255,255,255,0.72);
  margin-top: 6px;
  letter-spacing: 0;
}
.hero-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-card__stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal-bright);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-card__stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.35;
}

/* Floating badge */
.hero-badge {
  position: absolute;
  left: -40px;
  top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  z-index: 3;
}
.hero-badge__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 184, 184, 0.15), rgba(0, 184, 184, 0.05));
  color: var(--teal-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-badge__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.hero-badge__value {
  font-size: 0.9375rem;
  color: var(--navy);
  font-weight: 600;
  font-family: var(--font-serif);
}

/* ---------- Trust band ---------- */
.trust-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: var(--surface);
}
.trust-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .trust-band__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 184, 184, 0.10);
  color: var(--teal-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-item__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 2px;
}
.trust-item__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- About block ---------- */
.about {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
}
.about::before {
  content: """;
  display: block;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--teal);
  line-height: 0.8;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ---------- Metrics band ---------- */
.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0;
}
@media (min-width: 768px) {
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 72px 0; }
  .metric { border-left: 1px solid var(--border); padding-left: 40px; }
  .metric:first-child { border-left: 0; padding-left: 0; }
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metric__value {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--navy);
  letter-spacing: -0.04em;
}
.metric__value-accent { color: var(--teal); }
.metric__label {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  max-width: 20ch;
}
.metric__label strong {
  display: block;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

/* ---------- Service cards ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .services__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 184, 0.4);
}
.service-card::before {
  content: attr(data-n);
  position: absolute;
  top: -16px; right: 4px;
  font-family: var(--font-serif);
  font-size: 9rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.035;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 184, 184, 0.14), rgba(0, 184, 184, 0.05));
  color: var(--teal-ink);
  margin-bottom: 20px;
}
.service-card h3 { margin: 0 0 12px; font-size: 1.375rem; }
.service-card p { color: var(--text); line-height: 1.6; font-size: 1rem; }

/* ---------- Partners ---------- */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 48px;
  align-items: center;
}
.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  filter: grayscale(0.85);
  opacity: 0.75;
  transition: all var(--transition);
}
.partners__item:hover {
  filter: grayscale(0);
  opacity: 1;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.partners__item img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ---------- Final CTA (split) ---------- */
.cta-split {
  position: relative;
  overflow: hidden;
}
.cta-split::before {
  content: "";
  position: absolute;
  top: -20%; left: -5%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0, 212, 212, 0.15), transparent 60%);
  pointer-events: none;
}
.cta-split__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .cta-split__grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}
.cta-split__text h2 { color: #fff; margin: 0 0 16px; max-width: 18ch; }
.cta-split__text p { color: rgba(233, 237, 245, 0.8); max-width: 44ch; font-size: 1.0625rem; margin-bottom: 28px; }
.cta-split__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cta-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.cta-card__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cta-card__row:first-child { padding-top: 0; }
.cta-card__row:last-child { border-bottom: 0; padding-bottom: 0; }
.cta-card__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 212, 212, 0.14);
  color: var(--teal-bright);
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233,237,245,0.6);
  font-weight: 600;
  margin-bottom: 4px;
}
.cta-card__value { color: #fff; font-weight: 500; font-size: 1rem; line-height: 1.4; }
.cta-card__value a { color: #fff; }
.cta-card__value a:hover { color: var(--teal-bright); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #C7CEDD;
  padding: 72px 0 28px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 100%;
  max-width: var(--container);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-50%);
}
.site-footer a { color: #C7CEDD; transition: color var(--transition); }
.site-footer a:hover { color: var(--teal-bright); }
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.site-footer__brand img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul li { font-size: 0.9375rem; line-height: 1.5; }
.site-footer__tagline {
  color: rgba(199, 206, 221, 0.7);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 32ch;
  margin-bottom: 20px;
}
.site-footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  color: rgba(199, 206, 221, 0.55);
  font-size: 0.8125rem;
}
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
}
.site-footer__social a:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
  background: rgba(0, 212, 212, 0.08);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Legal / long-form page layout ---------- */
.page-header {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -10%; right: -5%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0, 184, 184, 0.08), transparent 60%);
  pointer-events: none;
}
.page-header > .container { position: relative; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  max-width: 22ch;
}
.page-header__sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 60ch;
  margin: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { color: var(--border-strong); }
.breadcrumb__current { color: var(--navy); font-weight: 500; }

.legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0 96px;
}
@media (min-width: 992px) {
  .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; }
}
.legal__nav {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.legal__nav h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.legal__nav ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.legal__nav a {
  display: block;
  padding: 9px 14px;
  border-left: 2px solid var(--border);
  margin-left: 1px;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal__nav a:hover { color: var(--navy); background: var(--bg-alt); border-left-color: var(--border-strong); }
.legal__nav a.is-active {
  color: var(--navy);
  background: var(--bg-alt);
  border-left-color: var(--teal);
  font-weight: 600;
}

.prose { max-width: 740px; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 56px;
  scroll-margin-top: 100px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 36px; scroll-margin-top: 100px; color: var(--navy); }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.prose ol, .prose ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose ol li, .prose ul li { margin-bottom: 0.6em; padding-left: 4px; }
.prose ol li::marker, .prose ul li::marker { color: var(--teal-ink); }
.prose dl { margin: 0 0 1.5em; display: grid; gap: 6px; }
.prose dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.25em;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}
.prose dt:first-child { margin-top: 0; }
.prose dd { margin: 0 0 0.75em; color: var(--text); line-height: 1.7; }

/* Compact key-value list — for "Rekvizīti" style blocks */
.prose dl.dl--compact {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 4px;
  margin: 0 0 1.5em;
  padding: 18px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.prose dl.dl--compact dt {
  margin: 0;
  padding: 6px 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
}
.prose dl.dl--compact dd {
  margin: 0;
  padding: 6px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--navy);
}
.prose dl.dl--compact dd + dd { padding-top: 0; }
@media (max-width: 640px) {
  .prose dl.dl--compact {
    grid-template-columns: 1fr;
    row-gap: 2px;
    padding: 16px 18px;
  }
  .prose dl.dl--compact dt { padding: 8px 0 0; }
  .prose dl.dl--compact dt:first-of-type { padding-top: 0; }
  .prose dl.dl--compact dd { padding: 2px 0 6px; }
}
.prose blockquote {
  border-left: 3px solid var(--teal);
  padding: 4px 22px;
  margin: 2em 0;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
}

/* ---------- Contacts page ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 992px) {
  .contacts { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
}
.contacts__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xs);
}
.contacts__card h2 { font-size: 1.625rem; margin: 0 0 8px; }
.contacts__card-lead { color: var(--text-muted); margin-bottom: 20px; font-size: 1rem; }
.contacts__row { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.contacts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.contacts__row-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 184, 184, 0.10);
  color: var(--teal-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.contacts__row-body { flex: 1; }
.contacts__row-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.contacts__row-value { font-size: 1.0625rem; color: var(--text); line-height: 1.5; }
.contacts__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 480px;
  background: var(--bg-alt);
  box-shadow: var(--shadow-xs);
}
.contacts__map iframe { width: 100%; height: 100%; border: 0; min-height: 480px; display: block; }

.contacts__social { display: flex; gap: 10px; margin-top: 4px; }
.contacts__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--navy);
  transition: all var(--transition);
}
.contacts__social a:hover { border-color: var(--teal); color: var(--teal-ink); background: rgba(0, 184, 184, 0.05); }

/* ---------- Employees list page ---------- */
.employees {
  max-width: 780px;
  margin: 0 auto;
}
.employees ol {
  counter-reset: emp;
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .employees ol { grid-template-columns: 1fr 1fr; }
}
.employees ol li {
  counter-increment: emp;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 20px 64px;
  font-size: 1.0625rem;
  position: relative;
  transition: all var(--transition);
  font-weight: 500;
}
.employees ol li:hover { border-color: rgba(0, 184, 184, 0.4); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.employees ol li::before {
  content: counter(emp, decimal-leading-zero);
  position: absolute;
  left: 20px; top: 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.employees h2 { font-size: 1.625rem; margin-top: 32px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.employees .note {
  background: var(--bg-alt);
  border-left: 3px solid var(--teal);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 1rem;
}

/* ---------- Responsive typography & fine tuning ---------- */
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .hero { padding: 56px 0 72px; }
  .hero__trust { max-width: none; }
  .about p { font-size: 1.125rem; }
  .about::before { font-size: 3.5rem; }
  .service-card { padding: 28px 24px; }
  .service-card::before { font-size: 6rem; }
  .contacts__card { padding: 24px; }
  .contacts__row { gap: 14px; padding: 14px 0; }
  .cta-card { padding: 22px; }
}

/* ---------- Page-header CTA aside (Octa/Kasko quote card on kontakti) ---------- */
.page-header--with-aside { padding-bottom: 48px; }
.page-header__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 992px) {
  .page-header__grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 380px); gap: 56px; align-items: center; }
}
.page-header__main { min-width: 0; }

.quote-cta {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-cta::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle at top right, rgba(0, 184, 184, 0.12), transparent 60%);
  pointer-events: none;
}
.quote-cta > * { position: relative; }

.quote-cta__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.quote-cta__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: var(--navy);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 184, 184, 0.28);
}
.quote-cta__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 600;
  line-height: 1;
}
.quote-cta__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.quote-cta__lead {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 20px;
}
.quote-cta__btn { width: 100%; }
.quote-cta__hint {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 991.98px) {
  .quote-cta { padding: 22px; }
  .quote-cta__title { font-size: 1.375rem; }
}

/* ---------- Form layout (octa-kasko form page) ---------- */
.form-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 992px) {
  .form-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 340px); gap: 48px; align-items: start; }
}
.form-layout__main { min-width: 0; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 22px;
}
@media (max-width: 575.98px) {
  .form-card { padding: 22px; gap: 18px; }
}

.form-field { display: grid; gap: 8px; }
.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.form-field__req { color: var(--teal-ink); margin-left: 2px; }
.form-field__opt {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.8125rem;
  margin-left: 6px;
}
.form-field input[type="text"],
.form-field input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-field input::placeholder { color: var(--text-soft); }
.form-field input:hover { border-color: var(--navy-soft); }
.form-field input:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 184, 184, 0.15);
  background: #fff;
}
.form-field--error input {
  border-color: #C53030;
  background: #FFF7F7;
}
.form-field--error input:focus {
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.15);
}
.form-field__error {
  font-size: 0.8125rem;
  color: #C53030;
  font-weight: 500;
}

.form-field--consent { gap: 6px; }
.form-checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.form-checkbox input[type="checkbox"]::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--navy);
  clip-path: polygon(14% 44%, 0 60%, 38% 100%, 100% 18%, 84% 0, 38% 65%);
  transform: scale(0);
  transition: transform 140ms cubic-bezier(0.4, 0, 0.2, 1);
}
.form-checkbox input[type="checkbox"]:checked {
  border-color: var(--navy);
  background: var(--bg-alt);
}
.form-checkbox input[type="checkbox"]:checked::before { transform: scale(1); }
.form-checkbox input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-actions__hint {
  color: var(--text-soft);
  font-size: 0.8125rem;
}

.form-banner {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9375rem;
  margin-bottom: 22px;
  border: 1px solid transparent;
}
.form-banner--error {
  background: #FFF5F5;
  border-color: #FBC4C4;
  color: #9B2C2C;
}

.form-success {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-success__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: var(--navy);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 184, 184, 0.32);
}
.form-success h2 { margin: 0 0 10px; font-size: 1.5rem; }
.form-success p { color: var(--text-muted); margin: 0 0 14px; }
.form-success p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .form-success { grid-template-columns: 1fr; padding: 24px; }
}

/* Form aside */
.form-aside { display: grid; gap: 18px; }
.form-aside__card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.form-aside__card h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 600;
  margin: 0 0 16px;
}
.form-steps {
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
  display: grid; gap: 14px;
}
.form-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  min-height: 28px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: inline-grid; place-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}
.form-steps li strong { color: var(--text); display: block; margin-bottom: 2px; }

.form-aside__contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  gap: 12px;
}
.form-aside__contact-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 0.9375rem;
}
.form-aside__contact-label {
  color: var(--text-soft);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.no-scroll { overflow: hidden; }
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 20px; }
