:root {
  --navy: #061525;
  --navy-2: #071c2f;
  --copper: #c96f51;
  --copper-2: #a8563d;
  --copper-light: #e59574;
  --cream: #fbf4ea;
  --paper: #fffaf3;
  --ink: #111827;
  --muted: #65707c;
  --white: #ffffff;
  --radius: 8px;
  --shell: min(1200px, calc(100vw - 48px));
  --shadow: 0 22px 70px rgba(6, 21, 37, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 22px;
  left: 50%;
  right: auto;
  z-index: 30;
  display: grid;
  width: var(--shell);
  margin: 0 auto;
  grid-template-columns: minmax(220px, 270px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 10px 18px 10px 14px;
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.96);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.logo-image {
  display: inline-flex;
  width: min(254px, 28vw);
  align-items: center;
}

.logo-image img {
  width: 100%;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(13px, 1.8vw, 28px);
}

.nav a {
  color: rgba(6, 21, 37, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--copper-light);
}

.header-cta,
.button,
.service-card a,
.google-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta {
  min-height: 52px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--copper-light), var(--copper-2));
  font-size: 0.78rem;
  box-shadow: 0 14px 34px rgba(201, 111, 81, 0.28);
}

.button {
  padding: 0 24px;
  font-size: 0.82rem;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.service-card a:hover,
.google-card a:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--copper-light), var(--copper-2));
  box-shadow: 0 18px 40px rgba(201, 111, 81, 0.24);
}

.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.center {
  width: fit-content;
  margin: 32px auto 0;
}

.cta-stack {
  display: inline-grid;
  gap: 1px;
  text-align: center;
  line-height: 1.1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--navy);
  border: 1px solid rgba(6, 21, 37, 0.22);
  border-radius: var(--radius);
  background: rgba(6, 21, 37, 0.04);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-toggle span + span {
  margin-top: -12px;
}

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

.section-light {
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 111, 81, 0.08), transparent 26%),
    radial-gradient(circle at 88% 2%, rgba(201, 111, 81, 0.07), transparent 24%),
    var(--cream);
}

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: stretch;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 46%, rgba(201, 111, 81, 0.18), transparent 22%),
    linear-gradient(110deg, #061525 0%, #071827 54%, #0f1a22 100%);
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  top: 112px;
  right: max(0px, calc((100vw - 1200px) / 2 - 24px));
  bottom: 0;
  left: auto;
  width: min(47vw, 620px);
  height: calc(100% - 112px);
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  border-radius: 8px 8px 0 0;
  filter: saturate(0.96) contrast(1.05);
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.38);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 21, 37, 0.99) 0%, rgba(6, 21, 37, 0.92) 42%, rgba(6, 21, 37, 0.28) 64%, rgba(6, 21, 37, 0.46) 100%),
    linear-gradient(180deg, rgba(6, 21, 37, 0.08), rgba(6, 21, 37, 0.9));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(170deg, rgba(229, 149, 116, 0.045) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 44% 28%, rgba(229, 149, 116, 0.08), transparent 28%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: max(0px, calc((100vw - 1200px) / 2 - 24px));
  bottom: 0;
  z-index: 2;
  width: min(47vw, 620px);
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(6, 21, 37, 0.92));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.32fr);
  column-gap: 52px;
  row-gap: 26px;
  align-items: center;
  padding: 158px 0 58px;
}

.hero-copy {
  max-width: 735px;
}

.eyebrow,
.tag {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 20px;
  padding: 6px 12px;
  color: var(--copper-light);
  border: 1px solid rgba(201, 111, 81, 0.72);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 6.1vw, 5.45rem);
  line-height: 0.98;
}

h1 > span {
  display: block;
}

h1 em {
  color: var(--copper-light);
  font-style: normal;
  white-space: nowrap;
}

.hero-title-line {
  white-space: nowrap;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
}

.hero-mobile-photo {
  display: none;
}

.hero-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 710px;
  margin: 0 0 28px;
}

.hero-credentials div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 24, 40, 0.58);
  backdrop-filter: blur(12px);
}

.hero-credentials svg {
  width: 19px;
  height: 19px;
  color: var(--copper-light);
}

