/* Hospital Saúde dos Olhos — landing page
   Static conversion of the original bundled export. Values mirror the original
   inline styles; responsive / accessibility additions are commented. */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations'),
       url(../fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'),
       url(../fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/marcellus-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/marcellus-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/yellowtail-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/yellowtail-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0B2C44;
  --navy: #134769;
  --ink: #0E2A3D;
  --teal: #0A7686;
  --teal-bright: #119DB0;
  --aqua: #5CC6D4;
  --muted: #4A6476;
  --soft: #F4F9FA;
  --white: #FFFFFF;
  --line: #E3EEF1;
  --line-2: #D6E6EA;
  --on-dark: #CFE3EA;
  --topbar-text: #DCEBF0;
  --footer-muted: #A9C5D0;

  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-serif: 'Marcellus', serif;
  --font-script: 'Yellowtail', cursive;

  --focus: var(--teal);
  --focus-on-dark: var(--aqua);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden; /* original wrapper used overflow-x: hidden for the decorative rings */
}
img, svg { max-width: 100%; }
img { height: auto; }
picture { display: contents; } /* keep the original layout: the <img> behaves as the direct child */
picture > source { display: none; } /* otherwise <source> becomes an empty grid/flex item */
a { color: var(--navy); }
a:hover { color: var(--teal); }
h1, h2, h3 { font-weight: 400; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.icon { flex: none; }
.script { font-family: var(--font-script); }

/* Accessibility: visible focus that fits the palette */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--focus-on-dark); }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:focus, .skip-link:hover { color: var(--white); } /* beat global a:hover (teal on navy fails contrast) */

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; border-radius: 999px; font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-900); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--ghost.btn--lg { padding: 17px 28px; }
.btn--xl { display: flex; justify-content: center; gap: 12px; padding: 20px 28px; font-size: 17px; }
.btn--light { background: var(--aqua); color: var(--navy-900); font-weight: 800; }
.btn--light:hover { background: var(--white); color: var(--navy-900); }
.btn--ghost-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); padding: 19px 28px; }
.btn--ghost-light:hover { background: var(--navy); color: var(--white); border-color: var(--white); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: var(--topbar-text); font-size: 13px; letter-spacing: .02em; }
.topbar__inner {
  padding-top: 10px; padding-bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center;
}
.topbar__item { display: flex; align-items: center; gap: 8px; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar__phone, .topbar__phone:hover { color: var(--white); font-weight: 700; text-decoration: none; }
/* Accessibility: >=44px tap target without changing the bar height */
.topbar__phone { position: relative; }
.topbar__phone::after { content: ""; position: absolute; inset: -13px -8px; }
.topbar__phone:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__logo { width: 64px; height: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__kicker { font-family: var(--font-serif); font-size: 12px; letter-spacing: .32em; color: var(--teal); }
.brand__name { font-family: var(--font-serif); font-size: 22px; letter-spacing: .06em; margin-top: 4px; }

.nav-menu { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; font-size: 15px; font-weight: 600; }
.nav-link { color: var(--ink); text-decoration: none; padding: 10px 0; transition: color .2s; }
.nav-link:hover { color: var(--teal); }
/* Current page (subpages): teal text + underline, not colour alone */
.nav-link[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-cta { padding: 14px 24px; }

/* Toggle is only shown when JS is available (progressive enhancement) */
.nav-toggle { display: none; }

@media (max-width: 1099px) {
  .js .nav { flex-wrap: wrap; row-gap: 0; column-gap: 12px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0; margin-right: -8px;
    border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer;
  }
  .js .nav-toggle:hover { background: var(--soft); }
  .js .nav-toggle__close { display: none; }
  .js .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .js .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

  .js .nav-menu { display: none; }
  .js .nav-menu.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    flex: 1 0 100%; padding: 8px 0 8px; margin-top: 12px; border-top: 1px solid var(--line);
  }
  .js .nav-menu.is-open .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .js .nav-menu.is-open .nav-cta { justify-content: center; margin-top: 16px; }
}
/* Narrow phones: slightly smaller lockup so logo + menu button share one row */
@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand__logo { width: 52px; }
  .brand__name { font-size: 19px; }
}
/* Very narrow phones (<360px): keep the menu button on the logo row */
@media (max-width: 359px) {
  .brand { gap: 8px; }
  .brand__logo { width: 44px; }
  .brand__name { font-size: 17px; }
  .js .nav-toggle { width: 44px; height: 44px; }
}

/* ---------- Shared section pieces ---------- */
.section { background: var(--white); }
.section--soft { background: var(--soft); }
.section__pad { padding-top: 112px; padding-bottom: 112px; }

.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .28em; color: var(--teal); }
.eyebrow--on-dark { color: var(--aqua); }

