:root {
  --ink: #0d0d0c;
  --carbon: #171716;
  --charcoal: #292929;
  --muted: #686c6f;
  --line: rgba(22, 22, 21, 0.16);
  --line-dark: rgba(236, 238, 240, 0.16);
  --paper: #f1f0ed;
  --ivory: #faf9f5;
  --warm: #dedbd4;
  --copper: #9ca2a7;
  --gold: #d9dee2;
  --sage: #596064;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(21, 18, 15, 0.18);
  --header-height: 78px;
  --body-font: "Aptos", "Segoe UI", Roboto, Arial, sans-serif;
  --serif-font: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.55;
  max-width: 100%;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.skip-link {
  background: var(--ivory);
  color: var(--ink);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-140%);
  z-index: 100;
}

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

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.section-inner {
  margin: 0 auto;
  max-width: min(1180px, 100vw);
  padding: 0 22px;
  width: 100%;
}

.section-light,
.section-warm,
.section-charcoal,
.penal-section {
  padding: 92px 0;
}

.section-light {
  background: var(--paper);
}

.section-warm {
  background: var(--warm);
}

.section-charcoal,
.penal-section,
.section-dark {
  background: var(--ink);
  color: var(--ivory);
}

.eyebrow {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif-font);
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  font-size: 4.35rem;
  margin-bottom: 24px;
  max-width: 860px;
  overflow-wrap: break-word;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.28;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.section-charcoal p,
.penal-section p,
.section-dark p {
  color: rgba(255, 250, 241, 0.76);
}

.site-header {
  align-items: center;
  background: rgba(13, 13, 12, 0.92);
  border-bottom: 1px solid rgba(236, 238, 240, 0.12);
  display: flex;
  gap: 18px;
  height: var(--header-height);
  justify-content: space-between;
  left: 0;
  padding: 10px 22px;
  position: sticky;
  right: 0;
  top: 0;
  max-width: 100vw;
  width: 100vw;
  z-index: 30;
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 13, 12, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 260px;
}

.brand-wordmark {
  height: 34px;
  max-width: min(300px, 32vw);
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.brand-mark {
  align-items: center;
  background: #0a0a09;
  border: 1px solid rgba(217, 222, 226, 0.24);
  color: var(--gold);
  display: grid;
  flex: 0 0 48px;
  font-family: var(--serif-font);
  font-size: 1.16rem;
  height: 48px;
  justify-items: center;
  overflow: hidden;
  position: relative;
  width: 48px;
}

.brand-mark img,
.brand-logo-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  padding: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.brand-mark img[hidden],
.brand-fallback[hidden] {
  display: none;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--serif-font);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ivory);
}

.brand-copy small {
  color: rgba(250, 249, 245, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 2px;
}

.site-nav a {
  color: rgba(250, 249, 245, 0.72);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 40px;
  padding: 11px 9px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(217, 222, 226, 0.13);
  color: var(--white);
}

.site-nav .nav-cta {
  background: var(--gold);
  color: var(--ink);
  margin-left: 8px;
  padding-left: 13px;
  padding-right: 13px;
}

.site-nav .nav-cta:hover {
  background: var(--white);
  color: var(--ink);
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(236, 238, 240, 0.22);
  display: none;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  margin-left: auto;
  position: relative;
  width: 44px;
}

.menu-toggle span:not(.sr-only) {
  background: var(--ivory);
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 20px;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  background: #000;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

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

.hero-media {
  background: url("assets/ef-terra-hero-final.png") center / cover no-repeat;
  inset: 0;
  position: absolute;
}

.hero-final {
  aspect-ratio: 1672 / 941;
  width: 100%;
}

.hero-final .hero-overlay,
.hero-final .hero-inner {
  display: none;
}

.hero-hotspots {
  inset: 0;
  position: absolute;
  z-index: 3;
}

.hero-hotspot {
  display: block;
  position: absolute;
}

.hero-hotspot:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.hero-hotspot-whatsapp {
  border-radius: 8px;
  height: 8.2%;
  left: 4.4%;
  top: 74.1%;
  width: 24.2%;
}

.hero-hotspot-areas {
  border-radius: 8px;
  height: 8.2%;
  left: 28.5%;
  top: 74.1%;
  width: 21.9%;
}

.hero-hotspot-floating {
  border-radius: 18px;
  height: 9%;
  left: 91.2%;
  top: 84.6%;
  width: 5.4%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 13, 12, 0.98) 0%, rgba(13, 13, 12, 0.86) 43%, rgba(13, 13, 12, 0.28) 100%),
    linear-gradient(0deg, rgba(13, 13, 12, 0.82), rgba(13, 13, 12, 0.05));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(88svh - var(--header-height));
  max-width: min(1180px, 100vw);
  overflow: hidden;
  padding-bottom: 70px;
  padding-top: 86px;
  place-content: end start;
  position: relative;
}

