:root {
  --blue-light: #e5eeff;
  --blue-dark: #1f3554;
  --text-body: #334155;
  --radius-card: 16px;
  --shadow-soft: 0 8px 20px rgba(0,0,0,0.08);

  --font-serif: "Libre Baskerville", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  background: linear-gradient(to right, #ffffff 0%, #e5eeff 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 70px;
  height: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--blue-dark);
}

.logo-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(31, 53, 84, 0.7);
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: var(--blue-dark);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* HERO — degradê vertical + blur */
.hero {
  padding: 32px 0 56px;
  background: linear-gradient(to right, #ffffff 0%, #e5eeff 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: none;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.hero-logo {
  margin-bottom: 16px;
}

.hero-logo img {
  max-width: 350px; /* ajuste fino depois se quiser */
  height: auto;
  display: block;
}

.hero-text p {
  font-family: var(--font-serif);
}

.hero-body {
  font-size: 0.90rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background-color: #264a7d;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
  border: none;
}

.hero-instagram {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  gap: 6px;
  font-size: 0.95rem;
  color: rgba(31, 53, 84, 0.8);
  text-decoration: none;
}

.hero-instagram:hover {
  opacity: 0.8;
}

.hero-photo img {
  max-width: 550px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

/* SEÇÕES GENÉRICAS */
.section {
  padding: 64px 0;
  border-top: 5px solid rgba(0, 0, 0, 0.01); /* linha horizontal sutil */
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(31, 53, 84, 0.7);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--blue-dark);
  margin: 8px 0 24px;

  font-weight: 400;
  -weblkit-font-smothing: antialiased;
  font-smoth: always;

  letter-spacing: 0.2px;
}

/* SOBRE */
.about {
  background: linear-gradient(to left, #ffffff 0%, #e5eeff 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.about-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-photo img {
  max-width: 360px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.about-text p {
  font-family: var(--font-serif);
  font-size: 0.90rem;
  line-height: 1.7;
}

/* VALORES */
.values-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-left: 1px solid rgba(0, 0, 0, 0.06); /* linha vertical suave */
}

.value-box:first-child {
  border-left: none; /* remove linha do primeiro bloco */
}

.value-icon {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.value-box h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 8px;

  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;

  letter-spacing: 0.2px;
}

.value-box p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ESPECIALIDADES — degradê vertical + blur */
.specialties {
  background: linear-gradient(to right, #ffffff 0%, #e5eeff 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.specialties-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 32px;
}

.specialties-photo img {
  width: 260px;
  aspect-ratio: 260 / 412; /* mantém a proporção exata */
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  max-width: 100%; /* evita quebra em telas menores */
}

.specialties-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.specialty-box {
  background: #fff; 
  border-radius: 16px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
  width: 100%; 
  aspect-ratio: 1 / 1; 
  padding: 5px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  overflow: hidden;
}

.specialty-icon {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin-bottom: 0px;
  flex-shrink: 0;
}

.specialty-box h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0px;
  line-height: 1;
  max-width: 90%;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: visible;
  text-overflow: ellipsis;

  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;

  letter-spacing: 0.2px;
}

.specialty-box p {
  font-size: 0.8rem;
  line-height: 1.35;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RODAPÉ — degradê vertical + blur */
.site-footer {
  background: linear-gradient(to left, #ffffff 0%, #e5eeff 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 32px 0;
  border-top: 5px solid rgba(0, 0, 0, 0.01);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

/* BLOCO DO LOGO NO RODAPÉ */
.footer-logo-area {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.logo-final {
  width: 47px;
  height: auto;
  flex-shrink: 0;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--blue-dark);
}

.logo-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(31, 53, 84, 0.7);
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(31, 53, 84, 0.85);
  text-decoration: none;
}

.footer-instagram:hover {
  opacity: 0.8;
}

/* NAV DO RODAPÉ */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 0.9rem;
}

/* CONTATO */
.footer-contact p {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.footer-contact .btn-secondary {
  margin-top: 8px;
}

/* SOMBREAMENTO IGUAL AO DOS CARDS NAS 3 FOTOS DA PROFISSIONAL */
.hero-photo img,
.about-photo img,
.specialties-photo img {
  box-shadow: 0 12px 28px rgba(0,0,0,0.18), 
              0 6px 12px rgba(0,0,0,0.10);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 900px) {

  /* HEADER */
  .hero-inner,
  .header-inner,
  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* HERO */
  .hero {
    padding-top: 38px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero-text {
    flex-direction: column;
  }

  .hero-photo img {
    max-width: 300px;
  }

  .hero-logo {
    display: flex;
    justify-content: center;
  }

  /* SOBRE */
  .about-inner {
    flex-direction: column;
    gap: 32px;
  }

  .about-photo img {
    max-width: 300px;
  }

  .about-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0 5%;
  }

  /* VALORES */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 24px;
  }

  .value-box {
    padding: 6px;
  }

  .value-box h3 {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .value-box p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  /* ESPECIALIDADES */
  .specialties-layout {
    flex-direction: column;
    gap: 32px;
  }

  .specialties-photo img {
    width: 100%;
    max-width: none;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .specialty-box h3 {
    font-size: 0.80rem;
    line-height: 1.2;
  }

  .specialty-box p {
    font-size: 0.70rem;
    line-height: 1.3;
  }

  /* RODAPÉ — alinhando nome + menu lado a lado */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .footer-left,
  .footer-nav {
    flex: 1 1 0;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    text-align: right;
  }

  .footer-nav a {
    font-size: 0.8rem;
  }

  .footer-contact {
    width: 100%;
    flex-basis: 100%;
    margin-top: 20px;
    text-align: left;
  }
}

@media (max-width: 600px) {

  .specialty-box h3 {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .specialty-box p {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .value-box {
    padding: 2px;
  }

  .value-box h3 {
    font-size: 0.75rem;
  }

  .value-box p {
    font-size: 0.65rem;
  }

  .about-text p {
    font-size: 0.80rem;
    padding: 0 5%;
  }

  .main-nav a {
    font-size: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .hero-body {
    font-size: 0.85rem;
    padding: 0 16px;
  }

  .section h2 {
    font-size: 1.4rem;
  }

.footer-contact p {
  font-size: 0.8rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}