/* ==========================================================================
   Auxílio Maternidade — Landing responsiva
   Paleta: Marrom Sóbrio #382C27, Rosa Queimado #C9A99A, Branco Neve #FDFAFB
   Fontes: Prosto One (títulos), Jura (corpo)
   Breakpoints: 360 → 480 → 768 → 1024 → 1280
   ========================================================================== */

:root {
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  --container-content: 45rem;
  --container-wide: 60rem;

  /* Paleta: Marrom Sóbrio, Rosa Queimado, Branco Neve + CTAs WhatsApp */
  --color-bg-dark: #382C27;
  --color-cta: #25d366;
  --color-cta-hover: #20bd5a;
  --color-accent: #C9A99A;
  --color-text: #382C27;
  --color-text-muted: #5c4a42;
  --color-bg-light: #FDFAFB;
  --color-surface: #FDFAFB;
  --color-border: #e8ddd9;
  --color-white: #FDFAFB;

  --font-serif: "Prosto One", sans-serif;
  --font-sans: "Jura", sans-serif;

  --text-hero: clamp(1.5rem, 4vw + 1rem, 2.25rem);
  --text-title: clamp(1.25rem, 2.5vw + 0.9rem, 1.5rem);
  --text-body: clamp(0.9375rem, 1.5vw + 0.7rem, 1rem);
  --text-small: clamp(0.8125rem, 1vw + 0.6rem, 0.875rem);

  --touch-min: 2.75rem;
  --touch-cta: 3rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

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

a { color: var(--color-cta); text-decoration: none; }
a:hover { text-decoration: underline; }

p, li, .section-title { overflow-wrap: break-word; word-wrap: break-word; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- Containers --- */
.container {
  width: 100%;
  max-width: var(--container-content);
  margin: 0 auto;
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
}

.hero-content { max-width: var(--container-wide); }

/* --- Header --- */
.header {
  padding: var(--space-sm) 0;
  padding-top: max(var(--space-sm), env(safe-area-inset-top));
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  display: block;
  height: auto;
  max-height: 6.875rem;
  width: auto;
  max-width: 100%;
  width: 118px;
  height: 64px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .logo-img {
    max-height: 4rem;
    width: 118px;
    height: 64px;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: min(100vh, 700px);
  min-height: min(100dvh, 700px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-bg.jpeg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 1024px) {
  .hero-bg { background-attachment: fixed; }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(56, 44, 39, 0.75);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
}

/* Frame único: headline + foto dentro da mesma caixa delimitada */
.hero-frame {
  width: 100%;
  max-width: var(--container-wide);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-xl);
  background: rgba(56, 44, 39, 0.85);
  border: 1px solid rgba(253, 250, 251, 0.12);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-text {
  width: 100%;
  max-width: 28.75rem;
  text-align: center;
}

.hero-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-white);
}

.hero-title-highlight {
  color: var(--color-cta);
  font-weight: 400;
}

@media (max-width: 767px) {
  .hero-title { font-size: clamp(1.2rem, 3.5vw + 0.85rem, 1.6rem); }
}

.hero-subtitle {
  margin: 0.35rem 0 var(--space-md);
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.9);
}

.hero-photo-wrap {
  flex-shrink: 0;
  margin-top: auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

/* Sombra de chão sob o PNG dentro do frame */
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 1rem;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(0, 0, 0, 0.3), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 21.25rem;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  display: block;
  vertical-align: bottom;
}

/* Tablet: frame em linha, texto e foto lado a lado */
@media (min-width: 768px) {
  .hero-frame {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-xl);
  }
  .hero-text {
    text-align: left;
    flex: 0 1 28.75rem;
    max-width: 28.75rem;
  }
  .hero-photo-wrap { margin-top: 0; }
  .hero-photo { max-width: 20rem; }
}

/* Desktop: frame único com texto à esquerda e foto 340x453 à direita, tudo contido */
@media (min-width: 1024px) {
  .hero-frame {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: var(--space-2xl) 2rem;
    min-height: 480px;
  }
  .hero-text {
    flex: 0 0 auto;
    max-width: 420px;
    text-align: left;
  }
  .hero-photo-wrap {
    position: relative;
    left: auto;
    bottom: auto;
    margin-left: auto;
    width: 340px;
    height: 453px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-photo-wrap::after {
    width: 85%;
    height: 1.5rem;
    background: radial-gradient(ellipse 75% 100% at 50% 0%, rgba(0, 0, 0, 0.35), transparent 65%);
  }
  .hero-photo {
    width: 340px;
    height: 453px;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
  }
}

/* --- CTA principal (dourado) --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-cta);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: var(--space-md);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cta:hover { text-decoration: none; }
.cta:active { transform: scale(0.98); }

.cta-primary {
  color: #fff;
  background-color: var(--color-cta);
}

.cta-primary:hover {
  background-color: var(--color-cta-hover);
  color: #fff;
}

.cta-full { width: 100%; margin-left: 0; margin-right: 0; }

@media (max-width: 767px) {
  .cta {
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Seções genéricas --- */
.section {
  padding: var(--space-xl) 0;
}

.section-dark { background-color: var(--color-bg-dark); color: var(--color-white); }
.section-light { background-color: var(--color-bg-light); color: var(--color-text); }

.section-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-serif);
  font-size: var(--text-title);
  font-weight: 400;
  color: var(--color-text);
}