.h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; color: var(--navy); }
.h2--xl { font-size: clamp(36px, 4vw, 54px); line-height: 1.1; }
.h2--lg { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.12; }
.h2--on-dark { color: var(--white); }

.lead { margin: 24px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.lead--on-dark { color: var(--on-dark); }

.section-head {
  display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between;
}
.section-head__title { flex: 1 1 520px; min-width: 0; }
.section-head__text { flex: 1 1 360px; margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.section-head--specialties { margin-bottom: 56px; }
.section-head--units { margin-bottom: 48px; }
.section-head--team { margin: 96px 0 40px; }

.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split__media { flex: 1 1 460px; min-width: 0; }
.split__copy { flex: 1 1 440px; min-width: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--soft); overflow: hidden; }
.hero__rings { position: absolute; right: -220px; top: -160px; width: 900px; height: 900px; max-width: none; opacity: .55; }
.hero__inner {
  position: relative; padding-top: 88px; padding-bottom: 104px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero__copy { flex: 1 1 480px; min-width: 0; }
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  line-height: 1.02; color: var(--navy); letter-spacing: -.01em;
  /* = clamp(48px, 6.4vw, 88px), written as steps so static analysis sees the large-text size */
  font-size: 48px;
}
@media (min-width: 750px) { .hero__title { font-size: 6.4vw; } }
@media (min-width: 1375px) { .hero__title { font-size: 88px; } }
.hero__script { color: var(--teal-bright); font-size: 1.12em; padding: 0 .04em; }
.hero__lead { margin: 28px 0 0; font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__facts {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; font-weight: 600; color: var(--navy);
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }

.hero__media { flex: 1 1 420px; min-width: 0; max-width: 560px; position: relative; height: 600px; margin: 0 auto; }
.hero__img-main {
  position: absolute; right: 0; top: 0; width: 78%; height: 88%;
  object-fit: cover; object-position: center 30%;
  border-radius: 260px 20px 260px 20px; box-shadow: 0 30px 60px rgba(11,44,68,.18);
}
.hero__img-secondary {
  position: absolute; left: 0; bottom: 0; width: 42%; height: 44%;
  object-fit: cover; border-radius: 20px 160px 20px 160px;
  border: 8px solid var(--soft); box-shadow: 0 20px 40px rgba(11,44,68,.18);
}
.hero__badge {
  position: absolute; right: 4%; bottom: 2%;
  background: var(--white); border-radius: 20px; padding: 18px 22px;
  box-shadow: 0 18px 40px rgba(11,44,68,.14);
  display: flex; align-items: center; gap: 14px;
}
.hero__badge-value { font-family: var(--font-serif); font-size: 38px; color: var(--navy); line-height: 1; }
.hero__badge-label { font-size: 13px; line-height: 1.35; color: var(--muted); font-weight: 600; }

/* ---------- Numbers ---------- */
.stats { background: var(--navy); color: var(--white); }
.stats__grid {
  padding-top: 56px; padding-bottom: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.stat { border-left: 1px solid rgba(255,255,255,.22); padding-left: 24px; }
.stat__value { font-family: var(--font-serif); font-size: 52px; line-height: 1; }
.stat__label { margin-top: 10px; font-size: 15px; color: var(--on-dark); }

/* ---------- Specialties ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
/* Cards are informational (not links): no hover lift / pointer affordance. */
.spec-card { background: var(--soft); border-radius: 24px; padding: 32px 28px; scroll-margin-top: 24px; }
.spec-card:target { box-shadow: 0 0 0 2px var(--teal); }
.spec-card__num { font-family: var(--font-serif); font-size: 15px; color: var(--teal); }
.spec-card__title { margin: 18px 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: 26px; color: var(--navy); }
.spec-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.spec-card__link { position: relative; display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--teal); }
/* Invisible hit-area extension (19px text → ≥44px target) without changing layout */
.spec-card__link::after { content: ""; position: absolute; inset: -13px -8px; }

/* ---------- Surgical center ---------- */
.surgery { position: relative; }
.surgery__img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px 280px 28px 28px; display: block; }
.surgery__note {
  position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 360px;
  background: rgba(11,44,68,.92); color: var(--white); border-radius: 18px; padding: 20px 22px;
}
.surgery__note-kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--aqua); }
.surgery__note-text { margin-top: 8px; font-size: 15px; line-height: 1.55; }

