@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/lato/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/lato/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/lato/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('assets/fonts/libre-caslon-text/LibreCaslonText-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('assets/fonts/libre-caslon-text/LibreCaslonText-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #050505;
  --white: #fffefe;
  --text-soft: #cbb7c5;
  --mauve: #bfa8b7;
  --plum: #584052;
  --ink: #111;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 400;
}
a { color: inherit; }
.container { width: min(calc(100% - 36px), var(--max-width)); margin-inline: auto; }

.site-header {
  min-height: 325px;
  padding: 42px 0 58px;
  background: var(--black);
  color: var(--text-soft);
  text-align: center;
}
.header-inner { position: relative; }
.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 18px;
}
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .02em;
}
.nav a:hover, .nav a:focus-visible { color: #fff; }
.menu-toggle { display: none; }

.brand-bar {
  width: 540px;
  max-width: 100%;
  margin-inline: auto;
  min-height: 62px;
  padding: 0 32px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f5467;
}
.logo-link, .footer-logo-link { display: inline-flex; align-items: center; }
.header-logo { display: block; width: 113px; height: auto; }
.brand-name {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  padding-top: 23px;
}
.hero { padding-top: 34px; }
.hero .button {
  width: 290px;
  max-width: 100%;
}
.hero p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.25;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 34px;
  border: 0;
  border-radius: 999px;
  background: #c8afc0;
  color: #171217;
  font: 700 .95rem/1 'Lato', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { background: #dcc9d6; transform: translateY(-1px); }

.about {
  position: relative;
  min-height: 407px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: url('assets/img-team-deseo.jpg') center 48%/cover no-repeat;
  color: #fff;
  text-align: center;
}
/*.about-overlay {position: absolute; inset: 0; background: rgba(0,0,0,.3); }*/
.about-content { position: relative; z-index: 1; padding: 88px 20px 0; }
.about-copy p { margin: 0 auto 18px; max-width: 980px; line-height: 1.22; font-size: clamp(.98rem, 2vw, 1.1rem); }
.about-content h1 {
  margin: 102px 0 0;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: clamp(3.4rem, 9vw, 4rem);
  line-height: .9;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: -.02em;
  padding-bottom: 10px;
}

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; }
.service {
  min-height: 237px;
  padding: 40px 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.service.light { background: var(--white); }
.service.mauve { background: var(--mauve); }
.service-icon {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin: 0 auto 4px;
}
.service-icon.icon-code { width: 48px; }
.service h2 { margin: 10px 0 13px; font-size: clamp(1.3rem, 2.6vw, 1.65rem); font-weight: 700; }
.service p { margin: 0; max-width: 520px; line-height: 1.18; font-size: .96rem; }

.contact { background: var(--plum); color: #fff; padding: 64px 0 72px; }
.contact-inner { max-width: 540px; }
.contact-intro { text-align: center; font-size: 1.18rem; line-height: 1.15; margin: 0 0 34px; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid #d6cad3;
  border-radius: 0;
  background: #fff;
  padding: 11px 12px;
  font: 400 .92rem/1.25 'Lato', sans-serif;
  color: #222;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .button { width: 100%; margin-top: 4px; }
.form-status { min-height: 1.25em; margin: 4px 0 0; text-align: center; font-size: .9rem; }

.site-footer {
  min-height: 175px;
  padding: 28px 20px 25px;
  background: var(--black);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-logo { display: block; width: 93px; height: auto; margin-bottom: 8px; }
.site-footer > a:not(.footer-logo-link) { color: #fff; text-decoration: none; }
.site-footer p { margin: 34px 0 0; color: var(--text-soft); font-size: .8rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 720px) {
  .site-header { padding: 24px 0 42px; }
  .header-inner { padding-top: 40px; width: 90% }
  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle img { width: 100%; height: 100%; object-fit: contain; }
  .menu-close { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    z-index: 10;
    top: 38px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 0;
    background: #050505;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .brand-bar { padding: 0 22px; }
  .header-logo { width: 102px; }
  .brand-name { font-size: .62rem; padding-top: 23px;}
  .services-grid { grid-template-columns: 1fr; }
  .service:nth-child(3) { background: var(--white); }
  .service:nth-child(3) .service-icon { content: url('assets/icon-code-bfa8b7.png'); }
  .service:nth-child(4) { background: var(--mauve); }
  .service:nth-child(4) .service-icon { content: url('assets/icon-search-ffffff.png'); }
  .service:nth-child(5) { background: var(--white); }
  .service:nth-child(6) { background: var(--mauve); }
  .about-content { padding-top: 70px; }
  .about-content h1 { margin-top: 70px; }
}

@media (max-width: 480px) {
  .brand-name { max-width: 160px; text-align: right; }
  .hero br, .about-content br, .service p br { display: none; }
  .about { min-height: 480px; background-position: center; }
  .service { min-height: 260px; padding-inline: 22px; }
}

/* Mobile header / menu refinement to match the supplied Deseo mockup */
@media (max-width: 720px) {
  .site-header {
    min-height: 330px;
    padding: 13px 0 42px;
    overflow: hidden;
  }

  .header-inner {
    width: calc(100% - 44px);
    padding-top: 0;
  }

  .brand-bar {
    position: relative;
    z-index: 30;
    width: 100%;
    min-height: 61px;
    padding: 0 20px 0 22px;
  }

  .header-logo {
    width: 80px;
  }

  .brand-name {
    position: absolute;
    left: 55%;
    transform: translateX(-50%);
    width: max-content;
    max-width: none;
    padding-top: 0;
    text-align: center;
    font-size: .62rem;
    white-space: nowrap;
    padding-top: 13px;
  }

  .menu-toggle {
    display: inline-flex;
    position: static;
    width: 31px;
    height: 31px;
    margin-left: auto;
    padding: 3px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .menu-close { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: block; }

  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: absolute;
    z-index: 20;
    top: 61px;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    margin: 0;
    padding: 8px 0 7px;
    background: var(--black);
    border-bottom: 3px solid #8d617f;
  }

  .nav.open { display: flex; }

  .nav a {
    width: 100%;
    padding: 11px 12px;
    color: var(--text-soft);
    font-size: .76rem;
    line-height: 1;
  }

  .hero {
    padding-top: 74px;
  }

  .nav.open ~ .brand-bar + .hero,
  .header-inner:has(.nav.open) .hero {
    padding-top: 134px;
  }
}

@media (max-width: 480px) {
  .header-inner { width: calc(100% - 44px); }
  .brand-name { max-width: none; text-align: center; }
}

/* Section headings and testimonial, matching the supplied desktop mockup */
.section-heading {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.section-heading-about {
  margin-bottom: 28px;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  color: #fff;
}

.section-heading-contact {
  margin-bottom: 38px;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  color: #fff;
}

.testimonial {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url('assets/img-team-deseo.jpg') center 60%/cover no-repeat;
  color: #fff;
  text-align: center;
}

/*.testimonial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
}*/

.testimonial-inner {
  position: relative;
  z-index: 1;
  padding: 34px 20px 18px;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  line-height: 1.16;
  font-weight: 400;
}

.testimonial cite {
  display: block;
  margin-top: 7px;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: .98rem;
  font-style: italic;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: .9;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}

.testimonial-dot:hover,
.testimonial-dot:focus-visible {
  opacity: 1;
  transform: scale(1.18);
}

.testimonial-dot.active {
  background: var(--mauve);
  opacity: 1;
}

.testimonial-quote p,
.testimonial-quote cite {
  transition: opacity .12s ease;
}

.testimonial-quote .is-changing {
  opacity: 0;
}

/* Rebalance the about section after adding its heading */
.about-content {
  padding-top: 68px;
}

.about-content h1 {
  margin-top: 88px;
}

.contact {
  padding-top: 58px;
}

@media (max-width: 720px) {
  .section-heading-about {
    margin-bottom: 38px;
    font-size: 1.45rem;
  }

  .about-content {
    padding-top: 42px;
  }

  .about-content h1 {
    margin-top: 66px;
  }

  .section-heading-contact {
    margin-bottom: 30px;
    font-size: 1.45rem;
  }

  .testimonial {
    min-height: 220px;
  }

  .testimonial-inner {
    padding-inline: 22px;
  }

  .testimonial blockquote p br {
    display: none;
  }
}