.section-title-light { color: var(--color-white); }

/* --- 2. Nossos Serviços --- */
.section-services .container { max-width: var(--container-wide); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

@media (min-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: var(--space-md);
  border-radius: 8px;
  background: rgba(253, 250, 251, 0.06);
}

.service-icon {
  display: inline-block;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-cta-wrap {
  margin: var(--space-xl) 0 0;
  text-align: center;
}

.service-icon svg { width: 48px; height: 48px; }

.service-card-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-white);
}

.service-card-desc {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: rgba(253, 250, 251, 0.88);
}

/* --- 3. Sobre o Escritório --- */
.about-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  background: var(--color-bg-dark);
  padding: var(--space-xl);
  border-radius: 12px;
}

@media (min-width: 768px) {
  .about-box { grid-template-columns: 1fr 1fr; align-items: center; }
}

.about-text {
  margin: 0 0 var(--space-md);
  font-size: var(--text-body);
  color: rgba(253, 250, 251, 0.92);
  line-height: 1.6;
}

.about-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
}

.about-image-wrap { min-height: 200px; }

@media (min-width: 1024px) {
  .about-box { align-items: stretch; }
  .about-image-wrap {
    min-height: 320px;
    display: flex;
    align-items: stretch;
  }
  .about-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* --- 5. Por que nos escolher --- */
.container-why {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .container-why { grid-template-columns: 280px 1fr; align-items: start; }
}

.why-title { margin-top: 0; }

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.why-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.why-item-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.why-item-desc {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- 6. Prova Social --- */
.testimonial-card {
  margin: 0;
  padding: var(--space-xl);
  background: rgba(253, 250, 251, 0.06);
  border-radius: 12px;
  border-left: 4px solid var(--color-accent);
}

.section-testimonial .section-cta-wrap { margin-top: var(--space-lg); }

.testimonial-quote {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: -0.5rem;
}

.testimonial-text {
  margin: 0 0 var(--space-md);
  font-size: var(--text-body);
  line-height: 1.6;
  color: rgba(253, 250, 251, 0.95);
}

.testimonial-author {
  font-size: var(--text-small);
  color: rgba(253, 250, 251, 0.85);
  font-style: italic;
}

/* --- 7. Outras especialidades --- */
.section-other .container { max-width: var(--container-wide); }

.other-caption {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-body);
  color: var(--color-text-muted);
  max-width: 55ch;
}

.other-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .other-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .other-list { grid-template-columns: repeat(4, 1fr); }
}

.other-list li {
  padding: var(--space-sm) var(--space-md);
  background: rgba(56, 44, 39, 0.06);
  border-radius: 8px;
  font-size: var(--text-body);
  color: var(--color-text);
  border-left: 3px solid var(--color-accent);
}

.section-other .section-cta-wrap { margin-top: var(--space-xl); }

/* --- 8. Rodapé --- */
.footer.section-dark,
.footer {
  padding: var(--space-2xl) var(--space-md) var(--space-md);
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

.footer-inner {
  max-width: var(--container-wide);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.footer-cta-wrap {
  margin: 0;
  flex-shrink: 0;
}

.footer-cta-wrap .cta { margin-top: 0; }

@media (max-width: 767px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-cta-wrap .cta { width: 100%; max-width: 22rem; }
}

.footer-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-serif);
  font-size: var(--text-title);
  font-weight: 400;
  color: var(--color-white);
}

.footer-address,
.footer p { margin: 0 0 0.5rem; font-size: var(--text-body); }

.footer-link {
  color: var(--color-cta);
}
.footer-link:hover { text-decoration: underline; }

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(253, 250, 251, 0.12);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.footer-social-link:hover { background: var(--color-accent); color: var(--color-white); text-decoration: none; }

.footer-legal {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(253, 250, 251, 0.12);
  text-align: center;
}

.footer-legal p {
  margin: 0;
  font-size: var(--text-small);
  color: rgba(253, 250, 251, 0.7);
}

/* --- Botão flutuante WhatsApp --- */
.float-whatsapp {
  position: fixed;
  bottom: max(var(--space-md), env(safe-area-inset-bottom));
  right: max(var(--space-md), env(safe-area-inset-right));
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.float-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: #fff;
  text-decoration: none;
}

.float-whatsapp-icon { width: 28px; height: 28px; }

.float-whatsapp-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile: espaço para não cobrir conteúdo (opcional, botão é canto) */
@media (max-width: 767px) {
  body { padding-bottom: 0; }
}

/* Ajustes viewport estreito */
@media (max-width: 360px) {
  .container { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  .hero-content { padding-left: var(--space-sm); padding-right: var(--space-sm); }
}

@media (min-width: 1280px) {
  .section { padding: var(--space-2xl) 0; }
}
