:root {
  --ec-ink: #1e2522;
  --ec-ink: oklch(25% 0.015 160);
  --ec-paper: #faf9f5;
  --ec-paper: oklch(98.5% 0.008 90);
  --ec-surface: #f1f3ef;
  --ec-surface: oklch(95.5% 0.012 145);
  --ec-eucalyptus: #3d6552;
  --ec-eucalyptus: oklch(46% 0.06 158);
  --ec-eucalyptus-deep: #29483a;
  --ec-eucalyptus-deep: oklch(36% 0.05 158);
  --ec-coral: #c85d57;
  --ec-coral: oklch(60% 0.13 25);
  --ec-coral-deep: #a94a46;
  --ec-coral-deep: oklch(51% 0.12 25);
  --ec-mist: #dce8e1;
  --ec-mist: oklch(91% 0.025 160);
  --ec-muted: #66706a;
  --ec-muted: oklch(53% 0.02 155);
  --ec-border: #d6ddd8;
  --ec-border: oklch(88% 0.015 155);
  --color-bg: var(--ec-paper);
  --color-dark: var(--ec-ink);
  --color-accent: var(--ec-eucalyptus);
  --color-accent-hover: var(--ec-eucalyptus-deep);
  --color-gold: var(--ec-coral);
  --color-gold-light: var(--ec-mist);
  --color-gray-soft: var(--ec-surface);
  --color-white: var(--ec-paper);
  --color-border: var(--ec-border);
  --color-text-muted: var(--ec-muted);
  --font-display: 'Albert Sans', Arial, sans-serif;
  --font-body: 'Albert Sans', Arial, sans-serif;
  --container-max: 1240px;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--ec-paper);
  color: var(--ec-ink);
  font-family: var(--font-body);
}

:focus-visible {
  outline: 3px solid var(--ec-coral);
  outline-offset: 4px;
}

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

.btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: normal;
}

.btn--primary {
  border-color: var(--ec-coral);
  background: var(--ec-coral);
  color: var(--ec-paper);
}

.btn--primary:hover {
  border-color: var(--ec-coral-deep);
  background: var(--ec-coral-deep);
  box-shadow: none;
  transform: translateY(-1px);
}

.site-header {
  background: var(--ec-paper);
  border-color: var(--ec-border);
}

.admin-bar .site-header {
  top: 32px;
}

.header__inner {
  min-height: 76px;
  height: auto;
}

.header__brand {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--ec-ink);
  text-decoration: none;
}

