/* Hospital e Maternidade de Assis — folha de estilo (HTML5 puro) */
:root {
  --background: #ffffff;
  --foreground: #16211c;
  --card: #ffffff;
  --primary: #3f8c5d;
  --primary-deep: #1f4d33;
  --primary-foreground: #fbfefb;
  --muted: #f5f8f6;
  --muted-foreground: #6a7a71;
  --accent: #dcefe1;
  --accent-foreground: #1f4d33;
  --border: #e3e9e5;
  --radius: 0.5rem;
  --shadow-card: 0 1px 2px rgba(31, 77, 51, 0.06), 0 8px 24px rgba(31, 77, 51, 0.07);
  --shadow-lift: 0 12px 40px rgba(31, 77, 51, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell {
  margin-inline: auto;
  width: 100%;
  max-width: 76rem;
  padding-inline: 1.25rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
section { scroll-margin-top: 7.5rem; }
.section { padding-block: 5rem; }
.section--muted { background: var(--muted); }
.section h2 { margin-top: 0.75rem; font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 700; }
.section .lead { margin-top: 1rem; max-width: 44rem; color: var(--muted-foreground); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary .icon, .btn--primary.btn-icon { color: var(--primary-foreground); fill: currentColor; }
.btn--primary:hover { background: #2f6a49; box-shadow: 0 10px 24px rgba(63, 140, 93, 0.24); }
.btn--deep { background: var(--primary-deep); color: var(--primary-foreground); width: 100%; justify-content: center; }
.btn--deep:hover { opacity: 0.95; box-shadow: 0 10px 24px rgba(31, 77, 51, 0.2); }
.btn--deep[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn--ghost { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(63, 140, 93, 0.08); box-shadow: inset 0 0 0 1px rgba(63, 140, 93, 0.08); }
.btn--outline-light { border-color: rgba(251, 254, 251, 0.4); color: var(--primary-foreground); }
.btn--outline-light:hover { background: rgba(251, 254, 251, 0.12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--background); }
.topbar { background: var(--primary-deep); color: var(--primary-foreground); font-size: 0.75rem; }
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: var(--primary-foreground);
  transition: background-color 0.2s, transform 0.2s;
}
.social-link:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.header-main { border-bottom: 1px solid var(--border); }
.header-main .shell { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 2.75rem; width: auto; }
.brand span { display: none; border-left: 1px solid var(--border); padding-left: 0.75rem; font-size: 0.72rem; color: var(--muted-foreground); line-height: 1.3; }
.main-nav { display: none; flex: 1; justify-content: center; gap: 1.1rem; }
.main-nav a { font-size: 0.85rem; font-weight: 700; color: rgba(22, 33, 28, 0.8); white-space: nowrap; }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle {
  width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); background: transparent; cursor: pointer;
}
.header-cta { display: none; }
.mobile-nav { display: none; border-bottom: 1px solid var(--border); background: var(--background); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 0.85rem 0; font-size: 0.875rem; font-weight: 700; border-bottom: 1px solid rgba(227, 233, 229, 0.7); }
.mobile-nav a:last-child { border-bottom: 0; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .overlay { position: absolute; inset: 0; background: rgba(31, 77, 51, 0.82); }
.hero .shell { position: relative; padding-block: 6rem; }
.hero .eyebrow { color: rgba(251, 254, 251, 0.8); }
.hero h1 { margin-top: 1rem; max-width: 46rem; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; color: var(--primary-foreground); }
.hero p { margin-top: 1.5rem; max-width: 38rem; color: rgba(251, 254, 251, 0.87); font-size: 1.05rem; }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Atalhos */
.shortcuts { border-bottom: 1px solid var(--border); background: var(--muted); }
.shortcuts .grid { display: grid; gap: 1rem; padding-block: 2.5rem; grid-template-columns: 1fr; }
.shortcut {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.shortcut:hover { box-shadow: var(--shadow-lift); }
.shortcut .bubble { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--accent); color: var(--accent-foreground); }
.shortcut strong { display: block; font-size: 0.875rem; }
.shortcut small { display: block; margin-top: 0.25rem; font-size: 0.85rem; color: var(--muted-foreground); }

/* Layouts de duas colunas */
.split { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
.split img { width: 100%; border-radius: 0.75rem; object-fit: cover; box-shadow: var(--shadow-card); }
.section-image { max-height: 28rem; width: 100%; height: auto; }
.metrics { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.metrics div { border-left: 2px solid var(--primary); padding-left: 1rem; }
.metrics dt { font-size: 1.5rem; font-weight: 700; color: var(--primary-deep); font-family: "Sora", sans-serif; }
.metrics dd { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted-foreground); }

/* Cards */
.cards { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); transition: box-shadow 0.2s; }
.card:hover { box-shadow: var(--shadow-lift); }
.card .icon { color: var(--primary); width: 26px; height: 26px; }
.card h3 { margin-top: 1rem; font-size: 1rem; font-weight: 700; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Galeria */
.gallery { margin-top: 3rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); box-shadow: var(--shadow-card); }
.gallery img { height: 16rem; width: 100%; object-fit: cover; }
.gallery figcaption { padding: 1rem 1.25rem; font-size: 0.875rem; font-weight: 700; }

/* Maternidade */
.maternity { background: var(--primary-deep); color: var(--primary-foreground); }
.maternity .eyebrow { color: rgba(251, 254, 251, 0.8); }
.maternity p { color: rgba(251, 254, 251, 0.87); }
.text-white { color: #ffffff !important; }
.maternity ul { margin-top: 2rem; display: grid; gap: 0.75rem; font-size: 0.9rem; color: rgba(251, 254, 251, 0.87); }
.maternity li { display: flex; gap: 0.75rem; }
.maternity li::before { content: ""; margin-top: 0.6rem; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 999px; background: rgba(251, 254, 251, 0.7); }

/* Convênios */
.plans { margin-top: 2.5rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans div { display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1.5rem 1rem; font-size: 0.85rem; font-weight: 700; }

/* Localização */
.location-grid { margin-top: 3rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
.info-card { border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.info-card ul { display: grid; gap: 1.25rem; font-size: 0.875rem; }
.info-card li { display: flex; gap: 0.75rem; }
.info-card .icon { color: var(--primary); flex: 0 0 auto; margin-top: 2px; }
.info-card strong { display: block; }
.info-card small { display: block; margin-top: 0.25rem; font-size: 0.85rem; color: var(--muted-foreground); }
.info-card .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.map-frame { overflow: hidden; border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: var(--shadow-card); }
.map-frame iframe { width: 100%; height: 20rem; border: 0; display: block; }

/* Formulários */
.form { border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.form label { display: block; font-size: 0.85rem; font-weight: 700; margin-top: 1rem; }
.form .row label { margin-top: 0; }
.form input, .form select, .form textarea {
  margin-top: 0.5rem; width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); padding: 0.6rem 0.75rem; font-size: 0.875rem; font-weight: 400;
  font-family: inherit; color: inherit; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); }
.form button { margin-top: 1.5rem; }
.recaptcha-field { margin-bottom: 1rem; }
.feedback { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1rem; font-size: 0.875rem; }
.feedback[hidden] { display: none; }
.feedback.is-error { border-color: #d97066; color: #a3352a; }

/* Footer */
.site-footer { background: var(--primary-deep); color: var(--primary-foreground); }
.site-footer .grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; grid-template-columns: 1fr; }
.site-footer h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; }
.site-footer ul { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.875rem; color: rgba(251, 254, 251, 0.85); }
.site-footer li { display: flex; gap: 0.5rem; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.footer-logos .logo-hma { height: 3rem; width: auto; border-radius: 4px; background: rgba(255, 255, 255, 0.95); padding: 6px; }
.footer-logos .logo-rotary { height: 3rem; width: auto; }
.footer-about { margin-top: 1rem; max-width: 26rem; font-size: 0.875rem; color: rgba(251, 254, 251, 0.8); }
.footer-bottom { border-top: 1px solid rgba(251, 254, 251, 0.15); }
.footer-bottom .shell { display: flex; flex-direction: column; gap: 0.5rem; padding-block: 1.25rem; font-size: 0.75rem; color: rgba(251, 254, 251, 0.7); }
.footer-bottom button { background: none; border: 0; padding: 0; color: #8fd0a5; font: inherit; cursor: pointer; }
.footer-bottom button:hover { color: var(--primary-foreground); }

/* WhatsApp */
.whatsapp-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-foreground);
  padding: 0.85rem 1.25rem; font-size: 0.875rem; font-weight: 700; box-shadow: var(--shadow-lift);
  transition: transform 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.05); }

/* Cookies */
.cookie-banner { position: fixed; inset-inline: 0; bottom: 0; z-index: 70; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.97); box-shadow: 0 -8px 30px rgba(31, 77, 51, 0.12); }
.cookie-banner[hidden] { display: none; }
.cookie-banner .shell { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1rem; font-size: 0.875rem; }
.cookie-banner small { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* Modal LGPD */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(22, 33, 28, 0.6); }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 52rem; max-height: 85vh; overflow-y: auto; border-radius: 0.75rem; background: var(--card); color: var(--foreground); padding: 1.75rem; }
.modal-box h2 { font-size: 1.25rem; }
.modal-box > p { color: var(--muted-foreground); font-size: 0.875rem; margin-top: 0.25rem; }
.modal-body { margin-top: 1.5rem; display: grid; gap: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.modal-body h3 { font-size: 0.95rem; color: var(--foreground); }
.modal-body ul { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; display: grid; gap: 0.25rem; }
.modal-close { margin-top: 1.5rem; }

@media (min-width: 640px) {
  .shortcuts .grid, .cards, .form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookie-banner .shell, .footer-bottom .shell { flex-direction: row; align-items: center; justify-content: space-between; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .brand span { display: block; }
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .shortcuts .grid, .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .location-grid { grid-template-columns: 1fr 1.2fr; }
  .map-frame iframe { height: 100%; min-height: 26rem; }
}

.btn { white-space: nowrap; }

/* Utilitários para substituir estilos inline */
.icons-sprite { display: none; }
.icon--sm { width: 14px; height: 14px; }
.icon--md { width: 16px; height: 16px; }
.two-col { display: grid; gap: 2.5rem; }
.lead--sm { font-size: .875rem; }
.border-top { border-top: 1px solid var(--border); }
.mt-2rem { margin-top: 2rem; }
.flex-wrap-center { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
