@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Raleway';
  src: url('assets/raleway.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  --ink: #050505;
  --paper: #fbfbfa;
  --text: #f1f1f0;
  --accent: #ad1518;
  --accent-hover: #ca2226;
  --body: 'Raleway', Arial, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(1.2rem, 6.6vw, 6.5rem);
  --nav-height: 3.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-height); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid #ff7779; outline-offset: 4px; }
.light a:focus-visible { outline-color: #9c1416; }
:where(h1, h2, h3, p, figure, ul) { margin: 0; }
:where(ul) { padding: 0; list-style: none; }
address { font-style: normal; }
.shell { width: min(100%, 94rem); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.4rem, 6vw, 6rem); }
.light { color-scheme: light; background: var(--paper); color: var(--ink); }

h1, h2, .office h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.018em;
}
h1 { max-width: 13em; font-size: clamp(3.25rem, 5.3vw, 6rem); }
h2 { margin-bottom: clamp(2.5rem, 5vw, 4.75rem); text-align: center; font-size: clamp(3.15rem, 5.3vw, 5.5rem); }

.skip-link {
  position: fixed;
  z-index: 4;
  inset: .5rem auto auto .5rem;
  padding: .7rem 1rem;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 3; top: 0; background: var(--ink); }
.nav {
  display: flex;
  min-height: var(--nav-height);
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.35rem, 1.5vw, 1.4rem);
  padding-inline: max(1rem, 2.3vw);
}
.nav a {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding-inline: .35rem;
  color: #c0c0c0;
  text-decoration: none;
}
.nav a:hover, .nav [aria-current] { color: #fff; }
.nav a:focus-visible { outline-offset: -3px; }

.hero { position: relative; isolation: isolate; background: #222; }
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .23), rgb(0 0 0 / .18) 48%, transparent 77%), linear-gradient(90deg, rgb(0 0 0 / .43), transparent 75%);
}
.hero-image, .hero-image img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.hero-image img { object-fit: cover; object-position: center 54%; }
.hero-inner {
  display: flex;
  min-height: clamp(35rem, 55vw, 54rem);
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(2.7rem, 5.5vw, 5rem);
  padding-bottom: clamp(1.6rem, 3.3vw, 3rem);
}
.hero-brand { width: clamp(9.1rem, 15.25vw, 13.25rem); height: auto; }
.hero-copy { margin-block: clamp(2.8rem, 4.8vw, 4.4rem) 4rem; }
.hero-copy p {
  max-width: 43rem;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
}
.hero-copy h1, .hero-copy p { color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / .5); }
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.35rem;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}
.button:hover { background: var(--accent-hover); }
.hero-button { align-self: flex-end; margin-top: auto; }

@media (min-width: 851px) {
  .hero-copy h1 span { display: block; }
  .hero-button { min-width: clamp(7.5rem, 11vw, 9rem); }
}

.about { padding-top: clamp(3rem, 5vw, 5rem); }
.about h2 { margin-bottom: 2rem; }
.about-copy { max-width: 62rem; margin-inline: auto; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.about-copy p + p { margin-top: 1.2rem; }
.about-actions { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 2.5rem 0 3.9rem; }
.team { display: grid; max-width: 67rem; margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: clamp(1.5rem, 7vw, 8rem); }
.person { width: 100%; max-width: 25rem; text-align: center; }
.person > img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.person figcaption { margin-top: clamp(1.2rem, 3vw, 2.25rem); }
.person h3 { font-size: 1.12rem; line-height: 1.4; }
.person p { margin: .12rem auto 0; line-height: 1.48; }

.numbers { position: relative; isolation: isolate; display: grid; min-height: clamp(18rem, 34vw, 32rem); align-items: center; background: #2b2b2b; }
.numbers::after { content: ''; position: absolute; z-index: -1; inset: 0; background: rgb(0 0 0 / .67); }
.numbers-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.numbers-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: center; padding-block: 3.5rem; }
.numbers-list li { display: grid; justify-items: center; align-content: center; gap: .7rem; }
.numbers-list strong { color: #fff; font: 400 clamp(2.3rem, 4vw, 3.9rem)/1.04 var(--display); }
.numbers-list span { font-size: clamp(.9rem, 1.55vw, 1.14rem); }

.services { padding-block: clamp(4.1rem, 7vw, 7rem); }
.services-grid {
  display: grid;
  max-width: 69rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3.7rem, 7.8vw, 7rem) 1rem;
  margin-inline: auto;
  padding-block: clamp(.5rem, 2.6vw, 2.5rem) 1.5rem;
  text-align: center;
}
.services-grid li { display: grid; max-width: 15rem; justify-items: center; justify-self: center; align-content: start; gap: .9rem; }
.services-grid img { width: clamp(2.45rem, 4.25vw, 3.5rem); height: auto; }
.partner-grid {
  display: grid;
  max-width: 66rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.85rem, 3.2vw, 2rem) clamp(1.15rem, 4vw, 3.5rem);
  margin-inline: auto;
}
.partner-grid li { display: grid; min-height: clamp(3rem, 5vw, 4.6rem); place-items: center; }
.partner-grid img { width: min(100%, 10.6rem); height: clamp(2.1rem, 4.7vw, 3.5rem); object-fit: contain; }
.partner-grid img[src$='azul-seguros.webp'], .partner-grid img[src$='aliro.webp'], .partner-grid img[src$='amil.webp'] { width: min(86%, 7rem); }