.hero-credentials span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.flags {
  display: inline-flex;
  margin-left: 5px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.security-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.hero-side {
  grid-column: 1 / 2;
  align-self: end;
  display: grid;
  gap: 22px;
  max-width: 720px;
  margin: -2px 0 10px;
}

.micro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

.micro-stats div {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  min-height: 126px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 34, 54, 0.88), rgba(7, 22, 36, 0.8));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  text-align: center;
  backdrop-filter: blur(12px);
}

.micro-stats div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.micro-stats strong {
  color: var(--copper-light);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.55rem, 3.6vw, 3.35rem);
  line-height: 1;
}

.micro-stats strong .count-up {
  font-size: 1.22em;
}

.micro-stats span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.questions {
  padding: 44px 0 32px;
}

.section-title {
  max-width: 880px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-title.dark-title h2,
.section-title.dark-title span {
  color: var(--white);
}

.pill {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 14px;
  color: var(--copper);
  border: 1px solid rgba(201, 111, 81, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title h2,
.final-copy h2,
.faq h2,
.curriculum h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  line-height: 1.02;
}

.section-title span {
  color: var(--muted);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.question-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px 16px;
  border: 1px solid rgba(17, 24, 39, 0.05);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 44px rgba(6, 21, 37, 0.05);
  text-align: center;
}

.question-card svg {
  width: 38px;
  height: 38px;
  color: var(--copper-light);
}

.question-card strong {
  max-width: 132px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.service-section {
  padding: 22px 0 72px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px);
}

.service-card {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 30px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(6, 21, 37, 0.12);
}

.service-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  line-height: 0.96;
}

.nr-badge {
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 10px 5px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(201, 111, 81, 0.9);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.38em;
  font-weight: 900;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.service-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  font-weight: 800;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.44em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.service-card a {
  width: fit-content;
  margin-top: 32px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--copper-light), var(--copper-2));
  font-size: 0.76rem;
}

.service-card.dark {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.42), rgba(6, 21, 37, 0.95)),
    url("./assets/dependencia-card-mobile.png") center / cover,
    var(--navy);
}

.service-card.family {
  color: var(--navy);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.34), rgba(255, 250, 243, 0.96) 42%),
    url("./assets/codependencia-card-mobile.png") center top / cover,
    var(--paper);
}

.service-card.corporate {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.28), rgba(6, 21, 37, 0.88) 58%, rgba(117, 53, 35, 0.92)),
    url("./assets/dr-afonso-palestra.jpeg") center top / cover,
    var(--navy);
}

.page-codependencia .hero {
  min-height: 840px;
  background:
    radial-gradient(circle at 72% 24%, rgba(201, 111, 81, 0.16), transparent 20%),
    linear-gradient(115deg, #061525 0%, #0a1d30 54%, #111b27 100%);
}

.page-codependencia .hero-bg {
  width: min(46vw, 610px);
  object-position: center 22%;
}

.page-codependencia .hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 21, 37, 0.985) 0%, rgba(6, 21, 37, 0.91) 40%, rgba(6, 21, 37, 0.34) 66%, rgba(6, 21, 37, 0.48) 100%),
    linear-gradient(180deg, rgba(6, 21, 37, 0.1), rgba(6, 21, 37, 0.92));
}

.page-codependencia .hero-copy {
  max-width: 760px;
}

.page-codependencia .hero-copy h1 {
  max-width: 840px;
}

.service-card.codependencia-burden {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.4), rgba(6, 21, 37, 0.96)),
    url("./assets/dependencia-card-mobile.png") center / cover,
    var(--navy);
}

.service-card.codependencia-signs {
  color: var(--navy);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.18), rgba(255, 250, 243, 0.96) 46%),
    url("./assets/codependencia-card-mobile.png") center top / cover,
    var(--paper);
}

.service-card.codependencia-help {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.3), rgba(6, 21, 37, 0.82) 54%, rgba(117, 53, 35, 0.92)),
    url("./assets/dr-afonso-curriculum.jpeg") center top / cover,
    var(--navy);
}

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

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