.header__brand-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.header__brand-service {
  color: var(--ec-muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.header__nav-list a {
  letter-spacing: 0;
}

.header__hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.header__hamburger span {
  background: var(--ec-ink);
}

.hero {
  min-height: 520px;
  height: min(680px, calc(100dvh - 176px));
  max-height: 680px;
  margin-top: 76px;
  align-items: stretch;
}

.hero__bg-img {
  object-position: 66% center;
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(20, 35, 29, 0.9) 0%, rgba(20, 35, 29, 0.7) 42%, rgba(20, 35, 29, 0.08) 76%);
}

.hero__content {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  text-align: left;
}

.hero__headline {
  max-width: 21ch;
  color: var(--ec-paper);
  font-size: clamp(2.35rem, 3.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: none;
}

.hero__subtitle {
  max-width: 60ch;
  color: var(--ec-paper);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  opacity: 0.9;
}

.hero__authority {
  display: none;
}

.hero__cta {
  width: auto;
  max-width: 100%;
  margin-top: 4px;
}

.hero__crm {
  display: none;
}

.authority-bar {
  padding-block: 22px;
  background: var(--ec-eucalyptus-deep);
  color: var(--ec-paper);
}

.authority-bar__inner {
  display: block;
}

.authority-bar__inner p {
  max-width: 112ch;
  color: var(--ec-mist);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.approved-pathways {
  padding-block: clamp(72px, 10vw, 136px);
  background: var(--ec-paper);
}

.approved-pathways__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.approved-pathways__header {
  position: sticky;
  top: 112px;
}

.approved-pathways__header h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 650;
  line-height: 1.08;
}

.approved-pathways__header p {
  max-width: 36ch;
  margin-top: 20px;
  color: var(--ec-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.approved-pathways__list {
  border-top: 1px solid var(--ec-border);
}

.approved-pathways__list li {
  border-bottom: 1px solid var(--ec-border);
}

.approved-pathways__list a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 20px;
  align-items: center;
  min-height: 152px;
  padding-block: 28px;
  color: var(--ec-ink);
  transition: color var(--transition), padding var(--transition);
}

.approved-pathways__list a:hover {
  padding-inline: 8px;
  color: var(--ec-eucalyptus);
}

.approved-pathways__index {
  color: var(--ec-coral);
  font-size: 0.875rem;
  font-weight: 700;
}

.approved-pathways__copy {
  display: grid;
  gap: 8px;
}

.approved-pathways__copy > span {
  color: var(--ec-muted);
  font-size: 0.875rem;
}

.approved-pathways__copy strong {
  max-width: 28ch;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 650;
  line-height: 1.2;
}

.approved-pathways__arrow {
  font-size: 1.5rem;
  text-align: right;
}

.professional-profile,
.consultation-flow,
.consultorio,
.contato {
  scroll-margin-top: 92px;
}

.section-label {
  margin-bottom: 18px;
  color: var(--ec-coral);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.professional-profile {
  padding-block: clamp(80px, 11vw, 152px);
  background: var(--ec-eucalyptus-deep);
  color: var(--ec-paper);
}

.professional-profile__inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 9vw, 128px);
  align-items: center;
}

.professional-profile__media {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
}

.professional-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.professional-profile__media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 10px;
  background: rgba(20, 35, 29, 0.86);
  color: var(--ec-paper);
  font-size: 0.75rem;
  line-height: 1.3;
}

.professional-profile__content h2,
.consultation-flow__header h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.professional-profile__lead {
  max-width: 58ch;
  margin-top: 28px;
  color: var(--ec-paper);
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.professional-profile__content > p:not(.section-label, .professional-profile__lead, .professional-profile__membership) {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--ec-mist);
  line-height: 1.7;
}

.professional-profile__facts {
  margin-top: 32px;
  border-top: 1px solid rgba(220, 232, 225, 0.28);
}

.professional-profile__facts li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid rgba(220, 232, 225, 0.28);
  color: var(--ec-mist);
  line-height: 1.55;
}

.professional-profile__facts li::before {
  position: absolute;
  top: 23px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--ec-coral);
  content: '';
}

.professional-profile__membership {
  max-width: 64ch;
  margin-top: 28px;
  color: var(--ec-paper);
  font-size: 0.875rem;
  line-height: 1.6;
}

.consultation-flow {
  padding-block: clamp(80px, 11vw, 152px);
  background: var(--ec-paper);
}

.consultation-flow__header {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  column-gap: clamp(48px, 9vw, 128px);
  align-items: start;
}

.consultation-flow__header .section-label {
  grid-column: 1;
}

.consultation-flow__header h2 {
  grid-column: 1;
}

.consultation-flow__header > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 58ch;
  color: var(--ec-muted);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.6;
}

.consultation-flow__steps {
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--ec-border);
}

.consultation-flow__step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--ec-border);
}

.consultation-flow__number {
  color: var(--ec-coral);
  font-size: 0.875rem;
  font-weight: 700;
}

.consultation-flow__step > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 88px);
}

.consultation-flow__step h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 650;
  line-height: 1.25;
}

.consultation-flow__step p {
  max-width: 68ch;
  color: var(--ec-muted);
  line-height: 1.75;
}

.consultation-flow__details {
  margin-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--ec-border);
}

.consultation-flow__details details {
  border-bottom: 1px solid var(--ec-border);
}

.consultation-flow__details summary {
  position: relative;
  display: flex;
  min-height: 72px;
  padding: 22px 52px 22px 0;
  align-items: center;
  color: var(--ec-ink);
  cursor: pointer;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}

.consultation-flow__details summary::-webkit-details-marker {
  display: none;
}

.consultation-flow__details summary::after {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--ec-eucalyptus);
  content: '+';
  font-size: 1.75rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.consultation-flow__details details[open] summary::after {
  content: '\2212';
}

