/*
Theme Name: Berkelium Vascular
Theme URI: https://vascular.cat
Author: Berkelium Surgical Group
Description: Tema para la Unidad de Angiología, Cirugía Vascular y Endovascular (Centro Médico Teknon). Identidad del brandbook Berkelium: azul #0c2e69, amarillo #ffd100, gris #cececd y tipografía geométrica. Incluye explorador interactivo CEAP ([ceap_explorer]) y plantilla para las unidades específicas.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: berkelium-vascular
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --navy: #0c2e69;
  --navy-900: #071d45;
  --navy-700: #16408a;
  --navy-50: #eef2f9;
  --yellow: #ffd100;
  --yellow-600: #f0c400;
  --yellow-100: #fff6cc;
  --grey: #cececd;
  --soft: #f4f6fa;
  --white: #ffffff;
  --ink: #0a1833;
  --text: #2d3852;
  --muted: #5c6780;
  --line: #e1e6ef;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(12, 46, 105, .06);
  --shadow: 0 18px 50px -18px rgba(12, 46, 105, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: 'Outfit', 'Gilroy', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --header-h: 84px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon .acc { fill: var(--yellow); stroke: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { left: 12px; }
.muted { color: var(--muted); }

/* ==========================================================================
   Buttons, labels
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: .01em; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(255, 209, 0, .9); }
.btn-primary:hover { background: var(--yellow-600); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover .icon { transform: none; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-700);
}
.eyebrow::before { content: ''; width: 26px; height: 8px; border-radius: 999px; background: var(--yellow); }

.pill-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; margin: 0 0 26px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px; font-weight: 500; color: #dfe6f4;
}
.pill-label .icon { color: var(--yellow); }
.pill-label .icon .acc { fill: var(--navy); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: var(--navy-900); color: #c9d3e8; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 28px; min-height: 40px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item .icon { color: var(--yellow); width: 1.05em; height: 1.05em; }
.topbar-item .icon .acc { fill: var(--navy-900); }
.topbar a.topbar-item { color: var(--white); font-weight: 600; }
.topbar-item:first-child { margin-right: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(12, 46, 105, .35); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 16px; flex: none; }
.brand img { width: auto; height: 36px; }
.brand-sub { padding-left: 16px; border-left: 2px solid var(--line); font-size: 12.5px; line-height: 1.25; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; }
.main-nav ul a { position: relative; font-weight: 500; font-size: 15.5px; color: var(--ink); padding: 6px 0; }
.main-nav ul a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav ul a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 46px; padding: 0 22px; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy-50); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ==========================================================================
   Decorative capsules (brand pattern)
   ========================================================================== */
.hero-shapes, .footer-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape-pill, .shape-dot, .shape-peanut { position: absolute; display: block; border-radius: 999px; }
.shape-pill { width: 150px; height: 34px; background: rgba(255, 255, 255, .9); top: 9%; left: 46%; opacity: .1; }
.shape-dot { width: 90px; height: 90px; background: var(--grey); left: -30px; bottom: 12%; opacity: .12; }
.shape-peanut {
  width: 520px; height: 230px; right: -140px; bottom: -120px; transform: rotate(-38deg);
  background: var(--navy-700); opacity: .55;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--navy); color: #dbe3f3; padding: 72px 0 140px; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin-bottom: 24px; }
