:root {
  --ink: #20201c;
  --ink-soft: #3f4037;
  --paper: #f7f2ea;
  --paper-deep: #ece2d5;
  --green: #243a31;
  --green-soft: #536f5d;
  --clay: #a8674d;
  --blue: #273b4f;
  --line: rgba(32, 32, 28, 0.14);
  --white: #fffdf9;
  --shadow: 0 24px 60px rgba(32, 32, 28, 0.18);
  --radius: 8px;
  --section: clamp(4.5rem, 8vw, 8rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(168, 103, 77, 0.28);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem clamp(1.1rem, 4vw, 3rem);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 242, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  gap: 0.05rem;
  text-decoration: none;
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.brand__meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.2rem);
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(650px, 82svh, 760px);
  display: block;
  padding: clamp(7rem, 11vw, 9.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 18%, rgba(168, 103, 77, 0.24), transparent 30%),
    linear-gradient(135deg, #17241f 0%, var(--green) 52%, var(--blue) 100%);
}

.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.hero__media::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 14, 0.5) 0%, rgba(10, 18, 14, 0.18) 46%, rgba(10, 18, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 18, 14, 0.38), transparent 48%);
  pointer-events: none;
}

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

.hero__shade {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 11, 0.7) 0%, rgba(7, 14, 11, 0.56) 36%, rgba(7, 14, 11, 0.08) 70%, rgba(7, 14, 11, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 14, 11, 0.42), transparent 44%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(0rem, 3vw, 2rem);
}

.hero__content > * {
  max-width: 630px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c5aa;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3.6rem, 7.2vw, 6.6rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.hero__lead {
  width: min(590px, 100%);
  margin-bottom: 1rem;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.35;
}

.hero__note {
  margin-bottom: 2rem;
  color: rgba(255, 253, 249, 0.82);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.84rem 1.18rem;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button--primary {
  color: var(--white);
  background: var(--clay);
  border-color: var(--clay);
}

.button--outline {
  color: var(--white);
  background: rgba(255, 253, 249, 0.08);
  border-color: rgba(255, 253, 249, 0.42);
}

.button--dark {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.button--ghost {
  color: var(--green);
  background: transparent;
  border-color: rgba(36, 58, 49, 0.28);
}

.hero__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: var(--section) 0;
}

.section__inner {
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 0 auto;
}

.intro {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.88fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.intro__grid > *,
.section-heading > *,
.split__grid > *,
.trajectory-layout > *,
.contact__grid > * {
  min-width: 0;
}

.intro h2 {
  max-width: 720px;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  line-height: 1.12;
  overflow-wrap: break-word;
}

.intro p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.13rem);
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-heading__copy {
  max-width: 760px;
}

.section-heading h2 {
  max-width: 620px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

.section-heading p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.section-heading__visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(32, 32, 28, 0.12);
}

.section-heading__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 48% 24%;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.scope-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  min-height: 170px;
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
  border: 1px solid rgba(32, 32, 28, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
}

.scope-card__index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border: 1px solid rgba(168, 103, 77, 0.42);
  border-radius: 999px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 800;
}

.scope-card h3 {
  margin-bottom: 0.55rem;
}

.scope-card__body {
  min-width: 0;
}

.scope-card p,
.split__content p,
.trajectory-copy p,
.contact__copy p,
.site-footer p {
  color: var(--ink-soft);
}

.split__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
}

.split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__media::after {
  position: absolute;
  content: "";
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(32, 32, 28, 0.18), transparent);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 54% 30%;
}

.split__content {
  max-width: 650px;
}

.section--ink {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.section--ink .section-kicker {
  color: #e4ad8f;
}

.section--ink p {
  color: rgba(255, 253, 249, 0.76);
}

.trajectory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}

.trajectory-copy {
  max-width: 720px;
}

.trajectory-copy h2 {
  max-width: 680px;
  font-size: clamp(2.15rem, 4vw, 4rem);
}

