/* ============================================================
   Dr. Luís Augusto Barbosa — LP
   Design tokens extraídos do Figma
   ============================================================ */

:root {
  --color-bg: #fafafa;
  --color-bg-alt: #fff5ee;
  --color-primary: #be7f51;      /* terracota - textos de destaque */
  --color-primary-light: #dbb192;
  --color-text-dark: #2c2c2c;
  --color-cta-green: #94ad62;    /* botão whatsapp */
  --color-footer-bg: #be7f51;
  --color-footer-text: #fff5ee;

  --font-display: 'Diphylleia', serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1200px;
  --gutter: 20px;

  --section-gap-mobile: 60px;
  --section-gap-desktop: 120px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; filter: brightness(1); transition: filter 0.3s ease;}
a:hover { filter: brightness(0.8) }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.only-desktop { display: none; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  padding-block: 40px 20px;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-text-dark);
  letter-spacing: -0.3px;
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-cta-green);
  color: #fafafa;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-whatsapp:hover { filter: brightness(1.05); transform: translateY(-1px); }
.icon-whatsapp { width: 16px; height: 16px; }

/* ============================================================
   CTA link (underlined text link, reused everywhere)
   ============================================================ */
.cta-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
  width: fit-content;
}
.cta-underline { width: 80%; }
.cta-centered { display: flex; margin-inline: auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: 24px var(--section-gap-mobile); }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero-text h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1.2;
}
.hero-lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-primary);
  max-width: 320px;
}
.hero-lead strong { font-weight: 600; }
.hero-image { position: relative; width: 100%; }
.hero-image img {
  width: 100%;
  aspect-ratio: 354 / 255;
  object-fit: cover;
  border-radius: 13px;
}
.hero-image-caption {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--color-primary-light);
  font-size: 9px;
  line-height: 1.4;
}

/* ============================================================
   Services
   ============================================================ */
.services {
  background: var(--color-bg-alt);
  padding-block: 48px;
}
.services-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 280px;
}
.service-icon--tilt { transform: rotate(-6deg); }
.service-card h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 22px;
}
.service-card p {
  font-size: 14px;
  color: var(--color-primary);
  line-height: 1.4;
}

/* ============================================================
   About us
   ============================================================ */
.about-us { padding-block: var(--section-gap-mobile); }
.about-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
  margin-bottom: 32px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-text h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1.25;
}
.about-bio, .about-trajectory-label {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-primary);
}
.about-bio strong { font-weight: 400; }
.about-trajectory-label { font-weight: 400; }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.timeline li img { width: 10px; margin-top: 3px; flex-shrink: 0; }
.timeline li span {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-primary);
}
.about-image img {
  width: 100%;
  aspect-ratio: 178/240;
  object-fit: cover;
  border-radius: 5px;
}
.quote {
  font-style: italic;
  font-weight: 200;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-primary);
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================================
   Gallery / structure
   ============================================================ */
.gallery { padding-block: var(--section-gap-mobile); }
.gallery-title {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 178/268;
  object-fit: cover;
  border-radius: 5px;
}
.gallery-wide {
  grid-column: span 2;
  aspect-ratio: 362/241 !important;
}

/* ============================================================
   Location
   ============================================================ */
.location { padding-block: var(--section-gap-mobile); }
.location h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 24px;
}
.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 5px;
  overflow: hidden;
  background: #eee;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: var(--section-gap-mobile); }
.faq h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 22px;
  text-align: center;
  margin-bottom: 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 550px;
  margin: 0 auto 64px;
}
.faq-item {
  border-bottom: 1px solid rgba(190,127,81,0.25);
  padding-block: 12px;
  color: var(--color-primary);
}
/* .faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s ease;
} */
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: 32px 32px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-contacts { display: flex; flex-direction: column; }
.footer-name { font-size: 13px; line-height: 1.5; }
.footer-address { font-size: 11px; line-height: 1.4; padding-bottom: 10px;}
.social-icons { display: flex; gap: 10px; }
.social-icons img { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-copyright { font-size: 10px; line-height: 1.5; }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 10px; text-decoration: underline;}
.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.footer-credit img { /* height: 14px; */ width: 78px; }

