/* ==========================================================================
   PetroSolutions Panamá — design system
   Tokens mirror the original Elementor kit (kit 5407): navy #0E1454,
   lime #A6CE39, greens, Ubuntu (headings) / Roboto (text) / Oxygen (footer).
   Component reference: COMPONENTS.md
   ========================================================================== */

/* ---------- Fonts (self-hosted latin subsets; Roboto is one variable file for 400–700) ---------- */
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-400.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ubuntu-500.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-700.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/roboto-var.woff2") format("woff2"); }
@font-face { font-family: "Oxygen"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/oxygen-300.woff2") format("woff2"); }
@font-face { font-family: "Oxygen"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/oxygen-400.woff2") format("woff2"); }
@font-face { font-family: "Oxygen"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/oxygen-700.woff2") format("woff2"); }

:root {
  --navy: #0E1454;
  --navy-900: #080B2D;
  --navy-700: #1F1F54;
  --lime: #A6CE39;
  --lime-700: #8DB52A;
  --green: #3AA62B;
  --green-ink: #2A7A20;      /* green text: >= 4.5:1 on white, gray-100 and mint */
  --green-bright: #7ED321;
  --yellow: #FCEF48;
  --mint: #F2FCED;
  --sky: #1CA6DF;
  --gray-50: #F7F8FA;
  --gray-100: #F0F0F0;
  --gray-200: #E1E1E1;
  --gray-500: #7A7A7A;
  --gray-600: #656565;
  --gray-700: #54595F;
  --ink: #333;
  --white: #fff;
  --danger: #B3261E;

  --font-head: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-alt: "Oxygen", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.375rem, 1.55rem + 3.3vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  --fs-h4: clamp(1.125rem, 1rem + .5vw, 1.5rem);
  --fs-h5: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-eyebrow: clamp(.8125rem, .76rem + .22vw, 1rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-small: .875rem;

  --container: 1140px;
  --container-narrow: 840px;
  --gutter: 20px;
  --section-y: clamp(3.5rem, 2rem + 5vw, 6rem);
  --radius: 5px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 10px rgba(14, 20, 84, .07);
  --shadow: 0 10px 30px rgba(14, 20, 84, .12);
  --shadow-lg: 0 22px 50px rgba(8, 11, 45, .20);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.4; }
h5 { font-size: var(--fs-h5); line-height: 1.5; }
h6 { font-size: var(--fs-eyebrow); line-height: 1.6; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--green-ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--green-ink); }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--lime); color: var(--navy); }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .75rem 1.25rem;
  background: var(--navy); color: var(--white); border-radius: var(--radius); font-weight: 500;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide { max-width: calc(1320px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--sm { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--gray { background: var(--gray-100); }
.section--light { background: var(--gray-50); }
.section--mint { background: var(--mint); }
.section--navy { background: var(--navy); color: var(--white); }
/* Dark photo section: set the image with style="--bg: url('/assets/img/x.webp')" */
.section--photo {
  background: var(--navy-900) var(--bg, none) center bottom / cover no-repeat;
  background-blend-mode: overlay;
  color: var(--white);
}
@media (max-width: 800px) { .section--photo { background-image: var(--bg-sm, var(--bg, none)); } }
/* :where() keeps these at class-level specificity so components inside dark sections keep their own colors */
:is(.section--navy, .section--photo) :where(h1, h2, h3, h4, h5) { color: var(--white); }
:is(.section--navy, .section--photo) :where(p, li) { color: var(--mint); }
:is(.section--navy, .section--photo) :where(h6, .eyebrow) { color: var(--lime); }
:is(.section--navy, .section--photo) :where(a:not(.btn)) { color: var(--white); }
:is(.section--navy, .section--photo) :where(a:not(.btn)):hover { color: var(--lime); }
/* Light surfaces placed on dark sections reset to the normal palette (component classes below still win) */
:is(.card, .info-card, .icon-card, .panel, .form) :where(h1, h2, h3, h4, h5) { color: var(--navy); }
:is(.card, .info-card, .icon-card, .panel, .form) :where(p, li) { color: var(--ink); }
:is(.card, .info-card, .icon-card, .panel, .form) :where(h6, .eyebrow) { color: var(--green-ink); }
:is(.card, .info-card, .icon-card, .panel, .form) :where(a:not(.btn)) { color: var(--navy); }

.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 1.2rem + 3vw, 3.5rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--grid-gap, clamp(1.25rem, .8rem + 1.5vw, 1.875rem)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
:where(ul, ol).grid, .list-reset { margin: 0; padding: 0; list-style: none; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.split--60-40 { grid-template-columns: 3fr 2fr; }
.split--40-60 { grid-template-columns: 2fr 3fr; }
.split__body > :last-child { margin-bottom: 0; }

.media-cover { width: 100%; height: var(--h, clamp(260px, 38vw, 550px)); object-fit: cover; border-radius: var(--radius); }
.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border: 3px solid var(--lime); border-radius: var(--radius);
}
.media-frame--left::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.media-frame { isolation: isolate; }
.img-contain { width: 100%; max-width: var(--max, 540px); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: block; margin: 0 0 .75rem; font-family: var(--font-head); font-size: var(--fs-eyebrow);
  font-weight: 500; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink);
}
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--gray-700); text-wrap: pretty; }
.muted { color: var(--gray-600); }
:is(.section--navy, .section--photo, .page-hero, .cta-band, .panel--navy, .tile, .surface-dark) .lead { color: rgba(255, 255, 255, .88); }
.heading-bar::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: .55em; border-radius: 2px; background: var(--lime);
}
.text-center .heading-bar::after, .heading-bar.text-center::after, .section-head:not(.section-head--left) .heading-bar::after { margin-inline: auto; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.measure { max-width: 65ch; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.mb-lg { margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.9em; border: 2px solid transparent; border-radius: var(--radius);
  font: 500 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 20, 84, .18); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--lime); color: var(--navy); }
