/* =============================================================
   Dr. Fernando Mariano — Otorrinolaringologia & Medicina do Sono
   ============================================================= */

/* Fontes carregadas via <link> no HTML (Google Fonts):
   Fraunces (display elegante variável) + Inter (sans-serif moderna) */

/* ----- Variáveis ----- */
:root {
  --c-green:      #5B5C3C;
  --c-green-dark: #44452c;
  --c-red:        #81331D;
  --c-red-dark:   #5f2614;
  --c-orange:     #BE6C44;
  --c-beige:      #E2D4BA;
  --c-cream:      #F4EFE9;
  --c-gray:       #D9D4D1;
  --c-teal:       #82A6A2;
  --c-ink:        #282828;
  --c-ink-soft:   #4a4a48;
  --c-white:      #ffffff;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(40, 40, 40, 0.06);
  --shadow:    0 8px 24px rgba(40, 40, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(40, 40, 40, 0.12);

  --container: 1200px;
  --header-h:  100px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ----- Tipografia ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 { font-weight: 600; }
h2 { font-weight: 500; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

p { color: var(--c-ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--c-green);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

/* ----- Containers e utilidades ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(60px, 9vw, 120px) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* ----- Botões ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-red);
  color: var(--c-cream);
}
.btn-primary:hover {
  background: var(--c-red-dark);
  box-shadow: 0 12px 30px rgba(129, 51, 29, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--c-green);
  border-color: var(--c-green);
}
.btn-secondary:hover {
  background: var(--c-green);
  color: var(--c-cream);
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  padding: 12px 0;
}
.btn-ghost::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(6px); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 239, 233, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.85; }
.brand img { height: 72px; width: auto; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand img { height: 56px; }

.nav-list {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-list a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-ink);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--c-red);
  transition: width 0.3s var(--ease);
}
.nav-list a:hover { color: var(--c-red); }
.nav-list a:hover::after { width: 100%; }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(190, 108, 68, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(91, 92, 60, 0.06), transparent 60%),
    var(--c-cream);
}

.hero-pattern {
  position: absolute;
  top: 0; right: -5%;
  width: 60%;
  max-width: 700px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeUp 0.9s var(--ease) both;
}
.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 24px;
  line-height: 1.05;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--c-red);
  font-family: var(--font-display);
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-credentials {
  display: flex;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--c-gray);
  font-size: 0.82rem;
  color: var(--c-ink-soft);
  letter-spacing: 0.05em;
}
.hero-credentials strong { color: var(--c-green); font-weight: 600; }

.hero-photo {
  position: relative;
  animation: fadeIn 1.2s var(--ease) both;
  animation-delay: 0.2s;
}
.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--c-beige);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 60%; height: 60%;
  border: 2px solid var(--c-orange);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}
.hero-photo::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 50%; height: 50%;
  background: var(--c-beige);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.hero-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.hero-badge-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse 2s infinite;
}

/* =============================================================
   CREDENCIAIS (faixa)
   ============================================================= */
.credentials {
  background: var(--c-green);
  color: var(--c-cream);
  padding: 50px 0;
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.credential-item {
  position: relative;
}
.credential-item + .credential-item::before {
  content: '';
  position: absolute;
  left: -20px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60%;
  background: rgba(244, 239, 233, 0.18);
}
.credential-item .credential-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--c-beige);
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.credential-item .credential-label {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-transform: uppercase;
}

/* =============================================================
   SOBRE
   ============================================================= */
.about {
  background: var(--c-cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-content h2 { margin-bottom: 24px; }
.about-content p { margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }

.about-credentials {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-credentials li {
  padding: 14px 18px;
  background: var(--c-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-orange);
  font-size: 0.9rem;
}
.about-credentials li strong {
  display: block;
  color: var(--c-green);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.about-cta { margin-top: 36px; display: inline-flex; }

/* =============================================================
   FOCO: RONCO/APNEIA
   ============================================================= */
.focus {
  background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-beige) 100%);
  position: relative;
  overflow: hidden;
}
.focus-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.focus-card {
  background: var(--c-white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-top: 3px solid transparent;
}
.focus-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--c-red);
}
.focus-card .focus-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--c-red);
  transition: background 0.3s var(--ease);
}
.focus-card:hover .focus-icon { background: var(--c-red); color: var(--c-cream); }
.focus-card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.focus-card p { font-size: 0.95rem; line-height: 1.65; }

/* =============================================================
   ESPECIALIDADES (fundo verde — destaque)
   ============================================================= */
.specialties {
  background: var(--c-green);
  position: relative;
  overflow: hidden;
}
.specialties::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(190, 108, 68, 0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.specialties::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(226, 212, 186, 0.1), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.specialties > .container { position: relative; z-index: 1; }

.specialties .section-head h2 { color: var(--c-cream); }
.specialties .section-head p   { color: rgba(244, 239, 233, 0.75); }
.specialties .section-head .eyebrow { color: var(--c-beige); }
.specialties .section-head .eyebrow::before { background: var(--c-beige); }

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.specialty-col {
  background: var(--c-cream);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}
.specialty-col:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.specialty-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(91, 92, 60, 0.15);
}
.specialty-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cream);
  flex-shrink: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.specialty-col:hover .specialty-icon {
  background: var(--c-red);
  transform: rotate(-6deg) scale(1.05);
}
.specialty-head h3 {
  font-size: 1.3rem;
  color: var(--c-green);
  margin: 0;
}
.specialty-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.specialty-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-ink);
}
.specialty-list li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--c-beige) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2381331D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
}

