@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin.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: 'Montserrat';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.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("assets/fonts/yellowtail-latin.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;
}

/* Identidade Guaíba Clin: roxo do letreiro, verde neon do "Clin" e verde da fachada. */
:root {
  --plum-950: #150b22;
  --plum: #1f1230;
  --plum-800: #2a1942;
  --plum-700: #3b2759;
  --mint: #3bf0a2;
  --mint-soft: #b9f8dc;
  --green: #0e7a45;
  --green-text: #087a48;
  --ink: #1f1830;
  --muted: #5b5669;
  --on-dark: #cfc8dc;
  --line: #e4e0ea;
  --paper: #f6f5f8;
  --white: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; letter-spacing: -.03em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 6px; }
.header a:focus-visible, .header button:focus-visible, .hero a:focus-visible, .companies a:focus-visible, .contact a:focus-visible, .footer a:focus-visible { outline-color: var(--mint); }

.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 14px 18px; background: var(--white); color: var(--ink); z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.script { font-family: 'Yellowtail', cursive; font-weight: 400; letter-spacing: 0; color: var(--green); font-size: 1.12em; line-height: .9; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-text); margin-bottom: 18px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.3; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.btn span { font-size: 18px; font-weight: 400; }
.btn:hover { transform: translateY(-2px); }
.btn-mint { background: var(--mint); color: var(--plum); box-shadow: 0 0 0 0 #3bf0a200; }
.btn-mint:hover { background: #6ff5bb; box-shadow: 0 8px 28px #3bf0a24d; }
.btn-ghost { border-color: #ffffff59; color: var(--white); }
.btn-ghost:hover { border-color: var(--mint); background: #ffffff0f; }
.btn-plum { background: var(--plum); color: var(--white); }
.btn-plum:hover { background: var(--plum-700); }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 30; background: #1f1230f2; backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff14; color: var(--white); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 8px 30px #150b2259; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: block; flex-shrink: 0; width: 200px; }
.brand img { width: 100%; height: auto; }
.header nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; white-space: nowrap; }
.header nav a { color: #e6e0ef; transition: color .2s; }
.header nav a:hover { color: var(--mint); }
.header-portals { display: flex; gap: 18px; padding-left: 22px; border-left: 1px solid #ffffff2e; }
.header-portals a { font-size: 13px; }
.header-cta { min-height: 44px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid #ffffff38; border-radius: 50%; background: transparent; color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 85% 30%, #3b275999, transparent 70%), radial-gradient(40% 50% at 10% 100%, #0e7a4533, transparent 70%), var(--plum); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 72px 112px; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.hero h1 .script { color: var(--mint); text-shadow: 0 0 22px #3bf0a273; }
.hero-description { font-size: 18px; line-height: 1.7; color: var(--on-dark); max-width: 500px; margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 13px; color: #a99fbb; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px #3bf0a240, 0 30px 70px #0a041599; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: #150b22d9; backdrop-filter: blur(8px); font-size: 13px; color: var(--white); }
.hero-photo figcaption svg { width: 18px; height: 18px; color: var(--mint); }
.pulse-line { position: absolute; left: 0; right: 0; bottom: 10px; width: 100%; height: 80px; }
.pulse-line path { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pulse-base { opacity: .35; }
.pulse-beat { stroke-width: 3; filter: drop-shadow(0 0 6px #3bf0a2) drop-shadow(0 0 14px #3bf0a280); stroke-dasharray: 0 132; }

.info-strip { background: var(--green); color: #e4f6ec; font-size: 13px; }
.info-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding-block: 13px; }
.info-strip strong { font-weight: 700; color: var(--white); }

/* Seções */
.section { padding: 96px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-heading h2, .companies h2, .about h2, .contact h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.section-heading > p { max-width: 360px; font-size: 16px; line-height: 1.7; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; padding: 30px 26px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; scroll-margin-top: 110px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card:hover { transform: translateY(-4px); border-color: #3bf0a2; box-shadow: 0 18px 40px #1f123014; }
.service-card > svg { width: 48px; height: 48px; padding: 10px; margin-bottom: 26px; border-radius: 14px; background: var(--plum); color: var(--mint); stroke-width: 2.2; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.service-card a { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; font-size: 15px; font-weight: 700; color: var(--green-text); }
.service-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Empresas */
.companies { background: var(--plum); color: var(--white); padding: 96px 0; }
.companies-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.companies .eyebrow { color: var(--mint); }
.companies .script, .contact .script { color: var(--mint); }
.companies-photo, .about-photo { position: relative; border-radius: 28px; overflow: hidden; }
.companies-photo img, .about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.companies-photo figcaption, .about-photo figcaption { position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: #ffffffd9; text-shadow: 0 1px 4px #0009; }
.check-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3L17 9' fill='none' stroke='%231f1230' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Agendamento */
.booking-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.booking-steps li { border-top: 2px solid var(--line); padding-top: 24px; }
.step-index { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%; background: var(--plum); color: var(--mint); font: 800 15px 'Montserrat', sans-serif; }
.booking-steps h3 { font-size: 19px; margin-bottom: 10px; }
.booking-steps p { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 340px; }
.booking-action { display: flex; align-items: center; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.booking-action p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.booking-action p a { color: var(--green-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* A clínica */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; max-width: 540px; }
.address-card { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.address-card > svg { flex-shrink: 0; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--plum); color: var(--mint); }
.address-card strong { display: block; font-size: 15px; }
.address-card div span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.address-card a { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--green-text); white-space: nowrap; }
.address-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contato */
.contact { background: radial-gradient(50% 120% at 100% 0%, #3b2759, transparent 70%), var(--plum-800); color: var(--white); padding: 80px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact .eyebrow { color: var(--mint); }
.contact-inner > div > p:not(.eyebrow) { margin-top: 14px; font-size: 16px; color: var(--on-dark); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Rodapé */
.footer { background: var(--plum-950); color: var(--on-dark); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 40px; }
.footer .brand { width: 190px; }
.footer-tagline { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.8; color: #a99fbb; }
.footer strong { display: block; color: var(--white); font-size: 15px; margin-bottom: 12px; }
.footer-main p { font-size: 14px; line-height: 1.8; margin-top: 8px; }
.footer-main a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid #ffffff1a; font-size: 12px; color: #9a90ad; }

/* Flutuantes */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; background: var(--mint); color: var(--plum); font-size: 14px; font-weight: 700; box-shadow: 0 8px 28px #150b2240; transition: transform .2s; }
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float svg { width: 24px; height: 24px; stroke-width: 1.8; }
.mobile-cta { display: none; }

/* Entrada da linha de batimento (só com movimento liberado) */
@media (prefers-reduced-motion: no-preference) {
  /* A linha se desenha uma vez; depois um pulso brilhante percorre a tela sem parar, como num monitor cardíaco. */
  .pulse-base { stroke-dasharray: 100; stroke-dashoffset: 100; animation: pulse-draw 2.4s .3s cubic-bezier(.6, 0, .3, 1) forwards; }
  .pulse-beat { stroke-dasharray: 12 120; stroke-dashoffset: 12; animation: pulse-run 3.2s 2.2s linear infinite backwards; }
  @keyframes pulse-draw { to { stroke-dashoffset: 0; } }
  @keyframes pulse-run { from { stroke-dashoffset: 12; } to { stroke-dashoffset: -120; } }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse-base { opacity: 1; filter: drop-shadow(0 0 6px #3bf0a2aa); }
}

@media (max-width: 1180px) {
  .header nav { gap: 16px; font-size: 13px; }
  .header-portals { gap: 14px; padding-left: 16px; }
  .brand { width: 176px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 32px 20px; background: var(--plum); border-bottom: 1px solid #ffffff1a; box-shadow: 0 16px 30px #150b2266; }
  .header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .header nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid #ffffff12; }
  .header-portals { flex-direction: column; gap: 0; padding: 0; border: 0; }
  .header-portals a { font-size: 16px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: grid; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-block: 56px 104px; }
  .hero-copy { max-width: 640px; }
  .companies-inner, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { order: -1; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .section, .companies { padding: 64px 0; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 16px; max-width: none; }
  .booking-steps { grid-template-columns: 1fr; gap: 24px; }
  .booking-action { display: block; }
  .booking-action p { margin-top: 18px; }
  .contact-inner { display: block; }
  .contact-actions { margin-top: 28px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  :root { scroll-padding-top: 80px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .header-inner { min-height: 72px; }
  .brand { width: 158px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .header nav { padding-inline: 16px; }
  .hero-inner { padding-block: 40px 96px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero-description { font-size: 16px; margin: 20px 0 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px 22px; }
  .info-strip .container { display: grid; gap: 4px; text-align: center; }
  .address-card { flex-wrap: wrap; }
  .address-card a { margin-left: 56px; }
  .contact-actions .btn, .booking-action .btn { width: 100%; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #1f1230f2; backdrop-filter: blur(12px); border-top: 1px solid #ffffff1a; }
  .mobile-cta .btn { width: 100%; min-height: 50px; }
  .whatsapp-float { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); padding: 14px; }
  .whatsapp-float span { display: none; }
}