/* ============================================================
   TABLET (>= 768px e < 1024px)
   Valores intermediários entre mobile e desktop.
   Layout já muda para colunas lado a lado (como no desktop),
   mas com tipografia e espaçamentos menores.
   ============================================================ */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .container { padding-inline: 32px; }

  /* Navbar */
  .navbar { padding-block: 24px; }
  .logo { font-size: 18px; }
  .btn-whatsapp { font-size: 13px; padding: 11px 16px; border-radius: 9px; gap: 8px; }
  .icon-whatsapp { width: 18px; height: 18px; }

  /* Hero */
  .hero { padding-block: 32px 80px; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .hero-text { align-items: start; text-align: left; max-width: 320px; }
  .hero-text h1 { font-size: 28px; }
  .hero-lead { font-size: 15px; max-width: none; }
  .hero-image { flex: 1; }
  .hero-image img { aspect-ratio: 782/534; border-radius: 13px; }
  .hero-image-caption { top: 16px; left: 16px; font-size: 10px; }
  .cta-link { font-size: 14px; }
  .cta-underline { width: 200px; }

  /* Services */
  .services { padding-block: 64px; }
  .services-grid { flex-direction: row; align-items: flex-start; justify-content: center; gap: 32px; margin-bottom: 48px; }
  .service-card { max-width: 220px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 13px; }

  /* About */
  .about-us { padding-block: 80px; }
  .about-grid { flex-direction: row-reverse; gap: 32px; align-items: flex-start; margin-bottom: 40px; }
  .about-text { flex: 1; gap: 18px; }
  .about-text h2 { font-size: 28px; }
  .about-bio, .about-trajectory-label, .timeline li span { font-size: 14px; }
  .about-image { flex: 1; }
  .about-image img { aspect-ratio: 588/645; }
  .quote { font-size: 16px; max-width: 520px; }

  /* Gallery */
  .gallery { padding-block: 80px; }
  .gallery-title { font-size: 26px; max-width: 620px; margin-bottom: 32px; }
  .gallery-grid { gap: 12px; }
  .gallery-grid img { aspect-ratio: 588/454; }
  .gallery-wide { aspect-ratio: 1200/510 !important; }

  /* Location */
  .location { padding-block: 80px; }
  .location h2 { font-size: 26px; margin-bottom: 28px; }
  .map-embed { aspect-ratio: 4/2; }

  /* FAQ */
  .faq { padding-block: 80px; }
  .faq h2 { font-size: 26px; margin-bottom: 28px; }
  .faq-item summary { font-size: 16px; }
  .faq-item p { font-size: 14px; }

  /* Footer */
  .site-footer { padding-block: 40px; }
  .footer-grid { gap: 32px; }
  .footer-name { font-size: 15px; }
  .footer-address { font-size: 12px; }
  .social-icons img { width: 18px; height: 18px; }
  .footer-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .footer-copyright { font-size: 13px; }
}

/* ============================================================
   Legal page (Política de Privacidade)
   ============================================================ */
.legal-page { padding-block: 40px 80px; }
.legal-container { max-width: 760px; }
.legal-breadcrumb { margin-bottom: 24px; }
.legal-breadcrumb a {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-page h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 13px;
  color: var(--color-text-dark);
  opacity: 0.6;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-page p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 20px;
}
.legal-list li {
  list-style: disc;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-dark);
}

@media (min-width: 1024px) {
  .legal-page { padding-block: 60px 120px; }
  .legal-page h1 { font-size: 42px; }
  .legal-page h2 { font-size: 24px; margin-top: 40px; }
  .legal-page p, .legal-list li { font-size: 16px; }
}

