/*
  style_v8.css
  - Versão: v8 (não sobrescreve css/style.css)
  - Página-alvo: index2_v10.php

  PRINCIPAIS CORREÇÕES (conforme "visao_correta_pagina.png")
  1) Remover o “vazio” entre HERO e "Sobre":
     - O bloco "Sobre a clínica" está dentro do .hero__content,
       permitindo que o texto da esquerda continue descendo enquanto a
       foto permanece à direita.
  2) “Áreas de atuação” em faixa horizontal:
     - .areas-strip + .areas-strip__list em flex com wrap.
  3) Subir o bloco logo abaixo (Serviços):
     - .section--tight-top reduz padding-top.  4) Tagline (pill) sem fundo branco + negrito:
     - .hero__tagline com background: transparent e font-weight: 700.
  5) “Áreas de atuação” com título no cabeçalho do container:
     - .areas-strip__head (linha) e .areas-strip__title (chip).
  6) Diferenciais: grid e altura alinhados ao bloco de Serviços (somente em #diferenciais):
     - #diferenciais .grid--features (4 colunas) + min-height em .feature-card.


  Interconexão com o HTML (index2_v10.php):
  - Topo: .hero, .hero__inner, .hero__content, .hero__visual,
          .hero__about, .hero__photo-frame, .hero__photo, .hero__tagline
  - Faixa: .areas-strip, .areas-strip__head, .areas-strip__title, .areas-strip__list
*/

@font-face {
  font-family: "Absara Sans";
  src: url("../fonts/AbsaraSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Absara Sans";
  src: url("../fonts/AbsaraSansOT-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-escuro: #451317;
  --color-principal: #9c6670;
  --color-claro: #e2acab;
  --color-fundo: #d9c9c2;
  --white: #ffffff;

  --radius-lg: 1.8rem;
  --radius-md: 1rem;
  --shadow-soft: 0 14px 35px rgba(69, 19, 23, 0.12);

  /* Topo (HERO) */
  --hero-gap: 1.6rem;
  --hero-padding-top: 2.6rem;
  --hero-padding-bottom: 1.2rem;
  --hero-visual-width: min(420px, 42vw);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Absara Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: var(--color-fundo);
  color: var(--color-escuro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Layout base */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section--tight-top {
  /* Faz o container logo abaixo de “Áreas de atuação” subir */
  padding-top: 2.2rem;
}

.section--light {
  background-color: var(--color-fundo);
}

.section--alt {
  background-color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 2.3rem;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section__subtitle {
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0.9;
}

.section__inner {
  display: grid;
  gap: 2.4rem;
}

.section__inner--split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
}

.section__content p + p {
  margin-top: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(217, 201, 194, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(69, 19, 23, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 180px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav__list a {
  position: relative;
  padding-bottom: 0.18rem;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background-color: var(--color-principal);
  transition: width 0.25s ease;
}

.nav__list a:hover::after {
  width: 100%;
}

/* Botão menu mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-escuro);
  border-radius: 999px;
}

/*
  HERO (Topo)
  - O "Sobre" agora está dentro do .hero__content, eliminando o espaço vazio.
*/
.hero {
  padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: var(--hero-gap);
  align-items: start;
}

.hero__subtitle {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--color-principal);
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.hero__title {
  font-size: clamp(2rem, 2.1vw + 1.4rem, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero__text {
  max-width: 34rem;
  margin-bottom: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Bloco “Sobre a clínica” dentro do HERO */
.hero__about {
  margin-top: 1.6rem;
  max-width: 40rem;
}

.hero__about-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero__about p + p {
  margin-top: 1rem;
}

/* Coluna direita (foto + pill) */
.hero__visual {
  width: var(--hero-visual-width);
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero__photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: var(--color-claro);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mantém o rosto mais “alto” no recorte */
  object-position: 50% 20%;
}

.hero__tagline {
  width: 100%;
  max-width: none;
  font-size: 0.95rem;
  text-align: center;
  color: var(--color-escuro);
  background: transparent;
  padding: 0.25rem 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
}

/* Faixa horizontal (Áreas de atuação)
   - "Título" fica no cabeçalho do container (chip central sobre uma linha)
*/
.areas-strip {
  padding-top: 1.2rem;
  padding-bottom: 0.8rem;
}

.areas-strip__head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
}

.areas-strip__head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(69, 19, 23, 0.18);
}

.areas-strip__title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-escuro);
  background: var(--color-fundo);
  padding: 0.25rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(69, 19, 23, 0.14);
}

.areas-strip__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.92rem;
  color: var(--color-escuro);
}

.areas-strip__list li {
  white-space: nowrap;
  padding: 0.15rem 0.2rem;
}

/* Botões */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-principal), var(--color-escuro));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(69, 19, 23, 0.2);
}

.btn--ghost {
  border: 1px solid var(--color-principal);
  background: transparent;
  color: var(--color-escuro);
}

.btn--ghost:hover {
  background-color: var(--color-claro);
}

.btn--full {
  width: 100%;
}

/* Grids / Cards */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.feature-card {
  background-color: var(--color-fundo);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.section--alt .service-card {
  background-color: var(--color-claro);
}

.service-card h3,
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.service-card__icon {
  width: 80px;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.9rem;
}

/* Cards auxiliares */
.section__card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-soft);
}

.section__card-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.list {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

/* Contato */
.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.4rem;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Rodapé */
.footer {
  padding: 1.6rem 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Responsividade */
@media (max-width: 1024px) {
  #diferenciais .grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__inner--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  /* Em mobile, prioriza a foto primeiro e reduz espaçamentos */
  .hero__visual {
    order: -1;
    width: min(420px, 100%);
    justify-self: center;
  }

  .hero__about {
    margin-top: 2rem;
  }

  .areas-strip__list {
    gap: 0.9rem;
  }
}

@media (max-width: 720px) {
  #diferenciais .grid--features {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: rgba(217, 201, 194, 0.98);
    border-bottom: 1px solid rgba(69, 19, 23, 0.08);
  }

  .nav--open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
  }

  .nav__list li {
    padding: 0.5rem 0;
  }

  .header__inner {
    position: relative;
  }

  .container {
    width: min(1120px, 100% - 1.6rem);
  }

  .grid--services {
    grid-template-columns: 1fr;
  }

  .grid--features {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 2rem;
  }
}


/* Ajuste: botão de WhatsApp no final do container 'Clínica' */
.hero__about .hero__actions {
  margin-top: 1.25rem;
}


/* Diferenciais: cards com a mesma 'pegada' de largura/altura do grid de Serviços */
#diferenciais .grid--features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#diferenciais .feature-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}


/* Responsividade (Diferenciais) — sobrescreve o grid 4 colunas em telas menores */
@media (max-width: 1024px) {
  #diferenciais .grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #diferenciais .grid--features {
    grid-template-columns: 1fr;
  }
}
