/* ============================================================
   Instituto Kamei — CSS Principal (mobile-first)
   ============================================================ */

/* ---------- VARIÁVEIS ---------- */
:root {
  --primary:        #1565C0;
  --primary-light:  #1976D2;
  --primary-dark:   #0D47A1;
  --secondary:      #00897B;
  --accent:         #FFA726;
  --text:           #1a1a2e;
  --text-muted:     #6c757d;
  --bg-light:       #f5f8ff;
  --white:          #ffffff;
  --shadow-sm:      0 2px 10px rgba(0,0,0,.06);
  --shadow:         0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 30px rgba(0,0,0,.16);
  --radius:         14px;
  --radius-sm:      8px;
  --transition:     all .3s ease;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { transition: var(--transition); }
h1, h2, h3, h4, h5 { font-weight: 700; }

/* ---------- NAVBAR ---------- */
#mainNav {
  padding: .7rem 0;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: var(--transition);
}
#mainNav .navbar-brand img { height: 46px; width: auto; }
#mainNav .nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text) !important;
  padding: .45rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--primary) !important;
  background: rgba(21,101,192,.08);
}
.btn-agendar {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: .42rem 1.3rem !important;
  font-weight: 600 !important;
}
.btn-agendar:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: .5rem;
  min-width: 200px;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  font-size: .87rem;
  padding: .38rem .9rem;
  transition: var(--transition);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(21,101,192,.1);
  color: var(--primary);
}
/* Nested dropdown */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -4px;
  display: none;
}
.dropdown-submenu > .dropdown-menu.show { display: block; }
@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu {
    left: 0; top: 100%; margin-top: 0;
  }
}

