/* ============================================
   Clínica Projeto de Vida — estilos
   ============================================ */

:root {
  /* Brand colors, extracted from the clinic's own logo/portfolio */
  --color-primary: #1c8d7c;
  --color-primary-dark: #12665a;
  --color-primary-light: #e6f4f1;
  --color-navy: #16375e;
  --color-puzzle-blue: #2f6fb0;
  --color-puzzle-yellow: #f4b400;
  --color-puzzle-red: #d9322a;
  --color-puzzle-green: #7cb342;

  --color-text: #2c3338;
  --color-text-soft: #5b6670;
  --color-bg: #ffffff;
  --color-bg-soft: #faf6ef;
  --color-border: #ece5d8;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(22, 55, 94, 0.06);
  --shadow-md: 0 12px 30px rgba(22, 55, 94, 0.10);
  --container-w: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-text-soft); }

a { color: var(--color-primary); text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  margin: 0 0 .5em;
}

.section { padding: 84px 0; }
.section-soft { background: var(--color-bg-soft); }

.section-heading { max-width: 720px; margin: 0 0 40px; }
.section-heading.light h2, .section-heading.light .eyebrow { color: #fff; }
.section-lead { color: var(--color-text-soft); font-size: 1.05rem; }
.section-lead.center { text-align: center; max-width: 640px; margin: 28px auto 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: #1fb959; }

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: #fff; }

.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-sm svg { width: 17px; height: 17px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand img { height: 56px; width: auto; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--color-navy);
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-navy);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 70px;
}
.hero-lead { font-size: 1.12rem; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  font-weight: 700;
  font-size: .82rem;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero-media { position: relative; }
.hero-media img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-blob {
  position: absolute;
  z-index: 0;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}
.hero-blob-1 {
  inset: -8% -10% auto auto;
  width: 78%;
  height: 78%;
  background: var(--color-puzzle-yellow);
  opacity: .22;
}
.hero-blob-2 {
  inset: auto auto -10% -8%;
  width: 55%;
  height: 55%;
  background: var(--color-puzzle-blue);
  opacity: .16;
  border-radius: 58% 42% 35% 65% / 55% 60% 40% 45%;
}
.hero-wave {
  height: 60px;
  background: var(--color-bg);
  border-radius: 60% 40% 0 0 / 100% 100% 0 0;
  margin-top: -1px;
}

/* ===== Sobre ===== */
.sobre-content {
  max-width: 760px;
}
.pull-quote {
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-light);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.05rem;
  margin: 24px 0;
}
.pull-quote.small { font-size: .98rem; }

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.pillars li {
  background: #fff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .88rem;
}

.mvv-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.mvv-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.mvv-card h3 { margin-bottom: .4em; color: var(--color-primary); }
.mvv-card p { margin: 0; font-size: .95rem; }
.values-list { display: flex; flex-wrap: wrap; gap: 8px; }
.values-list li {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-navy);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ===== Diferenciais ===== */
.diferenciais-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.diferencial-highlight {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
}
.diferencial-highlight svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--color-puzzle-yellow);
}
.diferencial-highlight p {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 1.02rem;
}

.diferenciais-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
}
.diferenciais-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-navy);
  font-size: .95rem;
}
.dif-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
}
.dif-icon svg { width: 20px; height: 20px; }
.complementary-note {
  text-align: center;
  margin: 30px 0 0;
  font-weight: 700;
  color: var(--color-navy);
}