.contact h2 { margin-bottom: clamp(2rem, 4vw, 3.7rem); }
.offices { display: grid; max-width: 67rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 6vw, 6rem); margin-inline: auto; }
.office { display: flex; flex-direction: column; align-items: center; text-align: center; }
.office h3 { margin-bottom: .85rem; font-size: clamp(2.3rem, 3.6vw, 3.7rem); }
.office address { line-height: 1.5; }
.directions {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .65rem;
  padding-inline: .75rem;
  color: #fff;
  font-weight: 700;
}
.directions:hover { color: #f99899; }
.office-photo { width: min(76%, 19rem); height: auto; aspect-ratio: 2 / 3; margin-top: 1.4rem; border-radius: clamp(1.75rem, 5vw, 4rem); object-fit: cover; }
.contact-actions { display: flex; justify-content: flex-end; margin-top: clamp(2.7rem, 5vw, 5rem); }

.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: clamp(1.2rem, 4vw, 4.5rem); padding-block: 2rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.55rem, 1.5vw, 1rem); }
.social { display: grid; width: 2.85rem; height: 2.85rem; place-items: center; border-radius: .6rem; }
.social:hover { filter: brightness(.88); }
.social-whatsapp { background: #168548; }
.social-instagram { background: radial-gradient(circle at 22% 108%, #ffd077 5%, #e84172 42%, #a42d97 68%, #3d52b9 100%); }
.social-facebook { background: #0866ff; border-radius: 50%; }
.emails { display: grid; max-width: 100%; font-weight: 700; }
.emails a { display: flex; min-height: 2.75rem; align-items: center; gap: .65rem; overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.emails img { flex: 0 0 1.4rem; }
.footer-brand img { width: clamp(8.3rem, 15vw, 12.25rem); height: auto; }

@media (max-width: 850px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .emails { grid-column: 1 / -1; grid-row: 2; }
  .hero-image img { object-position: 52% center; }
}

@media (max-width: 620px) {
  .nav { justify-content: center; gap: clamp(.4rem, 4vw, 1.4rem); }
  .nav a { padding-inline: .45rem; }
  .hero::after { background: linear-gradient(180deg, rgb(0 0 0 / .46), rgb(0 0 0 / .41) 51%, transparent 76%); }
  .hero-inner { min-height: clamp(31rem, 135vw, 43rem); padding-top: 2.2rem; }
  .hero-image { background: #252525 url('assets/carros-textura.webp') center top / cover no-repeat; }
  .hero-image img { inset: auto 0 0; height: auto; mask-image: linear-gradient(transparent, #000 45%); }
  .hero-copy { margin-top: 1.9rem; }
  .hero-copy p { margin-top: 1rem; }
  .team, .offices { grid-template-columns: minmax(0, 1fr); row-gap: 3.15rem; }
  .person { max-width: 23rem; }
  .about-actions { margin-bottom: 3rem; }
  .numbers-list { gap: .55rem; }
  .numbers-list li { gap: .55rem; }
  .numbers-list strong { font-size: clamp(1.75rem, 7.8vw, 2.55rem); }
  .numbers-list span { font-size: .88rem; line-height: 1.3; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem .8rem; }
  .services-grid li { font-size: .95rem; }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .office-photo { width: min(80%, 18rem); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .emails { grid-column: auto; grid-row: auto; }
  .footer-brand { margin-top: .35rem; }
}

@media (min-width: 621px) and (max-width: 850px) {
  .hero-inner { min-height: 38rem; }
}

@media (max-width: 360px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
}