/* CTA destacado da seção specialties */
.specialties-cta {
  margin-top: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
  background: rgba(244, 239, 233, 0.08);
  border: 1px solid rgba(226, 212, 186, 0.25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.specialties-cta-icon {
  width: 60px; height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-orange);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.specialties-cta-text h4 {
  color: var(--c-cream);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.specialties-cta-text p {
  color: rgba(244, 239, 233, 0.75);
  font-size: 0.95rem;
  margin: 0;
}
.specialties-cta .btn-primary {
  background: var(--c-cream);
  color: var(--c-red);
}
.specialties-cta .btn-primary:hover {
  background: var(--c-white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* =============================================================
   IMPRENSA
   ============================================================= */
.press { background: var(--c-cream); }
.press-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.press-card {
  display: block;
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
}
.press-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.press-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-beige);
}
.press-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.press-card:hover .press-image img {
  transform: scale(1.06);
}
.press-card-body {
  padding: 20px 22px 24px;
}
.press-veiculo {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 6px;
}
.press-card-body h3 {
  font-size: 1.15rem;
  color: var(--c-green);
  font-weight: 500;
}
.press-cta {
  text-align: center;
  margin-top: 50px;
}

/* =============================================================
   DEPOIMENTOS
   ============================================================= */
.testimonials { background: var(--c-beige); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--c-cream);
  padding: 36px 32px;
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 8px; left: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--c-orange);
  line-height: 1;
  opacity: 0.4;
}
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  margin-top: 24px;
  color: var(--c-ink);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  border-top: 1px solid var(--c-gray);
  padding-top: 16px;
}
.testimonial-author strong {
  color: var(--c-green);
  font-weight: 600;
  display: block;
}
.testimonial-author span {
  color: var(--c-ink-soft);
  font-size: 0.82rem;
}

.testimonial-stars {
  color: var(--c-orange);
  margin-bottom: 14px;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* =============================================================
   PALESTRAS (CARROSSEL)
   ============================================================= */
.lectures {
  background: var(--c-cream);
  overflow: hidden;
}

.lectures-carousel {
  position: relative;
  padding: 0 60px;
  margin-top: 60px;
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 12px;
  padding-left: max(60px, calc((100vw - var(--container)) / 2 + 60px));
  padding-right: max(60px, calc((100vw - var(--container)) / 2 + 60px));
  margin: 0 -60px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 320px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-beige);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}
.carousel-slide:hover { transform: translateY(-6px); }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.carousel-slide:hover img { transform: scale(1.05); }

.carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(40, 40, 40, 0.85) 10%, transparent);
  color: var(--c-cream);
  transform: translateY(20%);
  opacity: 0.92;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.carousel-slide:hover .carousel-caption { transform: translateY(0); opacity: 1; }
.carousel-caption span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-beige);
  margin-bottom: 4px;
}
.carousel-caption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-green);
  box-shadow: var(--shadow);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.carousel-btn:hover {
  background: var(--c-green);
  color: var(--c-cream);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn--prev { left: 20px; }
.carousel-btn--next { right: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-gray);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.carousel-dot.is-active {
  background: var(--c-red);
  width: 24px;
  border-radius: 999px;
}

/* =============================================================
   LOCAL DE ATENDIMENTO
   ============================================================= */
.locations { background: var(--c-cream); }
.location-single {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: stretch;
}
.location-map {
  background: linear-gradient(135deg, var(--c-beige), var(--c-gray));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
}
.location-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 28px, rgba(91, 92, 60, 0.04) 28px 30px),
    repeating-linear-gradient(-45deg, transparent 0 28px, rgba(91, 92, 60, 0.04) 28px 30px);
}
.location-pin {
  width: 60px; height: 60px;
  background: var(--c-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(129, 51, 29, 0.4);
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}
.location-pin::after {
  content: '';
  width: 22px; height: 22px;
  background: var(--c-cream);
  border-radius: 50%;
  transform: rotate(45deg);
}

.location-info {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-info-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}
.location-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.location-info-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-beige);
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.location-info-item h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-green);
  margin-bottom: 4px;
}
.location-info-item p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-ink);
}
.location-info-item p strong { color: var(--c-red); font-weight: 600; }

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq { background: var(--c-cream); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-gray);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: color 0.2s var(--ease);
}
.faq-question:hover { color: var(--c-red); }
.faq-question .faq-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--c-red);
  transition: transform 0.3s var(--ease);
}
.faq-question .faq-icon::before { width: 12px; height: 1.5px; }
.faq-question .faq-icon::after { width: 1.5px; height: 12px; }
.faq-item.is-open .faq-icon { background: var(--c-red); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--c-cream); }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 24px 0;
  color: var(--c-ink-soft);
  line-height: 1.7;
  max-width: 95%;
}

/* =============================================================
   CTA FINAL
   ============================================================= */
.cta-final {
  background: var(--c-red);
  color: var(--c-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before,
.cta-final::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 239, 233, 0.08), transparent 70%);
}
.cta-final::before { top: -200px; left: -100px; width: 500px; height: 500px; }
.cta-final::after { bottom: -200px; right: -100px; width: 400px; height: 400px; }

.cta-final-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-final h2 { color: var(--c-cream); margin-bottom: 20px; }
.cta-final p { color: rgba(244, 239, 233, 0.9); font-size: 1.1rem; margin-bottom: 36px; }
.cta-final .btn-primary {
  background: var(--c-cream);
  color: var(--c-red);
}
.cta-final .btn-primary:hover {
  background: var(--c-white);
  transform: translateY(-2px);
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--c-ink);
  color: rgba(244, 239, 233, 0.7);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(0.85);
}
.footer-brand p {
  color: rgba(244, 239, 233, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(244, 239, 233, 0.65);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--c-orange); }

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 233, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}
.footer-crm { color: rgba(244, 239, 233, 0.6); }
.footer-crm strong { color: var(--c-orange); }

/* =============================================================
   WHATSAPP FLOATING
   ============================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fadeIn 0.5s var(--ease) 1s both;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: ripple 2s infinite;
}

/* =============================================================
   ANIMAÇÕES
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  50%      { transform: translateY(-8px) rotate(-45deg); }
}
.app-mockup-circle .z-letter { animation-name: floatY; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* =============================================================
   RESPONSIVO
   ============================================================= */