.check-list {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px;
  font-size: 15px; font-weight: 600; color: var(--navy);
}
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { margin-top: 1px; }

/* ---------- Safety ---------- */
.safety { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.safety__mark { position: absolute; right: -120px; bottom: -90px; width: 620px; max-width: none; opacity: .06; }
.safety__inner { position: relative; }
.safety__intro { max-width: 760px; }
.safety__panel {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 32px;
  /* = clamp(32px, 5vw, 64px), written as steps so static analysis can resolve it */
  padding: 32px;
}
@media (min-width: 640px) { .safety__panel { padding: 5vw; } }
@media (min-width: 1280px) { .safety__panel { padding: 64px; } }
.safety__figure { flex: 0 1 auto; min-width: 0; }
.safety__value { font-family: var(--font-serif); font-size: clamp(96px, 13vw, 180px); line-height: .9; letter-spacing: -.02em; }
.safety__label { margin-top: 18px; font-size: 15px; font-weight: 700; letter-spacing: .3em; color: var(--aqua); }
.safety__detail { flex: 1 1 320px; min-width: 0; border-left: 1px solid rgba(255,255,255,.18); padding-left: 32px; }
.safety__statement { margin: 0; font-family: var(--font-serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--white); }
.safety__source { margin: 18px 0 0; font-size: 15px; line-height: 1.65; color: var(--on-dark); }

/* ---------- Technology ---------- */
.equipment-list {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px;
  font-size: 15px; color: var(--ink);
}
.equipment-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }

