/* Health With Us · Homepage
   Tokens do Design System Health With Us v1.1 (cores, tipografia, espaçamento, cantos). */

:root {
  /* Primárias */
  --petroleo-50: #E6F4F5;
  --petroleo-100: #C2E4E6;
  --petroleo-300: #4FA3A9;
  --petroleo: #08777F;
  --petroleo-700: #055A60;
  --petroleo-900: #033A3E;
  --aqua-50: #EBFAFB;
  --aqua-100: #C9F2F5;
  --aqua-300: #7BE1E8;
  --aqua: #3AD2DD;
  --aqua-900: #12676E;
  /* Acento */
  --lima-50: #F9FDE9;
  --lima-100: #F0FAC8;
  --lima: #DAF172;
  --lima-900: #56631A;
  /* Neutros */
  --tinta: #0B2E33;
  --ardosia: #3D5A5E;
  --cinza: #5E7578;
  --nevoa: #A9B8BA;
  --linha: #DCE5E6;
  --fundo: #F4F8F8;
  --branco: #FFFFFF;

  /* Tipografia: Poppins oficial; DM Serif Display só em Display, H1 e H2 (proposta do DS) */
  --f-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  /* Espaçamento, escala base 4px */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  /* Cantos */
  --r-input: 8px; --r-chip: 14px; --r-card: 20px; --r-pill: 999px;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --sombra: 0 1px 2px rgba(11, 46, 51, .04), 0 12px 32px -12px rgba(11, 46, 51, .14);
  --sombra-hover: 0 2px 4px rgba(11, 46, 51, .05), 0 24px 48px -16px rgba(11, 46, 51, .22);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entradas e saídas */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* movimento no ecrã */
  --ease: var(--ease-out);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--petroleo); text-underline-offset: 3px; }
a:hover { color: var(--petroleo-700); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(8, 119, 127, .12); }
::selection { background: var(--lima); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--petroleo); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--lima); }
html { scrollbar-color: var(--petroleo-300) var(--fundo); }

.sr-only {
  position: absolute; 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: 16px; top: -100px; z-index: 100;
  background: var(--tinta); color: var(--branco); padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--branco); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Ícones · Material Symbols Rounded, traço 400, sem preenchimento */
.mi {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  display: inline-block; flex: none; width: 1em; overflow: hidden;
  font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* Tipografia */
.display, .h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; }
.display { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.04; }
.h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; }
.display em, .h2 em { font-style: italic; color: var(--petroleo); }
.on-dark .h2 em { color: var(--lima); }
.sub { font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--ardosia); margin-top: var(--s-3); }
.lead { font-size: 18px; line-height: 1.65; color: var(--ardosia); max-width: 62ch; }
.h4 { font-size: 20px; line-height: 1.35; font-weight: 600; }
.h5 { font-size: 16px; line-height: 1.4; font-weight: 600; }
.muted { color: var(--cinza); }

/* Botões · pílula, 44 / 52 px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  font: 500 15px/1 var(--f-sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.btn .mi { font-size: 20px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--petroleo); color: var(--branco); }
.btn-primary:hover { background: var(--petroleo-700); color: var(--branco); box-shadow: 0 10px 24px -10px rgba(8, 119, 127, .6); }
.btn-outline { background: transparent; border-color: var(--petroleo); color: var(--petroleo); }
.btn-outline:hover { background: var(--petroleo-50); color: var(--petroleo-700); }
.btn-lima { background: var(--lima); color: var(--tinta); }
.btn-lima:hover { background: #E5F69E; color: var(--tinta); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--branco); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: var(--branco); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 500; font-size: 15px; text-decoration: none; color: var(--petroleo);
  position: relative; transition: color 200ms ease;
}
.link-arrow::before {
  content: ""; position: absolute; left: 0; right: 26px; bottom: 10px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 250ms var(--ease-out);
}
.link-arrow:hover::before, .link-arrow:focus-visible::before { transform: scaleX(1); }
.link-arrow .mi { font-size: 20px; transition: transform 200ms var(--ease-out); }

/* Etiquetas */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
}
.chip-p { background: var(--petroleo-50); color: var(--petroleo-700); }
.chip-l { background: var(--lima); color: var(--tinta); }
.chip-a { background: var(--aqua-50); color: var(--aqua-900); }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--linha); box-shadow: 0 6px 24px -18px rgba(11, 46, 51, .35); }
.header-inner { display: flex; align-items: center; gap: var(--s-8); height: var(--header-h); }
.brand { display: inline-flex; flex: none; padding: 6px 0; }
.brand img { width: 196px; height: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-pill); border: 0; background: none; cursor: pointer;
  font: 500 15px/1 var(--f-sans); color: var(--tinta); text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav-trigger .mi { font-size: 20px; transition: transform 200ms var(--ease-out); }
