@font-face {
  font-family: "Helvetica Neue Condensed";
  src: url("assets/fonts/HelveticaNeue-CondensedBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --yellow: #ffcf00;
  --ink: #050706;
  --muted: #efefef;
  --white: #fff;
  --max: 1360px;
  --side: clamp(20px, 4vw, 72px);
  --display: "Helvetica Neue Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  line-height: 1.45;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--side);
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 72px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-stanley {
  width: 185px;
}

.brand-cosumaq {
  width: 135px;
  justify-self: end;
}

.site-nav,
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 2vw, 64px);
}

.site-nav a,
.footer-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.15px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  color: var(--white);
  background: #101412 url("assets/hero.webp") center/cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.56) 41%,
    rgba(0, 0, 0, 0.03) 78%
  );
}

.hero-inner {
  min-height: inherit;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
  padding-block: 80px;
}

h1,
h2,
h3,
.eyebrow {
  margin-top: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.96;
  letter-spacing: 0.3px;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 5.1vw, 80px);
}

.hero-copy p {
  max-width: 625px;
  margin: 0 0 32px;
  font-size: clamp(16px, 1.3vw, 20px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid currentColor;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.35px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

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

.button-primary {
  border-color: var(--yellow);
  color: var(--ink);
  background: var(--yellow);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
}

.button-outline-light:hover {
  color: var(--ink);
  background: var(--white);
}

.button-outline {
  color: var(--ink);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--ink);
}

.scroll-indicator {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--white);
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scroll-arrow 1.8s ease-in-out infinite;
}

@keyframes scroll-arrow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* Secciones */

.section {
  padding-block: clamp(80px, 9vw, 140px);
}

.section-heading {
  margin-bottom: clamp(48px, 6vw, 84px);
  text-align: center;
}

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(46px, 5vw, 72px);
}

.section-heading > p:last-child {
  margin: 0;
  font-size: 16px;
}

/* Productos */

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 60px 18px;
}

.product-card {
  grid-column: span 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-card-featured {
  grid-column: span 3;
}

.product-image {
  height: clamp(310px, 32vw, 500px);
  overflow: hidden;
  background: transparent;
}

.product-card:not(.product-card-featured) .product-image {
  height: clamp(250px, 24vw, 355px);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 26px;
}

.product-content h3 {
  margin-bottom: 18px;
  font-size: clamp(27px, 2.4vw, 39px);
}

.product-content h3 span {
  display: block;
}

.product-content p {
  margin: 0 0 24px;
  font-size: 14px;
}

.product-content .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Mantenimiento */

.maintenance {
  display: grid;
  min-height: 760px;
  grid-template-columns: 1fr 1fr;
  background: var(--yellow);
}

.maintenance-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.maintenance-copy-inner {
  width: min(100%, 680px);
  padding: 80px var(--side);
}

.maintenance-copy h2 {
  margin-bottom: 30px;
  font-size: clamp(50px, 5vw, 74px);
}

.maintenance-copy-inner > p:not(.eyebrow) {
  max-width: 510px;
  margin: 0 0 36px;
  font-size: 17px;
}

.maintenance-image {
  min-height: 550px;
  background: url("assets/img-7.webp") center/cover no-repeat;
}

/* Contacto */

.contact {
  padding-bottom: clamp(100px, 11vw, 170px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.contact-card {
  text-align: center;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 26px;
  object-fit: contain;
}

.contact-card h3 {
  margin-bottom: 18px;
  font-family: var(--body);
  font-size: 24px;
  text-transform: none;
}

.contact-card p {
  max-width: 380px;
  min-height: 48px;
  margin: 0 auto 20px;
  font-size: 14px;
}

.contact-card > a {
  font-size: 18px;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  padding: 70px 0 32px;
  color: var(--yellow);
  background: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  align-items: center;
  gap: 30px;
  padding-bottom: 58px;
}

.footer-nav a {
  color: var(--yellow);
}

.copyright {
  padding-top: 30px;
  border-top: 1px solid #939393;
  color: #a7a7a7;
  text-align: center;
  font-size: 11px;
}

/* Accesibilidad y animaciones */

:focus-visible {
  outline: 3px solid #1685ff;
  outline-offset: 4px;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-indicator svg {
    animation: none;
  }
}

/* Tablet */

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 154px 1fr 146px;
  }

  .site-nav {
    gap: 22px;
  }

  .product-grid {
    gap-inline: 14px;
  }

  .product-card,
  .product-card-featured {
    grid-column: span 3;
  }

  .product-card:last-child {
    grid-column: 2 / span 4;
  }

  .product-card:not(.product-card-featured) .product-image {
    height: clamp(290px, 42vw, 410px);
  }

  .maintenance {
    min-height: 650px;
  }

  .maintenance-copy-inner {
    padding-inline: 40px;
  }

  .footer-main {
    grid-template-columns: 150px 1fr 150px;
  }

  .footer-nav {
    gap: 18px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    position: sticky;
    z-index: 50;
    top: 0;
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 12px;
  }

  .header-inner .brand-stanley {
    width: 112px;
    max-width: 100%;
  }

  .header-inner .brand-cosumaq {
    width: 105px;
    max-width: 100%;
    justify-self: end;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    width: 25px;
    height: 2px;
    display: block;
    background: var(--ink);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--side) 20px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 0;
    text-align: center;
  }

  .hero {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    background-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.48)
    );
  }

  .hero-copy {
    max-width: 490px;
  }

  .hero-copy p {
    max-width: 410px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .product-grid {
    display: block;
  }

  .product-card {
    margin-bottom: 58px;
  }

  .product-card:last-child {
    margin-bottom: 0;
  }

  .product-image,
  .product-card:not(.product-card-featured) .product-image {
    height: min(88vw, 450px);
  }

  .product-content h3 {
    font-size: 31px;
  }

  .maintenance {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .maintenance-copy-inner {
    width: 100%;
    padding: 72px var(--side);
  }

  .maintenance-image {
    min-height: 66vw;
    order: 2;
    background-position: center;
  }

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

  .contact-card p {
    min-height: 0;
  }

  .contact .section-heading br {
    display: none;
  }

  .site-footer {
    padding-top: 54px;
  }

  .footer-main {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-bottom: 46px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 28px;
  }

  .footer-main .brand-cosumaq {
    align-self: center;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 45px;
  }

  .hero-copy {
    padding-block: 58px;
  }

  .button {
    min-height: 46px;
    padding-inline: 20px;
  }

  .section-heading h2 {
    font-size: 43px;
  }

  .maintenance-copy h2 {
    font-size: 45px;
  }
}