.hero-inner > * {
  min-width: 0;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-subtitle {
  color: var(--ivory);
  font-size: 1.35rem;
  line-height: 1.45;
  max-width: 740px;
  overflow-wrap: break-word;
}

.hero-text {
  font-size: 1.08rem;
  max-width: 680px;
  overflow-wrap: break-word;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-legal {
  border-left: 3px solid var(--copper);
  font-size: 0.88rem;
  margin: 28px 0 0;
  max-width: 760px;
  padding-left: 16px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--white);
}

.button-secondary,
.button-outline {
  background: rgba(255, 250, 241, 0.08);
  border-color: rgba(255, 250, 241, 0.34);
  color: var(--ivory);
}

.button-secondary:hover,
.button-outline:hover {
  background: rgba(255, 250, 241, 0.14);
}

.button-dark {
  background: var(--ink);
  color: var(--ivory);
}

.button-dark:hover {
  background: var(--charcoal);
}

.split-intro {
  align-items: end;
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 0.86fr;
  margin-bottom: 36px;
}

.split-intro p {
  font-size: 1.08rem;
}

.cards-grid {
  display: grid;
  gap: 18px;
}

.cards-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-grid article,
.process-grid article,
.about-points article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  background: rgba(255, 250, 241, 0.64);
  min-height: 210px;
  overflow: hidden;
  padding: 0 0 26px;
}