.tech-gallery { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tech-gallery__img { width: 100%; object-fit: cover; border-radius: 20px; display: block; }
.tech-gallery__img--tall { height: 340px; }
.tech-gallery__img--short { height: 220px; }
.tech-gallery__img--offset { margin-top: 48px; }
.tech-gallery__img--arch-top { border-radius: 160px 160px 20px 20px; }
.tech-gallery__img--arch-bottom { border-radius: 20px 20px 160px 160px; }

/* ---------- Team ---------- */
.director {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
  background: var(--white); border-radius: 32px; box-shadow: 0 20px 50px rgba(19,71,105,.08);
  /* = clamp(24px, 4vw, 40px), written as steps so static analysis can resolve it */
  padding: 24px;
}
@media (min-width: 600px) { .director { padding: 4vw; } }
@media (min-width: 1000px) { .director { padding: 40px; } }
.director__img {
  flex: 0 0 auto; width: 280px; max-width: 100%; height: 320px;
  object-fit: cover; object-position: center top; border-radius: 160px 160px 24px 24px; display: block;
}
.director__body { flex: 1 1 380px; min-width: 0; }
.director__eyebrow { margin-bottom: 14px; }
.director__name { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; }
.director__role { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.director__quote { margin: 22px 0 0; }
.director__quote p { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 1.45; color: var(--ink); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.doctor { margin: 0; }
.doctor__img { width: 100%; height: 320px; object-fit: cover; object-position: center top; border-radius: 20px; display: block; }
.doctor__caption { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--navy); }

/* ---------- Welcome / experience ---------- */
.kpi-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.kpi { border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; }
.kpi__value { font-family: var(--font-serif); font-size: 40px; line-height: 1; color: var(--navy); }
.kpi__label { margin-top: 10px; font-size: 14px; color: var(--muted); }
.welcome__img {
  width: 100%; height: 520px; object-fit: cover; object-position: center 20%;
  border-radius: 280px 28px 280px 28px; display: block;
}

/* ---------- Essence ---------- */
.essence { background: var(--soft); }
.essence__inner { max-width: 980px; margin: 0 auto; padding: 104px 24px; text-align: center; }
.essence__logo { width: 96px; height: auto; display: block; margin: 0 auto; }
.essence__statement { margin: 32px 0 0; font-family: var(--font-serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; color: var(--navy); }
.essence__script { margin: 20px 0 0; font-size: 34px; color: var(--teal); }
.values { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.values li {
  background: var(--white); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--navy);
}

/* ---------- Units ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
/* Informational cards (not links): no hover lift. */
.unit { background: var(--soft); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.unit__img { width: 100%; height: 240px; object-fit: cover; display: block; }
.unit__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 30px 28px 32px; }
.unit__kicker { font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--teal); }
.unit__name { margin: 10px 0 6px; font-family: var(--font-serif); font-weight: 400; font-size: 32px; color: var(--navy); }
.unit__area { margin: 0; font-size: 15px; color: var(--muted); }
.unit__desc { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
/* Address + opening hours sit at the bottom so they line up across cards */
.unit__meta { margin-top: auto; padding-top: 18px; }
.unit__address { margin: 0; font-size: 14px; color: var(--muted); }
.unit__hours { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.unit__address, .unit__hours { text-wrap: pretty; }
.unit--main { background: var(--navy); color: var(--white); }
.unit--main .unit__kicker { color: var(--aqua); }
.unit--main .unit__name { color: var(--white); }
.unit--main .unit__area, .unit--main .unit__address, .unit--main .unit__hours { color: var(--on-dark); }
.unit--main .unit__desc { color: var(--white); }

/* ---------- CTA ---------- */
.cta { background: var(--white); padding: 0 24px 112px; }
.cta__box { max-width: 1240px; margin: 0 auto; background: var(--navy); border-radius: 40px; overflow: hidden; position: relative; }
.cta__rings { position: absolute; left: -260px; top: -300px; width: 820px; height: 820px; max-width: none; opacity: .14; }
.cta__inner {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between;
  /* = clamp(48px, 6vw, 88px) clamp(28px, 6vw, 88px), written as steps so static analysis can resolve it */
  padding: 48px 28px;
}
@media (min-width: 466.67px) { .cta__inner { padding: 48px 6vw; } }
@media (min-width: 800px) { .cta__inner { padding: 6vw; } }
@media (min-width: 1466.67px) { .cta__inner { padding: 88px; } }
.cta__copy { flex: 1 1 520px; min-width: 0; color: var(--white); }
.cta__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.08; }
.cta__script { color: var(--aqua); font-size: 1.1em; }
.cta__text { margin: 22px 0 0; font-size: 18px; line-height: 1.65; color: var(--on-dark); max-width: 520px; }
.cta__actions { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark); }
.footer__top { padding-top: 72px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer__about { flex: 1 1 280px; min-width: 0; }
.footer__logo { width: 220px; height: auto; display: block; }
.footer__text { margin: 24px 0 0; font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer__col { min-width: 0; }
.footer__col--nav { flex: 0 1 220px; }
.footer__col--contact { flex: 0 1 280px; }
.footer__heading { font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--aqua); }
.footer__list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__list a { color: var(--white); text-decoration: none; position: relative; }
.footer__list a::after { content: ""; position: absolute; inset: -5px 0; }
.footer__list a:hover { color: var(--white); text-decoration: underline; }
.footer__phone { font-weight: 700; }
.footer__bottom {
  padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 13px; color: var(--footer-muted);
}

/* =============================================================================
   Page: /cirurgia-refrativa/  (page-specific rules, prefix .rfx-)
   Everything else on that page reuses the landing classes above.
   ============================================================================= */

/* Breadcrumb (sits on the hero background) */
.rfx-crumbs-wrap { position: relative; padding-top: 20px; }
.rfx-crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.rfx-crumbs__list li { display: flex; align-items: center; }
.rfx-crumbs__list li + li::before { content: "›" / ""; margin: 0 10px; color: var(--teal); }
.rfx-crumbs__list a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--navy); }
.rfx-crumbs__list a:hover { color: var(--teal); }

/* Hero */
.rfx-hero__inner { padding-top: 32px; }
.rfx-hero__title { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.08; }
.rfx-hero__media { flex: 1 1 340px; min-width: 0; max-width: 431px; margin: 0 auto; position: relative; isolation: isolate; }
/* Soft offset shape behind the photo, echoing the landing's organic frames */
.rfx-hero__media::before {
  content: ""; position: absolute; z-index: -1; inset: 10% -7% -5% 14%;
  border-radius: 20px 220px 20px 220px; background: linear-gradient(160deg, #CFE6EB, #BFDEE5);
}
/* Native photo is 431x1048: never wider than 431px (no upscaling); cropped with object-fit */
.rfx-hero__img {
  display: block; width: 100%; height: auto; aspect-ratio: 431 / 600;
  object-fit: cover; object-position: 50% 38%;
  border-radius: 20px 220px 20px 220px; box-shadow: 0 30px 60px rgba(11,44,68,.18);
}
@media (max-width: 599px) {
  .rfx-hero__img { aspect-ratio: 431 / 500; border-radius: 20px 160px 20px 160px; }
  .rfx-hero__media::before { border-radius: 20px 160px 20px 160px; inset: 10% -4% -4% 12%; }
}

/* "A indicação depende de avaliação médica individual." */
.rfx-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--navy); }
.rfx-note .icon { margin-top: 1px; color: var(--teal); }
.rfx-note--steps { margin-top: 36px; }

