:root {
  --navy: #17244d;
  --navy-deep: #0c1329;
  --blue-block: #264f7b;
  --blue-action: #0067ac;
  --blue-action-hover: #005792;
  --white: #ffffff;
  --surface: #f4f7fb;
  --text: #16243a;
  --text-muted: #526278;
  --divider: #dce4ee;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --error: #9b1c2e;
  --shadow: 0 10px 30px rgba(12, 19, 41, 0.08);
  --radius: 14px;
  --header-height: 4.5rem;
  --container: 1200px;
  --font: "Montserrat", Arial, sans-serif;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

img,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--blue-action);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-action);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--blue-action);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-action-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-on-light {
  background: var(--blue-action);
  color: var(--white);
}

.eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  color: #b7c7db;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-lead {
  max-width: 40rem;
  color: #d5deea;
  font-size: 1.05rem;
  font-weight: 400;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--divider);
  box-shadow: 0 8px 24px rgba(12, 19, 41, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.logo-link {
  flex: 0 0 auto;
}

.brand-logo {
  aspect-ratio: 13 / 8;
  object-fit: cover;
  object-position: center;
}

.logo-link img {
  width: auto;
  height: 52px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.menu-toggle-bars::after {
  position: absolute;
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue-action);
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--blue-action);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
}

.hero-copy {
  padding: 3.25rem 0 2.5rem;
  background: var(--navy);
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.hero-copy p {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: #d9e3f0;
  font-size: 1.05rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-guide {
  margin-top: 1.5rem;
  color: #b7c7db;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  object-position: 62% 12%;
}

.wave {
  display: block;
  height: 4.25rem;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.wave svg {
  width: 100%;
  height: 100%;
}

.wave-on-navy {
  background: var(--navy);
}

.wave-from-deep {
  background: var(--navy-deep);
}

.wave-from-navy {
  background: var(--navy);
}

.exams {
  padding: 3.25rem 0 4rem;
  background: var(--navy);
  color: var(--white);
}

.exams h2,
.pcmso-copy h2,
.about h2,
.contact h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
}

.exams .section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.exam-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.exam-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.4rem 1.35rem 1.15rem;
  border-radius: var(--radius);
  background: var(--blue-block);
  box-shadow: var(--shadow);
}

.exam-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  color: var(--white);
}

.exam-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.exam-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.exam-card p {
  color: #d7e3f0;
  font-size: 0.98rem;
}

.exam-card-ambulance {
  grid-column: 1 / -1;
}

.exam-card-ambulance .exam-icon svg {
  width: 2.5rem;
  height: 2rem;
}

.exam-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.pcmso {
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  color: var(--white);
}

.pcmso-copy {
  padding: 3.25rem 0 2rem;
}

.pcmso-copy .section-lead {
  margin: 1rem 0 1.5rem;
}

.pcmso-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--blue-block);
  box-shadow: var(--shadow);
}

