:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #193b32;
  --muted: #64736a;
  --accent: #9baa89;
  --line: #dce1d8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
}

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

.site-header {
  padding: 1.5rem 5.5vw;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1160px);
  margin: 0 auto;
}

.wordmark {
  display: block;
  width: 200.07px;
  height: 50.54px;
  overflow: hidden;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-image {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--ink);
  -webkit-mask-image: url("logos/LogoTM_aedren_FTransp_Preto.png");
  mask-image: url("logos/LogoTM_aedren_FTransp_Preto.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.main-nav {
  display: flex;
  gap: clamp(1.25rem, 3.2vw, 3rem);
}

.main-nav a,
.back-to-top {
  min-height: 44px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.back-to-top:hover {
  color: #71856b;
}

.section-wrap {
  width: min(100% - 11vw, 1160px);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow span {
  padding: 0 0.35rem;
  color: var(--accent);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 1160px;
  margin-bottom: 2.5rem;
  font-size: clamp(3.35rem, 7.3vw, 6.6rem);
  line-height: 1.04;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-description {
  width: 50%;
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 48px;
  border-bottom: 1px solid var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
}

.text-link span,
.contact-link span {
  color: var(--accent);
}

.section-border {
  border-top: 1px solid var(--line);
}

.services {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

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

h2 {
  max-width: 750px;
  margin-bottom: 0;
  font-size: clamp(2.75rem, 3.9vw, 3.5rem);
  line-height: 1.12;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.service {
  padding-top: 1.1rem;
  border-top: 1px solid var(--accent);
}

.service-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.service h3 {
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.service p,
.approach-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
}

.approach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(2rem, 6vw, 4.5rem);
  row-gap: 0;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.approach > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 1.25rem;
}

.approach-copy h2 {
  margin-bottom: 1rem;
}

.approach-copy > p:last-child {
  max-width: 520px;
}

.process {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  width: 100%;
  margin: 0;
  padding: 0 0 0 1.75rem;
  list-style: decimal;
}

.process li::marker {
  color: var(--muted);
  font-size: 0.875rem;
}

.process li {
  width: 100%;
  padding: 0.55rem 0.25rem 0.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  line-height: 1.35;
}

.process li:first-child {
  padding-top: 0;
}

.process li:last-child {
  padding-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 0;
  margin-bottom: 3rem;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4.5vw, 3.5rem);
  background: var(--ink);
  color: var(--paper);
}

.contact .eyebrow {
  color: #b7c1b4;
}

.contact h2 {
  max-width: 650px;
}

.contact-copy {
  max-width: 500px;
  margin: 0.75rem 0 0;
  color: #d0d8cf;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  justify-self: end;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.contact-link[hidden] {
  display: none;
}

.contact-link:hover {
  border-color: #c1ccc1;
  background: transparent;
  color: var(--paper);
}

.contact-link:focus-visible {
  outline-color: var(--paper);
}

.contact-link:hover span {
  color: var(--paper);
}

.contact-note {
  max-width: 300px;
  margin: 0;
  color: #c1ccc1;
  font-size: 0.875rem;
}

.contact-note[hidden] {
  display: none;
}

.site-footer {
  padding: 0 5.5vw 2rem;
}

.footer-inner {
  min-height: 72px;
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  width: 152px;
  height: 38px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}

@media (max-width: 800px) {
  .site-header {
    padding: 1.35rem 1.25rem;
  }

  .header-inner,
  .footer-inner {
    width: min(100%, 560px);
  }

  .site-footer {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .section-wrap {
    width: min(100% - 2.5rem, 560px);
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    margin-bottom: 2rem;
    font-size: clamp(3.15rem, 10vw, 5rem);
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .hero-description {
    width: 100%;
    max-width: none;
    font-size: 1rem;
    text-align: left;
    text-align-last: left;
  }

  .services,
  .approach {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

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

  h2 {
    font-size: clamp(1.875rem, 4.5vw, 2.25rem);
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-number {
    margin-bottom: 1rem;
  }

  .approach {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
    column-gap: 0;
  }

  .approach > .eyebrow {
    margin-bottom: 0;
  }

  .process {
    justify-content: flex-start;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .contact-actions {
    width: 100%;
    justify-self: stretch;
  }

  .contact-link {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .service p,
  .approach-copy > p:last-child {
    text-align: left;
    text-align-last: left;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-header .wordmark {
    width: 174.15px;
    height: 44.23px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .main-nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 12.5vw, 3.7rem);
  }

  .contact {
    padding: 1.5rem;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .footer-inner p {
    order: 1;
    width: 100%;
    font-size: 1rem;
  }

  .back-to-top {
    font-size: 0.75rem;
  }
}

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