.btn--accent { background: var(--lime); color: var(--navy); }
.btn--accent:hover { background: var(--navy); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--lime); color: var(--navy); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--whatsapp { background: #25D366; color: #073B1C; }
.btn--whatsapp:hover { background: #1EBE5A; color: #04230F; }
.btn--sm { padding: .65em 1.3em; font-size: .9375rem; }
.btn--lg { padding: 1.1em 2.3em; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.text-center .btn-row, .btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow::after { content: "→"; content: "→" / ""; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cards ---------- */
.icon-card {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  padding: 50px 40px; border-radius: var(--radius); background: var(--white); color: var(--gray-600);
  text-align: center; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.icon-card__icon { width: 60px; height: 60px; margin-bottom: 1.4rem; color: var(--lime); fill: currentColor; transition: color .35s var(--ease); }
.icon-card__icon svg { width: 100%; height: 100%; fill: currentColor; }
.icon-card__title { margin-bottom: .6rem; font-size: var(--fs-h4); color: var(--navy); transition: color .35s var(--ease); }
.icon-card__text { margin: 0; color: var(--gray-600); }
.icon-card__more { margin-top: auto; padding-top: 1.25rem; font-weight: 600; color: var(--navy); }
a.icon-card:hover { color: var(--gray-600); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.icon-card:hover .icon-card__icon { color: var(--navy); }
a.icon-card:hover .icon-card__title { color: var(--green-ink); }

.card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card__media { overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; transition: transform .6s var(--ease); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: .7rem; padding: clamp(1.4rem, 1rem + 1vw, 2rem); }
.card__body > * { margin: 0; }
.card__title { font-size: var(--fs-h4); }
.card__actions { margin-top: auto; padding-top: .6rem; }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card--hover:hover .card__media img { transform: scale(1.05); }

.info-card {
  height: 100%; padding: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem) clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  border-top: 4px solid var(--lime); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
}
.info-card > :last-child { margin-bottom: 0; }
.info-card__label { display: block; margin-bottom: .6rem; font: 700 var(--fs-h4)/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }

.panel { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.panel--navy { background: var(--navy); color: var(--white); box-shadow: none; }
.panel--navy :is(h2, h3, h4, h5) { color: var(--white); }
.panel--navy :where(p, li) { color: rgba(255, 255, 255, .88); }
.panel--navy :where(h6, .eyebrow) { color: var(--lime); }
.panel--navy a:not(.btn) { color: var(--white); }
.panel--navy a:not(.btn):hover { color: var(--lime); }

/* Photo tile with overlay text (Sectores de servicio) */
.tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: var(--tile-h, 380px); overflow: hidden; border-radius: var(--radius); color: var(--white);
  background: var(--navy-900);
}
.tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 11, 45, .15) 0%, rgba(8, 11, 45, .55) 45%, rgba(8, 11, 45, .92) 100%);
  transition: background-color .4s;
}
.tile__body { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.tile__body > :last-child { margin-bottom: 0; }
.tile :is(h2, h3, h4) { color: var(--white); }
.tile p { color: rgba(255, 255, 255, .88); }
.tile:hover .tile__img, .tile:focus-within .tile__img { transform: scale(1.06); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(4rem, 2rem + 8vw, 8.5rem);
  background: var(--navy-900); color: var(--white);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(8, 11, 45, .94) 0%, rgba(14, 20, 84, .8) 48%, rgba(14, 20, 84, .35) 100%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--lime), var(--green) 60%, var(--sky));
}
.page-hero h1 { max-width: 18ch; margin: 0; color: var(--white); }
.page-hero .eyebrow, .page-hero h6 { color: var(--lime); }
.page-hero .lead { max-width: 60ch; margin-top: 1.1rem; color: rgba(255, 255, 255, .88); }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center::before { background: linear-gradient(180deg, rgba(8, 11, 45, .78), rgba(14, 20, 84, .88)); }
.page-hero--compact { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: var(--fs-small); color: rgba(255, 255, 255, .75); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.page-hero--center .breadcrumb { justify-content: center; }

/* ---------- Lists & features ---------- */
.check-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230E1454' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }

.feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature__icon {
  display: grid; flex: 0 0 auto; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--lime); color: var(--navy);
}
.feature__icon svg { width: 30px; height: 30px; fill: currentColor; }
.feature__title { margin-bottom: .35rem; font-size: var(--fs-h5); }
.feature__body > :last-child { margin-bottom: 0; }
.feature--stacked { flex-direction: column; align-items: center; text-align: center; }

.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pill-list li { padding: .45rem .95rem; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); font-size: .9375rem; color: var(--navy); }

