:root {
  color-scheme: light;
  --ink: #15202b;
  --muted: #5f6b76;
  --line: rgba(21, 32, 43, 0.12);
  --paper: #ffffff;
  --wash: #f4f7f8;
  --brand: #a71322;
  --brand-dark: #7f0d18;
  --accent: #17285f;
  --brand-wash: rgba(23, 40, 95, 0.1);
  --focus: #d31f32;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--wash);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, var(--brand-wash), transparent 28rem),
    var(--wash);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.idt {
  --brand: #1a252b;
  --brand-dark: #0d1418;
  --accent: #e5a308;
  --brand-wash: rgba(229, 163, 8, 0.16);
  --focus: #e5a308;
  --wash: #f6f5f0;
}

body.intus {
  --brand: #202b63;
  --brand-dark: #131b46;
  --accent: #d9232e;
  --brand-wash: rgba(32, 43, 99, 0.12);
  --focus: #d9232e;
  --wash: #f4f5f9;
}

body.tierra {
  --brand: #2b6580;
  --brand-dark: #1d485d;
  --accent: #69a9ca;
  --brand-wash: rgba(105, 169, 202, 0.18);
  --focus: #2b6580;
  --wash: #f1f6f8;
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(32rem, 0.95fr);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #26323d;
}

.hero img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.34));
}

.hero-label {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 4vw, 4rem);
  max-width: 28rem;
  color: #fff;
}

.hero-label strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.hero-label span {
  opacity: 0.86;
}

.content {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--paper);
}

.content-inner {
  width: min(100%, 40rem);
  margin-inline: auto;
}

.brand-logo {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  margin-bottom: clamp(3rem, 9vh, 7rem);
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 22rem);
  max-height: 5.75rem;
  object-fit: contain;
  object-position: left center;
}

.idt .brand-logo img {
  max-width: 7.5rem;
  max-height: 7.5rem;
}

.intus .brand-logo img {
  max-width: min(100%, 20rem);
}

.tierra .brand-logo img {
  max-width: min(100%, 15rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 2.4rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button.primary {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 0.45rem 1rem rgba(15, 25, 35, 0.14);
}

.button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

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

.button:focus-visible,
.address-link:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.contact-card {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.contact-item {
  min-width: 0;
}

.contact-item.address {
  grid-column: 1 / -1;
}

.label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link,
.address-link {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.address-link {
  display: inline-block;
  max-width: 30rem;
}

.note {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

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

.office-list li {
  min-width: 0;
}

.office-list .address-link {
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .page-shell {
    display: block;
  }

  .hero {
    min-height: 42vh;
  }

  .content {
    min-height: 58vh;
    padding-block: 2.5rem 3rem;
  }

  .brand-logo {
    margin-bottom: 3.5rem;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 34vh;
  }

  .hero-label {
    display: none;
  }

  .content {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .brand-logo {
    min-height: 4.5rem;
    margin-bottom: 2.75rem;
  }

  .brand-logo img {
    max-height: 5rem;
  }

  .idt .brand-logo img {
    max-width: 6.25rem;
    max-height: 6.25rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

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

  .contact-item.address {
    grid-column: auto;
  }
}

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

  .button {
    transition: none;
  }
}