.consultation-flow__details-content {
  max-width: 76ch;
  padding: 0 52px 28px 0;
  color: var(--ec-muted);
}

.consultation-flow__details-content p,
.consultation-flow__details-content li {
  line-height: 1.75;
}

.consultation-flow__details-content p + p,
.consultation-flow__details-content ul + p {
  margin-top: 16px;
}

.consultation-flow__details-content ul {
  margin: 12px 0 0 20px;
  list-style: disc;
}

.consultation-flow__details-content li + li {
  margin-top: 6px;
}

.consultation-flow__cta {
  display: flex;
  margin-top: clamp(48px, 7vw, 80px);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.consultation-flow__cta p {
  max-width: 46ch;
  color: var(--ec-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.approved-page {
  background: var(--ec-paper);
}

.approved-page__hero {
  position: relative;
  min-height: 560px;
  height: min(780px, calc(100dvh - 140px));
  max-height: 780px;
  margin-top: 76px;
  overflow: hidden;
  color: var(--ec-paper);
}

.approved-page__hero-image,
.approved-page__hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.approved-page__hero-image {
  object-fit: cover;
  object-position: 66% center;
}

.approved-page__hero-overlay {
  background: linear-gradient(90deg, rgba(20, 35, 29, 0.94) 0%, rgba(20, 35, 29, 0.76) 44%, rgba(20, 35, 29, 0.1) 78%);
}

.approved-page__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  padding-block: clamp(64px, 9vw, 112px);
}

.approved-page__breadcrumb {
  color: var(--ec-mist);
  font-size: 0.875rem;
  font-weight: 650;
}

.approved-page__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.approved-page__breadcrumb li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.approved-page__breadcrumb li + li::before {
  content: '/';
  color: color-mix(in srgb, var(--ec-mist) 65%, transparent);
}

.approved-page__breadcrumb a {
  color: var(--ec-paper);
  text-underline-offset: 4px;
}

.approved-page__label {
  color: var(--ec-mist);
  font-size: 0.875rem;
  font-weight: 650;
}

.approved-page__hero h1 {
  max-width: 16ch;
  font-size: clamp(2.65rem, 5vw, 4.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.approved-page__support {
  max-width: 64ch;
  color: var(--ec-paper);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
  opacity: 0.92;
}

.approved-page__hero .btn {
  max-width: 100%;
  height: auto;
  line-height: 1.25;
  white-space: normal;
}

.approved-page__explanation {
  padding-block: clamp(80px, 11vw, 152px);
  background: var(--ec-mist);
}

.approved-page__explanation-inner,
.approved-page__doctor-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 9vw, 128px);
}

.approved-page__explanation-heading > p {
  margin-bottom: 20px;
  color: var(--ec-coral);
  font-size: 0.875rem;
  font-weight: 700;
}

.approved-page__explanation h2,
.approved-page__doctor h2,
.approved-page__closing h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 650;
  line-height: 1.08;
}

.approved-page__explanation-copy {
  max-width: 58ch;
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  line-height: 1.5;
}

.approved-page__doctor {
  padding-block: clamp(72px, 10vw, 136px);
}

.approved-page__doctor .approved-page__label {
  margin-bottom: 16px;
  color: var(--ec-eucalyptus);
}

.approved-page__doctor-copy > p:first-child {
  max-width: 64ch;
  color: var(--ec-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.approved-page__review,
.professional-profile__review {
  max-width: 64ch;
  margin-top: 24px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.approved-page__review {
  color: var(--ec-muted);
}

.professional-profile__review {
  color: var(--ec-mist);
}

.approved-page__related {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--ec-border);
  background: var(--ec-surface);
}

.approved-page__related-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 9vw, 128px);
}

.approved-page__related h2 {
  max-width: 14ch;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 650;
  line-height: 1.12;
}

.approved-page__related ul {
  border-top: 1px solid var(--ec-border);
}

.approved-page__related li {
  border-bottom: 1px solid var(--ec-border);
}

.approved-page__related a {
  display: flex;
  min-height: 64px;
  padding-block: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ec-ink);
  font-weight: 650;
}

