/* =========================================================
   Clínica Medisaf — Folha de estilos (Mobile First)
   Para mudar as cores do site, edite as variáveis abaixo.
   ========================================================= */

:root {
  --navy: #142B59;
  --navy-dark: #0C1D40;
  --navy-soft: #243F77;
  --lime: #A8D52A;
  --lime-dark: #8CB91A;
  --lime-text: #587809;        /* verde-lima escuro, para texto sobre branco */
  --lime-tint: #F2F8DD;
  --tint: #F4F7FB;
  --line: #DCE4EE;
  --ink: #1A2437;
  --muted: #57657A;
  --white: #fff;
  --wa: #0B7A3E;
  --wa-dark: #096333;
  --danger: #B3261E;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20,43,89,.06), 0 4px 14px rgba(20,43,89,.06);
  --shadow: 0 2px 4px rgba(20,43,89,.05), 0 16px 40px rgba(20,43,89,.12);
  --header-h: 76px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-soft); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--navy); text-wrap: balance; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.book :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: var(--lime); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }

/* Ícones */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .97rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn--lime { background: var(--lime); color: var(--navy-dark); }
.btn--lime:hover { background: var(--lime-dark); color: var(--navy-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); color: #fff; box-shadow: var(--shadow-sm); }

/* ===== Barra superior ===== */
.topbar { display: none; background: var(--navy-dark); color: #DCE6F7; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--lime); }
.topbar .i { width: 1.1em; height: 1.1em; vertical-align: -.2em; color: var(--lime); margin-right: 4px; }
.topbar__links { display: flex; gap: 24px; }

/* ===== Cabeçalho ===== */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

/* O logótipo é mostrado inteiro; apenas a margem branca é escondida por CSS (o ficheiro não é alterado). */
.logo { --lh: 56px; display: block; position: relative; overflow: hidden; width: calc(var(--lh) * 435 / 409); height: var(--lh); flex: none; }
.logo img { position: absolute; max-width: none; width: calc(var(--lh) * 715 / 409); height: auto; left: calc(var(--lh) * -143 / 409); top: calc(var(--lh) * -153 / 409); }
.brand { --lh: 58px; }

.burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy); }
.burger .i { width: 24px; height: 24px; }
.burger .i--close { display: none; }
.burger[aria-expanded="true"] .i--open { display: none; }
.burger[aria-expanded="true"] .i--close { display: block; }

.nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(20,43,89,.12); padding: 8px 20px 20px; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
html.js .nav { display: none; }
html.js .nav.is-open { display: block; }
.nav ul { display: flex; flex-direction: column; }
.nav li a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--tint); }
.nav li a:hover, .nav li a[aria-current="true"] { color: var(--navy); }
.nav li a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--lime); padding-left: 14px; }
.nav__cta { margin-top: 16px; width: 100%; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--lime-tint) 0%, #fff 100%); padding: 36px 0 72px; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -220px; top: -160px; background: radial-gradient(circle at 30% 30%, rgba(168,213,42,.35), rgba(168,213,42,0) 70%); pointer-events: none; }
.hero__in { position: relative; display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-text); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--lime); }
.wrap .eyebrow { color: var(--lime-text); }
.wrap .eyebrow--light { color: var(--lime); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 8.4vw, 3.7rem); letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(transparent 64%, var(--lime) 64% 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero__btns { display: grid; gap: 12px; margin-bottom: 28px; }
.hero__facts { display: grid; gap: 10px; color: var(--navy); font-weight: 600; font-size: .93rem; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts .i { color: var(--lime-text); }

.hero__media { position: relative; padding-bottom: 56px; }
.hero__photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__photo--small { position: absolute; left: 14px; bottom: 0; width: 34%; border: 5px solid #fff; border-radius: 22px; }
.hero__photo--small img { aspect-ratio: 3 / 4; }
.hero__badge { position: absolute; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .82rem; line-height: 1.35; color: var(--navy); max-width: 58%; }
.hero__badge-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--lime); color: var(--navy-dark); }

/* ===== Acções rápidas ===== */
.quick { position: relative; margin-top: -36px; z-index: 2; }
.quick__grid { display: grid; gap: 12px; }
.quick__card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.quick__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lime); color: var(--ink); }
.quick__card strong { display: block; color: var(--navy); font-size: 1rem; }
.quick__card small { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.quick__card > span:last-child { min-width: 0; }
.quick__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--lime-tint); color: var(--navy); }
.quick__ico--wa { background: var(--wa); color: #fff; }

/* ===== Secções ===== */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section__head .eyebrow { justify-content: center; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 5.4vw, 2.6rem); letter-spacing: -.01em; margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }

/* Sobre */
.about { display: grid; gap: 44px; align-items: center; }
.about__media { position: relative; padding-bottom: 14%; }
.about__img1 { width: 86%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.about__img2 { position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow); }
.about__text p { color: var(--muted); font-size: 1.04rem; }
.mission { margin: 24px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--lime-tint); border-left: 5px solid var(--lime); }
.mission h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 800; }
.mission p { margin: 0; color: var(--ink); font-size: 1rem; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pillars li { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pillars__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--lime); margin-bottom: 10px; }
.pillars strong { display: block; color: var(--navy); }
.pillars small { color: var(--muted); font-size: .85rem; line-height: 1.4; display: block; }

/* Serviços */
.tools { display: grid; gap: 16px; margin-bottom: 28px; }
.search { position: relative; display: block; }
.search .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 56px; padding: 0 18px 0 50px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 1rem; box-shadow: var(--shadow-sm); }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(168,213,42,.45); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: .9rem; transition: background-color .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--navy); }
.tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.no-results { text-align: center; padding: 28px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.cards { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card__head { display: flex; gap: 14px; align-items: flex-start; }
.card__head h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 4px; }
.card__head p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.card__ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--lime-tint); color: var(--navy); }
.card__ico .i { width: 26px; height: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--tint); color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.2; text-align: left; transition: background-color .15s, border-color .15s, transform .15s; }
.chip:hover { background: var(--lime); border-color: var(--lime); color: var(--navy-dark); transform: translateY(-1px); }
.card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; font-weight: 800; color: var(--navy); text-decoration: none; }
.card__cta .i { transition: transform .2s; }
.card__cta:hover .i { transform: translateX(4px); }
.note { display: flex; gap: 10px; align-items: flex-start; justify-content: center; margin: 28px auto 0; max-width: 760px; text-align: left; font-size: .92rem; color: var(--muted); }
.note .i { margin-top: 3px; color: var(--lime-text); }

/* Saúde no trabalho */
.work { display: grid; gap: 36px; align-items: center; }
.work__text p { color: var(--muted); font-size: 1.04rem; margin-bottom: 24px; }
.work__media { position: relative; }
.work__media::before { content: ""; position: absolute; inset: 14px -10px -14px 10px; border-radius: 28px; background: var(--lime); z-index: 0; }
.work__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }

/* Educação */
.edu { display: grid; gap: 12px; align-items: start; max-width: 960px; margin-inline: auto; }
.edu__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.edu__item[open] { border-color: var(--lime); box-shadow: var(--shadow-sm); }
.edu__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 800; color: var(--navy); }
.edu__item summary::-webkit-details-marker { display: none; }
.edu__item summary .i { transition: transform .25s; color: var(--lime-text); }
.edu__item[open] summary .i { transform: rotate(180deg); }
.edu__item p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: .97rem; }
.edu__more { text-align: center; margin: 28px 0 0; color: var(--muted); }