.stat { text-align: center; }
.stat__num { display: block; font: 700 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-head); color: var(--lime); }
.stat__label { display: block; margin-top: .5rem; color: inherit; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: clamp(2rem, 1rem + 4vw, 3.5rem); border-radius: var(--radius-lg);
  background: var(--navy); color: var(--white);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 380px; height: 380px;
  border: 38px solid rgba(166, 206, 57, .16); border-radius: 50%;
}
.cta-band :is(h2, h3) { margin-bottom: .4rem; color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* ---------- Tabs ---------- */
.tabs { display: grid; grid-template-columns: minmax(220px, 290px) 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.tabs__list { display: flex; flex-direction: column; gap: .5rem; }
.tabs__tab {
  padding: 1rem 1.25rem; border: 0; border-left: 4px solid transparent; border-radius: var(--radius);
  background: var(--gray-100); color: var(--ink); font: 600 1rem/1.3 var(--font-body); text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tabs__tab:hover { background: var(--mint); color: var(--navy); }
.tabs__tab[aria-selected="true"] { background: var(--lime); color: var(--navy); border-left-color: var(--navy); }
.tabs__panel > :last-child { margin-bottom: 0; }
.tabs__panel:focus-visible { outline-offset: 6px; }
.no-js .tabs { display: block; }
.no-js .tabs__list { display: none; }
.no-js .tabs__panel + .tabs__panel { margin-top: 2.5rem; }
.no-anim .tabs:not([data-tabs-ready]) { display: block; }
.no-anim .tabs:not([data-tabs-ready]) .tabs__list { display: none; }
.no-anim .tabs:not([data-tabs-ready]) .tabs__panel + .tabs__panel { margin-top: 2.5rem; }

/* ---------- Accordion (details/summary) ---------- */
.accordion { border-top: 1px solid var(--gray-200); }
.accordion details { border-bottom: 1px solid var(--gray-200); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem .25rem;
  font: 600 var(--fs-h5)/1.4 var(--font-head); color: var(--navy); cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green-ink); transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 .25rem 1.25rem; }

/* ---------- Long-form text (policies) ---------- */
.prose { max-width: 78ch; font-size: 1.0625rem; line-height: 1.75; }
.prose.mx-auto { margin-inline: auto; }
.prose :is(h2, h3, h4) { margin-top: 2em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--fs-h3); }
.prose h3 { font-size: var(--fs-h4); }
.prose :is(ul, ol) { margin: 0 0 1.25em; padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--navy); }
.prose a { color: var(--green-ink); }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 4px solid var(--lime); background: var(--mint); color: var(--navy); }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: .6rem; font-size: var(--fs-small); color: var(--gray-600); text-align: center; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose .check-list { padding-left: 0; }
.prose .check-list li { margin: 0; }