.hero h1 .hl { color: var(--yellow); display: block; }
.hero-lead { font-size: 19px; line-height: 1.6; max-width: 560px; color: #cfd8ea; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 34px 0 0; font-size: 15px; color: #aebbd6; max-width: 520px; padding-left: 16px; border-left: 3px solid var(--yellow); }
.hero-note strong { color: var(--white); font-weight: 600; }

.hero-media { position: relative; }
.hero-photo {
  position: relative; aspect-ratio: 4 / 4.3; overflow: hidden;
  border-radius: 999px 999px 40px 999px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 29, 69, .35)); }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.2;
  animation: floaty 6s ease-in-out infinite;
}
.hero-card strong { display: block; font-size: 16px; }
.hero-card small { color: var(--muted); font-size: 13px; }
.hero-card-a { left: -34px; bottom: 16%; }
.hero-card-b { right: -10px; top: 8%; animation-delay: -3s; }
.hero-card-b img { width: 30px; height: auto; margin: 0 4px 0 8px; }
.hero-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--navy); }
.hero-card-icon .icon .acc { fill: var(--navy); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Quick info strip overlapping the hero */
.quick { position: relative; margin-top: -76px; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px; }
.quick-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.quick-item h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 4px 0 6px; }
.quick-item p { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.45; font-size: 16px; }
.quick-item a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.quick-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--navy-50); color: var(--navy); flex: none; }
.quick-icon .icon { width: 24px; height: 24px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.025em; }
.section-title .u { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 90%, transparent 90%); padding: 0 2px; }
.section-lead { font-size: 18.5px; color: var(--muted); margin: 0; }
.section-head-light .eyebrow { color: var(--yellow); }
.section-head-light .section-title { color: var(--white); }
.section-head-light .section-lead { color: #b9c5de; }

.ticks { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.ticks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--yellow); color: var(--navy); stroke-width: 2.6; margin-top: 1px; }

/* Intro */
.intro { padding-top: 120px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.intro-copy p { font-size: 17.5px; }
.intro-media { position: relative; min-height: 520px; }
.photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-a { top: 0; right: 0; width: 82%; aspect-ratio: 5 / 4; }
.photo-b { left: 0; bottom: 0; width: 58%; aspect-ratio: 3 / 2; border: 8px solid var(--white); }
.intro-badge {
  position: absolute; right: 6%; bottom: 8%;
  display: flex; flex-direction: column; padding: 16px 24px; border-radius: 22px;
  background: var(--navy); color: #c9d3e8; font-size: 14px; box-shadow: var(--shadow);
}
.intro-badge strong { color: var(--yellow); font-size: 22px; line-height: 1.1; }

/* Units */
.units { background: var(--soft); }
.unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.unit-grid-3 { grid-template-columns: repeat(3, 1fr); }
.unit-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px 24px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.unit-card::after {
  content: ''; position: absolute; width: 120px; height: 36px; border-radius: 999px; background: var(--yellow);
  right: -40px; top: 18px; transform: rotate(-38deg) scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.unit-card:hover::after { transform: rotate(-38deg) scaleX(1); }
.unit-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--navy); color: var(--white); margin-bottom: 8px; transition: transform .35s var(--ease); }
.unit-icon .icon { width: 28px; height: 28px; }
.unit-card:hover .unit-icon { transform: rotate(-8deg); }
.unit-card h3 { font-size: 19.5px; margin: 0; letter-spacing: -.01em; }
.unit-card p { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0; flex: 1; }
.unit-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 14.5px; color: var(--navy-700); }
.unit-more .icon { transition: transform .3s var(--ease); }
.unit-card:hover .unit-more .icon { transform: translateX(4px); }

/* ==========================================================================
   CEAP explorer
   ========================================================================== */
.ceap-section { background: var(--navy); overflow: hidden; }
.ceap-section::before {
  content: ''; position: absolute; width: 640px; height: 260px; border-radius: 999px; background: var(--navy-700);
  opacity: .45; left: -220px; top: 40px; transform: rotate(-38deg);
}
.ceap-section .wrap { position: relative; }
.ceap-cta { margin: 40px 0 0; text-align: center; }

.ceap-app {
  --ceap-p: 0%;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
}
.ceap-feature {
  padding: 48px 56px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12); color: #cfd8ea;
}
.ceap-inline {
  margin: 48px 0; padding: 36px; border-radius: var(--radius-lg);
  background: var(--soft); border: 1px solid var(--line); gap: 36px;
}

