/* ════════════════════════════════════════════════════════════════════
   CLÍNICA SANTA CLARA — style.css
   Stack: HTML5 / CSS3 / Vanilla JS | Paleta: #00a859 + #fff + grays
════════════════════════════════════════════════════════════════════ */

/* ── 01. TOKENS ──────────────────────────────────────────────────── */
:root {
  --green:          #00a859;
  --green-dark:     #007d42;
  --green-darker:   #005c30;
  --green-light:    #e6f7ee;
  --green-mid:      #c8eedd;
  --white:          #ffffff;
  --gray-50:        #f8f9fa;
  --gray-100:       #f1f3f5;
  --gray-200:       #e9ecef;
  --gray-300:       #dee2e6;
  --gray-400:       #adb5bd;
  --gray-500:       #868e96;
  --gray-600:       #6c757d;
  --gray-700:       #495057;
  --gray-800:       #343a40;
  --gray-900:       #212529;
  --red-alert:      #b00000;
  --red-light:      #fff0f0;

  --font-display:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:      'DM Sans', 'Segoe UI', -apple-system, sans-serif;

  --radius-xs:      4px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;
  --radius-full:    9999px;

  --shadow-xs:      0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:      0 2px 12px rgba(0,0,0,.08);
  --shadow-md:      0 8px 32px rgba(0,0,0,.11);
  --shadow-lg:      0 20px 60px rgba(0,0,0,.15);
  --shadow-xl:      0 32px 80px rgba(0,0,0,.20);
  --shadow-green:   0 8px 28px rgba(0,168,89,.30);

  --ease:           cubic-bezier(.4,0,.2,1);
  --ease-bounce:    cubic-bezier(.22,.68,0,1.2);
  --transition:     .25s var(--ease);
  --transition-md:  .4s var(--ease);

  --max-w:          1200px;
  --header-h:       80px;
  --section-py:     96px;
}

/* ── 02. RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ── 03. TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--gray-900);
}

/* ── 04. UTILITIES ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 99999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--green-mid); }

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.section-heading.white { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-inline: auto;
}
.section-lead.white { color: rgba(255,255,255,.82); }

.section-header-center { text-align: center; margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 12px 36px rgba(0,168,89,.40); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-green:hover { background: var(--green-light); }

.btn-lg  { padding: 16px 36px; font-size: .95rem; }
.btn-sm  { padding: 9px 20px; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── 05. COOKIE BAR ──────────────────────────────────────────────── */
#cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  transform: translateY(0);
  transition: transform .4s var(--ease);
}
#cookie-bar.hidden { transform: translateY(110%); }
.cookie-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-icon { color: var(--green); font-size: 1.3rem; flex-shrink: 0; }
.cookie-inner p { font-size: .88rem; color: rgba(255,255,255,.82); flex: 1; min-width: 200px; }
.cookie-link {
  background: none; border: none; color: var(--green);
  font-size: inherit; text-decoration: underline; cursor: pointer;
  padding: 0; font-family: inherit;
}
.btn-cookie {
  background: var(--green); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 9px 22px; font-size: .85rem; font-weight: 600;
  white-space: nowrap; transition: background var(--transition);
}
.btn-cookie:hover { background: var(--green-dark); }