/* Equipa */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.member { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; }
.member__info { padding: 14px 16px 16px; }
.member__info h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 800; margin-bottom: 2px; }
.member__info p { margin: 0; font-size: .85rem; color: var(--muted); }
.team__group { margin: 32px 0 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.team__group img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team__group figcaption { display: flex; gap: 10px; align-items: flex-start; padding: 16px 20px; color: #fff; font-size: .93rem; background: var(--navy); }
.team__group figcaption .i { color: var(--lime); margin-top: 2px; }

/* Galeria */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery__item { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--line); box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .5s ease; }
.gallery__item::after { content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 36px 12px 10px; text-align: left; color: #fff; font-size: .82rem; font-weight: 700; line-height: 1.3; background: linear-gradient(transparent, rgba(12,29,64,.85)); opacity: 0; transition: opacity .25s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }

/* Marcação */
.book { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.book::before { content: ""; position: absolute; width: 620px; height: 620px; left: -260px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(168,213,42,.22), rgba(168,213,42,0) 70%); pointer-events: none; }
.book__grid { position: relative; display: grid; gap: 36px; align-items: start; }
.book h2 { color: #fff; }
.book__intro > p { color: #D5DEEE; font-size: 1.04rem; }
.steps { display: grid; gap: 14px; margin: 26px 0; }
.steps li { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; }
.steps span { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--lime); color: var(--navy-dark); font-weight: 800; }
.book__photo { display: none; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.book__alt { color: #D5DEEE; }
.book__alt a { color: #fff; font-weight: 700; }
.book__alt a:hover { color: var(--lime); }

.form { background: #fff; color: var(--ink); border-radius: 26px; padding: 24px 20px 22px; box-shadow: 0 30px 60px rgba(0,0,0,.28); display: grid; gap: 18px; }
.row { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; color: var(--navy); }
.field b { color: var(--danger); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px; line-height: 1.4; background: #fff;
  border: 1.5px solid #C6D1DF; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142B59' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(168,213,42,.5); }
.field.has-error input, .field.has-error select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.err { margin: 6px 0 0; font-size: .85rem; font-weight: 600; color: var(--danger); min-height: 0; }
.err:empty { display: none; }
.field.is-flash select { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(168,213,42,0); } 30% { box-shadow: 0 0 0 5px rgba(168,213,42,.7); } }
.field .check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 500 !important; color: var(--ink) !important; cursor: pointer; }
.check span { line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--navy); }
.form__status { margin: 0; font-size: .93rem; font-weight: 600; color: var(--navy); }
.form__status:empty { display: none; }
.form__status a { font-weight: 800; }
.form__status.is-error { color: var(--danger); }
.form__note { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Contactos */
.contact { display: grid; gap: 36px; align-items: stretch; }
.clist { display: grid; gap: 18px; margin: 8px 0 26px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--lime-tint); color: var(--navy); }
.clist strong { display: block; color: var(--navy); }
.clist p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.clist a { color: var(--ink); font-weight: 600; }
.contact__btns { display: grid; gap: 10px; margin-bottom: 26px; }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; font-weight: 700; color: var(--navy); }
.social__a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--tint); border: 1.5px solid var(--line); text-decoration: none; font-size: .92rem; }
.social__a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.map { position: relative; display: block; min-height: 340px; border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); background: #E9F0F6; isolation: isolate; }
.map__grid { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 28% 22% at 78% 24%, rgba(168,213,42,.45), transparent 70%),
    radial-gradient(ellipse 22% 30% at 18% 78%, rgba(168,213,42,.35), transparent 70%),
    repeating-linear-gradient(35deg, transparent 0 58px, rgba(255,255,255,.95) 58px 66px),
    repeating-linear-gradient(-55deg, transparent 0 74px, rgba(255,255,255,.9) 74px 80px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(20,43,89,.05) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(20,43,89,.05) 38px 39px),
    #DCE8F2; }
.map__pin { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50% 50% 50% 8px; rotate: -45deg; background: var(--navy); color: var(--lime); box-shadow: 0 12px 24px rgba(20,43,89,.35); }
.map__pin .i { rotate: 45deg; width: 28px; height: 28px; }
.map__card { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.map__card strong { color: var(--navy); font-family: var(--font-display); font-size: 1.15rem; }
.map__card small { color: var(--muted); font-size: .88rem; }
.map__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 800; color: var(--navy); }
.map:hover .map__go .i { transform: translateX(4px); }
.map__go .i { transition: transform .2s; }

/* Rodapé */
.footer { background: var(--navy-dark); color: #C9D5EA; padding-top: 56px; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--lime); text-decoration: underline; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer__logo { display: inline-block; padding: 12px 18px; background: #fff; border-radius: 18px; margin-bottom: 18px; }
.footer__logo .logo { --lh: 76px; }
.footer__brand p { max-width: 34ch; font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; font-weight: 800; }
.footer li { padding: 6px 0; }
.footer__nav li { padding: 0; }
.footer__nav a { display: inline-block; padding: 7px 0; }
.footer__bar { display: grid; gap: 4px; padding-block: 20px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #9FB0CF; }
.footer__bar p { margin: 0; }

/* Botão flutuante */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(11,122,62,.45), 0 0 0 4px rgba(255,255,255,.9); transition: transform .2s; }
.fab:hover { transform: scale(1.07); color: #fff; background: var(--wa-dark); }
.fab .i { width: 32px; height: 32px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(8,16,36,.94); padding: 56px 12px 24px; }
.lb__fig { margin: 0; text-align: center; max-width: 100%; }
.lb__fig img { max-width: 100%; max-height: 74vh; max-height: 74dvh; width: auto; margin-inline: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb__fig figcaption { margin-top: 14px; color: #fff; font-weight: 600; font-size: .95rem; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; transition: background-color .2s; }
.lb__btn:hover { background: var(--lime); color: var(--navy-dark); }
.lb__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb__prev, .lb__next { top: auto; bottom: 14px; }
.lb__prev { left: calc(50% - 60px); }
.lb__next { right: calc(50% - 60px); }

/* Animações de entrada */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Página de texto (privacidade) */
.legal { max-width: 800px; margin: 0 auto; padding: 48px 0 72px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; font-family: var(--font-display); }
.legal p, .legal li { color: #2C384D; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1rem; }
.legal li { padding: 3px 0; }
.legal__draft { background: var(--lime-tint); border-left: 5px solid var(--lime); border-radius: 12px; padding: 14px 18px; font-size: .93rem; margin: 20px 0 8px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 60px 0; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(3rem, 14vw, 6rem); color: var(--navy); }

/* =========================================================
   Pontos de quebra
   ========================================================= */
@media (min-width: 560px) {
  .hero__btns { display: flex; flex-wrap: wrap; }
  .quick__grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  .contact__btns { grid-template-columns: repeat(3, auto); justify-content: start; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .form { padding: 32px 30px 28px; }
}

@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: 1 / -1; }
  .card { padding: 28px 28px; }
  .edu { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .team { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .footer__bar { grid-template-columns: 1fr auto; align-items: center; }
  .hero__photo--small { left: -18px; width: 30%; }
}

@media (min-width: 1160px) {
  :root { --header-h: 88px; }
  .topbar { display: block; }
  .brand { --lh: 70px; }
  .burger { display: none; }
  .nav, html.js .nav { display: flex !important; position: static; align-items: center; gap: 22px; padding: 0; border: 0; box-shadow: none; background: none; max-height: none; overflow: visible; }
  .nav ul { flex-direction: row; gap: 2px; }
  .nav li a { min-height: 44px; padding: 0 11px; border: 0; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
  .nav li a:hover { background: var(--tint); }
  .nav li a[aria-current="true"] { background: var(--lime-tint); box-shadow: none; padding-left: 11px; }
  .nav__cta { margin: 0; width: auto; min-height: 46px; white-space: nowrap; }
}

@media (min-width: 980px) {
  .hero { padding: 72px 0 110px; }
  .hero__in { grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
  .hero__media { padding-bottom: 64px; }
  .quick { margin-top: -52px; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .quick__card { padding: 18px 16px; gap: 12px; }

  .about { grid-template-columns: 1fr 1fr; gap: 72px; }
  .work { grid-template-columns: 1fr 1fr; gap: 72px; }
  .book__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .book__photo { display: block; }
  .contact { grid-template-columns: 1fr 1fr; gap: 56px; }
  .map { min-height: 460px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 56px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .lb__prev, .lb__next { top: 50%; bottom: auto; transform: translateY(-50%); width: 56px; height: 56px; }
  .lb__prev { left: 24px; }
  .lb__next { right: 24px; }
}

@media (min-width: 1280px) {
  .nav li a { padding: 0 13px; font-size: .94rem; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .hero__badge { max-width: 62%; font-size: .78rem; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