.approved-page__related a::after {
  content: '\2192';
  color: var(--ec-coral);
  font-size: 1.25rem;
}

.approved-page__related a:hover {
  color: var(--ec-eucalyptus);
}

.approved-page__closing {
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--ec-eucalyptus-deep);
  color: var(--ec-paper);
}

.approved-page__closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.approved-page__closing h2 {
  max-width: 18ch;
}

.site-footer {
  background: var(--ec-ink);
}

.footer__brand-name {
  display: block;
  color: var(--ec-paper);
  font-size: 1.125rem;
  font-weight: 700;
}

.footer__brand-service {
  display: block;
  margin-top: 3px;
  color: var(--ec-mist);
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .header__brand-name {
    font-size: 0.9375rem;
  }

  .header__nav.is-open {
    background: var(--ec-eucalyptus-deep);
  }

  .header__nav-list a {
    color: var(--ec-paper);
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 650;
  }

  .hero,
  .approved-page__hero {
    min-height: 620px;
    height: calc(100dvh - 108px);
    max-height: 780px;
  }

  .approved-page__hero {
    height: auto;
    max-height: none;
  }

  .hero__bg-img,
  .approved-page__hero-image {
    object-position: 64% center;
  }

  .hero__overlay,
  .approved-page__hero-overlay {
    background: linear-gradient(0deg, rgba(20, 35, 29, 0.96) 0%, rgba(20, 35, 29, 0.78) 56%, rgba(20, 35, 29, 0.58) 100%);
  }

  .hero__content,
  .approved-page__hero-content {
    padding-bottom: 40px;
  }

  .approved-page__hero-content {
    gap: 16px;
    padding-top: 28px;
    padding-bottom: max(48px, calc(36px + env(safe-area-inset-bottom)));
  }

  .approved-page__breadcrumb {
    display: none;
  }

  .approved-page__hero .btn {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
  }

  .approved-page__support {
    line-height: 1.55;
  }

  .hero__headline,
  .approved-page__hero h1 {
    max-width: 14ch;
    font-size: clamp(2.25rem, 11vw, 3.65rem);
  }

  .approved-pathways__inner,
  .approved-page__explanation-inner,
  .approved-page__doctor-inner,
  .approved-page__related-inner,
  .professional-profile__inner,
  .consultation-flow__header {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .approved-pathways__header {
    position: static;
  }

  .approved-pathways__header h2 {
    max-width: 15ch;
  }

  .approved-pathways__list a {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 12px;
    min-height: 132px;
  }

  .approved-page__closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .professional-profile__media {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .professional-profile__content h2,
  .consultation-flow__header h2 {
    max-width: 15ch;
  }

  .consultation-flow__header .section-label,
  .consultation-flow__header h2,
  .consultation-flow__header > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .consultation-flow__step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
  }

  .consultation-flow__step > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .consultation-flow__details-content {
    padding-right: 12px;
  }

  .consultation-flow__cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.institutional-page {
  margin-top: 76px;
  padding-block: 48px 80px;
}

.institutional-page__content {
  max-width: 800px;
  overflow-wrap: anywhere;
}

.institutional-page__breadcrumb {
  margin-bottom: 24px;
  color: var(--ec-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.institutional-page h1 {
  margin-bottom: 32px;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.institutional-page h2 {
  margin-block: 32px 16px;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.institutional-page__photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 32px;
}

.institutional-page__prose p {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.institutional-page__prose code {
  font-family: inherit;
}

.institutional-page a:not(.btn),
.contato__address a,
.footer__contact a {
  overflow-wrap: anywhere;
}

.institutional-page a:not(.btn) {
  color: var(--ec-eucalyptus-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.institutional-page__recovery {
  margin-top: 32px;
}

.institutional-page__recovery a {
  display: inline-block;
  padding-block: 12px;
}

.institutional-page__form {
  margin-top: 48px;
  border-top: 1px solid var(--ec-border);
}

@media (max-width: 767px) {
  .institutional-page {
    padding-block: 28px 64px;
  }
  .institutional-page h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