.card-image {
  aspect-ratio: 4 / 3;
  filter: saturate(0.92) contrast(1.04);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.card-index,
.process-grid span {
  color: var(--copper);
  display: block;
  font-family: var(--serif-font);
  font-size: 1.55rem;
  margin: 22px 26px 22px;
}

.feature-card h3 {
  font-size: 1.28rem;
  margin: 0 26px 14px;
}

.feature-card p {
  margin-left: 26px;
  margin-right: 26px;
}

.practice-layout {
  align-items: start;
  display: grid;
  gap: 54px;
  grid-template-columns: 0.82fr 1.18fr;
}

.practice-layout.reverse {
  grid-template-columns: 1fr 1fr;
}

.practice-copy {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.practice-copy p {
  font-size: 1.08rem;
  margin-bottom: 26px;
}

.section-visual {
  background: var(--ink);
  border: 1px solid rgba(217, 222, 226, 0.2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  margin: 0 0 24px;
  overflow: hidden;
}

.section-visual img {
  aspect-ratio: 4 / 3;
  display: block;
  filter: saturate(0.9) contrast(1.05);
  height: auto;
  object-fit: cover;
  transition: transform 420ms ease;
  width: 100%;
}

.section-visual:hover img {
  transform: scale(1.025);
}

.section-charcoal .section-visual,
.penal-section .section-visual,
.contact-section .section-visual {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.intro-visual {
  max-width: 520px;
}

.contact-visual {
  margin-top: 28px;
}

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

.service-grid article {
  background: rgba(255, 250, 241, 0.56);
  color: var(--ink);
  font-weight: 700;
  min-height: 74px;
  padding: 18px;
}

.service-grid article::before {
  background: var(--copper);
  content: "";
  display: block;
  height: 2px;
  margin-bottom: 14px;
  width: 30px;
}

.section-charcoal .service-grid article,
.penal-section .service-grid article,
.service-grid.dark article {
  background: rgba(255, 250, 241, 0.08);
  border-color: var(--line-dark);
  color: var(--ivory);
}

.section-charcoal h2,
.penal-section h2 {
  color: var(--ivory);
}

.section-charcoal .eyebrow,
.penal-section .eyebrow {
  color: var(--gold);
}

.legal-note {
  background: rgba(156, 162, 167, 0.12);
  border-left: 3px solid var(--copper);
  color: #303335;
  font-size: 0.94rem;
  margin: 0 0 24px;
  padding: 16px 18px;
}

.penal-section {
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.96), rgba(21, 18, 15, 0.91)),
    var(--carbon);
}

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

.process-grid article {
  background: var(--ivory);
  min-height: 190px;
  padding: 22px;
}

.process-grid h3 {
  font-size: 1rem;
}

.about-layout {
  display: grid;
  gap: 54px;
  grid-template-columns: 0.86fr 1.14fr;
}

.about-layout > div:first-child p {
  font-size: 1.08rem;
}

.about-points {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-points article {
  background: rgba(255, 250, 241, 0.52);
  padding: 22px;
}

.about-points article.wide {
  grid-column: 1 / -1;
}

.about-points h3 {
  margin-bottom: 8px;
}

.about-points p {
  font-size: 0.96rem;
  margin-bottom: 0;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 58px;
  grid-template-columns: 0.8fr 1fr;
}

.contact-copy h2,
.contact-copy .eyebrow {
  color: var(--ivory);
}

.contact-details {
  border-left: 3px solid var(--gold);
  color: rgba(255, 250, 241, 0.78);
  display: grid;
  font-style: normal;
  gap: 8px;
  margin-top: 34px;
  padding-left: 18px;
}

.contact-form {
  background: var(--ivory);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  background: #fbf6ed;
  border: 1px solid rgba(50, 43, 36, 0.22);
  border-radius: 4px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 12px 13px;
  width: 100%;
}

.form-row textarea {
  min-height: 132px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(164, 110, 66, 0.14);
}

.form-submit {
  justify-self: start;
}

.form-status {
  font-size: 0.92rem;
  margin: 0;
}

.site-footer {
  background: #0f0d0b;
  color: var(--ivory);
  padding: 44px 0 28px;
}

.footer-layout {
  display: flex;
  gap: 42px;
  justify-content: space-between;
}

.footer-layout strong {
  display: block;
  font-family: var(--serif-font);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-layout p {
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.92rem;
  margin-bottom: 5px;
}

.footer-layout nav {
  align-content: start;
  display: grid;
  gap: 9px;
  min-width: 220px;
}

.footer-layout nav a {
  color: rgba(255, 250, 241, 0.76);
  font-size: 0.92rem;
}

.footer-layout nav a:hover {
  color: var(--gold);
}

.footer-legal {
  border-top: 1px solid rgba(255, 250, 241, 0.14);
  color: rgba(255, 250, 241, 0.62);
  display: grid;
  font-size: 0.86rem;
  gap: 6px;
  margin-top: 30px;
  padding-top: 20px;
}

.footer-legal strong {
  color: var(--ivory);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-legal span {
  color: rgba(255, 250, 241, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.whatsapp-float {
  align-items: center;
  background: #1f6f54;
  border: 1px solid rgba(255, 255, 255, 0.22);
  bottom: 18px;
  box-shadow: 0 16px 36px rgba(21, 18, 15, 0.28);
  color: var(--white);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 16px;
  position: fixed;
  right: 18px;
  z-index: 25;
}

.whatsapp-float.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.whatsapp-float::before {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 9px;
  width: 8px;
}

.whatsapp-float:hover {
  background: #278765;
}

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

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

@media (max-width: 1180px) {
  .menu-toggle {
    display: inline-flex;
    position: fixed;
    right: 16px;
    top: 14px;
    z-index: 32;
  }

  .site-nav {
    background: rgba(13, 13, 12, 0.98);
    border-top: 1px solid rgba(236, 238, 240, 0.12);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
    display: grid;
    gap: 0;
    left: 0;
    max-height: calc(100svh - var(--header-height));
    overflow: auto;
    padding: 14px 22px 24px;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transform: translateY(-120%);
    transition: transform 220ms ease;
    z-index: 28;
  }

  .menu-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    border-bottom: 1px solid rgba(236, 238, 240, 0.12);
    font-size: 1rem;
    justify-content: space-between;
    min-height: 50px;
    padding: 14px 6px;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin: 14px 0 0;
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section-light,
  .section-warm,
  .section-charcoal,
  .penal-section {
    padding: 72px 0;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    margin-left: 0;
    max-width: 430px;
    min-height: calc(92svh - var(--header-height));
    padding-bottom: 96px;
    padding-top: 62px;
  }

  .hero h1,
  .hero-subtitle,
  .hero-text,
  .hero-legal {
    max-width: 100%;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 13, 12, 0.97), rgba(13, 13, 12, 0.78)),
      linear-gradient(0deg, rgba(13, 13, 12, 0.84), rgba(13, 13, 12, 0.18));
  }

  .hero-final {
    aspect-ratio: 1672 / 941;
  }

  .split-intro,
  .practice-layout,
  .practice-layout.reverse,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .practice-copy {
    position: static;
  }

  .cards-grid.three,
  .service-grid,
  .about-points {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-layout {
    display: grid;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 72px;
  }

  .section-inner {
    max-width: 100vw;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-wordmark {
    height: 31px;
    max-width: min(218px, 66vw);
  }

  .brand-mark {
    flex-basis: 42px;
    height: 42px;
    width: 42px;
  }

  .brand-copy strong {
    font-size: 1.06rem;
  }

  .brand-copy small {
    font-size: 0.66rem;
  }

  h1 {
    font-size: 1.58rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.95rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    line-height: 1.34;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .hero-text {
    font-size: 0.96rem;
  }

  .hero h1,
  .hero-subtitle,
  .hero-text,
  .hero-legal {
    max-width: 100%;
  }

  .hero-legal {
    margin-bottom: 0;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-card,
  .contact-form {
    padding: 22px;
  }

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

  .process-grid article {
    min-height: 150px;
  }

  .contact-details {
    font-size: 0.92rem;
  }

  .whatsapp-float {
    bottom: 12px;
    left: 14px;
    justify-content: center;
    right: 14px;
  }

  .site-footer {
    padding-bottom: 78px;
  }
}

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

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