.page-psicologoonline .hero {
  min-height: 835px;
  background:
    radial-gradient(circle at 78% 18%, rgba(201, 111, 81, 0.18), transparent 22%),
    linear-gradient(115deg, #061525 0%, #0a1d30 52%, #111b27 100%);
}

.page-psicologoonline .hero-bg {
  width: min(46vw, 610px);
  object-position: center 22%;
}

.page-psicologoonline .hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 21, 37, 0.99) 0%, rgba(6, 21, 37, 0.92) 41%, rgba(6, 21, 37, 0.33) 66%, rgba(6, 21, 37, 0.5) 100%),
    linear-gradient(180deg, rgba(6, 21, 37, 0.06), rgba(6, 21, 37, 0.9));
}

.page-psicologoonline .hero-copy {
  max-width: 700px;
}

.page-psicologoonline .hero-copy h1 {
  max-width: 720px;
}

.page-psicologoonline .hero-content {
  grid-template-columns: minmax(0, 700px);
  align-items: center;
  padding-top: 168px;
  padding-bottom: 72px;
}

.page-psicologoonline .hero-lead {
  max-width: 590px;
  margin-bottom: 12px;
}

.online-hero-proof {
  max-width: 610px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.online-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin-bottom: 26px;
}

.online-questions {
  background:
    radial-gradient(circle at 16% 12%, rgba(201, 111, 81, 0.09), transparent 28%),
    var(--paper);
}

.online-questions .question-card {
  min-height: 180px;
  align-content: start;
  justify-items: center;
  padding: 22px 14px 18px;
}

.online-questions .question-card p {
  max-width: 150px;
  margin: -4px auto 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.28;
}

.service-card.online-anxiety {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.48), rgba(6, 21, 37, 0.94)),
    url("./assets/hero-path.png") center / cover,
    var(--navy);
}

.service-card.online-abuse {
  color: var(--navy);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.46), rgba(255, 250, 243, 0.98) 42%),
    url("./assets/dr-afonso-curriculum.jpeg") center top / cover,
    var(--paper);
}

.service-card.online-family {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.22), rgba(6, 21, 37, 0.84) 54%, rgba(117, 53, 35, 0.92)),
    url("./assets/dr-afonso-hero.jpeg") center top / cover,
    var(--navy);
}

.online-flow {
  padding: 72px 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(201, 111, 81, 0.12), transparent 24%),
    #fffaf3;
}

.online-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.online-step-grid article {
  position: relative;
  min-height: 240px;
  padding: 26px 22px 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 52px rgba(6, 21, 37, 0.08);
}

.online-step-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 58%);
  pointer-events: none;
}

.online-step-grid article > span {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(201, 111, 81, 0.24);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.online-step-grid i {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--copper);
}

.online-step-grid i svg {
  width: 30px;
  height: 30px;
}

.online-step-grid h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
}

.online-step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.online-curriculum {
  padding-top: 78px;
  padding-bottom: 78px;
  background:
    linear-gradient(90deg, rgba(6, 21, 37, 0.96), rgba(6, 21, 37, 0.86)),
    var(--navy);
}

.online-curriculum .curriculum-grid {
  background:
    radial-gradient(circle at 72% 18%, rgba(201, 111, 81, 0.16), transparent 24%),
    linear-gradient(120deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 250, 243, 0.9) 42%, rgba(6, 21, 37, 0.16) 70%, rgba(6, 21, 37, 0.02) 100%);
}

.online-curriculum .curriculum-copy p {
  color: var(--muted);
}

.online-curriculum .curriculum-highlights span {
  color: var(--navy);
}

.online-curriculum .curriculum-copy h2 {
  color: var(--navy);
}

.online-curriculum .crp {
  color: var(--copper);
}

.online-testimonials {
  padding-top: 72px;
}

.online-reach {
  padding: 72px 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(255, 255, 255, 0.98)),
    var(--paper);
}

.online-reach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.online-reach h2 {
  margin: 12px 0 16px;
  color: var(--navy);
}

.online-reach p {
  margin: 0;
  color: var(--muted);
}

.flag-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 54px rgba(6, 21, 37, 0.08);
}

.flag-panel span {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 250, 243, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.service-card.family .tag {
  background: rgba(255, 250, 243, 0.78);
}

.testimonials {
  padding: 70px 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(201, 111, 81, 0.1), transparent 26%),
    var(--navy);
}

.video-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.video-card {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.15), rgba(6, 21, 37, 0.88)),
    var(--video-thumb) center / cover,
    rgba(255, 255, 255, 0.04);
  text-align: center;
  overflow: hidden;
}

