/* ============================================
   Dr. Bernardo Kaplan Moscovici · Site Oficial
   Identidade visual: cream + navy + amber
   ============================================ */

:root {
  --cream: #FAF6F0;
  --cream-dark: #F2EBDD;
  --navy: #1B2A44;
  --navy-soft: #2B3D5C;
  --navy-deep: #0F1A2B;
  --amber: #B8722C;
  --amber-light: #D89B58;
  --amber-soft: #EBC9A0;
  --text: #2A2520;
  --text-soft: #6B6258;
  --line: #E5DCC9;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(27, 42, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 42, 68, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 42, 68, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

a { color: var(--amber); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy); }

em { font-style: italic; color: var(--amber); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ NAVBAR ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-brand img { height: 44px; width: 44px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nav-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-brand-sub { font-size: 0.66rem; color: var(--amber); letter-spacing: 0.12em; text-transform: uppercase; font-style: italic; margin-top: 2px; }

.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-menu a {
  color: var(--navy); font-size: 0.92rem; font-weight: 500;
  padding: 6px 0; position: relative;
}
.nav-menu a:hover { color: var(--amber); }
.nav-menu a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--amber);
}
.nav-menu .mobile-only { display: none; }

.nav-cta {
  background: var(--navy); color: var(--cream);
  padding: 10px 22px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amber); color: var(--cream); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px;
  font-weight: 500; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--amber); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }

/* ============ HERO ============ */
.hero {
  padding: 90px 24px 70px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 70px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--amber); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--amber); }
.hero h1 { margin-bottom: 24px; }
.hero p.lead {
  font-size: 1.12rem; color: var(--text-soft);
  margin-bottom: 32px; max-width: 540px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image-wrap {
  position: relative;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--cream-dark);
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.hero-image-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27, 42, 68, 0.55) 100%);
}
.hero-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(8px);
  padding: 14px 18px; border-radius: 8px;
  z-index: 2;
}
.hero-badge-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--navy); font-weight: 600; line-height: 1.2; }
.hero-badge-role { font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }
.hero-badge-reg { font-size: 0.72rem; color: var(--amber); margin-top: 6px; font-weight: 500; letter-spacing: 0.04em; }

/* ============ PAGE HEADER (inner pages) ============ */
.page-header {
  padding: 90px 24px 60px;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--line);
}
.page-header-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.page-header h1 { margin-bottom: 14px; }
.page-header p { color: var(--text-soft); font-size: 1.08rem; max-width: 680px; margin: 0 auto; }

/* ============ SECTIONS ============ */
section { padding: 90px 24px; }
.section-eyebrow {
  color: var(--amber); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header p { color: var(--text-soft); margin-top: 16px; font-size: 1.05rem; }

/* ============ STRIP (numbers/credentials) ============ */
.strip {
  background: var(--navy); color: var(--cream);
  padding: 36px 24px;
}
.strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.strip-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; color: var(--amber-light);
  font-weight: 600; line-height: 1;
}
.strip-item .label {
  font-size: 0.82rem; color: var(--cream);
  opacity: 0.85; letter-spacing: 0.04em; margin-top: 8px;
}

/* ============ CARDS ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber-soft); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--cream);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.88rem; font-weight: 500;
  color: var(--amber);
}
.card-link::after { content: '→'; transition: transform 0.2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ============ ALTERNATING SECTIONS ============ */
.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }

/* ============ TECHNIQUE LIST (refrativa) ============ */
.technique-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.technique {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
}
.technique h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 10px;
  font-weight: 600;
}
.technique p { color: var(--text-soft); font-size: 0.92rem; }
.technique .badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
  padding: 4px 10px; background: var(--cream-dark);
  border-radius: 4px;
}

/* ============ LOCAL CARDS (consultórios) ============ */
.local-card {
  background: var(--white);
  padding: 36px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.local-card h3 { color: var(--navy); margin-bottom: 6px; }
.local-card .region {
  color: var(--amber); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.local-card .address {
  color: var(--text); margin-bottom: 16px;
  font-size: 0.95rem; line-height: 1.65;
}
.local-card .phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); padding: 12px 18px;
  border-radius: 100px; font-weight: 500;
  color: var(--navy); margin-top: 8px;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.local-card .phone:hover { background: var(--amber); color: var(--white); border-color: var(--amber); }

/* ============ CTA FINAL ============ */
.cta-final {
  padding: 100px 24px;
  text-align: center;
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(216, 155, 88, 0.12) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-final-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-final h2 { color: var(--cream); margin-bottom: 20px; }
.cta-final h2 em { color: var(--amber-light); font-style: italic; }
.cta-final p { color: rgba(250, 246, 240, 0.8); font-size: 1.05rem; margin-bottom: 36px; }

/* ============ FOOTER ============ */
footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 240, 0.78);
  padding: 70px 24px 30px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 48px; width: 48px; object-fit: cover; border-radius: 50%; }
.footer-brand strong { font-family: 'Cormorant Garamond', serif; color: var(--cream); font-size: 1.15rem; font-weight: 600; }
.footer-brand .desc { font-size: 0.88rem; line-height: 1.6; opacity: 0.7; }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; color: var(--amber-light);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 18px; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(250, 246, 240, 0.75); font-size: 0.92rem;
}
.footer-col a:hover { color: var(--amber-light); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(250, 246, 240, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--amber); }
.footer-social svg { width: 18px; height: 18px; fill: var(--cream); }
.footer-bottom {
  max-width: 1200px; margin: 50px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem; opacity: 0.65;
}

/* ============ RESPONSIVE ============ */
/* video + redes seção */
.video-redes-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 50px 20px 40px; }
  .hero-image-wrap { max-width: 420px; margin: 0 auto; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .technique-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .video-redes-grid { grid-template-columns: 1fr !important; }
  /* Inline grids responsivos via attribute selector */
  section [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  .nav-menu {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); padding: 20px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%); opacity: 0; pointer-events: none;
    transition: all 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px 24px; width: 100%; }
  .nav-menu .mobile-only { display: block; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 0.82rem; color: var(--text-soft); }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }
}
@media (max-width: 640px) {
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: 0.92rem; }
  .nav-cta { padding: 8px 16px; font-size: 0.8rem; }
  section { padding: 60px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