.nav-link:hover, .nav-trigger:hover, .nav-item.is-open .nav-trigger { background: var(--fundo); color: var(--petroleo); }
.nav-item { position: relative; }
.nav-item.is-open .nav-trigger .mi { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 320px;
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--r-card);
  box-shadow: var(--sombra-hover); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.97); transform-origin: 24px top;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms;
}
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 10px 14px; border-radius: 12px;
  color: var(--tinta); text-decoration: none; font-size: 15px; line-height: 1.35;
}
.dropdown a:hover { background: var(--petroleo-50); color: var(--petroleo-700); }
.dropdown .dd-head { font-weight: 600; color: var(--petroleo); }
.dropdown .dd-sep { height: 1px; background: var(--linha); margin: 6px 14px; }
.header-cta { flex: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1px solid var(--linha); background: var(--branco); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ───────── Hero ───────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(58, 210, 221, .16), transparent 70%),
    linear-gradient(180deg, var(--branco) 0%, var(--fundo) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center;
  gap: var(--s-16);
  min-height: calc(100svh - var(--header-h));
  padding-top: var(--s-12); padding-bottom: var(--s-16);
}
.hero-copy { display: flex; flex-direction: column; gap: var(--s-6); }
.hero-copy .display { max-width: 13.5ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.benefits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4);
  margin-top: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--linha);
}
.benefit { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; font-size: 15px; line-height: 1.35; }
.benefit img { width: 44px; height: 44px; flex: none; }
.hero-media { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero-media img { width: 100%; aspect-ratio: 710 / 798; object-fit: cover; }

/* Entrada do hero, uma vez ao carregar */
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes enterMedia { from { opacity: 0; transform: scale(0.97); clip-path: inset(6% 0 0 0 round 24px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.js .hero [data-enter] { animation: enter 600ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 60ms + 60ms); }
.js .hero .hero-media { animation: enterMedia 800ms var(--ease-out) both 120ms; }

/* ───────── Secções ───────── */
.section { padding: var(--s-32) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-8); margin-bottom: var(--s-16); }
.section-head > div { max-width: 720px; }
.bg-fundo { background: var(--fundo); }

/* Marcas */
.brands { padding: var(--s-24) 0; border-bottom: 1px solid var(--linha); }
.brands-title { font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--ardosia); text-align: center; max-width: 52ch; margin: 0 auto var(--s-12); }
.logo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-4) var(--s-6); align-items: center; }
.logo-grid li { display: grid; place-items: center; }
.logo-grid img {
  width: 100%; max-width: 132px; aspect-ratio: 1; object-fit: contain;
  mix-blend-mode: multiply; filter: grayscale(1); opacity: .62;
  transition: filter 250ms ease, opacity 250ms ease;
}
.logo-grid li:hover img { filter: none; opacity: 1; }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-16) var(--s-24); align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: var(--s-6); position: sticky; top: calc(var(--header-h) + 48px); }
.about-copy .btn { align-self: flex-start; margin-top: var(--s-2); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linha); }
.feature { padding: var(--s-8) var(--s-6) var(--s-8) 0; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; gap: var(--s-3); }
.feature:nth-child(2n) { padding-left: var(--s-6); padding-right: 0; border-left: 1px solid var(--linha); }
.feature .ico { width: 48px; height: 48px; border-radius: var(--r-chip); background: var(--petroleo-50); color: var(--petroleo); display: grid; place-items: center; margin-bottom: var(--s-2); }
.feature p { color: var(--ardosia); font-size: 15px; }

