:root {
  --accent: #ff2d43;
  --bg: #0f0f0f;
  --text: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000000;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
}

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

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

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #000000;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 8px;
  column-gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, #fb040456, #000000);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 1;
}

.nav-logo {
  height: 76px;
  width: 210px;
}

.nav-notice {
  display: flex;
  order: 3;
  flex-basis: 100%;
  color: #ffffff;
  font-size: clamp(12px, 3.2vw, 20px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.85;
  text-align: center;
  justify-content: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  order: 2;
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav-notice {
    order: 2;
    flex-basis: auto;
    flex: 1;
    letter-spacing: 0.14em;
  }

  .nav-actions {
    order: 3;
    margin-left: 0;
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.icon-btn--dark {
  background: #292929;
}

.icon-btn--dark:hover {
  background: #3a3a3a;
}

.icon-btn--whatsapp {
  background: #25d366;
}

.icon-btn--whatsapp:hover {
  background: #20bd5c;
}

.btn {
  display: inline-block;
  font-weight: 700;
  transition: filter 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--accent {
  background: var(--accent);
  color: #ffffff;
}

.btn--accent:hover {
  filter: brightness(1.12);
}

.btn--nav {
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 10.8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.btn--hero {
  border-radius: 3px;
  padding: 15px 30px;
  font-size: 12.6px;
}

.btn--hero:hover {
  filter: brightness(1.1);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: #0f0f0f;
  overflow: hidden;
}

.hero-mosaic {
  position: absolute;
  top: calc(-3% + clamp(100px, 15vh, 170px));
  left: -3%;
  right: -3%;
  height: 106%;
  z-index: 0;
  filter: saturate(1.45) contrast(1.2) brightness(1.55);
  transition: transform 0.25s ease-out;
}

.mosaic-cube {
  position: absolute;
  background-image: url('../assets/images/hero-mosaic.jpg');
  /* --cover-w/--cover-h are set in main.js to replicate background-size:cover
     (crop, don't stretch) across the mosaic grid; 20 and 12 must match COLS/ROWS in main.js */
  background-size: calc(var(--cover-w, 100%) * 20) calc(var(--cover-h, 100%) * 12);
  background-repeat: no-repeat;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.1), inset -2px -2px 6px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.mosaic-cube:hover {
  transform: translateY(-14px) scale(1.1);
  box-shadow: 0 0 22px 6px rgba(255, 30, 50, 0.4), 0 0 40px 12px rgba(255, 30, 50, 0.18);
  filter: brightness(1.15) saturate(1.3);
  z-index: 30 !important;
}

.hero-content {
  position: relative;
  z-index: 10;
  pointer-events: none;
  width: 806px;
  max-width: min(92%, 720px);
  padding: clamp(140px, 24vh, 220px) clamp(20px, 5vw, 64px) clamp(40px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-kicker {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 18px;
  opacity: 0;
  animation: cubeFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-desc {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  font-weight: 700;
  max-width: 620px;
  margin: 0 0 26px;
  line-height: 1.5;
  opacity: 0;
  animation: cubeFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-brands {
  color: #ffffff;
  font-size: clamp(1.26rem, 2.52vw, 1.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 22px;
  opacity: 0;
  animation: cubeFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-brands-accent {
  color: var(--accent);
}

.hero-brands-dark {
  color: #000000;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: cubeFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-actions a,
.hero-brands,
.hero-kicker,
.hero-desc {
  pointer-events: auto;
}

/* ---------- Address pill ---------- */

.address-pill {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 14px 32px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s;
  background: linear-gradient(180deg, #000000, #ff000061);
  pointer-events: auto;
}

.address-pill:hover {
  filter: brightness(1.1);
}

.address-pill p {
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* ---------- WhatsApp floating button ---------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: ringPulse 2s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Keyframes ---------- */

@keyframes cubeFadeUp {
  0% {
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes cubePulse {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .address-pill p {
    font-size: 15px;
  }

  .nav-logo {
    height: 56px;
    width: 155px;
  }

  .wa-float {
    bottom: 92px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
