:root {
  --navy: #061b2d;
  --blue: #0b4b86;
  --blue-deep: #073660;
  --red: #bd282e;
  --cream: #f3f2ee;
  --white: #ffffff;
  --ink: #102131;
  --muted: #5d6a76;
  --line: #d8dde1;
  --whatsapp: #25d366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #9ecbf1;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(3, 17, 30, 0.95) 0%, rgba(3, 17, 30, 0.8) 48%, rgba(3, 17, 30, 0.32) 100%),
    url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 27, 45, 0.75) 0%, transparent 32%);
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: min(1280px, calc(100% - 48px));
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translateX(-50%);
}

.logo {
  width: 210px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.logo img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: #91c7f4;
  transition: width 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  width: 100%;
}

.mobile-menu {
  position: relative;
  z-index: 10;
  display: none;
}

.mobile-menu summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(6, 27, 45, 0.68);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(270px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(3, 17, 30, 0.98);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.mobile-menu nav a {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
  color: #b9ddfa;
}

.header-cta {
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 170px 0 150px;
}

.hero-content h1 {
  max-width: 840px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6.8vw, 6.2rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.6;
}

.hero-proof {
  max-width: 780px;
  margin-bottom: 34px;
  color: #b9ddfa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

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

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

.button-primary:hover {
  background: #a91f25;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
  background: rgba(6, 27, 45, 0.3);
}

.hero-strip {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 27, 45, 0.78);
  backdrop-filter: blur(10px);
}

.hero-strip span {
  padding: 23px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.75fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.about-copy {
  padding-top: 44px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.company-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.company-fact {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
  border-right: 1px solid var(--line);
}

.company-fact:last-child {
  border-right: 0;
}

.company-fact strong {
  margin-bottom: 9px;
  color: var(--blue-deep);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  letter-spacing: -0.04em;
}

.company-fact span {
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 34, 51, 0.12);
}

.service-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--navy);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.service-card:hover .service-image img {
  transform: scale(1.035);
}

.service-image span {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 56px;
  padding: 14px 12px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.service-body {
  min-height: 190px;
  padding: 27px;
}

.service-body h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.service-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.service-tags span {
  padding: 10px 15px;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  background: #f7f9fa;
  font-size: 0.84rem;
  font-weight: 700;
}

.complementary-services {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
  margin-top: 42px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid #b9cee0;
  border-left: 5px solid var(--blue);
  background: #eef5fa;
}

.complementary-services h3 {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.12;
}

.complementary-services > div > p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.complementary-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #b9cee0;
}

.complementary-list span {
  padding: 17px 0;
  border-bottom: 1px solid #b9cee0;
  color: var(--blue-deep);
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.digital-inspection {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  margin-top: 64px;
  padding: clamp(36px, 5vw, 64px);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(37, 110, 172, 0.72), transparent 38%),
    var(--navy);
}

.digital-inspection h3 {
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
  line-height: 1.08;
}

.digital-inspection-copy > p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.digital-inspection-points {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.digital-inspection-points span {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.process {
  color: var(--white);
  background: var(--navy);
}

.process-heading > p {
  color: rgba(255, 255, 255, 0.65);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-step {
  min-height: 255px;
  padding: 32px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.process-step:last-child {
  border-right: 0;
}

.process-step > span {
  display: block;
  margin-bottom: 58px;
  color: #86b9e4;
  font-size: 0.78rem;
  font-weight: 800;
}

.process-step h3 {
  margin-bottom: 13px;
  font-size: 1.4rem;
}

.process-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.standards {
  background: var(--white);
}

.standards-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.standards-intro {
  position: sticky;
  top: 120px;
}

.standards-intro h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
}

.standards-intro > p:last-child {
  max-width: 520px;
  margin-top: 26px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.standard-group-label {
  margin-bottom: 14px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mexican-group {
  margin-top: 42px;
}

.standard-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.standard-card strong {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.standard-card span {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
}

.standard-card small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.certification-card {
  color: var(--white);
  background: var(--blue-deep);
}

.certification-card strong,
.certification-card span {
  color: var(--white);
}

.brand-certification-card {
  color: var(--white);
  background: var(--blue);
}

.brand-certification-card strong,
.brand-certification-card span {
  color: var(--white);
}

.permit-card {
  color: var(--white);
  background: var(--red);
}

.permit-card strong,
.permit-card span {
  color: var(--white);
}

.mexican-standard-card strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.mexican-standard-card:last-child {
  grid-column: 1 / -1;
  min-height: 145px;
}

.standards-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.projects {
  background: var(--cream);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: repeat(2, 280px);
  gap: 20px;
}

.project-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.project-gallery .project-main {
  grid-row: 1 / span 2;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.project-gallery figure:hover img {
  transform: scale(1.025);
}

.project-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 22px 20px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(3, 17, 30, 0.86));
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(11, 75, 134, 0.65), transparent 34%),
    var(--blue-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.65fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: center;
}

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

.contact-intro {
  max-width: 600px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 17, 30, 0.4);
}

.contact-card a {
  width: fit-content;
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.office-location {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 17, 30, 0.4);
}

.office-details {
  padding: clamp(32px, 5vw, 58px);
}

.office-details h3 {
  max-width: 470px;
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.office-details .legal-name {
  margin-bottom: 12px;
  color: #b9ddfa;
  font-weight: 800;
}

.office-details address {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.7;
}

.location-map {
  width: 100%;
  min-height: 390px;
  border: 0;
  background: #d9e2e9;
}

.contact-label {
  margin: 24px 0 10px;
  color: #9ecbf1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-label:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.64);
  background: #03111e;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner img {
  width: 180px;
  height: 54px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--white);
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: right;
}

.footer-copy p:last-child {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.75rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--white);
  background: var(--whatsapp);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .header-cta {
    margin-left: 0;
  }

  .about-grid,
  .section-heading,
  .standards-layout,
  .complementary-services,
  .digital-inspection,
  .contact-grid,
  .office-location {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 720px;
    padding-top: 0;
  }

  .standards-intro {
    position: static;
  }

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

  .company-fact:nth-child(2) {
    border-right: 0;
  }

  .company-fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    gap: 24px;
  }

  .section-heading > p {
    max-width: 680px;
  }

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

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

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 36px, 1180px);
  }

  .section {
    padding: 78px 0;
  }

  .site-header {
    width: calc(100% - 36px);
    min-height: 90px;
  }

  .logo {
    width: 158px;
    padding: 6px 8px;
  }

  .logo img {
    height: 42px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 100svh;
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 142px;
    padding-bottom: 160px;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-proof {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .button {
    width: 100%;
  }

  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip span {
    padding: 14px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
  }

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

  .company-facts,
  .standards-grid {
    grid-template-columns: 1fr;
  }

  .company-fact {
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .company-fact:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .company-fact:last-child {
    border-bottom: 0;
  }

  .standard-card {
    min-height: 145px;
  }

  .mexican-standard-card:last-child {
    grid-column: auto;
  }

  .service-image {
    height: 245px;
  }

  .service-body {
    min-height: auto;
  }

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

  .process-step,
  .process-step:nth-child(2) {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-step > span {
    margin-bottom: 38px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 330px 240px 240px;
  }

  .project-gallery .project-main {
    grid-row: auto;
  }

  .contact-card {
    padding: 28px 24px;
  }

  .office-details {
    padding: 32px 24px;
  }

  .location-map {
    min-height: 310px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copy {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