@media (max-width: 980px) {
  :root { --header-h: 70px; }

  .nav-list,
  .nav-cta {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c-cream);
    padding: 30px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
    box-shadow: var(--shadow);
  }
  .nav-list a { font-size: 1.1rem; padding: 8px 0; }
  .nav-cta { padding-top: 0; padding-bottom: 40px; }
  .nav-cta .btn { width: 100%; }
  .nav.is-open .nav-list,
  .nav.is-open .nav-cta {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav.is-open .nav-cta { top: calc(var(--header-h) + 260px); }
  .nav-toggle { display: flex; }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-photo { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .credential-item + .credential-item::before {
    left: 50%; top: -18px;
    transform: translateX(-50%);
    width: 40%; height: 1px;
  }

  .focus-cards,
  .specialties-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialties-cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px;
  }
  .specialties-cta-icon { margin: 0 auto; }
  .specialties-cta .btn { width: 100%; }

  .lectures-carousel { padding: 0 0; }
  .carousel-track {
    padding-left: 24px;
    padding-right: 24px;
    margin: 0;
  }
  .carousel-slide { min-width: 280px; }
  .carousel-btn { display: none; }

  .location-single { grid-template-columns: 1fr; }
  .location-map { min-height: 220px; }
  .location-info { padding: 36px 28px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-credentials { flex-direction: column; gap: 12px; }

  .press-grid { grid-template-columns: 1fr; }
  .carousel-slide { min-width: 240px; }

  .about-credentials { grid-template-columns: 1fr; }

  .specialties-cta { padding: 32px 22px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .whatsapp-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ----- Acessibilidade ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* =============================================================
   PRINT / PDF — força layout desktop
   ============================================================= */
@media print {
  @page { size: A3 landscape; margin: 0; }

  html, body { background: var(--c-cream) !important; }

  /* desliga animações e revela tudo */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-stagger,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* esconde elementos flutuantes */
  .whatsapp-float,
  .nav-toggle { display: none !important; }
  .site-header { position: relative !important; background: var(--c-cream) !important; box-shadow: none !important; padding: 18px 0 !important; }
  .site-header.is-scrolled .brand img { height: 72px !important; }

  /* mostra a navegação inline */
  .nav-list { display: flex !important; position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; flex-direction: row !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; gap: 26px !important; }
  .nav-cta { position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; display: inline-flex !important; }

  /* força grids desktop em todas as seções */
  .hero { padding-top: 120px !important; padding-bottom: 80px !important; }
  .hero-grid { display: grid !important; grid-template-columns: 1.1fr 1fr !important; gap: 60px !important; }
  .hero-photo { order: 2 !important; max-width: none !important; width: auto !important; }

  .about-grid { display: grid !important; grid-template-columns: 1fr 1.2fr !important; gap: 80px !important; }
  .about-credentials { grid-template-columns: 1fr 1fr !important; }

  .credentials-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 40px !important; }
  .credential-item + .credential-item::before {
    left: -20px !important; top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1px !important; height: 60% !important;
  }

  .focus-cards { grid-template-columns: repeat(3, 1fr) !important; }
  .specialties-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .specialties-cta { grid-template-columns: auto 1fr auto !important; text-align: left !important; padding: 32px 40px !important; }
  .specialties-cta-icon { margin: 0 !important; }
  .specialties-cta .btn { width: auto !important; }

  .press-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr) !important; }

  .location-single { grid-template-columns: 1fr 1.4fr !important; }
  .location-map { min-height: 360px !important; }

  /* carrossel: mostra todos os slides em grid */
  .lectures-carousel { padding: 0 !important; }
  .carousel-track {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    overflow: visible !important;
    padding: 0 24px !important;
    margin: 0 !important;
  }
  .carousel-slide { min-width: 0 !important; flex: 1 !important; }
  .carousel-btn, .carousel-dots { display: none !important; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr !important; }
  .footer-bottom { flex-direction: row !important; }
  .hero-credentials { flex-direction: row !important; gap: 28px !important; }
  .hero-ctas { flex-direction: row !important; }
  .hero-ctas .btn { width: auto !important; }

  /* evita quebra desagradável dentro de cards */
  section, .focus-card, .specialty-col, .press-card,
  .testimonial-card, .location-single, .lectures-carousel,
  .hero-grid, .about-grid {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
