/*
Theme Name: Sermicop Modern
Theme URI: https://sermicop.com/
Author: Sermicop
Description: Tema de una sola página para Sermicop Perú, enfocado en productos mineros y contacto por WhatsApp.
Version: 1.6.0
Text Domain: sermicop-modern
*/

:root {
  --sm-bg: #060814;
  --sm-surface: #11162a;
  --sm-surface-2: #17203a;
  --sm-text: #f4f5ef;
  --sm-muted: #a9afa8;
  --sm-accent: #d8ff24;
  --sm-accent-dark: #a8cc00;
  --sm-cyan: #00e5ff;
  --sm-orange: #ff5c35;
  --sm-violet: #a855f7;
  --sm-line: rgba(255, 255, 255, 0.14);
  --sm-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 229, 255, 0.1), transparent 25%),
    radial-gradient(circle at 92% 34%, rgba(168, 85, 247, 0.1), transparent 25%),
    var(--sm-bg);
  color: var(--sm-text);
  font-family: "Arial", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
  font: inherit;
}

.sm-container {
  width: min(calc(100% - 48px), var(--sm-max));
  margin-inline: auto;
}

.sm-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sm-header.is-scrolled {
  border-color: var(--sm-line);
  background: rgba(8, 10, 9, 0.88);
  backdrop-filter: blur(18px);
}

.sm-nav {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.sm-logo {
  display: inline-flex;
  align-items: center;
  width: 154px;
  height: 66px;
}

.sm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.sm-menu {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-menu a {
  position: relative;
  padding: 10px 0;
  color: #dfe2dd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sm-menu a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--sm-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.sm-menu a:hover::after,
.sm-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.sm-nav-cta,
.sm-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--sm-accent);
  border-radius: 999px;
  background: var(--sm-accent);
  color: #0a0d0a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}

.sm-nav-cta:hover,
.sm-button:hover {
  background: #efffa9;
  transform: translateY(-2px);
}

.sm-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--sm-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sm-menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.25s ease;
}

.sm-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #060814;
}

.sm-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sm-hero-slide.is-active {
  opacity: 1;
}

.sm-hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 6, 18, 0.98) 0%, rgba(4, 6, 18, 0.78) 43%, rgba(4, 6, 18, 0.18) 80%),
    linear-gradient(0deg, rgba(4, 6, 18, 0.9), transparent 42%);
  content: "";
}

.sm-hero-slide::after {
  position: absolute;
  z-index: 1;
  top: 17%;
  right: 5%;
  width: min(53vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--slide-accent) 74%, transparent);
  box-shadow: 0 0 120px color-mix(in srgb, var(--slide-accent) 35%, transparent);
  content: "";
  filter: blur(2px);
  opacity: 0.68;
}