/* Section heads */
.rfx-head { margin-bottom: 48px; }
.rfx-head__p { margin: 0; }
.rfx-head__p + .rfx-head__p { margin-top: 12px; font-size: 15px; }
.rfx-head--steps { max-width: 760px; }

/* Patient testimonials: Instagram facade (nothing is fetched from Instagram before a click) */
.rfx-reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; max-width: 540px; margin-inline: auto; }
@media (min-width: 720px) {
  .rfx-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .rfx-reel:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}
@media (min-width: 1100px) {
  .rfx-reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rfx-reel:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
}
.rfx-reel { background: var(--soft); border-radius: 24px; display: flex; flex-direction: column; min-width: 0; }
.rfx-reel__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px 24px 0 0;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 58%, #0A5A68 100%);
}
.rfx-reel__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.rfx-reel__title {
  position: absolute; z-index: 2; left: 24px; right: 24px; top: 22px; margin: 0; pointer-events: none;
  font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--white);
}
.rfx-reel__play {
  position: absolute; z-index: 1; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--white);
}
.rfx-reel__play[hidden] { display: none; } /* shown by refrativa.js: no dead control without JS */
.rfx-reel__play:focus-visible { outline: 3px solid var(--aqua); outline-offset: -8px; border-radius: 22px 22px 0 0; }
.rfx-reel__icon {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--navy); box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .2s, background-color .2s;
}
.rfx-reel__icon svg { margin-left: 4px; }
.rfx-reel__play:hover .rfx-reel__icon, .rfx-reel__play:focus-visible .rfx-reel__icon { background: var(--aqua); color: var(--navy-900); transform: scale(1.06); }
.rfx-reel__foot { margin: 0; padding: 6px 24px 10px; }
.rfx-reel__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--teal); text-decoration: none; }
.rfx-reel__link:hover { color: var(--navy); text-decoration: underline; }

/* After a click: the facade is replaced by Instagram's embed */
.rfx-reel.is-loaded .rfx-reel__media { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; padding: 22px 12px 0; }
.rfx-reel.is-loaded .rfx-reel__art { display: none; }
.rfx-reel.is-loaded .rfx-reel__title { position: static; margin: 0 12px 16px; color: var(--navy); }
.rfx-reel__embed { display: flex; justify-content: center; border-radius: 4px; }
.rfx-reel__embed:focus { outline: none; }
.rfx-reel__embed:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Instagram's default blockquote styles, moved out of the style="" attribute */
.rfx-reel blockquote.instagram-media {
  background: #FFF; border: 0; border-radius: 3px; margin: 1px; padding: 20px 16px;
  box-shadow: 0 0 1px 0 rgba(0,0,0,.5), 0 1px 10px 0 rgba(0,0,0,.15);
  max-width: 540px; min-width: 0; width: calc(100% - 2px); font-size: 15px; color: var(--ink);
}
.rfx-reel blockquote.instagram-media p { margin: 0; }
/* embed.js sets min-width:326px inline on its iframe; allow it to shrink on 320px screens */
.rfx-reel iframe.instagram-media { min-width: 0 !important; max-width: 100% !important; }
.rfx-reels__note { margin: 28px auto 0; max-width: 64ch; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rfx-head__p, .rfx-reels__note { text-wrap: pretty; }
.rfx-reels__note a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rfx-reels__note a:hover { color: var(--navy); }

/* How it works */
.rfx-steps {
  list-style: none; margin: 0; padding: 0; counter-reset: rfx-step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px;
}
.rfx-step { counter-increment: rfx-step; background: var(--white); border-radius: 24px; padding: 32px 28px; }
.rfx-step::before { content: counter(rfx-step, decimal-leading-zero); content: counter(rfx-step, decimal-leading-zero) / ""; display: block; font-family: var(--font-serif); font-size: 15px; color: var(--teal); }
.rfx-step__title { margin: 18px 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--navy); }
.rfx-step__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Closing CTA follows a tinted section here (on the landing it follows a white one) */
.rfx-cta { padding-top: 112px; }
/* Long words ("acompanhamento.") must fit 320px screens */
.rfx-head .h2 { overflow-wrap: break-word; }
@media (max-width: 379px) { .rfx-head .h2--xl { font-size: 30px; } }

/* ============ AVISO DE PRIVACIDADE ============ */
.privacy-hero__inner { position: relative; padding-top: 32px; padding-bottom: 72px; }
.privacy-hero__lead { max-width: 640px; }
.privacy-hero__date { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.25; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose p { margin: 16px 0 0; }
.prose ul { margin: 16px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.prose a:hover { color: var(--teal); }