/* ---------- Logos, gallery, lightbox ---------- */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.logo-strip img { width: auto; max-width: 180px; max-height: 80px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logo-strip img:hover { filter: none; opacity: 1; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 240px)), 1fr)); gap: .75rem; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }

.lightbox { max-width: min(94vw, 1200px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 11, 45, .92); }
.lightbox__img { max-width: 100%; max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox__figure { margin: 0; }
/* The caption carries its own dark background: the dialog itself is transparent, so without it the white text
   would sit on the page (not the ::backdrop) for anything that ignores the backdrop, e.g. contrast checkers. */
.lightbox__caption {
  width: fit-content; max-width: 100%; margin: .75rem auto 0; padding: .35rem .9rem; border-radius: var(--radius);
  background: var(--navy-900); color: var(--white); text-align: center;
}
.lightbox__caption:empty { display: none; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover { background: var(--lime); color: var(--navy); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact details ---------- */
.contact-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; margin-top: .2em; fill: var(--lime); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.social--dark .social__link { color: var(--navy); background: var(--mint); }
.social--dark .social__link:hover { color: var(--navy); background: var(--lime); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field[hidden] { display: none; }
.js form:not([data-ready]) [data-show-if] { display: none; }
.no-anim form:not([data-ready]) [data-show-if] { display: grid; }
.field > label, .field > legend, .field__label { padding: 0; font-weight: 500; font-size: .95rem; color: var(--navy); }
.field .req { color: var(--danger); }
.field__hint { font-size: var(--fs-small); color: var(--gray-600); }
.input, .select, .textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid #C9CED8; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.select {
  appearance: none; padding-right: 2.75rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E1454' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 1rem center / 12px no-repeat;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(14, 20, 84, .35); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: var(--fs-small); color: var(--danger); }
.choice-group { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.choice { display: inline-flex; gap: .55rem; align-items: center; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--navy); }
.form__status { display: none; padding: 1rem 1.25rem; border-radius: var(--radius); }
.form__status[data-state="success"] { display: block; border: 1px solid var(--lime); background: var(--mint); color: #1D5A14; }
.form__status[data-state="error"] { display: block; border: 1px solid #F5C2BD; background: #FDECEA; color: #8A1C14; }
.form__note { font-size: var(--fs-small); color: var(--gray-600); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dark surfaces (after components so equal-specificity rules resolve here) ---------- */
:is(.section--navy, .section--photo, .page-hero, .cta-band, .panel--navy, .tile, .surface-dark) :is(.eyebrow, h6) { color: var(--lime); }
:is(.section--navy, .section--photo, .page-hero, .cta-band, .panel--navy, .tile, .surface-dark) .link-arrow { color: var(--white); }
:is(.section--navy, .section--photo, .page-hero, .cta-band, .panel--navy, .tile, .surface-dark, .site-footer, .lightbox) :focus-visible,
:is(.section--navy, .section--photo, .page-hero, .cta-band, .panel--navy, .tile, .surface-dark, .site-footer, .lightbox):focus-visible { outline-color: var(--lime); }
:is(.card, .info-card, .icon-card, .panel:not(.panel--navy), .form) :focus-visible { outline-color: var(--navy); }
/* …but white cards/panels placed on those dark surfaces keep the light-surface colours */
:is(.card, .info-card, .icon-card, .panel:not(.panel--navy), .form) :is(.eyebrow, h6) { color: var(--green-ink); }
:is(.card, .info-card, .icon-card, .panel:not(.panel--navy), .form) .link-arrow { color: var(--navy); }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 rgba(14, 20, 84, .06); transition: box-shadow .3s; }
.site-header[data-scrolled] { box-shadow: 0 6px 24px rgba(14, 20, 84, .1); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.site-header__logo { flex: none; padding: 5px 0; }
.site-header__logo img { width: 160px; height: auto; }
.site-header__cta { flex: none; }
.site-nav { display: flex; flex: 1; justify-content: center; }
.site-nav__head, .site-nav__cta, .site-nav__backdrop { display: none; }
.nav { display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 15px;
  border: 0; background: none; color: var(--navy); font: 700 .95rem/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.nav__link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: .2rem; height: 3px; border-radius: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__item[data-current] > .nav__link::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__chevron { transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 10; min-width: 250px; margin: 0; padding: 12px 0; list-style: none;
  border-top: 3px solid var(--lime); border-radius: 0 0 var(--radius) var(--radius); background: var(--white); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav__trigger[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sublink { display: block; padding: .8rem 1.4rem; color: var(--navy); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background-color .2s; }
.nav__sublink:hover, .nav__sublink[aria-current="page"] { background: var(--lime); color: var(--navy); }
.nav-toggle {
  display: none; place-items: center; width: 45px; height: 45px; margin-left: auto; padding: 0;
  border: 0; border-radius: 3px; background: var(--lime); color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s;
}
.nav-toggle:hover { background: var(--navy); color: var(--white); }

@media (min-width: 1025px) {
  /* data-dismissed: Escape hides a hover-opened menu until the pointer leaves (main.js, WCAG 1.4.13) */
  .nav__item--has-sub:hover:not([data-dismissed]) > .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--has-sub:hover:not([data-dismissed]) .nav__chevron { transform: rotate(180deg); }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .site-header__inner { gap: .75rem; }
  .site-header__logo img { width: 130px; }
  .nav__link { padding-inline: 9px; font-size: .875rem; }
  .nav__link::after { left: 9px; right: 9px; }
  .site-header__cta { padding: .8em 1.2em; font-size: .9rem; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: grid; }
  .site-header__cta { margin-left: auto; }
  .site-header__cta + .nav-toggle { margin-left: 0; }
  .site-nav {
    position: fixed; inset: 0 auto 0 0; z-index: 120; flex-direction: column; justify-content: flex-start;
    width: min(350px, 88vw); overflow-y: auto; padding-bottom: 2rem; background: var(--white);
    box-shadow: var(--shadow-lg); transform: translateX(-105%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .site-nav[data-open] { transform: none; visibility: visible; }
  .site-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--gray-200); }
  .site-nav__close {
    display: grid; place-items: center; width: 45px; height: 45px; border: 0; border-radius: 3px;
    background: var(--lime); color: var(--navy); cursor: pointer;
  }
  .site-nav__close:hover { background: var(--navy); color: var(--white); }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { justify-content: space-between; width: 100%; padding: 15px 20px; border-bottom: 1px solid var(--gray-100); font-size: 1rem; white-space: normal; text-align: left; }
  .nav__link::after { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; transform: scaleY(0); }
  .nav__link:hover::after, .nav__item[data-current] > .nav__link::after, .nav__link[aria-current="page"]::after { transform: scaleY(1); }
  .nav__sub { position: static; display: none; min-width: 0; padding: 0; border: 0; border-radius: 0; background: var(--gray-50); box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__trigger[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__sublink { padding: 13px 20px 13px 34px; border-bottom: 1px solid var(--gray-100); }
  .site-nav__cta { display: flex; margin: 1.5rem 20px 0; }
  .site-nav__backdrop { position: fixed; inset: 0; z-index: 110; display: block; background: rgba(8, 11, 45, .55); }
  .site-nav__backdrop[hidden] { display: none; }
  body[data-nav-open] { overflow: hidden; }
  body[data-nav-open] .nav-toggle { visibility: hidden; }
}
@media (max-width: 767px) {
  :root { --header-h: 70px; }
  .site-header__cta { display: none; }
  .site-header__cta + .nav-toggle { margin-left: auto; }
  .site-header__logo img { width: 120px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 5em 0 2em; background: var(--navy); color: var(--white); font-family: var(--font-alt); }
.site-footer__top { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-bottom: 2.5rem; text-align: center; }
.site-footer__logo img { width: 213px; }
.social { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.social__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); }
.social__link svg { width: 21px; height: 21px; fill: currentColor; }
.social__link:hover { color: var(--lime); }
.hover-float { transition: transform .3s var(--ease), color .3s, background-color .3s; }
.hover-float:hover, .hover-float:focus-visible { transform: translateY(-8px); }
.site-footer__tagline { margin: 0; font-size: 15px; font-weight: 700; }
.site-footer__bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center;
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 300;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
.site-footer__star { width: 21px; height: 21px; fill: var(--white); }
.site-footer__copy { margin: 0; text-align: right; }

/* ---------- WhatsApp button ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.wa__button {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  animation: wa-in .5s var(--ease) 2s backwards; transition: transform .25s var(--ease), box-shadow .25s;
}
.wa__button:hover { transform: scale(1.08); color: var(--white); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.wa__button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 7px var(--navy), 0 6px 20px rgba(0, 0, 0, .25); }
.wa__tip {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: 250px; padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
  font-size: .875rem; line-height: 1.45; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s;
}
.wa__tip::after { content: ""; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px; background: var(--white); transform: rotate(45deg); }
.wa__qr { width: 132px; height: 132px; margin: 0 auto .7rem; }
.wa__tip p { margin: 0; }
/* The tip stays open while the pointer moves onto it (::before bridges the gap) and Escape hides it
   (main.js sets data-dismissed until the pointer leaves / focus moves on) — WCAG 1.4.13. */
.wa__tip::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
@media (hover: hover) and (min-width: 768px) {
  .wa__button:hover + .wa__tip, .wa__button:focus-visible + .wa__tip, .wa__tip:hover { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .wa[data-dismissed] .wa__tip { opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; }
}
@keyframes wa-in { from { opacity: 0; transform: scale(.4) translateY(20px); } }

/* ---------- Scroll animations (Animate.css equivalents) ---------- */
.js [data-animate]:not(.is-in) { opacity: 0; }
[data-animate].is-in { animation-duration: 1.25s; animation-timing-function: var(--ease); animation-fill-mode: both; }
[data-animate="fade-in"].is-in { animation-name: fadeIn; }
[data-animate="fade-in-up"].is-in { animation-name: fadeInUp; }
[data-animate="fade-in-down"].is-in { animation-name: fadeInDown; }
[data-animate="fade-in-left"].is-in { animation-name: fadeInLeft; }
[data-animate="fade-in-right"].is-in { animation-name: fadeInRight; }
[data-animate="zoom-in"].is-in { animation-name: zoomIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 60px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -60px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-80px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(80px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.85, .85, .85); } to { opacity: 1; transform: none; } }
.no-anim [data-animate] { opacity: 1 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-animate]:not(.is-in) { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split, .split--60-40, .split--40-60 { grid-template-columns: minmax(0, 1fr); }
  .split__body > :is(p, ol, ul:not([role="list"])) { max-width: 70ch; text-wrap: pretty; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tabs__list { flex-direction: row; flex-wrap: wrap; }
  .tabs__tab { flex: 1 1 auto; border-left: 0; border-bottom: 4px solid transparent; text-align: center; }
  .tabs__tab[aria-selected="true"] { border-bottom-color: var(--navy); }
  .media-frame::before { display: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .icon-card { padding: 36px 22px; }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4, .form__row, .check-list--2col { grid-template-columns: minmax(0, 1fr); }
  .page-hero::before { background: linear-gradient(180deg, rgba(8, 11, 45, .9), rgba(14, 20, 84, .8)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta-band .btn-row { justify-content: center; }
  .icon-card { padding: 40px 28px; }
  .site-footer { padding-top: 3.5em; }
  .site-footer__bottom { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .site-footer__copy { text-align: center; }
  .wa { right: 16px; bottom: 16px; }
  .wa__button { width: 56px; height: 56px; }
}

@media print {
  .site-header, .site-footer, .wa, .skip-link { display: none !important; }
  .js [data-animate] { opacity: 1 !important; animation: none !important; }
  a { color: inherit; }
}