.trajectory-copy p {
  max-width: 650px;
  font-size: clamp(1rem, 1.45vw, 1.13rem);
}

.credentials-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.credentials-panel__title {
  margin-bottom: 1.2rem;
  color: #e4ad8f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  position: relative;
  min-height: 92px;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 1px solid rgba(255, 253, 249, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 253, 249, 0.9);
  background: rgba(255, 253, 249, 0.055);
  font-weight: 700;
  line-height: 1.28;
}

.credential-list li::before {
  position: absolute;
  content: "";
  top: 1.18rem;
  left: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #e4ad8f;
}

.location-band {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--paper-deep);
}

.location-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.location-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.contact {
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.78), rgba(255, 253, 249, 0.9)),
    url("../images/helio-consultorio.webp") center / cover fixed;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.contact__copy {
  position: sticky;
  top: 110px;
}

.contact__copy a,
.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.privacy-note {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--clay);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(32, 32, 28, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 18px 50px rgba(32, 32, 28, 0.13);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.42rem;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(36, 58, 49, 0.22);
  border-radius: var(--radius);
  padding: 0.82rem 0.92rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(168, 103, 77, 0.14);
}

.checkbox {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.18rem;
  accent-color: var(--green);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #163b2b;
  background: #dfeed7;
}

.form-status.is-error {
  color: #5b211a;
  background: #f4d8cf;
}

.site-footer {
  padding: 2.4rem 0;
  background: var(--ink);
  color: var(--white);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: start;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 253, 249, 0.75);
}

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

.privacy-page {
  background: var(--white);
}

.privacy-main {
  padding-top: clamp(8rem, 12vw, 11rem);
}

.privacy-content {
  width: calc(100% - 2rem);
  max-width: 860px;
}

.privacy-content h1 {
  margin-bottom: 1.4rem;
  color: var(--green);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.privacy-content p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro__grid,
  .section-heading,
  .split__grid,
  .trajectory-layout,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__copy {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    position: fixed;
    top: 0.85rem;
    right: 1rem;
    z-index: 70;
    display: inline-flex;
    background: rgba(32, 32, 28, 0.24);
    backdrop-filter: blur(8px);
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    width: 100%;
    padding: 0.85rem 0.5rem;
  }

  .brand__meta {
    max-width: 190px;
    white-space: normal;
  }

  .hero {
    min-height: auto;
    padding: 6.3rem 1rem 3rem;
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 270px;
    max-width: 72vw;
    height: auto;
    margin-top: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  }

  .hero__media img {
    aspect-ratio: 4 / 5;
    height: auto;
    object-position: 78% 50%;
  }

  .hero__media::before {
    background: linear-gradient(0deg, rgba(23, 36, 31, 0.22), transparent 46%);
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(13, 17, 14, 0.32), transparent 55%),
      linear-gradient(0deg, rgba(13, 17, 14, 0.28), transparent 55%);
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .intro h2,
  .section-heading h2 {
    width: 100%;
    max-width: 21rem;
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .intro p,
  .section-heading p {
    max-width: 21rem;
  }

  .section-heading__visual {
    display: none;
  }

  .hero__content {
    margin: 0;
  }

  .hero__lead {
    max-width: 21.5rem;
    font-size: 1.04rem;
  }

  .hero__note {
    max-width: 21.5rem;
    font-size: 0.92rem;
  }

  .scope-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .scope-card {
    min-height: auto;
  }

  .scope-card__index {
    margin-bottom: 0;
  }

  .credential-list {
    grid-template-columns: 1fr;
  }

  .credential-list li {
    min-height: auto;
  }

  .location-band__inner,
  .form-actions,
  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact {
    background:
      linear-gradient(90deg, rgba(255, 253, 249, 0.9), rgba(255, 253, 249, 0.94)),
      url("../images/helio-consultorio.webp") center / cover;
  }
}

@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;
  }
}