/* ============================================================
   DESKTOP (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .only-desktop { display: inline; }

  .container { padding-inline: 40px; }

  /* Navbar */
  .navbar { padding-block: 30px; }
  .logo { font-size: 22px; }
  .btn-whatsapp { font-size: 15px; padding: 12px 20px; border-radius: 10px; gap: 10px; }
  .icon-whatsapp { width: 22px; height: 22px; }

  /* Hero */
  .hero { padding-block: 40px var(--section-gap-desktop); }
  .hero-inner {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
  }
  .hero-text { align-items: flex-start; text-align: left; max-width: 420px;}
  .hero-text h1 { font-size: 48px; line-height: 94%;}
  .hero-lead { font-size: 18px; max-width: none; }
  .hero-image { flex: 1; }
  .hero-image img { aspect-ratio: 782/534; border-radius: 13px; }
  .hero-image-caption { top: 22px; left: 24px; font-size: 11px; }
  .cta-link { font-size: 18px; padding-block: 8px; }
  .cta-underline { width: 100%; }

  /* Services */
  .services { padding-block: 90px; }
  .services-grid { flex-direction: row; align-items: flex-start; justify-content: center; gap: 90px; margin-bottom: 60px; }
  .service-card h3 { font-size: 22px; }
  .service-card p { font-size: 15px; }

  /* About */
  .about-us { padding-block: var(--section-gap-desktop); }
  .about-grid { flex-direction: row-reverse; gap: 60px; align-items: flex-start; margin-bottom: 48px; }
  .about-text { flex: 1; gap: 24px; }
  .about-text h2 { font-size: 40px; }
  .about-bio, .about-trajectory-label, .timeline li span { font-size: 16px; }
  .about-image { flex: 1; }
  .about-image img { aspect-ratio: 588/645; }
  .quote { font-size: 20px; max-width: 640px; }

  /* Gallery */
  .gallery { padding-block: var(--section-gap-desktop); }
  .gallery-title { font-size: 34px; max-width: 760px; margin-bottom: 48px; }
  .gallery-grid { gap: 16px; }
  .gallery-grid img { aspect-ratio: 588/454; }
  .gallery-wide { aspect-ratio: 1200/510 !important; }

  /* Location */
  .location { padding-block: var(--section-gap-desktop); }
  .location h2 { font-size: 34px; margin-bottom: 40px; }
  .map-embed { aspect-ratio: 1200/450; }

  /* FAQ */
  .faq { padding-block: var(--section-gap-desktop); }
  .faq h2 { font-size: 34px; margin-bottom: 40px; }
  .faq-list { max-width: 550px; }
  .faq-item summary { font-size: 18px; }
  .faq-item p { font-size: 16px; }

  /* Footer */
  .site-footer { padding-block: 56px; }
  .footer-grid { gap: 40px; }
  .footer-name { font-size: 18px; }
  .footer-address { font-size: 13px; }
  .social-icons img { width: 20px; height: 20px; }
  .footer-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .footer-copyright { font-size: 14px; }
  .footer-links { font-size: 12px; }
  .footer-links a { font-size: 12px; }
  .footer-credit { font-size: 12px; }
}

/* Extra-wide screens: keep content from feeling cramped */
@media (min-width: 1440px) {
  :root { --gutter: 120px; }
}

/* ============================================================
   Botão flutuante do WhatsApp
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--color-cta-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: whatsapp-pulse 2.5s infinite;
}
.whatsapp-float img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* deixa o ícone branco */
}
.whatsapp-float:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
  animation-play-state: paused;
}

@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 0 rgba(148,173,98,0.5); }
  70%  { box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 14px rgba(148,173,98,0); }
  100% { box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 0 rgba(148,173,98,0); }
}

@media (min-width: 1024px) {
  .whatsapp-float { bottom: 48px; right: 32px; width: 64px; height: 64px; }
  .whatsapp-float img { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}