/* ── 06. MODAL BASE ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,20,40,.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 16px;
  animation: fadeIn .3s var(--ease) forwards;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.closing { animation: fadeOut .28s var(--ease) forwards; }

.modal-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp .4s var(--ease-bounce) forwards;
}
.modal-overlay.closing .modal-container { animation: slideDown .28s var(--ease) forwards; }

.modal-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  background: var(--white);
}
.modal-header-red { background: var(--white); }

.modal-logo { max-height: 52px; max-width: 220px; object-fit: contain; }

.modal-close-btn {
  background: none; border: none;
  color: var(--gray-500); font-size: 1.2rem;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.modal-close-btn:hover { color: var(--gray-900); background: var(--gray-100); }

.modal-body {
  padding: 28px 36px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}
.modal-body-scroll { padding: 24px 36px; }
.modal-body-pdf { padding: 0; min-height: 60vh; }
.modal-body-pdf iframe { height: 100%; min-height: 60vh; border: 0; }

.modal-footer {
  padding: 20px 36px 28px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.modal-footer-split { justify-content: space-between; gap: 12px; }

.modal-title-red {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red-alert);
  text-align: center;
  margin-bottom: 10px;
}
.modal-title-green {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.modal-divider { width: 44px; height: 3px; border-radius: 2px; margin: 0 auto 22px; }
.modal-divider-red { background: var(--red-alert); }

.modal-text {
  font-size: .96rem;
  line-height: 1.78;
  color: var(--gray-800);
  margin-bottom: 16px;
  text-align: justify;
}
.modal-text:last-of-type { margin-bottom: 0; }
.modal-text strong { color: var(--gray-900); font-weight: 700; }
.modal-text-sm { font-size: .9rem; line-height: 1.7; color: var(--gray-700); margin-bottom: 14px; }

.mark-red { color: var(--red-alert); font-weight: 700; background: none; }
.mark-block { background: rgba(176,0,0,.07); border-radius: 3px; padding: 1px 4px; }

.modal-sign { font-size: .9rem; color: var(--gray-600); margin-top: 22px; line-height: 1.6; }
.modal-sign span { font-weight: 600; color: var(--gray-800); }

.modal-subtitle {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 20px 0 6px;
}

/* Modal sizes */
.modal-comunicado { max-width: 580px; }
.modal-privacidade { max-width: 640px; }
.modal-termo { max-width: 860px; width: 100%; }

/* ── 07. HEADER ──────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  height: var(--header-h);
  background: var(--white);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--green);
  background: var(--green-light);
}

.btn-call {
  margin-left: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile call btn only visible inside open nav drawer */
.btn-call-mobile { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 08. HERO ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-image: url('../img/slide.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,60,30,.82) 0%,
    rgba(0,100,50,.70) 50%,
    rgba(0,40,20,.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(200,238,221,.3);
  border-radius: var(--radius-full);
  background: rgba(0,168,89,.12);
}

.hero-heading {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  max-width: 680px;
}
.hero-heading em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  animation: bounce 2s ease infinite;
}

/* ── 09. SECTION: A CLÍNICA ──────────────────────────────────────── */
#sobre {
  padding: var(--section-py) 0;
}

.section-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-text { }

.section-body {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-badges {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.badge-item { text-align: center; }
.badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Moldura da imagem */
.clinica-figure {
  position: relative;
  display: block;
}
.clinica-figure::before,
.clinica-figure::after {
  content: '';
  position: absolute;
  width: 65%;
  height: 65%;
  border: 3px solid var(--green);
  border-radius: var(--radius-md);
  z-index: 0;
  pointer-events: none;
}
.clinica-figure::before { top: -18px; left: -18px; opacity: .6; }
.clinica-figure::after  { bottom: -18px; right: -18px; opacity: .35; }
.clinica-figure img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* ── 10. SECTION: SERVIÇOS ───────────────────────────────────────── */
.section-alt { background: var(--gray-50); }
#servicos { padding: var(--section-py) 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-mid);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green);
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.service-card p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  margin-top: 4px;
  transition: gap var(--transition), color var(--transition);
}
.service-cta:hover { gap: 10px; color: var(--green-dark); }

.services-cta-wrap { text-align: center; margin-top: 56px; }

/* ── 11. SECTION: ESPECIALIDADES ─────────────────────────────────── */
.section-green {
  background: var(--green);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.section-green::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.section-green::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,0,0,.06) 0%, transparent 70%);
  pointer-events: none;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.specialty-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--white);
  backdrop-filter: blur(10px);
  transition: background var(--transition), transform var(--transition);
  position: relative;
}
.specialty-card:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-4px);
}

.specialty-featured {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}

.specialty-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--green);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.specialty-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.specialty-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.specialty-desc {
  font-size: .92rem;
  color: rgba(255,255,255,.80);
  line-height: 1.7;
  margin-bottom: 24px;
}

.specialty-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.specialty-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,.90);
}
.specialty-list li i {
  color: var(--green-mid);
  font-size: .7rem;
  flex-shrink: 0;
}

/* ── 12. SECTION: CONVÊNIOS ──────────────────────────────────────── */
#convenios { padding: var(--section-py) 0; }

.convenios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.convenio-pill {
  background: var(--pill-bg, var(--gray-100));
  color: var(--pill-color, var(--gray-800));
  font-size: .88rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  letter-spacing: .02em;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.convenio-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-sm);
}