.video-card i {
  display: grid;
  width: 76px;
  height: 54px;
  place-items: center;
  color: var(--white);
  border-radius: 16px;
  background: var(--copper);
  box-shadow: 0 14px 34px rgba(201, 111, 81, 0.34);
}

.video-card i::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fffaf3;
}

.video-card svg {
  display: none;
}

.video-card strong {
  color: var(--white);
  font-size: 1rem;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.video-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.quote-card,
.google-card {
  min-height: 220px;
  padding: 28px;
  color: var(--navy);
  border-radius: var(--radius);
  background: var(--paper);
}

.quote-card span {
  display: block;
  height: 30px;
  color: var(--copper);
  font-family: Georgia, serif;
  font-size: 3.8rem;
  line-height: 0.6;
}

.quote-card p {
  color: #1c2734;
  font-size: 0.84rem;
}

.quote-card strong {
  font-size: 0.84rem;
}

.quote-card strong a {
  color: var(--navy);
}

.review-stars {
  margin-bottom: 10px;
  color: #ffc43a;
  font-size: 0.98rem;
  letter-spacing: 0.2em;
}

.google-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.google-logo {
  display: flex;
  margin-bottom: 8px;
  font-size: 1.95rem;
  font-weight: 800;
}

.google-logo span:nth-child(1),
.google-logo span:nth-child(4) {
  color: #4285f4;
}

.google-logo span:nth-child(2),
.google-logo span:nth-child(6) {
  color: #ea4335;
}

.google-logo span:nth-child(3) {
  color: #fbbc05;
}

.google-logo span:nth-child(5) {
  color: #34a853;
}

.stars {
  margin-bottom: 10px;
  color: #ffc43a;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
}

.google-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.google-card div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.google-card a {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(201, 111, 81, 0.75);
  color: var(--copper);
  font-size: 0.72rem;
}

.curriculum {
  padding: 78px 0;
}

.curriculum-grid {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 600px;
  padding: 44px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 18%, rgba(201, 111, 81, 0.13), transparent 26%),
    linear-gradient(120deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 250, 243, 0.94) 42%, rgba(255, 250, 243, 0.18) 68%, rgba(255, 250, 243, 0.02) 100%);
  box-shadow: 0 28px 70px rgba(6, 21, 37, 0.12);
}

.curriculum-photo {
  position: absolute;
  inset: 0 0 0 36%;
  overflow: hidden;
  border-radius: 0;
  background: var(--navy);
}

.curriculum-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.98) contrast(1.03);
}

.curriculum-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96) 0%, rgba(255, 250, 243, 0.7) 18%, rgba(255, 250, 243, 0.18) 42%, rgba(6, 21, 37, 0.2) 100%),
    linear-gradient(180deg, rgba(6, 21, 37, 0.08), rgba(6, 21, 37, 0.28));
}

.curriculum-copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
  padding: 36px;
  border: 1px solid rgba(6, 21, 37, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.curriculum-copy h3 {
  margin: 10px 0 4px;
  color: var(--navy);
  font-size: 1.35rem;
}

.curriculum-pill {
  margin-bottom: 14px;
  font-size: 0.62rem;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2dcf67;
  box-shadow: 0 0 0 5px rgba(45, 207, 103, 0.14);
}

.crp-line {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--copper);
}

.curriculum-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
}

.curriculum-copy .button {
  margin-top: 12px;
}

.curriculum-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 4px;
}

.curriculum-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--navy);
  border: 1px solid rgba(6, 21, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
}

.seo-trust {
  padding: 22px 0 72px;
}

.seo-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}

.seo-trust-copy {
  max-width: 620px;
}

.seo-trust-copy h2 {
  margin-bottom: 16px;
}

.seo-trust-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.seo-trust-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.seo-point-card {
  padding: 22px 22px 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(6, 21, 37, 0.06);
}

.seo-point-card i {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--copper);
}

.seo-point-card i svg {
  width: 24px;
  height: 24px;
}

.seo-point-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
}

.seo-point-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq {
  padding: 66px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 14px 28px;
}

.section-title.compact {
  grid-row: span 7;
  margin: 0;
  text-align: left;
}

details {
  padding: 20px 22px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.final-cta {
  position: relative;
  padding: 58px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(201, 111, 81, 0.12), transparent 22%),
    var(--navy);
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 54px;
  align-items: center;
}