.ceap-visual { position: relative; aspect-ratio: 2 / 3; max-height: 620px; width: 100%; margin: 0 auto; }
.ceap-orb {
  position: absolute; left: 50%; bottom: 6%; width: 92%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef2f9 70%);
}
.ceap-orb::after {
  content: ''; position: absolute; width: 24%; height: 8%; border-radius: 999px; background: var(--yellow);
  left: -6%; bottom: 18%; transform: rotate(-38deg);
}
.ceap-inline .ceap-orb { background: radial-gradient(circle at 50% 40%, #ffffff 0%, #ffffff 60%, #e7ecf5 100%); }
.leg-container { position: absolute; inset: 0; }
.leg-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  opacity: 0; transform: scale(1.02); filter: blur(2px);
  transition: opacity .75s var(--ease), transform 1s var(--ease), filter .75s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
}
.leg-image.active { opacity: 1; transform: none; filter: none; }
.ceap-chip {
  position: absolute; left: 4%; top: 10%;
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 26px; letter-spacing: -.02em;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45);
}

.ceap-info .eyebrow { color: var(--yellow); }
.ceap-inline .ceap-info .eyebrow { color: var(--navy-700); }
.stage-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; min-height: 64px; }
.stage-code {
  flex: none; display: inline-grid; place-items: center; min-width: 84px; height: 56px; padding: 0 16px;
  border-radius: 999px; background: var(--white); color: var(--navy); font-size: 28px; font-weight: 800; letter-spacing: -.02em;
}
.ceap-inline .stage-code { background: var(--navy); color: var(--yellow); }
.stage-title { margin: 0; font-size: clamp(24px, 2.6vw, 34px); color: var(--white); font-weight: 700; }
.ceap-inline .stage-title { color: var(--ink); }
.stage-desc { font-size: 18px; line-height: 1.6; min-height: 3.2em; margin-bottom: 30px; }
.ceap-inline .stage-desc { color: var(--text); font-size: 17px; }

.slider-area label { display: block; font-size: 14px; font-weight: 500; letter-spacing: .02em; margin-bottom: 14px; opacity: .85; }
.ceap-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; margin: 0 0 18px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--yellow) var(--ceap-p), rgba(255, 255, 255, .18) var(--ceap-p));
}
.ceap-inline .ceap-slider { background: linear-gradient(90deg, var(--yellow) var(--ceap-p), #d9dfea var(--ceap-p)); }
.ceap-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); border: 5px solid var(--white); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .2s;
}
.ceap-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 5px solid var(--white); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.ceap-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.stage-buttons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.stage-buttons button {
  height: 44px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, .22); background: transparent; color: var(--white);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.stage-buttons button:hover { border-color: var(--yellow); }