/* Serviços */
.group-label { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-6); }
.group-label a { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--petroleo); display: inline-flex; align-items: center; min-height: 44px; }
.group-label a:hover { color: var(--petroleo-700); text-decoration: underline; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.cards { display: grid; gap: var(--s-6); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--branco);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sombra);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.card:hover { box-shadow: var(--sombra-hover); }
.card-media { overflow: hidden; aspect-ratio: 540 / 177; background: var(--petroleo-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.card-body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-8); flex: 1; }
.card-body p { color: var(--ardosia); font-size: 15px; }
.card-body .link-arrow { margin-top: auto; padding-top: var(--s-2); align-self: flex-start; }
.card-tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .stretched:focus-visible { outline: none; }
.card:has(.stretched:focus-visible) { outline: 3px solid var(--petroleo); outline-offset: 3px; }

.card-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: var(--s-6); }
.card-feature .card-media { aspect-ratio: auto; min-height: 100%; display: grid; place-items: center; background: linear-gradient(180deg, #2A8E96 0%, #1E6B70 100%); }
.card-feature .card-media img { height: auto; aspect-ratio: 540 / 177; object-fit: contain; }
.card-feature .card-body { padding: var(--s-12); justify-content: center; gap: var(--s-4); }
.card-feature .h4 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem); line-height: 1.15; }

/* Webinares · fundo Tinta */
.webinar { background: var(--tinta); color: var(--branco); overflow: hidden; }
.webinar-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-16); align-items: center; }
.webinar-copy { display: flex; flex-direction: column; gap: var(--s-6); }
.webinar-copy .sub { color: var(--aqua-300); margin-top: 0; }
.webinar-copy p.body { color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.7; max-width: 58ch; }
.webinar-cta { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-4); padding-top: var(--s-8); border-top: 1px solid rgba(255, 255, 255, .14); }
.webinar-cta p { font-weight: 500; }
.webinar-cta .btn { align-self: flex-start; }
.webinar-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); align-items: start; }
.webinar-media figure { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 401 / 476; }
.webinar-media figure:last-child { margin-top: var(--s-16); }
.webinar-media img { width: 100%; height: 100%; object-fit: cover; }

/* Médicos experientes · fundo Petróleo */
.experts { background: var(--petroleo); color: var(--branco); }
.experts-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-12); align-items: start; }
.experts .h2 { color: var(--branco); }
.experts .sub { color: var(--petroleo-50); }
.expert-point { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-6); border-top: 1px solid rgba(255, 255, 255, .25); }
.expert-point .ico { width: 48px; height: 48px; border-radius: var(--r-chip); background: rgba(255, 255, 255, .12); color: var(--lima); display: grid; place-items: center; margin-bottom: var(--s-2); }
.expert-point p { color: var(--petroleo-50); font-size: 15px; }