.final-copy h2 {
  max-width: 470px;
  margin-bottom: 16px;
  color: var(--white);
}

.final-copy h2 span {
  display: block;
}

.final-copy p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.final-actions {
  display: grid;
  gap: 12px;
}

.site-footer {
  padding: 42px 0 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.62fr 1.35fr 0.82fr;
  gap: 40px;
  padding-bottom: 34px;
}

.footer-logo {
  width: min(260px, 100%);
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 240px;
  margin: 0 0 6px;
}

.footer-brand em {
  color: var(--copper-light);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1rem;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--copper-light);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.country-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.country-flags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.crp {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 16px;
  color: var(--copper-light);
  border: 1px solid var(--copper);
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.floating-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.32);
  border: 3px solid rgba(255, 255, 255, 0.92);
}

.floating-whatsapp svg,
.floating-whatsapp img {
  width: 40px;
  height: 40px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 37, 0.84);
  backdrop-filter: blur(8px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 22, 36, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.video-modal-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

i[data-icon] {
  display: inline-flex;
  flex: 0 0 auto;
}

i[data-icon] svg {
  width: 1.25em;
  height: 1.25em;
  stroke: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    border: 1px solid rgba(6, 21, 37, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 250, 243, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav a {
    padding: 13px 8px;
    border-bottom: 1px solid rgba(6, 21, 37, 0.08);
  }

  .hero-content,
  .curriculum-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 980px;
  }

  .hero-bg {
    top: auto;
    right: 0;
    width: min(58vw, 520px);
    height: 58%;
    object-position: center top;
    opacity: 0.9;
  }

  .hero::after {
    right: 0;
    width: min(58vw, 520px);
    height: 36%;
  }

  .hero-side {
    max-width: 720px;
    align-self: auto;
  }

  .question-grid,
  .service-grid,
  .testimonial-grid,
  .seo-trust-grid,
  .online-step-grid,
  .online-reach-grid,
  .final-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-carousel {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }

  .section-title.compact,
  .google-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100vw - 28px, 1200px);
  }

  .site-header {
    position: fixed;
    top: 12px;
    width: calc(100vw - 28px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 5px 8px;
  }

  .logo-image {
    width: min(214px, 70vw);
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .nav {
    top: calc(100% + 8px);
  }

  .hero {
    min-height: auto;
    background: var(--navy);
  }

  .hero-bg {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100%;
    height: clamp(440px, 60vh, 560px);
    object-position: center top;
    opacity: 1;
    border-radius: 0;
    filter: saturate(1) contrast(1.04) brightness(0.96);
    box-shadow: none;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6, 21, 37, 0.38) 0%, rgba(6, 21, 37, 0.14) 34%, rgba(6, 21, 37, 0.72) 64%, rgba(6, 21, 37, 1) 100%),
      linear-gradient(90deg, rgba(6, 21, 37, 0.46), rgba(6, 21, 37, 0.08) 45%, rgba(6, 21, 37, 0.36));
  }

  .hero::after {
    top: clamp(320px, 47vh, 440px);
    right: 0;
    bottom: auto;
    width: 100%;
    height: 260px;
    background: linear-gradient(180deg, transparent, rgba(6, 21, 37, 0.98));
  }

  .hero-content {
    min-height: auto;
    align-items: start;
    padding: clamp(390px, 58vh, 530px) 0 42px;
  }

  .eyebrow {
    margin-bottom: 16px;
    transform: translateY(-24px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.22rem, 9.3vw, 3.1rem);
    line-height: 1.02;
  }

  .hero-title-line {
    font-size: 0.96em;
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 0.94rem;
  }

  .hero-credentials {
    gap: 6px;
    margin-bottom: 22px;
  }

  .hero-credentials div {
    grid-template-columns: 21px 1fr;
    padding: 7px 9px;
  }

  .hero-credentials span {
    font-size: 0.7rem;
  }

  .hero-credentials,
  .online-strip,
  .service-grid,
  .testimonial-grid,
  .seo-trust-grid,
  .online-step-grid,
  .online-reach-grid,
  .final-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-psicologoonline .hero-bg {
    width: 100%;
    height: clamp(440px, 60vh, 560px);
    object-position: center top;
  }

  .page-psicologoonline .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6, 21, 37, 0.38) 0%, rgba(6, 21, 37, 0.16) 34%, rgba(6, 21, 37, 0.74) 64%, rgba(6, 21, 37, 1) 100%),
      linear-gradient(90deg, rgba(6, 21, 37, 0.48), rgba(6, 21, 37, 0.1) 45%, rgba(6, 21, 37, 0.36));
  }

  .page-psicologoonline .hero-copy h1 {
    font-size: clamp(2.16rem, 8.9vw, 2.92rem);
    line-height: 1;
  }

  .page-psicologoonline .hero-content {
    padding-top: clamp(390px, 58vh, 520px);
  }

  .online-hero-proof {
    margin-bottom: 18px;
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .online-strip {
    gap: 7px;
  }

  .online-strip div {
    min-height: 44px;
  }

  .online-strip span {
    font-size: 0.72rem;
  }

  .question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .question-card {
    min-height: 112px;
    gap: 10px;
    padding: 16px 12px;
  }

  .question-card svg {
    width: 42px;
    height: 42px;
  }

  .question-card strong {
    max-width: 118px;
    font-size: 0.8rem;
    line-height: 1.22;
  }

  .online-questions .question-card {
    min-height: 150px;
    padding: 15px 10px;
  }

  .online-questions .question-card p {
    max-width: 124px;
    font-size: 0.64rem;
    line-height: 1.24;
  }

  .micro-stats {
    gap: 8px;
  }

  .micro-stats div {
    min-height: 98px;
    padding: 12px 7px;
  }

  .micro-stats strong {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }

  .micro-stats strong .count-up {
    font-size: 1.34em;
  }

  .micro-stats span {
    font-size: 0.62rem;
  }

  .service-card h2 {
    font-size: clamp(2.3rem, 9vw, 3.1rem);
  }

  .page-psicologoonline .service-card h2 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  .service-card li {
    font-size: 1rem;
  }

  .service-card.dark {
    background:
      linear-gradient(180deg, rgba(6, 21, 37, 0.22), rgba(6, 21, 37, 0.92)),
      url("./assets/dependencia-card-mobile.png") center top / cover,
      var(--navy);
  }

  .service-card.family {
    background:
      linear-gradient(180deg, rgba(255, 250, 243, 0.16), rgba(255, 250, 243, 0.98) 46%),
      url("./assets/codependencia-card-mobile.png") center top / cover,
      var(--paper);
  }

  .service-card.corporate {
    background:
      linear-gradient(180deg, rgba(6, 21, 37, 0.42), rgba(6, 21, 37, 0.92) 58%, rgba(117, 53, 35, 0.94)),
      url("./assets/dr-afonso-palestra.jpeg") center top / cover,
      var(--navy);
  }

  .video-carousel {
    grid-template-columns: repeat(5, 82vw);
  }

  .online-flow,
  .online-reach {
    padding: 50px 0;
  }

  .online-step-grid {
    gap: 12px;
  }

  .online-step-grid article {
    min-height: 178px;
    padding: 22px 18px;
  }

  .online-step-grid article > span {
    font-size: 2.2rem;
  }

  .flag-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .flag-panel span {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .button,
  .service-card a,
  .center {
    width: 100%;
  }

  .service-card {
    min-height: 0;
  }

  .section-title,
  .section-title.compact {
    text-align: left;
  }

  .questions {
    padding-top: 46px;
  }

  .seo-trust {
    padding-top: 10px;
  }

  .seo-point-card {
    padding: 18px 16px;
  }

  .curriculum-pill,
  .curriculum-copy p {
    font-size: calc(0.62rem - 2px);
  }

  .curriculum-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .curriculum-grid {
    min-height: auto;
    padding: 18px;
  }

  .curriculum-photo {
    position: relative;
    inset: auto;
    min-height: 360px;
    border-radius: var(--radius);
  }

  .curriculum-photo::after {
    background:
      linear-gradient(180deg, rgba(6, 21, 37, 0.08), rgba(6, 21, 37, 0.36)),
      linear-gradient(180deg, transparent 0%, rgba(255, 250, 243, 0.12) 100%);
  }

  .curriculum-copy {
    margin-top: -36px;
    padding: 24px 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 70px;
    height: 70px;
  }

  .video-modal {
    padding: 10px;
  }

  .video-modal-dialog {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