.stage-buttons button.selected { background: var(--yellow); border-color: var(--yellow); color: var(--navy); transform: translateY(-2px); }
.ceap-inline .stage-buttons button { border-color: #cfd6e3; color: var(--navy); background: var(--white); }
.ceap-inline .stage-buttons button.selected { background: var(--navy); border-color: var(--navy); color: var(--yellow); }

.ceap-controls { display: flex; align-items: center; gap: 16px; margin: 26px 0 0; }
.ceap-play {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .1); color: var(--white); font-size: 14px; font-weight: 600;
}
.ceap-play:hover { background: rgba(255, 255, 255, .18); }
.ceap-play .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.ceap-play .icon-play { fill: currentColor; }
.ceap-play .icon-play, .is-paused .ceap-play .icon-pause { display: none; }
.is-paused .ceap-play .icon-play { display: block; }
.ceap-inline .ceap-play { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.ceap-progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ceap-inline .ceap-progress { background: var(--line); }
.ceap-progress span { display: block; height: 100%; width: 0; background: var(--yellow); }
.disclaimer { margin: 22px 0 0; font-size: 14px; opacity: .75; line-height: 1.55; }
.ceap-inline .disclaimer { color: var(--muted); opacity: 1; }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { position: relative; padding: 44px; border-radius: var(--radius-lg); background: var(--soft); overflow: hidden; }
.service-card h3 { font-size: 28px; }
.service-card > p { color: var(--muted); }
.service-card .ticks { margin-bottom: 0; }
.service-num { position: absolute; top: 28px; right: 34px; font-size: 64px; font-weight: 800; line-height: 1; color: rgba(12, 46, 105, .07); }
.service-card-navy { background: var(--navy); color: #cfd8ea; }
.service-card-navy h3 { color: var(--white); }
.service-card-navy > p { color: #aebbd6; }
.service-card-navy .service-num { color: rgba(255, 255, 255, .08); }

.conditions { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.conditions h3 { font-size: 22px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-bottom: 14px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.chips-strong li { background: var(--white); border-color: var(--navy); color: var(--navy); font-weight: 600; }

/* ==========================================================================
   Team
   ========================================================================== */
.team { background: var(--soft); }
.team .section-head, .values .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-50); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 26px 28px 30px; }
.team-role { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.team-body h3 { font-size: 21px; margin-bottom: 6px; }
.team-area { color: var(--muted); margin: 0; }
.team-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; font-size: 14.5px; font-weight: 600; }
.team-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-700); }
.team-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.team-links .icon { width: 15px; height: 15px; }

/* ==========================================================================
   Values
   ========================================================================== */
.values-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; counter-reset: none; }
.value { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.value-num { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-weight: 700; font-size: 17px; }
.value h3 { font-size: 20px; margin: 4px 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: 16px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: linear-gradient(180deg, var(--soft), var(--white)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; margin: 36px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; line-height: 1.55; }
.contact-list strong { color: var(--ink); }
.contact-list a:hover strong { color: var(--navy-700); }
.ci { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--navy); color: var(--white); }
.ci .icon { width: 22px; height: 22px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-700); font-size: 15px; }
.link .icon { width: 15px; height: 15px; }
.hours { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.hours caption { text-align: left; font-weight: 700; color: var(--ink); font-size: 18px; margin-bottom: 12px; }
.hours th, .hours td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { color: var(--ink); font-weight: 600; }

.contact-card { padding: 40px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); border-top: 6px solid var(--yellow); }
.contact-card h3 { font-size: 26px; margin-bottom: 22px; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(255, 209, 0, .35); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 14px; font-weight: 500; font-size: 15px; }
.form-status-ok { background: #e7f6ec; color: #17603a; }
.form-status-err { background: #fdecec; color: #8a1f1f; }

/* ==========================================================================
   Unit pages
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #cfd8ea; padding: 64px 0 88px; }
.page-hero-slim { padding: 56px 0 64px; }
.page-hero-inner { position: relative; max-width: 900px; margin-left: 0; }
.page-hero .wrap.page-hero-inner { margin: 0 auto; max-width: var(--wrap); }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.03em; max-width: 880px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #9fb0d0; margin-bottom: 30px; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span[aria-current] { color: var(--white); }
.page-hero-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--yellow); color: var(--navy); margin-bottom: 22px; }
.page-hero-icon .icon { width: 32px; height: 32px; }
.page-hero-icon .icon .acc { fill: var(--white); }
.page-kicker { color: var(--yellow); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.page-lead { font-size: 19px; line-height: 1.6; max-width: 780px; margin-bottom: 32px; }

.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 72px; padding-bottom: 40px; align-items: start; }
.unit-content { font-size: 17.5px; min-width: 0; }
.unit-content > *:first-child { margin-top: 0; }
.unit-content h2 { position: relative; font-size: clamp(26px, 2.6vw, 32px); margin: 56px 0 18px; padding-top: 22px; }
.unit-content h2::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 8px; border-radius: 999px; background: var(--yellow); }
.unit-content h3 { font-size: 22px; margin: 36px 0 12px; color: var(--navy); }
.unit-content p { margin: 0 0 1.1em; }
.unit-content strong { color: var(--ink); }
.unit-content ul, .unit-content ol { margin: 0 0 1.4em; padding: 0; list-style: none; display: grid; gap: 10px; }
.unit-content ul li { position: relative; padding-left: 30px; }
.unit-content ul li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 3px var(--yellow), 0 0 0 3px var(--yellow-100); }
.unit-content .unit-list { padding: 24px 28px; border-radius: var(--radius); background: var(--soft); }
.unit-content ol { counter-reset: ol; }
.unit-content ol li { counter-increment: ol; position: relative; padding-left: 38px; }
.unit-content ol li::before { content: counter(ol); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.unit-content a { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.unit-content figure { margin: 40px auto; }
.unit-content .unit-figure { max-width: 560px; }
.unit-content figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.unit-content figure a { display: block; text-decoration: none; cursor: zoom-in; }
.unit-content figcaption { margin-top: 12px; text-align: center; font-size: 14.5px; color: var(--muted); }
.unit-content .ceap-app { margin: 48px 0; }

.unit-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { padding: 28px; border-radius: var(--radius-lg); background: var(--soft); }
.aside-cta { background: var(--navy); color: #cfd8ea; }
.aside-cta .eyebrow { color: var(--yellow); }
.aside-cta h2 { color: var(--white); font-size: 22px; }
.aside-cta p { font-size: 15px; }
.aside-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-weight: 700; font-size: 20px; color: var(--white); }
.aside-phone .icon { color: var(--yellow); }
.aside-hours { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.5; }
.aside-hours .icon { color: var(--yellow); margin-top: 2px; }
.aside-units h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.aside-units ul { list-style: none; display: grid; gap: 2px; }
.aside-units a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ink); transition: background-color .2s; }
.aside-units a:hover { background: var(--white); }
.aside-units .icon { color: var(--navy-700); width: 20px; height: 20px; }
.aside-units .current a { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); }

.more-units { padding: 80px 0; }
.cta-band { background: var(--yellow); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); color: var(--navy); margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--navy); opacity: .8; }
.cta-band .btn-primary { background: var(--navy); color: var(--white); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--navy-900); }

.page-content { padding-top: 56px; padding-bottom: 80px; }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--navy-900); color: #aab7d2; padding: 88px 0 0; font-size: 15px; }
.site-footer .shape-pill { top: 60px; right: 8%; left: auto; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 340px; }
.footer-title { color: var(--white); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a:hover { color: var(--yellow); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.footer-contact .icon { color: var(--yellow); margin-top: 2px; width: 18px; height: 18px; }
.footer-contact .icon .acc { fill: var(--navy-900); }
.footer-contact a { color: var(--white); }
.footer-contact small { display: block; width: 100%; color: #7f8fb0; font-size: 13px; }
.footer-contact li { flex-wrap: wrap; }
.footer-contact li > a { flex: 1; }
.footer-contact li small { padding-left: 28px; margin-top: -4px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 26px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #7f8fb0; }
.footer-bottom p { margin: 0; }

.float-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none; align-items: center; gap: 8px;
  height: 54px; padding: 0 22px; border-radius: 999px; background: var(--yellow); color: var(--navy);
  font-weight: 700; box-shadow: 0 14px 30px -10px rgba(12, 46, 105, .55);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav ul { gap: 20px; }
  .brand-sub { display: none; }
  .unit-grid { grid-template-columns: repeat(3, 1fr); }
  .unit-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
}

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px; margin: 0; padding: 28px 24px 40px;
    background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 16px 0; font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-cta { min-height: 56px; }
  .topbar-hours { display: none; }

  .hero { padding: 56px 0 128px; }
  .hero-grid, .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-card-a { left: 0; }
  .hero-card-b { right: 0; }
  .intro-media { min-height: 460px; max-width: 640px; }
  .ceap-app { grid-template-columns: 1fr; gap: 28px; }
  .ceap-visual { max-width: 380px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .unit-layout { grid-template-columns: 1fr; }
  .unit-aside { position: static; }
  .aside-units { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .float-cta { display: inline-flex; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .quick-grid { grid-template-columns: 1fr; padding: 4px 8px; }
  .quick-item + .quick-item { border-left: 0; border-top: 1px solid var(--line); }
  .quick-item { padding: 18px 12px; }
  .unit-grid, .unit-grid-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .unit-card { padding: 22px 18px; }
  .unit-card p { display: none; }
  .unit-card h3 { font-size: 17px; }
  .unit-icon { width: 48px; height: 48px; border-radius: 15px; }
  .ceap-feature { padding: 28px 20px; }
  .ceap-inline { padding: 24px 18px; }
  .stage-buttons { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .stage-buttons button { font-size: 13px; height: 40px; }
  .service-card { padding: 32px 24px; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .contact-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .topbar-item:first-child { display: none; }
  .topbar-inner { justify-content: center; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-card { font-size: 13px; padding: 8px 14px 8px 8px; }
  .hero-card strong { font-size: 14px; }
  .hero-card-icon { width: 36px; height: 36px; }
  .hero-card-a { bottom: 6%; }
  .intro-media { min-height: 340px; }
  .intro-badge { right: 0; bottom: 4%; padding: 12px 16px; }
  .intro-badge strong { font-size: 18px; }
  .unit-grid, .unit-grid-3 { grid-template-columns: 1fr; }
  .unit-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .unit-card .unit-icon { margin: 0; }
  .unit-card h3 { flex: 1; }
  .unit-more { display: none; }
  .stage-heading { gap: 12px; }
  .stage-code { min-width: 66px; height: 46px; font-size: 22px; }
  .ceap-chip { width: 60px; height: 60px; font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid .footer-col:nth-child(3) .footer-title { display: none; }
  .footer-grid .footer-col:nth-child(3) { margin-top: -22px; }
  .unit-content .unit-list { padding: 20px 18px; }
  .brand img { height: 30px; }
}

/* Inline CEAP inside article content: keep its own typography */
.unit-content .ceap-app h3 { margin: 0; padding: 0; }
.unit-content .ceap-app p { margin-bottom: 0; }
.unit-content .ceap-app .stage-desc { margin-bottom: 24px; }
.unit-content .ceap-app .eyebrow { margin-bottom: 14px; }
.ceap-inline .ceap-orb { background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--navy-50) 75%); box-shadow: inset 0 0 0 1px var(--line); }
.page-hero .shape-pill { left: auto; right: 7%; top: 26%; }
@media (max-width: 760px) { .hero .shape-pill { display: none; } }