/* Equipa */
.team-lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-16); align-items: center; margin-bottom: var(--s-24); }
.team-lead .portrait { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 5 / 6; max-width: 460px; }
.team-lead .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.team-copy { display: flex; flex-direction: column; gap: var(--s-6); }
.quote { margin: var(--s-4) 0 0; padding: 0; }
.quote p { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.2; color: var(--petroleo); }
.quote p::before { content: "“"; } .quote p::after { content: "”"; }
.quote footer { margin-top: var(--s-6); display: flex; flex-direction: column; gap: 2px; }
.quote footer a { font-weight: 600; font-size: 17px; color: var(--tinta); text-decoration: none; }
.quote footer a:hover { color: var(--petroleo); text-decoration: underline; }
.quote footer .role { color: var(--cinza); font-size: 15px; }
.quote .card-tags { margin-top: var(--s-3); }
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-6); }
.member { position: relative; display: flex; flex-direction: column; gap: var(--s-4); }
.member .photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 5 / 6; background: var(--fundo); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.member h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.member h3 a { color: var(--tinta); text-decoration: none; }
.member h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.member h3 a:hover { color: var(--petroleo); }
.member p { font-size: 13px; line-height: 1.5; color: var(--cinza); font-weight: 500; margin-top: -8px; }
.member-all .photo { position: relative; }
.member-all .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 119, 127, .15), rgba(3, 58, 62, .82)); }
.member-all .photo .mi { position: absolute; right: 16px; bottom: 16px; z-index: 1; color: var(--tinta); background: var(--lima); width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; font-size: 22px; transition: transform 200ms var(--ease-out); }
.team-more { margin-top: var(--s-12); display: flex; justify-content: center; }

/* Blog */
.blog-band { padding: var(--s-16) 0; }
.blog-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); padding: var(--s-12); background: var(--branco); border-radius: var(--r-card); box-shadow: var(--sombra); }
.blog-inner .h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.blog-inner .sub { margin-top: var(--s-2); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: var(--s-6); }
.choice { display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-12) var(--s-8); background: var(--branco); border: 1px solid var(--linha); border-radius: var(--r-card); }
.choice .ico { width: 56px; height: 56px; border-radius: var(--r-chip); background: var(--petroleo-50); color: var(--petroleo); display: grid; place-items: center; }
.choice .ico .mi { font-size: 28px; }
.choice h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.choice-actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: auto; }
.choice-actions .btn { width: 100%; }
.info-box { display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-12) var(--s-8); background: var(--lima); border-radius: var(--r-card); color: var(--tinta); }
.info-box h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lima-900); }
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-item .k { font-size: 14px; color: var(--lima-900); font-weight: 500; }
.info-item a { color: var(--tinta); font-weight: 600; font-size: clamp(18px, 1rem + .5vw, 22px); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; word-break: break-word; }
.info-item a .mi { font-size: 22px; }
.info-item a:hover { text-decoration: underline; color: var(--tinta); }

/* ───────── Footer · Tinta ───────── */
.site-footer { background: var(--tinta); color: rgba(255, 255, 255, .78); padding: var(--s-24) 0 var(--s-8); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: var(--s-12); padding-bottom: var(--s-16); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand img { width: 150px; }
.socials { display: flex; gap: var(--s-2); margin-top: var(--s-8); }
.socials a { width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--branco); background: rgba(255, 255, 255, .08); transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out); }
.socials a:hover { background: var(--lima); color: var(--tinta); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-300); margin-bottom: var(--s-4); }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: rgba(255, 255, 255, .82); text-decoration: none; line-height: 1.35; }
.footer-col a:hover { color: var(--branco); text-decoration: underline; }
.footer-col .new { margin-left: 8px; }
.footer-contact a { color: var(--branco); font-weight: 500; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-8); font-size: 14px; color: rgba(255, 255, 255, .62); }
.footer-bottom a { color: rgba(255, 255, 255, .82); }
.footer-bottom a:hover { color: var(--branco); }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.legal a { min-height: 44px; display: inline-flex; align-items: center; }
.legal span[aria-hidden] { color: rgba(255, 255, 255, .3); }

