:root {
  /* "Terracota" identity — warm clay tones inspired by the Sala VV interior
     moodboard, replacing the previous wine/rose editorial palette. */
  --cream: #f7efe6;
  --cream-raised: #fdf8f1;
  --peach-wash: #f2decf;
  --terracotta: #a9573b;
  --terracotta-deep: #7c3a26;
  --peach-accent: #e8b99f;
  --ink: #43291d;
  --ink-soft: #7a5a4a;
  --rule: rgba(169, 87, 59, 0.16);
  --rule-strong: rgba(169, 87, 59, 0.25);
  --rule-outline: rgba(169, 87, 59, 0.4);
  --display-font: "Marcellus", "Georgia", serif;
  --body-font: "Karla", "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-cta: 0 12px 28px rgba(124, 58, 38, 0.25);
  --shadow-hero: 0 24px 60px rgba(124, 58, 38, 0.18);
  --photo-grade: saturate(0.95) contrast(1.04) brightness(1.02) sepia(0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  font-family: var(--display-font);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-strong);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 132px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a:not(.nav-cta) {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--terracotta);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--cream-raised);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--terracotta-deep);
  color: var(--cream-raised);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem) clamp(3.5rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: block;
  margin: 0 0 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 1.4rem;
  text-wrap: pretty;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.squiggle {
  width: 200px;
  height: 14px;
  display: block;
  margin: 0 0 1.4rem;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-content > p {
  font-size: 1.1rem;
  max-width: 50ch;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--cream-raised);
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: var(--shadow-cta);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--terracotta-deep);
  color: var(--cream-raised);
  transform: translateY(-2px);
}

.cta-outline {
  background: transparent;
  color: var(--terracotta-deep);
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--rule-outline);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: none;
  transition: background 0.2s ease;
}

.cta-outline:hover {
  background: var(--peach-wash);
  transform: none;
}

.hero-photo {
  margin: 0;
  position: relative;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-photo-frame {
  border-radius: 999px 999px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 38, 0.15);
  box-shadow: var(--shadow-hero);
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: clamp(420px, 52vw, 620px);
  object-fit: cover;
  filter: var(--photo-grade);
}

/* ---------- Terracotta band ---------- */

.band {
  background: var(--terracotta);
  color: var(--cream-raised);
}

.band-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem);
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.band-lead {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.15rem;
}

.band-note {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 3vw, 2.5rem);
}

.alt {
  background: var(--peach-wash);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-heading.center {
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

.section-heading .eyebrow {
  margin: 0 0 0.8rem;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.section-heading.split p {
  max-width: 38ch;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--cream-raised);
  border: 1px solid var(--rule);
  border-radius: 24px 24px 20px 20px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-tag {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.4rem;
  color: var(--terracotta-deep);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.8rem;
}

.card-items {
  display: grid;
  gap: 0.9rem;
}

.card-items h3 {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.card-items p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card-footnote {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Momentos photo grid ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 0.8rem;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: var(--photo-grade);
}

.photo-card-arch {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 999px 999px 18px 18px;
}

.photo-card-wide {
  grid-column: span 2;
}

.photo-card-arch-inverted {
  border-radius: 18px 18px 999px 999px;
}

/* ---------- Consultório ---------- */

.consultorio {
  background: var(--terracotta-deep);
  color: var(--cream);
}

.consultorio-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.consultorio .eyebrow {
  color: var(--peach-accent);
  margin: 0 0 0.8rem;
}

.consultorio h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
  color: var(--cream-raised);
}

.consultorio p {
  margin: 0 0 1rem;
  color: rgba(247, 239, 230, 0.85);
  max-width: 48ch;
}

.consultorio .cta-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--terracotta-deep);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1rem;
  transition: background 0.2s ease;
}

.consultorio .cta-light:hover {
  background: var(--peach-wash);
  color: var(--terracotta-deep);
}

.consultorio-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: end;
}

.office-slot {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: rgba(247, 239, 230, 0.06);
  border: 1.5px dashed rgba(247, 239, 230, 0.35);
  color: rgba(247, 239, 230, 0.7);
  font-size: 0.82rem;
}