.pcmso-kicker {
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pcmso-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.pcmso-card p {
  color: #d9e4f0;
}

.pcmso-close {
  margin: 1rem 0 0;
  font-weight: 600;
}

.pcmso-copy .btn {
  margin-top: 1.5rem;
}

.pcmso-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.pcmso-photo img {
  width: 100%;
  height: 18.5rem;
  object-fit: cover;
  object-position: 28% 22%;
}

.complementary {
  padding: 2.5rem 0 3.25rem;
  background: var(--surface);
}

.complementary-inner {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.complementary h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
}

.complementary p {
  max-width: 44rem;
  color: var(--text-muted);
}

.about {
  padding: 3.25rem 0 4rem;
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.about-brand {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-brand img {
  width: min(100%, 14rem);
  height: auto;
}

.about h2 {
  color: var(--navy);
}

.about p {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.contact {
  padding: 3.5rem 0 4.25rem;
  background: var(--navy);
  color: var(--white);
}

.contact .section-lead {
  margin: 1rem 0 1.75rem;
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.req {
  margin-left: 0.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

.opt {
  margin-left: 0.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field-note,
.char-count {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 500;
}

.form-help,
.channel-note {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.channel-note {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #eef4fb;
  color: var(--navy);
}

.contact-place {
  display: grid;
  gap: 1rem;
}

.contact-facts {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.contact-facts address {
  font-style: normal;
}

.address-room {
  display: table;
  margin-top: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  background: var(--blue-action);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.address-room:empty {
  display: none;
}

.contact-map {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
  min-height: 16rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 16rem;
  border: 0;
}

.contact-facts dt {
  color: #b7c7db;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-facts dd {
  margin: 0.15rem 0 0;
}

.contact-facts a {
  color: var(--white);
}

.map-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: #d5e6f7;
  font-weight: 600;
}

.site-footer {
  padding: 2.75rem 0 2rem;
  background: var(--white);
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand img {
  width: 9.5rem;
  height: auto;
}

.footer-brand p {
  max-width: 28rem;
  margin-top: 0.9rem;
}

.footer-nav {
  display: grid;
  gap: 0.55rem;
}

.footer-nav a,
.footer-meta a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.footer-meta {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
  font-size: 0.88rem;
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.whatsapp-float:hover {
  background: transparent;
  transform: scale(1.05);
}

.whatsapp-float img {
  width: 56px;
  height: 56px;
}

.js .reveal {
  transform: translateY(12px);
}

.js .reveal.is-visible {
  transform: none;
  transition: transform 400ms ease;
}

@media (min-width: 768px) {
  .logo-link img {
    height: 60px;
  }

  .hero-copy,
  .pcmso-copy,
  .exams,
  .about,
  .contact {
    padding-top: 4.5rem;
  }

  .exams,
  .about,
  .contact {
    padding-bottom: 5.5rem;
  }

  .hero-photo img,
  .pcmso-photo img {
    height: 24rem;
  }

  .exam-grid {
    grid-template-columns: 1fr 1fr;
  }

  .exam-card-ambulance {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr);
    column-gap: 2rem;
    align-items: center;
  }

  .exam-card-ambulance .exam-icon {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .exam-card-ambulance h3 {
    margin-bottom: 0;
  }

  .complementary-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
    padding: 0.5rem 0 1rem;
  }

  .about-grid {
    grid-template-columns: 220px 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 5rem;
  }

  .container {
    width: min(100% - 5rem, var(--container));
  }

  .menu-toggle,
  .js .menu-toggle,
  .header-cta,
  .header-tools {
    display: none;
  }

  .site-nav {
    margin-left: auto;
  }

  .logo-link img {
    height: 64px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(22rem, 0.92fr) 1.08fr;
    min-height: 38rem;
    overflow: hidden;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.5rem 0 5rem;
    background:
      linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 78%, rgba(12, 19, 41, 0.65) 100%);
  }

  .hero-photo {
    min-height: 100%;
  }

  .hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 86% 10%;
  }

  .pcmso {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 36rem;
  }

  .pcmso-photo {
    order: 0;
    min-height: 100%;
  }

  .pcmso-copy {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 0;
  }

  .pcmso-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 22% 18%;
  }

  .exam-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
  }

  .contact-map iframe {
    height: 20rem;
  }
}

@media (max-width: 1023px) {
  .header-cta {
    display: inline-flex;
    min-width: 0;
    padding-inline: 0.9rem;
    font-size: 0.88rem;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .js .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--divider);
  }

  .js .site-nav .btn {
    margin-top: 0.85rem;
    border-bottom: 0;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 399px) {
  .header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .whatsapp-float,
  .whatsapp-float:hover {
    transition: none;
    transform: none;
  }
}

@media print {
  .site-header,
  .whatsapp-float,
  .hero-actions,
  .exam-link,
  .btn {
    box-shadow: none;
  }

  .hero-photo img,
  .pcmso-photo img {
    height: auto;
    position: static;
  }
}