/* Cookies */
.cookie {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: var(--s-6);
  background: var(--branco); color: var(--tinta); border: 1px solid var(--linha);
  border-radius: var(--r-card); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-6); box-shadow: var(--sombra-hover);
  font-size: 14px; line-height: 1.5;
}
.cookie { transition: opacity 400ms ease, transform 400ms ease, display 400ms allow-discrete; }
@starting-style { .cookie { opacity: 0; transform: translateY(100%); } }
.cookie.is-leaving { opacity: 0; transform: translateY(100%); }
.cookie[hidden] { display: none; }
.cookie a { font-weight: 500; }
.cookie-actions { display: flex; gap: var(--s-2); flex: none; }

/* ───────── Responsivo ───────── */
@media (max-width: 1180px) {
  .nav-link, .nav-trigger { padding: 0 10px; }
  .brand img { width: 170px; }
  .header-inner { gap: var(--s-4); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
    background: var(--branco); overflow-y: auto; overscroll-behavior: contain; padding: var(--s-6) var(--gutter) calc(var(--s-12) + env(safe-area-inset-bottom, 0px));
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--linha); }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; min-height: 60px; padding: 0 4px; font-size: 18px; border-radius: 0; }
  .nav-link:hover, .nav-trigger:hover, .nav-item.is-open .nav-trigger { background: none; }
  .dropdown { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 var(--s-4); display: none; opacity: 1; visibility: visible; transform: none; }
  .nav-item.is-open .dropdown { display: block; }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-8); }
  .nav-mobile-cta .btn { width: 100%; }
  body.menu-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: var(--s-12); padding-top: var(--s-12); }
  .hero-copy .display { max-width: 16ch; }
  .hero-media { justify-self: center; max-width: 440px; }
  .about { grid-template-columns: 1fr; gap: var(--s-12); }
  .about-copy { position: static; }
  .webinar-inner { grid-template-columns: 1fr; }
  .webinar-media { max-width: 560px; }
  .experts-inner { grid-template-columns: 1fr 1fr; }
  .experts-inner > :first-child { grid-column: 1 / -1; }
  .team-lead { grid-template-columns: 1fr 1fr; gap: var(--s-12); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .info-box { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-template-columns: 1fr; }
  .card-feature .card-media { aspect-ratio: auto; min-height: 0; }
  .card-feature .card-body { padding: var(--s-8); }
  .section { padding: var(--s-24) 0; }
}
@media (min-width: 1025px) { .nav-mobile-cta { display: none; } }

@media (max-width: 768px) {
  .section { padding: var(--s-16) 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: var(--s-12); }
  .cards-2 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .team-lead { grid-template-columns: 1fr; }
  .team-lead .portrait { max-width: none; aspect-ratio: 4 / 3; }
  .team-lead .portrait img { object-position: center 20%; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-inner { flex-direction: column; align-items: flex-start; padding: var(--s-8); }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; gap: var(--s-3); }
  .hero-actions .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(2n) { padding: var(--s-6) 0; border-left: 0; }
  .experts-inner { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2) var(--s-4); }
  .webinar-media figure:last-child { margin-top: var(--s-8); }
  .card-body, .choice, .info-box { padding: var(--s-6); }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
  .cookie { flex-direction: column; align-items: stretch; gap: var(--s-3); padding: var(--s-4); }
  .cookie-actions .btn { flex: 1; }
  .brand img { width: 160px; }
}

/* Movimento ao passar o rato: só com rato/trackpad e sem preferência por menos movimento */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
  .btn:hover .mi, .link-arrow:hover .mi { transform: translateX(3px); }
  .card:hover { transform: translateY(-2px); }
  .card:hover .card-media img,
  .team-lead .portrait:hover img,
  .member:hover .photo img { transform: scale(1.03); }
  .member-all:hover .photo .mi { transform: translateX(3px); }
  .socials a:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Mantém só os desvanecimentos (opacidade/cor); sem deslocações */
  .js .hero [data-enter], .js .hero .hero-media { animation: fadeIn 400ms ease both; animation-delay: 0ms; }
  .dropdown, .nav, .cookie, .cookie.is-leaving { transform: none; }
  .link-arrow::before { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  @starting-style { .cookie { transform: none; } }
}