.convenios-note {
  text-align: center;
  margin-top: 40px;
  font-size: .9rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.convenios-note i { color: var(--green); }
.convenios-note a { color: var(--green); font-weight: 600; text-decoration: underline; }

/* ── 13. SECTION: GUIA DO PACIENTE ──────────────────────────────── */
.section-dark {
  background: var(--gray-900);
  padding: var(--section-py) 0;
}

.tabs-wrapper { }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  background: rgba(255,255,255,.05);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.1);
}

.tab-btn {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.tab-btn:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); }
.tab-btn.active {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.tab-btn i { font-size: .9rem; }

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: fadeIn .35s var(--ease);
}

.tab-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.tab-inner-single { grid-template-columns: 1fr; max-width: 640px; }

.tab-col h4 {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-col h4 i { color: var(--green); }
.tab-subtitle {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.45);
  margin-bottom: 12px;
}
.tab-col p {
  font-size: .9rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 14px;
}
.tab-col a { color: var(--green-mid); text-decoration: underline; }

.guide-list { display: flex; flex-direction: column; gap: 10px; }
.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
}
.guide-list li strong { color: var(--green-mid); }

/* ── 14. SECTION: CONTATO ────────────────────────────────────────── */
#contato { padding: var(--section-py) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gray-900);
  margin-bottom: 32px;
}

.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--gray-500);
  margin-bottom: 3px;
}
.contact-value {
  font-size: .95rem;
  color: var(--gray-800);
  font-weight: 500;
  line-height: 1.5;
  transition: color var(--transition);
}
.contact-value:hover { color: var(--green); }

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.req { color: var(--green); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,168,89,.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

#form-submit .btn-loading { display: none; }
#form-submit.loading .btn-text { display: none; }
#form-submit.loading .btn-loading { display: inline-flex; }

#form-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
#form-feedback.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
#form-feedback.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.recaptcha-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: .85rem;
  color: #721c24;
  font-weight: 500;
}
.recaptcha-error[hidden] { display: none; }

/* ── 15. SECTION: MAPA ───────────────────────────────────────────── */
#mapa { line-height: 0; }

/* ── 16. FOOTER ──────────────────────────────────────────────────── */
#site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-200);
}

.footer-about p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin: 18px 0 24px;
  max-width: 320px;
}
.footer-about img { margin-bottom: 0; }

.footer-nav-title {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: .9rem;
  color: var(--gray-600);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--green); }

.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.5;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--green); }
.footer-contact a i { margin-top: 3px; color: var(--green); flex-shrink: 0; }

/* Tarja */
.footer-bar {
  background: var(--green);
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  font-size: .82rem;
}
.footer-bar a { color: var(--white); font-weight: 600; text-decoration: underline; }
.footer-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sep { color: rgba(255,255,255,.4); }
.footer-text-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.footer-text-btn:hover { color: var(--white); }

/* ── 17. BACK TO TOP ─────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 72px;
  right: 32px;
  z-index: 7000;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-green);
  border: 2px solid #39ff8a;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--green-dark); }

/* ── 18. ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; }  to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; }  to { opacity: 0; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes slideDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate="fade-left"]  { transform: translateX(24px); }
[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ── 19. RESPONSIVE: TABLET ≤ 960px ─────────────────────────────── */
@media (max-width: 960px) {
  :root { --section-py: 72px; }

  .header-nav, .btn-call { display: none; }
  .menu-toggle { display: flex; }

  .header-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-200);
    z-index: 7999;
    animation: fadeIn .25s var(--ease);
  }
  .header-nav.open .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }
  /* call button inside mobile drawer */
  .header-nav.open .btn-call-mobile {
    display: inline-flex !important;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }

  .section-grid-2col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .section-media { order: -1; }

  .specialties-grid { grid-template-columns: 1fr; }
  .specialty-list { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: 1 / -1; }
}

/* ── 20. RESPONSIVE: MOBILE ≤ 600px ─────────────────────────────── */
@media (max-width: 600px) {
  :root { --section-py: 56px; --header-h: 68px; }

  .hero-heading { font-size: 2.1rem; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { padding: 14px 24px; }

  .about-badges { gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }

  .tabs { flex-direction: column; }
  .tab-btn { min-width: unset; width: 100%; text-align: left; justify-content: flex-start; }
  .tab-inner { grid-template-columns: 1fr; gap: 28px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }

  .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px 24px; }
  .modal-header { padding: 18px 20px; }
  .modal-footer-split { flex-direction: column; }

  #back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }

  .specialties-grid { gap: 20px; }
  .specialty-card { padding: 30px 24px; }
}