.office-slot-arch {
  height: 340px;
  border-radius: 999px 999px 16px 16px;
}

.office-slot-round {
  height: 260px;
  border-radius: 16px;
}

/* ---------- Equipe ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 2.5rem;
  align-items: start;
}

.member {
  text-align: center;
}

.member-photo {
  margin: 0 auto 1.2rem;
  width: 220px;
  height: 270px;
  border-radius: 999px 999px 16px 16px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
}

.member-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: var(--photo-grade);
}

.member-photo img.marina-photo {
  object-position: 50% 38%;
}

.member h3 {
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
}

.member-role {
  margin: 0 0 0.3rem;
  color: var(--ink-soft);
}

.member-reg {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--cream-raised);
  border-top: 1px solid var(--rule);
}

.faq-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 3vw, 2.5rem);
}

.faq-inner h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 2rem;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-list details {
  border-top: 1px solid var(--rule-strong);
  padding: 1.2rem 0.2rem;
}

.faq-list details:last-of-type {
  border-bottom: 1px solid var(--rule-strong);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--display-font);
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--ink);
  min-height: 44px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 1.6rem;
  height: 1.6rem;
  min-width: 1.6rem;
  border: 1px solid var(--rule-outline);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

.faq-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #ede0d5;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.5rem clamp(1rem, 3vw, 2.5rem) 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand img {
  width: 64px;
  height: auto;
  display: block;
  margin-bottom: 0.9rem;
  filter: brightness(1.6) sepia(0.3);
}

.footer-brand h2 {
  color: var(--cream);
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.footer-brand p {
  margin: 0;
  color: rgba(237, 224, 213, 0.7);
  max-width: 34ch;
}

.footer-column h3 {
  margin: 0 0 0.8rem;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peach-accent);
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-column a {
  color: rgba(237, 224, 213, 0.8);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--cream);
}

.footer-address {
  color: rgba(237, 224, 213, 0.6);
}

.copyright {
  margin: 0;
  padding: 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(237, 224, 213, 0.5);
  border-top: 1px solid rgba(247, 239, 230, 0.12);
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-group] > *:nth-child(1) {
  transition-delay: 0s;
}
[data-reveal-group] > *:nth-child(2) {
  transition-delay: 0.08s;
}
[data-reveal-group] > *:nth-child(3) {
  transition-delay: 0.16s;
}
[data-reveal-group] > *:nth-child(4) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .hero-content h1,
  .squiggle,
  .hero-content > p,
  .cta-row,
  .hero-photo {
    animation: none;
  }

  .cta,
  .cta-outline,
  .nav-cta,
  .nav-links a,
  .footer-column a,
  .consultorio .cta-light {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .nav-inner {
    padding: 0.8rem 1rem;
  }

  .brand img {
    width: 104px;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2.2rem 1.25rem 2.6rem;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo-frame img {
    height: 400px;
  }

  .cta-row {
    display: grid;
    gap: 0.7rem;
  }

  .cta,
  .cta-outline {
    width: 100%;
  }

  .band-inner {
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section-heading {
    margin-bottom: 1.8rem;
  }

  .section-heading.split {
    display: block;
  }

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

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }

  .photo-card-wide {
    grid-column: span 1;
  }

  .consultorio-inner {
    grid-template-columns: 1fr;
  }

  .consultorio-images {
    grid-template-columns: 1fr;
  }

  .office-slot-arch {
    height: 300px;
  }

  .office-slot-round {
    display: none;
  }

  .consultorio .cta-light {
    width: 100%;
  }

  .team-grid {
    gap: 1rem;
  }

  .member {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.1rem;
    align-items: center;
    text-align: left;
    background: var(--cream-raised);
    border: 1px solid var(--rule);
    border-radius: 20px;
    padding: 1.1rem;
  }

  .member-photo {
    margin: 0;
    width: 110px;
    height: 130px;
    border-radius: 999px 999px 12px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}