/* ---------- AVISO BANNER ---------- */
.avisos-wrap { margin-top: 72px; }
.aviso-item { border-radius: 0; border-left: 4px solid transparent; font-size: .9rem; }

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(21,101,192,.88) 0%, rgba(13,71,161,.94) 100%),
    url('../imagens/principal2.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 72px;
}
#hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
#hero p.lead {
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  opacity: .9;
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-btns {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-hero-primary:hover {
  background: #e8f0fe;
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-hero-wa {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: .75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
}
.btn-hero-wa:hover {
  background: #1fba58;
  color: #fff;
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- SECTION BASE ---------- */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 60px 0; }
.bg-alt { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-header p { color: var(--text-muted); margin: 0; }
.section-divider {
  width: 56px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: .75rem auto 0;
}

/* ---------- INSTITUTO — CAROUSEL FULL VIEWPORT ---------- */
#instituto {
  padding: 0 !important;
}
#instituto .container {
  padding-top: 60px;
  padding-bottom: 2rem;
}
#instituto .section-header {
  padding: 0;
}
.clinica-swiper {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.clinica-swiper .swiper-slide { position: relative; }
.clinica-swiper .swiper-slide img {
  width: 100%;
  height: calc(100vh - 72px);
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 6rem 2rem 2.5rem;
  text-align: center;
}
.slide-caption h5 { font-size: 1.5rem; margin-bottom: .4rem; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.slide-caption p  { font-size: 1rem; opacity: .9; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.swiper-button-prev,
.swiper-button-next { color: #fff !important; }
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 1.4rem !important; }

/* ---------- DR. FERNANDO & DRA. CATARINA ---------- */
.doctor-photo {
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  display: block;
}
.credentials-list { list-style: none; padding: 0; margin: 0; }
.credentials-list li {
  padding: .9rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.credentials-list li:last-child { border-bottom: none; }
.cred-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: .2rem;
}
.cred-value {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

/* ---------- CARDS DE ATUAÇÃO (Oftalmologia) ---------- */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.07);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21,101,192,.15);
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: rgba(21,101,192,.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}
.service-icon img { width: 32px; height: 32px; object-fit: contain; }
.service-card h5 { font-size: 1rem; margin-bottom: .6rem; }
.service-card p { font-size: .88rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 1.25rem; }
.btn-service {
  font-size: .82rem;
  border-radius: 20px;
  padding: .35rem 1rem;
  border: 1.5px solid var(--text);
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}
.btn-service:hover { background: var(--text); color: #fff; }

/* ---------- CARDS NUTROLOGIA ---------- */
.nutro-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--secondary);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.nutro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nutro-card i { font-size: 2rem; color: var(--secondary); margin-bottom: .65rem; }
.nutro-card h5 { font-size: .95rem; margin-bottom: .5rem; }
.nutro-card p  { font-size: .85rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.btn-nutro {
  font-size: .82rem;
  border-radius: 20px;
  padding: .35rem 1rem;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  text-decoration: none;
  display: inline-block;
}
.btn-nutro:hover { background: var(--secondary); color: #fff; }

/* ---------- COMO FUNCIONA ---------- */
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.step-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: .85rem; }
.step-card h5 { margin-bottom: .6rem; }
.step-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---------- CARDS DE EXAMES ---------- */
.exame-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.exame-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exame-card img {
  width: 100%; height: 175px;
  object-fit: cover; display: block;
}
.exame-card-no-img {
  width: 100%; height: 175px;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #94a3b8;
}
.exame-card .card-body { padding: 1.15rem; flex-grow: 1; display: flex; flex-direction: column; }
.exame-card h5 { font-size: .92rem; margin-bottom: .45rem; }
.exame-card p  { font-size: .83rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.btn-exame {
  font-size: .78rem;
  border-radius: 20px;
  padding: .3rem .9rem;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  align-self: flex-start;
}
.btn-exame:hover { background: var(--primary); color: #fff; }

/* ---------- DEPOIMENTOS ---------- */
#depoimentos {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: #fff;
}
#depoimentos .section-header h2 { color: #fff; }
#depoimentos .section-header p   { color: rgba(255,255,255,.7); }
#depoimentos .section-divider     { background: rgba(255,255,255,.4); }
.testimonial-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: #FFD700; font-size: .95rem; margin-bottom: .9rem; }
.testimonial-text {
  font-size: .93rem;
  line-height: 1.75;
  color: rgba(255,255,255,.9);
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}
.testimonial-author { font-weight: 700; font-size: .9rem; color: #fff; }
.depoimentos-swiper .swiper-pagination-bullet { background: rgba(255,255,255,.45); opacity: 1; }
.depoimentos-swiper .swiper-pagination-bullet-active { background: #fff !important; }
.depoimentos-swiper { padding-bottom: 3rem !important; }

/* Google rating badge in section header */
.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .92rem;
  color: #fff;
}
.badge-stars { color: #facc15; letter-spacing: 1px; font-size: .85rem; }
.badge-total { opacity: .75; font-size: .8rem; }

/* Google review card elements */
.reviewer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .75rem;
}
.reviewer-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.reviewer-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviewer-name {
  display: block;
  font-size: .88rem;
  color: #fff;
  line-height: 1.2;
}
.reviewer-time {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
}
.google-icon-badge {
  margin-left: auto;
  opacity: .7;
  flex-shrink: 0;
}
.google-review-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .88rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 7px 18px;
  transition: background .2s, color .2s;
}
.google-review-link:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ---------- CONVÊNIOS ---------- */
#convenios { background: var(--bg-light); }
.convenio-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  min-height: 100px;
}
.convenio-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.convenio-item img {
  max-height: 72px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}
.convenio-item:hover img { filter: grayscale(0%); }

/* ---------- AGENDAR ---------- */
#agendarconsulta { background: #fff; }
.contact-box { padding: 2rem; }
.contact-box p { font-size: .95rem; margin-bottom: .85rem; display: flex; align-items: flex-start; gap: .6rem; }
.contact-box i { color: var(--primary); margin-top: .1rem; min-width: 18px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.btn-wa-big {
  background: #25D366;
  color: #fff !important;
  border-radius: 30px;
  padding: .7rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-wa-big:hover { background: #1fba58; transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
footer.site-footer {
  background: #0a1628;
  color: rgba(255,255,255,.65);
  padding: 60px 0 0;
}
footer.site-footer h6 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
footer.site-footer a {
  color: rgba(255,255,255,.58);
  text-decoration: none;
  font-size: .9rem;
  display: block;
  margin-bottom: .45rem;
}
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { font-size: .9rem; }
.social-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65) !important;
  text-decoration: none !important;
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: .85rem;
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,.55);
  z-index: 9999;
  transition: var(--transition);
}
.wa-float:hover {
  background: #1fba58;
  transform: scale(1.1);
  color: #fff !important;
}

/* ---------- SUB-PÁGINA ---------- */
.subpage-wrap { min-height: 100vh; background: #fff; }

/* Hero do cabeçalho */
.subpage-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1f4a 100%);
  color: #fff;
  padding: calc(72px + 2.5rem) 0 2.5rem;
}
.subpage-breadcrumb {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  margin-bottom: .65rem;
  opacity: .8;
}
.subpage-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.subpage-breadcrumb a:hover { color: #fff; }
.subpage-breadcrumb .sep { opacity: .45; }
.subpage-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 .55rem;
  line-height: 1.2;
}
.subpage-lead {
  font-size: .97rem;
  opacity: .85;
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
}

/* Área de conteúdo */
.subpage-content {
  padding: 2.75rem 0 1rem;
  max-width: 920px;
}
.subpage-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: .7rem;
  margin: 2.25rem 0 .75rem;
  line-height: 1.3;
}
.subpage-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #b91c1c;
  margin: 1.75rem 0 .45rem;
}
.subpage-content p {
  line-height: 1.75;
  color: #374151;
  margin-bottom: .85rem;
}
.subpage-content ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}
.subpage-content ul li {
  line-height: 1.65;
  margin-bottom: .35rem;
  color: #374151;
}
.subpage-content img {
  border-radius: 10px;
  box-shadow: 0 4px 22px rgba(0,0,0,.1);
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: .85rem 0;
}
.subpage-content .imageminicio img { border-radius: 10px; }

/* Comparação de imagens lado a lado */
.img-compare {
  margin: 0;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.img-compare img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  display: block;
}
.img-compare figcaption {
  padding: .65rem .9rem;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  border-top: 1px solid #e2e8f0;
}

/* CTA no final */
.subpage-cta-wrap {
  background: var(--bg-alt);
  border-top: 1px solid #e2e8f0;
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
}
.subpage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.subpage-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .2rem;
}
.subpage-cta p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.subpage-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-top: .5rem;
  }
  .btn-agendar { display: inline-block; margin-top: .5rem; }
}
@media (max-width: 767px) {
  .section-pad { padding: 52px 0; }
  .clinica-swiper .swiper-slide img { height: 60vh; }
  .slide-caption { display: block; padding: 3rem 1rem 1.5rem; }
  .map-wrap { height: 280px; }
  .hero-btns a { width: 100%; max-width: 280px; text-align: center; }
  .doctor-photo { max-width: 100%; margin-bottom: 1.75rem; }
  .slide-caption { display: none; }
}
