/*
  A&P Fisioclínica
  Arquivo principal de estilos

  Onde trocar:
  - Cores principais: bloco :root
  - Logo do menu/footer: index.markdown
  - Imagens da hero e seções: index.markdown
  - Textos principais: index.markdown
  - Links: index.markdown
*/

/* =========================
   VARIÁVEIS GLOBAIS
========================= */
:root {
  --color-primary: #1f7a5c;
  --color-primary-dark: #14543f;
  --color-secondary: #d8a84f;
  --color-bg: #f7fbf8;
  --color-bg-soft: #eef7f1;
  --color-text: #1d2b24;
  --color-muted: #66746d;
  --color-white: #ffffff;
  --color-border: rgba(31, 122, 92, 0.14);
  --color-footer: #102d23;
  --shadow-soft: 0 18px 45px rgba(20, 84, 63, 0.12);
  --shadow-card: 0 14px 35px rgba(20, 84, 63, 0.10);
  --radius-small: 14px;
  --radius-medium: 22px;
  --radius-large: 34px;
  --container: 1180px;
}

/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* =========================
   CLASSES GERAIS
========================= */
.section {
  padding: 96px 0;
}

.section-padding {
  padding: 130px 0 96px;
}

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

.section-accent {
  background:
    radial-gradient(circle at top left, rgba(216, 168, 79, 0.18), transparent 35%),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 122, 92, 0.10);
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(31, 122, 92, 0.12);
}

.badge-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(31, 122, 92, 0.24);
}

.button-primary:hover {
  background: var(--color-primary-dark);
}

.button-outline {
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.75);
}

.button-light {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.centered {
  text-align: center;
}

.justified-text p {
  text-align: justify;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading.centered {
  margin-inline: auto;
}

.section-heading h2,
.about-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin-top: 14px;
  color: var(--color-muted);
}

/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.header-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-button {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  box-shadow: 0 8px 18px rgba(31, 122, 92, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--color-bg-soft);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-primary-dark);
  transition: 0.2s ease;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 251, 248, 0.96), rgba(247, 251, 248, 0.82)),
    url("/assets/fundo.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: 100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(216, 168, 79, 0.18);
  filter: blur(6px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  width: min(280px, 80%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  color: var(--color-primary-dark);
}

.hero-card span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* =========================
   FISIOTERAPIA
========================= */
.content-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 48px;
}

.text-content p + p {
  margin-top: 18px;
}

.text-content .button {
  margin-top: 28px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.photo-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.photo-grid img:nth-child(1),
.photo-grid img:nth-child(2) {
  grid-column: span 3;
}

.photo-grid img:nth-child(3),
.photo-grid img:nth-child(4),
.photo-grid img:nth-child(5) {
  grid-column: span 2;
}

/* =========================
   MODALIDADES
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: 30px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 84, 63, 0.14);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  font-size: 1.35rem;
  font-weight: 800;
}

.service-card h3 {
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.97rem;
  text-align: justify;
}

/* =========================
   SOBRE NÓS
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: 52px;
}

.about-content {
  text-align: left;
}

.about-content p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  text-align: justify;
}

.about-content .button {
  margin-top: 28px;
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.professional-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.professional-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.16);
}

.professional-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.professional-content {
  padding: 22px;
}

.professional-card h3 {
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.professional-card p {
  margin-top: 8px;
  color: var(--color-muted);
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-primary-dark);
  font-weight: 800;
  border: 1px solid rgba(31, 122, 92, 0.14);
  box-shadow: 0 10px 22px rgba(20, 84, 63, 0.10);
}

/* =========================
   INSTRUMENTOS
========================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  min-height: 180px;
  padding: 26px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 84, 63, 0.14);
}

.tool-card span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: var(--color-primary-dark);
  background: var(--color-bg-soft);
  font-size: 1.35rem;
}

.tool-card h3 {
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.centered-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  color: var(--color-white);
  background: var(--color-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr 0.9fr;
  gap: 32px;
  padding: 70px 0 44px;
  align-items: start;
}

.footer-brand,
.footer-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.site-footer h2 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.80);
}

.site-footer a:hover {
  color: var(--color-white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.social-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
}

.payment-image {
  max-width: 220px;
  border-radius: 12px;
  background: var(--color-white);
  padding: 8px;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  font-size: 0.92rem;
}

/* =========================
   BOTÃO WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.34);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

/* =========================
   404
========================= */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--color-bg);
}

.error-content {
  text-align: center;
}

.error-logo {
  width: 90px;
  margin: 0 auto 24px;
}

.error-content h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--color-primary-dark);
}

.error-content p {
  margin: 16px 0 24px;
  color: var(--color-muted);
}

/* =========================
   RESPONSIVIDADE TABLET
========================= */
@media (max-width: 1040px) {
  .hero-grid,
  .content-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    left: 20px;
  }
}

/* =========================
   RESPONSIVIDADE MOBILE
========================= */
@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }

  .section-padding {
    padding: 112px 0 72px;
  }

  .header-content {
    min-height: 70px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 10px;
  }

  .nav-button {
    margin-top: 8px;
    text-align: center;
  }

  .hero h1,
  .section-heading h2,
  .about-content h2 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    letter-spacing: -0.03em;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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

  .photo-grid img,
  .photo-grid img:nth-child(1),
  .photo-grid img:nth-child(2),
  .photo-grid img:nth-child(3),
  .photo-grid img:nth-child(4),
  .photo-grid img:nth-child(5) {
    grid-column: auto;
    height: 230px;
  }

  .cards-grid,
  .professionals-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .professional-card img {
    height: 300px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  /*
  Âncora invisível para o botão Home voltar corretamente ao topo.
  Mantém compatibilidade com o header fixo.
*/
.page-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
}