/* ===== Público ===== */
.publico-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud li {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.tag-cloud li:nth-child(1) { background: #eaf1fb; color: var(--color-puzzle-blue); }
.tag-cloud li:nth-child(2) { background: #fdf3e0; color: #a8790a; }
.tag-cloud li:nth-child(3) { background: var(--color-primary-light); color: var(--color-primary-dark); }
.tag-cloud li:nth-child(4) { background: #fbeaea; color: var(--color-puzzle-red); }
.tag-cloud li:nth-child(5) { background: #eef6e4; color: #5c8a2e; }

/* ===== Serviços (accordion) ===== */
.accordion { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.acc-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
}
.acc-trigger h3 { margin: 0; font: inherit; color: inherit; }
.acc-icon { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; transition: transform .2s ease; }
.acc-item.open .acc-icon { transform: rotate(45deg); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
}
.acc-item.open .acc-panel { padding-bottom: 22px; }
.acc-panel p { font-size: .95rem; }
.acc-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.acc-meta span:first-child { font-size: .85rem; color: var(--color-text-soft); font-weight: 700; }
.badge {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ===== Metodologia (timeline) ===== */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline li {
  display: flex;
  gap: 22px;
  padding: 0 0 34px 0;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: -2px;
  width: 2px;
  background: var(--color-border);
}
.timeline li:last-child::before { display: none; }
.timeline-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  z-index: 1;
}
.timeline h3 { margin-bottom: .2em; }
.timeline p { margin: 0; }

@media (min-width: 981px) {
  .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
  }
  .timeline li {
    width: calc(50% - 32px);
    padding: 0 0 48px 0;
  }
  .timeline li::before { display: none; }
  .timeline li:nth-child(odd) { margin-right: auto; }
  .timeline li:nth-child(even) { margin-left: auto; }
  .timeline li:nth-child(odd) > div { text-align: right; }
  .timeline li:nth-child(odd) { flex-direction: row-reverse; }
}

/* ===== Equipe ===== */
.equipe-content {
  max-width: 760px;
}

/* ===== Espaço (gallery) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery figure { margin: 0; }
.gallery img {
  border-radius: var(--radius-md);
  aspect-ratio: 4/3.2;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.gallery figcaption {
  text-align: center;
  margin-top: 10px;
  font-weight: 700;
  color: var(--color-navy);
  font-size: .92rem;
}

/* ===== Depoimentos ===== */
.testimonials-placeholder {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  color: var(--color-text-soft);
}
.testimonials-placeholder svg { color: var(--color-primary); margin: 0 auto 14px; }

/* ===== Localização ===== */
.local-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 48px;
  align-items: start;
}
.info-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.info-card h3 { color: var(--color-primary); font-size: 1rem; margin-bottom: .3em; }
.info-card p { margin: 0; font-size: .95rem; }

.local-media { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.fachada-img { border-radius: var(--radius-md); height: 100%; object-fit: cover; box-shadow: var(--shadow-sm); }

/* ===== Contato / CTA ===== */
.section-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.section-cta .section-lead { color: rgba(255,255,255,.88); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.contact-card:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.contact-card svg { width: 30px; height: 30px; flex-shrink: 0; }
.contact-card strong { display: block; font-family: var(--font-heading); font-size: .95rem; }
.contact-card span { font-size: .85rem; opacity: .9; word-break: break-word; }

/* ===== Footer ===== */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,.82); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .logo-card {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 12px;
}
.footer-brand .logo-card img { display: block; }
.footer-brand p { color: rgba(255,255,255,.7); font-weight: 700; margin: 0; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.55); text-align: center; }

/* ===== Floating WhatsApp button ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Lightbox ===== */
.gallery figure { cursor: zoom-in; }
.gallery img { transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(22, 55, 94, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .mvv-strip { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: 1fr; }
  .local-media { grid-template-columns: 1fr; }
  .fachada-img { max-height: 260px; }
  .diferenciais-layout { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Menu vira hambúrguer aqui: a partir de 981px não há espaço confortável
     pra logo + 7 itens de navegação + botão de contato numa linha só. */
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 24px;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--color-border); font-size: 1.05rem; }
  .nav-toggle { display: flex; }

  /* O botão flutuante de WhatsApp já cobre esse CTA no mobile — o botão
     do header ali ficava solto e redundante ao lado do hambúrguer. */
  .header-actions { display: none; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .diferenciais-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .publico-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-blob-1, .hero-blob-2 { opacity: .12; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
