/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2a5298;
  --blue-dark:  #1d3a6e;
  --teal:       #2e7d6e;
  --teal-light: #3a9e8c;
  --cream:      #f8f7f4;
  --white:      #ffffff;
  --slate:      #2c3e50;
  --slate-mid:  #546278;
  --slate-light:#8596a8;
  --gold:       #c9a84c;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--slate);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ── Layout helpers ────────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }

.section        { padding: 6rem 0; }
.section-light  { background: var(--cream); }
.section-dark   {
  background:
    linear-gradient(135deg, rgba(20,50,90,0.92) 0%, rgba(29,58,110,0.90) 100%),
    url('../img/sitemau_bg.webp') center center / cover no-repeat;
  color: var(--white);
}
.section-teal   {
  background:
    linear-gradient(135deg, rgba(20,70,60,0.90) 0%, rgba(46,125,110,0.88) 100%),
    url('../img/sitemau_bg.webp') center center / cover no-repeat;
  color: var(--white);
}

/* ── Section header ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header-light { color: var(--white); }

.section-line {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}
.section-line-light { background: rgba(255,255,255,0.6); }

.lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.8;
}

/* ── Navigation ────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--blue-dark);
  font-weight: 600;
}

.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--slate-mid);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: background var(--transition);
}
.nav-links a.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--slate); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20,70,60,0.70) 0%, rgba(30,100,85,0.58) 60%, rgba(46,125,110,0.50) 100%),
    url('../img/sitemau_bg.webp') center center / cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 1000px; width: 100%;
  display: flex; align-items: center; gap: 4rem;
  position: relative; z-index: 1;
}

/* Photo */
.hero-photo { flex-shrink: 0; }
.photo-frame {
  width: 220px; height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.08), var(--shadow-md);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-initials {
  font-family: 'Playfair Display', serif;
  font-size: 4rem; color: rgba(255,255,255,0.7);
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

/* Hero text */
.hero-text { color: var(--white); }
.hero-pre {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.6rem;
}
.hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600; color: var(--white);
  margin-bottom: 1.2rem;
}
.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.hero-tagline strong { color: var(--white); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.badge {
  font-size: 0.75rem; font-weight: 500;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.5);
}

.hero-scroll {
  position: absolute; bottom: 2rem;
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; color: var(--slate-mid); }
.about-text .lead { color: var(--slate); margin-bottom: 1.2rem; }
.about-text strong { color: var(--blue); }

.about-values { display: flex; flex-direction: column; gap: 1.2rem; }
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex; gap: 1rem; align-items: flex-start;
  border-left: 3px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.value-icon { font-size: 1.4rem; flex-shrink: 0; }
.value-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.value-card p  { font-size: 0.875rem; color: var(--slate-mid); margin: 0; }

/* ── Areas ─────────────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.area-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.area-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.area-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.area-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--white); }
.area-card p  { font-size: 0.875rem; color: rgba(255,255,255,0.75); }

/* ── Timeline ──────────────────────────────────────────────── */
.timeline { max-width: 740px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: #d8dde6;
}

.timeline-item {
  display: flex; gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-dot {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--blue);
  z-index: 1;
  margin-top: 2px;
}
.timeline-dot-alt { background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  box-shadow: var(--shadow);
  flex: 1;
}
.timeline-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--blue);
  color: var(--white);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.timeline-tag-alt { background: var(--teal); }
.timeline-content h3 { margin-bottom: 0.25rem; }
.timeline-org {
  font-size: 0.875rem; font-weight: 600;
  color: var(--blue); margin-bottom: 0.5rem;
}
.timeline-item:last-child .timeline-org { color: var(--teal); }
.timeline-year {
  font-weight: 400; color: var(--slate-light);
  margin-left: 0.4em;
}
.timeline-content p { font-size: 0.9rem; color: var(--slate-mid); }
.nao-especialista {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--slate-light);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0.1em 0.5em;
  opacity: 0.6;
}
.nao-especialista a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.nao-especialista a:hover { opacity: 1; }

/* ── Atendimento ───────────────────────────────────────────── */
.atend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 800px; margin: 0 auto;
}
.atend-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}
.atend-card-highlight {
  background: var(--white);
  color: var(--slate);
  box-shadow: var(--shadow-md);
}
.atend-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.atend-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.atend-detail {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-bottom: 0.8rem;
}
.atend-card-highlight .atend-detail { color: var(--teal); }
.atend-hospital {
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.5); margin-bottom: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.atend-card p { font-size: 0.9rem; opacity: 0.85; }
.atend-card-highlight p  { color: var(--slate-mid); opacity: 1; }
.atend-card-highlight address {
  line-height: 1.9; font-size: 0.95rem;
  margin: 0.8rem 0; color: var(--slate);
}
.map-link {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--teal); transition: color var(--transition);
}
.map-link:hover { color: var(--teal-light); }

/* ── Contact ───────────────────────────────────────────────── */
.contact-block { text-align: center; }
.contact-block .lead { margin-bottom: 2rem; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #25d366;
  color: var(--white);
  font-weight: 600; font-size: 1rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-whatsapp:hover {
  background: #1fbe5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.contact-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--slate-light);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--slate);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.875rem;
}
.footer p + p { margin-top: 0.3rem; }
.footer-note { font-size: 0.8rem; opacity: 0.7; }

/* ── Animations ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-tagline { margin: 0 auto 1.5rem; }
  .hero-badges { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .atend-grid  { grid-template-columns: 1fr; }
  .timeline::before { left: 12px; }
  .timeline-dot { width: 26px; height: 26px; }

  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 0;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block; padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  .nav-links a.nav-cta {
    margin: 0.5rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .photo-frame { width: 160px; height: 160px; }
}