/* Language switcher */
.lang-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--navy-50); }
.lang-switch a { display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--navy); transition: background-color .2s, color .2s; }
.lang-switch a:hover { background: var(--white); }
.lang-switch a.current { background: var(--navy); color: var(--yellow); }
@media (max-width: 1180px) { .main-nav { gap: 18px; } .main-nav ul { gap: 16px; } }
@media (max-width: 1020px) { .lang-switch { align-self: flex-start; } .lang-switch a { min-width: 56px; height: 44px; font-size: 15px; } }
.main-nav ul a, .nav-cta { white-space: nowrap; }
@media (max-width: 1480px) and (min-width: 1021px) {
  .brand-sub { display: none; }
  .main-nav { gap: 16px; }
  .main-nav ul { gap: 18px; }
  .main-nav ul a { font-size: 15px; }
  .nav-cta { padding: 0 18px; }
}
@media (max-width: 1180px) and (min-width: 1021px) {
  .main-nav ul li:nth-child(2) { display: none; } /* CEAP link: still reachable from the home page */
}

/* Mobile menu panel: anchored under the header (the header's backdrop-filter makes it the
   containing block, so a fixed panel would be clipped to the header's height). */
@media (max-width: 1020px) {
  .main-nav {
    position: absolute; top: 100%; bottom: auto; left: 0; right: 0;
    height: 75vh; height: 75dvh; max-height: calc(100dvh - var(--header-h));
    border-radius: 0 0 28px 28px;
    box-shadow: 0 30px 60px -20px rgba(7, 29, 69, .45);
  }
}
@media (max-width: 1020px) { .nav-open .float-cta { display: none; } }
