:root {
  --navy: #006080;
  --navy-deep: #00455d;
  --ink: #13445a;
  --muted: #506b76;
  --rose: #ff4b8b;
  --rose-ink: #b62359;
  --rose-pale: #fff0f5;
  --cream: #fffdfa;
  --line: #c4d4db;
  --sans: 'Montserrat', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.12; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
em { font-style: normal; }
[hidden] { display: none !important; }
.container { width: min(1280px, calc(100% - 36px)); margin-inline: auto; }
:focus-visible { outline: 3px solid #087ea4; outline-offset: 4px; }
.hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #ffaacb; }
.skip-link { position: fixed; top: 10px; left: 12px; padding: 12px 18px; background: white; color: var(--ink); z-index: 60; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 20px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.4; transition: background .2s, box-shadow .2s, transform .2s; text-align: center; }
.button > span { font-size: 20px; line-height: 1; flex-shrink: 0; }
.button-primary { background: var(--rose-ink); color: white; box-shadow: 0 6px 18px #b623591a; }
.button-primary:hover { background: #971c48; box-shadow: 0 8px 22px #b6235926; transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }
.button-light { background: #fffdfa; color: var(--navy-deep); }
.button-light:hover { background: #ffe2ed; }
.button:disabled { opacity: .65; cursor: wait; }

/* Navegação flutuante: CTA sempre acessível e links recolhidos no mobile. */
.site-header { position: fixed; inset: 10px 0 auto; z-index: 50; color: white; pointer-events: none; }
.site-header .nav { position: relative; width: min(1280px, calc(100% - 24px)); min-height: 62px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #ffffff38; border-radius: 999px; background: rgba(0,69,93,.94); box-shadow: 0 8px 26px #002d4030; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: auto; transition: background .2s, box-shadow .2s, padding .2s; }
.site-header.is-scrolled .nav { background: rgba(0,59,80,.97); box-shadow: 0 10px 30px #002d4040; }
.brand { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; flex-shrink: 0; min-height: 44px; }
.brand img { width: 25px; height: 34px; filter: brightness(0) invert(1); }
.brand span { display: none; font-size: 10px; line-height: 1.2; }
.brand strong { font-size: 14px; font-weight: 600; }
.header-cta { display: inline-flex; justify-content: center; min-height: 44px; align-items: center; gap: 8px; margin-left: auto; padding: 10px 13px; border: 1px solid #ffffffb3; border-radius: 999px; background: var(--cream); color: var(--navy-deep); font-size: 11px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.header-cta:hover { background: #ffe6ef; }
.header-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 10px; border: 1px solid #ffffff38; border-radius: 20px; background: #00455d; box-shadow: 0 12px 26px #002d4030; }
.header-links a { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: 10px; color: #ecf5f8; font-size: 14px; font-weight: 500; text-decoration: none; }
.header-links a:hover { background: #ffffff12; color: #ffd5e5; }
.site-header.is-menu-open .header-links { display: grid; }
.menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff45; border-radius: 50%; color: white; background: transparent; }
.menu-toggle span { width: 17px; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-header :focus-visible { outline: 3px solid #ffaacb; outline-offset: 3px; }

/* A ordem do DOM prioriza a copy e o formulário em telas pequenas. */
.hero { position: relative; isolation: isolate; color: white; background: #006080 url('assets/images/hero-ambiente-v2.webp') 65% center / cover no-repeat; overflow: clip; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,69,93,.96), rgba(0,69,93,.9) 36%, rgba(0,69,93,.48) 70%, rgba(0,69,93,.08)); }
.hero-grid { display: grid; grid-template-areas: 'copy' 'form' 'visual'; gap: 26px; padding-top: 104px; }
.hero-copy { grid-area: copy; min-width: 0; }
.hero .eyebrow { color: #ffbfd7; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 7.9vw, 39px); max-width: 590px; }
.hero h1 em { color: #ffafd0; }
.hero-lead { font-size: 15px; font-weight: 500; line-height: 1.7; margin-top: 17px; color: #edf5f8; max-width: 470px; }
.microtrusts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; font-weight: 500; line-height: 1.7; color: #e8f2f6; }
.microtrusts li::before { content: '✦'; color: #ffaacb; margin-right: 6px; }
.context-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 13px 0 0; color: #ebf3f6; font-size: 12px; font-weight: 500; line-height: 1.45; }
.context-tags li { max-width: 100%; padding: 5px 9px; border: 1px solid #ffe2ed30; border-radius: 8px; background: #ffffff12; }
.form-panel { grid-area: form; position: relative; z-index: 1; min-width: 0; padding: 23px 20px; color: var(--ink); background: var(--cream); border: 1px solid #ffffff8c; border-radius: 22px; box-shadow: 0 18px 55px #002b3b24; scroll-margin-top: 20px; }
.form-panel:focus:not(:focus-visible) { outline: none; }
.form-panel :focus-visible { outline-color: #087ea4; }
.form-heading { padding-bottom: 20px; }
.hero .form-heading .eyebrow { color: var(--rose-ink); margin-bottom: 7px; font-size: 9px; }
.form-heading h2 { font-size: 25px; letter-spacing: -.045em; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row label { font-size: 12px; font-weight: 600; line-height: 1.45; }
.form-row input, .form-row select { min-height: 49px; width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: white; color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.form-row select { padding-right: 28px; text-overflow: ellipsis; }
.form-row input::placeholder { color: #657d87; opacity: 1; }
.form-row input:focus, .form-row select:focus { border-color: #087ea4; outline: 2px solid #087ea4; outline-offset: 2px; box-shadow: 0 0 0 5px #087ea410; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--muted); }
.form-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--navy); cursor: pointer; }
.form-consent label { cursor: pointer; }
.form-consent a { color: var(--navy-deep); }
.lead-form .button { width: 100%; padding-inline: 12px; }
.form-next-step { font-size: 12px; line-height: 1.65; color: var(--muted); text-align: center; }
.form-feedback { font-size: 13px; padding: 12px; background: #eef5f7; border-radius: 8px; }
.form-feedback.is-success { color: #16673e; background: #eaf5ef; }
.form-feedback.is-error { color: #a02442; background: #fff0f3; }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-visual { grid-area: visual; position: relative; min-width: 0; height: 270px; }
.hero-visual img { position: absolute; right: -18px; bottom: 0; height: 340px; width: auto; max-width: none; object-fit: contain; }

/* O rosa da campanha envolve o vídeo; a imagem é sempre a Fabi real. */
.fabi-section { position: relative; padding: 58px 0 50px; background: radial-gradient(ellipse at 90% 35%, #ffd8e8 0%, transparent 55%), linear-gradient(160deg, #fff9f7, #fff0f5 60%, #fff9f7); }
.video-layout { display: grid; gap: 26px; }
.video-intro { max-width: 520px; }
.video-intro .eyebrow { color: var(--rose-ink); margin-bottom: 15px; }
.video-intro h2 { color: var(--navy-deep); font-size: clamp(31px, 7.8vw, 44px); }
.video-intro h2 em { color: var(--rose-ink); }
.video-intro > p:not(.eyebrow) { margin-top: 18px; max-width: 380px; color: var(--muted); font-size: 15px; }
.video-duration { display: inline-block; margin-top: 18px; font-size: 11px; color: var(--rose-ink); letter-spacing: .03em; }
.video-column { width: 100%; max-width: 420px; justify-self: center; min-width: 0; }
.video-frame { position: relative; aspect-ratio: 9/16; border: 1px solid #ffffff; border-radius: 23px; overflow: hidden; background: #26302f; box-shadow: 0 20px 55px #8c385822, 0 0 0 7px #ffffff75; transition: box-shadow .35s; }
.video-frame video { display: block; width: 100%; height: 100%; aspect-ratio: 9/16; object-fit: contain; }
.video-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 38px; width: 100%; height: 100%; border: 0; color: white; background: linear-gradient(180deg, transparent 40%, #071c2520 65%, #071c25b3); transition: opacity .3s, background .3s; }
.video-play:hover .play-icon { background: #ffe7f0; }
.video-play:focus-visible { outline: 3px solid white; outline-offset: -8px; }
.play-action { display: flex; align-items: center; gap: 14px; text-align: left; font-size: 17px; font-weight: 600; text-shadow: 0 1px 4px #0006; }
.play-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: white; color: var(--rose-ink); box-shadow: 0 3px 18px #0002; transition: background .2s, box-shadow .2s, transform .2s; }
.video-play:hover .play-icon { transform: scale(1.04); box-shadow: 0 5px 20px #3c162b45; }
.video-play:active .play-icon { transform: scale(.97); }
.play-action small { display: block; font-size: 11px; font-weight: 400; margin-top: 3px; }
.video-play:disabled { cursor: wait; }
.video-frame.is-playing { box-shadow: 0 6px 20px #8c385812; }
.video-frame.is-playing .video-play { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.video-feedback { margin-top: 16px; color: #a02442; font-size: 13px; }
.video-followup { text-align: center; max-width: 440px; justify-self: center; }
.video-followup > p { max-width: 370px; margin: 0 auto 18px; font-size: 18px; line-height: 1.45; font-weight: 500; color: var(--navy-deep); }
.video-followup .button { width: 100%; }
.secondary-contact { display: grid; margin-top: 22px; color: var(--muted); font-size: 12px; }
.secondary-contact a { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--navy-deep); gap: 8px; }

.site-footer { padding: 45px 0 22px; color: #d0e2e8; background: #063c50; }
.footer-main { display: grid; gap: 24px; }
.footer-logo { width: 247px; height: 40px; object-fit: contain; object-position: left; }
.footer-tagline { font-size: 16px; line-height: 1.65; max-width: 460px; margin-top: 22px; }
.footer-location { margin-top: 18px; font-size: 12px; color: #b4d1db; }
.footer-actions { display: grid; align-content: center; gap: 12px; justify-items: start; }
.footer-actions .button { min-width: 240px; }
.footer-whatsapp { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 25px; padding: 20px 0; margin-top: 28px; border-top: 1px solid #ffffff24; border-bottom: 1px solid #ffffff24; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; color: #ffc0d8; }
.copyright { font-size: 10px; padding-top: 20px; color: #b4d1db; }

@media (max-width: 359px) {
  .form-panel { padding-inline: 16px; }
  .form-heading h2 { font-size: 22px; }
}
@media (max-width: 479px) {
  .context-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-tags li { justify-self: start; }
  .context-tags li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 480px) {
  .container { width: min(1280px, calc(100% - 48px)); }
  .hero-grid { max-width: 580px; }
  .brand span { display: block; }
  .brand img { width: 30px; height: 40px; }
  .brand span { font-size: 12px; }
  .brand strong { font-size: 16px; }
  .header-cta { font-size: 12px; }
  .hero-grid { padding-top: 122px; }
  .form-panel { padding: 28px; }
  .form-heading h2 { font-size: 28px; }
  .hero-visual img { right: 0; height: 370px; }
  .video-intro { text-align: center; margin-inline: auto; }
  .video-intro > p:not(.eyebrow) { margin-inline: auto; }
}
@media (min-width: 900px) {
  .container { width: min(1280px, calc(100% - 80px)); }
  .site-header { top: 18px; }
  .site-header .nav { width: min(1280px, calc(100% - 80px)); min-height: 72px; padding: 12px 22px; gap: 24px; }
  .site-header.is-scrolled .nav { min-height: 64px; padding-block: 8px; }
  .header-links, .site-header.is-menu-open .header-links { display: flex; align-items: center; position: static; gap: 10px; margin-left: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .header-links a { min-height: 44px; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .header-cta { margin-left: 0; }
  .menu-toggle { display: none; }
  .header-cta { padding: 0 20px; border: 1px solid #ffffff65; border-radius: 999px; }
  .hero-grid { max-width: 1280px; grid-template-columns: 1fr 1fr; grid-template-areas: 'copy form' 'visual form'; column-gap: 40px; row-gap: 16px; padding-top: 142px; }
  .hero h1 { font-size: clamp(37px, 4vw, 48px); }
  .hero-lead { font-size: 16px; }
  .microtrusts { font-size: 13px; gap: 8px 16px; margin-top: 24px; }
  .context-tags { font-size: 12px; margin-top: 14px; }
  .form-panel { align-self: start; margin-bottom: 48px; border-radius: 26px; }
  .hero { background-position: center; }
  .hero::before { background: linear-gradient(90deg, rgba(0,69,93,.74), rgba(0,69,93,.5) 32%, rgba(0,69,93,.08) 55%, transparent 72%); }
  .hero-visual { height: 300px; }
  .hero-visual img { height: 360px; right: 0; }
  .fabi-section { padding: 84px 0; }
  .video-layout { max-width: 1030px; grid-template-columns: 1fr 380px; grid-template-rows: 1fr auto 1fr; gap: 0 85px; align-items: start; }
  .video-intro { grid-column: 1; grid-row: 1 / 3; align-self: end; text-align: left; margin: 0; padding-bottom: 36px; }
  .video-intro h2 { font-size: 47px; }
  .video-intro > p:not(.eyebrow) { font-size: 16px; margin-inline: 0; }
  .video-column { grid-column: 2; grid-row: 1 / 4; }
  .video-followup { grid-column: 1; grid-row: 3; text-align: left; justify-self: start; border-top: 1px solid #c7869f4d; padding-top: 28px; }
  .video-followup > p { margin-inline: 0; }
  .video-followup .button { width: auto; }
  .secondary-contact { justify-items: start; }
  .secondary-contact a { justify-self: start; }
  .site-footer { padding-top: 60px; }
  .footer-main { grid-template-columns: 1fr auto; gap: 60px; }
  .footer-actions { justify-items: end; }
  .footer-links { margin-top: 42px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  /* Mantém os textos de apoio na área azul, sem alterar o fundo aprovado. */
  .hero-lead, .context-tags { max-width: 320px; }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr .92fr 1.08fr; grid-template-areas: 'copy visual form'; gap: 12px; padding-top: 152px; }
  .hero-copy { position: relative; z-index: 1; padding-bottom: 55px; }
  .hero h1 { font-size: clamp(41px, 3.4vw, 49px); }
  .hero-lead { max-width: 390px; }
  /* O fundo é contínuo; a mulher recortada ocupa uma coluna própria. */
  .hero-visual { width: calc(100% + 12px); height: 100%; align-self: stretch; overflow: clip; mask-image: linear-gradient(to right, transparent, black 28px); }
  .hero-visual img { height: calc(100% + 75px); max-height: 740px; right: 0; bottom: 72px; mask-image: linear-gradient(to top, transparent, black 3%); }
  .form-panel { padding: 28px; margin-bottom: 58px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* A Hero se apresenta em sequência curta; o formulário já é utilizável. */
  .motion-ready .hero-copy > .eyebrow { animation: hero-enter 560ms cubic-bezier(.22,1,.36,1) both; --motion-y: 10px; }
  .motion-ready .hero-copy > h1 { animation: hero-enter 600ms cubic-bezier(.22,1,.36,1) 70ms both; --motion-y: 14px; }
  .motion-ready .hero-lead { animation: hero-enter 580ms cubic-bezier(.22,1,.36,1) 140ms both; --motion-y: 10px; }
  .motion-ready .microtrusts, .motion-ready .context-tags { animation: hero-enter 580ms cubic-bezier(.22,1,.36,1) 200ms both; --motion-y: 10px; }
  .motion-ready .hero-visual img { animation: hero-art-enter 650ms cubic-bezier(.22,1,.36,1) 130ms both; }
  .motion-ready .form-panel { animation: hero-form-enter 580ms cubic-bezier(.22,1,.36,1) 90ms both; }

  @keyframes hero-enter { from { opacity: 0; transform: translateY(var(--motion-y)); } to { opacity: 1; transform: translateY(0); } }
  @keyframes hero-art-enter { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes hero-form-enter { from { opacity: .88; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

  .motion-ready .motion-reveal { opacity: 0; transform: translateY(var(--reveal-y, 20px)); }
  .motion-ready .motion-reveal.is-visible { animation: reveal-enter 620ms cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms) both; }
  .motion-ready .video-column.motion-reveal { --reveal-y: 24px; --reveal-delay: 120ms; }
  .motion-ready .video-column.motion-reveal.is-visible { animation-name: video-enter; animation-duration: 700ms; }
  .motion-ready .video-intro > h2 { --reveal-delay: 75ms; }
  .motion-ready .video-intro > p:not(.eyebrow), .motion-ready .video-duration { --reveal-delay: 140ms; }
  .motion-ready .video-followup > .button { --reveal-delay: 85ms; }
  .motion-ready .secondary-contact { --reveal-delay: 150ms; }
  .motion-ready .site-footer .motion-reveal { --reveal-y: 12px; }

  @keyframes reveal-enter { from { opacity: 0; transform: translateY(var(--reveal-y, 20px)); } to { opacity: 1; transform: translateY(0); } }
  @keyframes video-enter { from { opacity: 0; transform: translateY(24px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }

  /* Um halo na borda, uma única vez, sem alterar o poster ou o tamanho do player. */
  .video-frame::after { content: ''; position: absolute; inset: 0; border: 2px solid #ffd3e5; border-radius: inherit; box-shadow: inset 0 0 0 4px #fff4; opacity: 0; pointer-events: none; }
  .video-column.is-visible .video-frame::after { animation: video-halo 1050ms ease-out 490ms both; }
  @keyframes video-halo { 0%, 100% { opacity: 0; } 42% { opacity: .82; } }

  .video-frame.is-playing .play-action { transform: scale(.97); opacity: 0; transition: transform .3s, opacity .3s; }
}
@media (max-width: 479px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-visual img { animation-name: hero-art-enter-mobile; }
  .motion-ready .form-panel { animation-name: hero-form-enter-mobile; }
  .motion-ready .motion-reveal { --reveal-y: 14px; }
  .motion-ready .video-column.motion-reveal { --reveal-y: 18px; }
  .motion-ready .video-column.motion-reveal.is-visible { animation-name: video-enter-mobile; }
  @keyframes hero-art-enter-mobile { from { opacity: 0; transform: translateY(8px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes hero-form-enter-mobile { from { opacity: .9; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes video-enter-mobile { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .motion-reveal { opacity: 1; transform: none; }
}