.sm-hero-image {
  position: absolute;
  z-index: 2;
  top: 11%;
  right: 2%;
  width: min(58vw, 790px);
  height: 76%;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  transform: translateX(30px) scale(0.98);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sm-hero-slide.is-active .sm-hero-image {
  transform: translateX(0) scale(1);
}

.sm-hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.sm-hero-copy {
  position: relative;
  width: min(58%, 710px);
}

body.lightbox-open {
  overflow: hidden;
}

.sm-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--sm-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sm-eyebrow::before {
  width: 38px;
  height: 1px;
  background: currentColor;
  content: "";
}

.sm-hero-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(64px, 8.5vw, 132px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.83;
  text-transform: uppercase;
}

.sm-hero-title strong {
  display: block;
  color: var(--sm-accent);
  font-weight: 900;
}

.sm-hero-text {
  max-width: 570px;
  margin: 32px 0 36px;
  color: #c3c8c1;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}

.sm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.sm-button.is-ghost {
  border-color: var(--sm-line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sm-button.is-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: #0a0d0a;
}

.sm-hero-controls {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 42px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.sm-slide-counter {
  min-width: 42px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sm-slide-lines {
  display: flex;
  flex: 1;
  gap: 7px;
  max-width: 390px;
}

.sm-slide-dot {
  height: 2px;
  flex: 1;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.sm-slide-dot.is-active {
  background: var(--sm-accent);
}

.sm-section {
  position: relative;
  padding: 130px 0;
}

.sm-intro {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 229, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #f7f8ff 0%, #dcecff 100%);
  color: #0d100e;
}

.sm-intro::after {
  position: absolute;
  top: -170px;
  right: -140px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  content: "";
}

.sm-kicker {
  margin: 0 0 28px;
  color: #66705f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sm-reveal-title {
  max-width: 1130px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.sm-reveal-title .word {
  display: inline-block;
  margin-right: 0.2em;
  opacity: 0.16;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.sm-reveal-title.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

.sm-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: end;
  margin-top: 65px;
}

.sm-intro-copy {
  max-width: 720px;
  color: #515851;
  font-size: 18px;
  line-height: 1.75;
}

.sm-stat {
  padding-left: 28px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.sm-stat strong {
  display: block;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.sm-stat span {
  display: block;
  margin-top: 14px;
  color: #626a60;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sm-products {
  overflow: hidden;
}

.sm-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 58px;
}

.sm-section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(50px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.sm-section-title span {
  color: var(--sm-accent);
}

.sm-carousel-buttons {
  display: flex;
  gap: 10px;
}

.sm-carousel-button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--sm-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sm-carousel-button:hover {
  background: var(--sm-accent);
  color: #0a0d0a;
}

.sm-product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.sm-filter {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid var(--sm-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sm-filter span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
}

.sm-filter:hover,
.sm-filter.is-active {
  border-color: var(--sm-accent);
  background: var(--sm-accent);
  color: #070a13;
}

.sm-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sm-product-card {
  --card-accent: var(--sm-accent);
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--sm-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent),
    var(--sm-surface);
  transform-style: preserve-3d;
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1), border-color 0.25s ease;
}

.sm-product-card.is-hidden {
  display: none;
}

.sm-product-card:hover {
  border-color: rgba(0, 229, 255, 0.65);
  transform: translateY(-7px);
}

.sm-product-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(3, 5, 4, 0.97) 0%, rgba(3, 5, 4, 0.12) 65%);
  content: "";
  pointer-events: none;
}

.sm-product-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 229, 255, 0.23), transparent 38%),
    linear-gradient(145deg, #202a4c, #0d1121);
  cursor: zoom-in;
}

.sm-product-visual::before,
.sm-product-visual::after {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) rotateX(67deg) rotateZ(18deg);
  transition: transform 0.7s ease, border-color 0.3s ease;
}

.sm-product-visual::after {
  width: 78%;
  transform: translate(-50%, -50%) rotateX(67deg) rotateZ(-22deg);
}

.sm-product-card:hover .sm-product-visual::before {
  border-color: rgba(215, 255, 50, 0.55);
  transform: translate(-50%, -50%) rotateX(67deg) rotateZ(45deg);
}

.sm-product-card:hover .sm-product-visual::after {
  transform: translate(-50%, -50%) rotateX(67deg) rotateZ(-52deg);
}

.sm-product-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px 22px 122px;
  filter: drop-shadow(0 22px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.65s ease, filter 0.35s ease;
}

.sm-product-card:hover img {
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, 0.65));
  transform: translateY(-8px) scale(1.065) rotate(-1deg);
}

.sm-product-expand {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(5, 8, 18, 0.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.sm-product-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.sm-product-number {
  color: var(--sm-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.sm-product-content h3 {
  margin: 12px 0 8px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.sm-product-content p {
  min-height: 0;
  margin: 0 0 17px;
  color: #bec4bd;
  font-size: 14px;
  line-height: 1.6;
}

.sm-product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sm-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  background: rgba(3, 5, 13, 0.94);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(20px);
  transition: opacity 0.3s ease;
}

.sm-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sm-lightbox-stage {
  display: grid;
  min-height: min(72vh, 720px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(215, 255, 50, 0.18), transparent 42%),
    linear-gradient(145deg, #1d2543, #090d1b);
  perspective: 1100px;
}

.sm-lightbox-stage img {
  width: 88%;
  max-height: 68vh;
  object-fit: contain;
  filter: drop-shadow(0 35px 32px rgba(0, 0, 0, 0.65));
  transform: translateZ(70px) rotateY(-4deg);
}

.sm-lightbox-caption p {
  margin: 0 0 12px;
  color: var(--sm-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sm-lightbox-caption h2 {
  margin: 0 0 30px;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.sm-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
}

.sm-contact {
  min-height: 720px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 20, 0.98), rgba(10, 17, 39, 0.73)),
    url("https://sermicop.com/wp-content/uploads/2026/05/Copilot_20260509_103801-1024x683.png") center / cover;
}

.sm-contact::before {
  position: absolute;
  top: 50%;
  right: -8vw;
  width: 47vw;
  height: 47vw;
  border: 1px solid rgba(215, 255, 50, 0.32);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.sm-contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.sm-contact-title {
  margin: 0;
  font-size: clamp(60px, 8.3vw, 118px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.sm-contact-title span {
  display: block;
  color: var(--sm-accent);
  font-weight: 900;
}

.sm-contact-card {
  padding: 42px;
  border: 1px solid var(--sm-line);
  background: rgba(12, 16, 13, 0.78);
  backdrop-filter: blur(18px);
}

.sm-contact-card h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.sm-contact-card p {
  margin: 0 0 28px;
  color: var(--sm-muted);
  line-height: 1.7;
}

.sm-contact-list {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.sm-contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.sm-contact-list a::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sm-accent);
  content: "";
}

.sm-contact-card .sm-button {
  width: 100%;
}

.sm-footer {
  border-top: 1px solid var(--sm-line);
  background: #050706;
}

.sm-footer-inner {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #858c85;
  font-size: 12px;
}

.sm-footer-links {
  display: flex;
  gap: 24px;
  color: #d3d7d2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-whatsapp-widget {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
}

.sm-whatsapp-float {
  display: grid;
  grid-template-columns: 48px auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 7px 19px 7px 7px;
  border: 0;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #25d366;
  color: #07140b;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.sm-whatsapp-float span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.sm-whatsapp-float small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sm-whatsapp-float:hover {
  transform: scale(1.08);
}

.sm-whatsapp-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: #f5f7f6;
  color: #101611;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sm-whatsapp-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sm-whatsapp-head {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: #075e54;
  color: #fff;
}

.sm-whatsapp-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--sm-accent);
  color: #07140b;
  font-size: 12px;
  font-weight: 1000;
}

.sm-whatsapp-head strong,
.sm-whatsapp-head span {
  display: block;
}

.sm-whatsapp-head span {
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.8;
}

.sm-whatsapp-head button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 25px;
}

.sm-whatsapp-body {
  display: grid;
  gap: 12px;
  padding: 19px;
  background:
    linear-gradient(rgba(239, 232, 220, 0.88), rgba(239, 232, 220, 0.88)),
    radial-gradient(circle, #c7bca9 1px, transparent 1px);
  background-size: auto, 14px 14px;
}

.sm-whatsapp-bubble {
  width: 86%;
  padding: 13px;
  border-radius: 2px 14px 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  line-height: 1.5;
}

.sm-whatsapp-body label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sm-whatsapp-body textarea {
  width: 100%;
  resize: none;
  border: 1px solid #ccd3ce;
  border-radius: 12px;
  padding: 12px;
  outline: none;
  font: inherit;
}

.sm-whatsapp-body textarea:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.sm-whatsapp-send {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #25d366;
  color: #07140b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sm-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .sm-menu-toggle {
    display: block;
  }

  .sm-menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    background: rgba(7, 9, 8, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .sm-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sm-menu a {
    font-size: 18px;
  }

  .sm-menu-toggle {
    position: relative;
    z-index: 2;
  }

  .sm-hero-slide::before {
    background:
      linear-gradient(0deg, rgba(5, 7, 6, 0.99) 4%, rgba(5, 7, 6, 0.7) 68%, rgba(5, 7, 6, 0.18)),
      linear-gradient(90deg, rgba(5, 7, 6, 0.75), transparent);
  }

  .sm-hero-slide::after {
    top: 7%;
    right: -9%;
    width: 76vw;
  }

  .sm-hero-image {
    top: 3%;
    right: -8%;
    width: 82vw;
    height: 57%;
  }

  .sm-hero-content {
    align-items: end;
    padding-bottom: 120px;
  }

  .sm-hero-copy {
    width: 100%;
  }

  .sm-intro-grid,
  .sm-contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sm-product-track {
    grid-auto-columns: minmax(300px, 58%);
  }

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

@media (max-width: 640px) {
  .sm-container {
    width: min(calc(100% - 32px), var(--sm-max));
  }

  .sm-nav {
    min-height: 74px;
  }

  .sm-logo {
    width: 126px;
    height: 56px;
  }

  .sm-hero {
    min-height: 930px;
  }

  .sm-hero-slide::before {
    background:
      linear-gradient(0deg, #050712 0%, rgba(5, 7, 18, 0.98) 48%, rgba(5, 7, 18, 0.12) 76%),
      linear-gradient(90deg, rgba(5, 7, 18, 0.35), transparent);
  }

  .sm-hero-slide::after {
    top: 105px;
    right: -20%;
    width: 110vw;
    opacity: 0.42;
    filter: blur(18px);
  }

  .sm-hero-image {
    top: 98px;
    right: 16px;
    width: calc(100% - 32px);
    height: 330px;
    padding: 26px;
    border-radius: 26px;
    background:
      radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--slide-accent) 28%, transparent), transparent 47%),
      linear-gradient(145deg, rgba(31, 40, 72, 0.96), rgba(8, 12, 25, 0.98));
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.55));
  }

  .sm-hero-content {
    min-height: 930px;
    align-items: end;
    padding-top: 455px;
    padding-bottom: 110px;
  }

  .sm-hero-copy {
    padding: 25px 0 20px;
  }

  .sm-hero-copy::before {
    position: absolute;
    right: 0;
    bottom: 88px;
    left: 0;
    z-index: -1;
    height: 440px;
    background: linear-gradient(180deg, transparent, rgba(5, 7, 18, 0.96) 18%);
    content: "";
  }

  .sm-hero-title {
    max-width: 100%;
    font-size: clamp(43px, 13.5vw, 61px);
    letter-spacing: -0.055em;
    line-height: 0.88;
  }

  .sm-hero-text {
    max-width: 94%;
    margin: 20px 0 24px;
    color: #d4d8d2;
    font-size: 14px;
    line-height: 1.6;
  }

  .sm-button {
    min-height: 48px;
    padding: 0 19px;
  }

  .sm-hero-controls {
    bottom: 27px;
  }

  .sm-section {
    padding: 88px 0;
  }

  .sm-intro-grid {
    margin-top: 42px;
  }

  .sm-section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 35px;
  }

  .sm-product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sm-product-card {
    position: sticky;
    top: calc(86px + (var(--stack-index) * 8px));
    min-height: 510px;
    border-radius: 26px;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.44);
    transform: translateZ(0);
  }

  .sm-product-content {
    padding: 26px;
  }

  .sm-product-card img {
    padding: 34px 20px 150px;
  }

  .sm-product-filters {
    position: sticky;
    z-index: 20;
    top: 74px;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 30px;
    padding: 10px 16px;
    overflow-x: auto;
    background: rgba(6, 8, 20, 0.88);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
  }

  .sm-product-filters::-webkit-scrollbar {
    display: none;
  }

  .sm-filter {
    flex: 0 0 auto;
  }

  .sm-lightbox {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding: 70px 18px 24px;
  }

  .sm-lightbox-stage {
    min-height: 52vh;
    border-radius: 22px;
  }

  .sm-lightbox-stage img {
    width: 94%;
    max-height: 50vh;
    transform: none;
  }

  .sm-lightbox-caption h2 {
    margin-bottom: 20px;
    font-size: 34px;
  }

  .sm-contact {
    min-height: 0;
  }

  .sm-contact-card {
    padding: 28px 22px;
  }

  .sm-footer-inner {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
  }

  .sm-whatsapp-float {
    grid-template-columns: 46px;
    width: 62px;
    padding: 4px;
    border-radius: 50%;
  }

  .sm-whatsapp-float small {
    display: none;
  }

  .sm-whatsapp-widget {
    right: 16px;
    bottom: 16px;
  }
}

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

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