/* =====================================================================
   Palestine Drinks — Modern Design System
   Authentic Palestinian identity: olive tree, keffiyeh, red/green/white/black
   ===================================================================== */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Brand palette */
  --red: #e4312b;
  --red-deep: #b81f1f;
  --green: #2f7d3a;
  --green-bright: #46c23b;
  --olive: #6f7f3a;
  --sand: #f4efe4;
  --sand-deep: #e9e0cd;
  --ink: #16181c;
  --ink-soft: #2a2d33;
  --muted: #6b7280;
  --white: #ffffff;

  /* Surfaces */
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #ecece6;

  /* Type */
  --font-display: "Space Grotesk", "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Rhythm */
  --container: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 18px rgba(22, 24, 28, 0.06);
  --shadow: 0 24px 60px rgba(22, 24, 28, 0.10);
  --shadow-lg: 0 40px 90px rgba(22, 24, 28, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

::selection {
  background: var(--red);
  color: #fff;
}

/* ---------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(70px, 10vw, 140px) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 16ch;
}

.section-title.center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 56ch;
}

/* Keffiyeh diamond-mesh pattern (recreated in CSS) */
.keffiyeh {
  --k: 22px;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px var(--k)),
    repeating-linear-gradient(-45deg, var(--ink) 0 2px, transparent 2px var(--k));
  background-size: var(--k) var(--k);
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(228, 49, 43, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(228, 49, 43, 0.42);
  background: var(--red-deep);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  background: rgba(22, 24, 28, 0.04);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------------------------------------------------------------- Navbar */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease), background 0.4s var(--ease),
    box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav.scrolled {
  height: 68px;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(22, 24, 28, 0.05);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  height: 46px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.nav.scrolled .brand img {
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher */
.lang {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.lang-toggle:hover {
  border-color: var(--red);
}

.lang-toggle img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-toggle .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.lang.open .lang-toggle .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

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

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  text-align: left;
  transition: background 0.2s var(--ease);
}

.lang-menu button:hover {
  background: var(--sand);
}

.lang-menu button img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-menu button.active {
  color: var(--red);
  font-weight: 600;
}

/* Mobile drawer — hidden until mobile breakpoint */
.mobile-menu {
  display: none;
}

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

body.menu-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, #fff 0%, var(--sand) 45%, var(--sand-deep) 100%);
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
}

.hero-bg-blob.a {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(228, 49, 43, 0.28), transparent 70%);
}

.hero-bg-blob.b {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(47, 125, 58, 0.24), transparent 70%);
}

.hero-keffiyeh {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  opacity: 0.05;
  --k: 26px;
  z-index: 0;
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--red);
  position: relative;
  white-space: nowrap;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.12em;
  background: var(--green-bright);
  opacity: 0.55;
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.9s var(--ease) 0.9s forwards;
}

@keyframes underline {
  to { transform: scaleX(1); }
}

.hero-text {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 24px 0 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--ink);
  line-height: 1;
}

.hero-stat .num .suf {
  color: var(--red);
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* Hero can visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.hero-ring {
  position: absolute;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--red), var(--green-bright), var(--olive), var(--red));
  filter: blur(2px);
  opacity: 0.16;
  animation: spin 22s linear infinite;
}

.hero-disc {
  position: absolute;
  width: min(40vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, var(--sand) 70%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.05), var(--shadow-lg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-can {
  position: relative;
  z-index: 3;
  width: min(30vw, 320px);
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.28));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-24px) rotate(-6deg); }
}

.hero-leaf {
  position: absolute;
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}

/* Floating bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(228, 49, 43, 0.12));
  border: 1px solid rgba(228, 49, 43, 0.18);
  animation: rise linear infinite;
}

@keyframes rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-88vh) scale(1); opacity: 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--muted);
  border-radius: 14px;
  position: relative;
}

.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  background: var(--red);
  border-radius: 4px;
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------------------------------------------------------------- Marquee */
.marquee {
  background: var(--ink);
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee-item .star {
  color: var(--green-bright);
  font-size: 1.2rem;
}

@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media .frame {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--sand));
  padding: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-media .frame::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 320px;
  height: 320px;
  --k: 24px;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px var(--k)),
    repeating-linear-gradient(-45deg, var(--ink) 0 2px, transparent 2px var(--k));
  background-size: var(--k) var(--k);
}

.about-media img {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.14));
}

.about-media .badge-float {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

.about-media .badge-float.one {
  top: 24px;
  left: -18px;
  animation: float 5s ease-in-out infinite;
}

.about-media .badge-float.two {
  bottom: 30px;
  right: -14px;
  animation: float 5.6s ease-in-out infinite 0.4s;
}

.badge-float .ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}

.about-text .lead {
  margin: 22px 0 28px;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin-bottom: 34px;
}

.value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value .ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--red);
}

.value h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.value p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- Products */
.products {
  background:
    linear-gradient(180deg, var(--bg), #fff 30%, #fff 70%, var(--bg));
}

.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filters {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.filter {
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.filter.active {
  color: #fff;
}

.filter.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  border-radius: 100px;
  z-index: -1;
}

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

.product {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    opacity 0.45s var(--ease);
  transform-style: preserve-3d;
}

.product::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: var(--flavor, var(--red));
  opacity: 0.14;
  z-index: 0;
  transition: opacity 0.5s var(--ease), height 0.5s var(--ease);
  border-radius: 0 0 var(--radius) var(--radius);
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product:hover::before {
  opacity: 0.24;
  height: 70%;
}

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

.product-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.product-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  color: #fff;
  background: var(--flavor, var(--red));
}

.product-price {
  text-align: right;
  font-family: var(--font-display);
  line-height: 1.05;
}

.product-price .amt {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.product-price .cur {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.product-price .pcs {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.product-img {
  position: relative;
  z-index: 2;
  height: 300px;
  display: grid;
  place-items: center;
  margin: 6px 0 14px;
}

.product-img img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.22));
  transition: transform 0.6s var(--ease);
}

.product:hover .product-img img {
  transform: translateY(-14px) scale(1.06) rotate(-4deg);
}

.product-name {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- Heritage band */
.heritage {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.heritage::before {
  content: "";
  position: absolute;
  inset: 0;
  --k: 30px;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px var(--k)),
    repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px var(--k));
  background-size: var(--k) var(--k);
}

.heritage .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.heritage .eyebrow {
  color: var(--green-bright);
}

.heritage h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 22ch;
  margin: 0 auto 22px;
}

.heritage p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.08rem;
}

.heritage-flag {
  display: inline-flex;
  gap: 8px;
  margin-top: 34px;
}

.heritage-flag span {
  width: 46px;
  height: 8px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: stretch;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.field {
  position: relative;
  margin-bottom: 22px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 16px 8px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}

.field textarea {
  min-height: 130px;
}

.field label {
  position: absolute;
  left: 16px;
  top: 15px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease),
    font-size 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(228, 49, 43, 0.12);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-12px);
  font-size: 0.72rem;
  color: var(--red);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.info-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.info-card .ico {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--red);
}

.info-card .k {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-card .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.contact-cta {
  margin-top: 6px;
}

/* ---------------------------------------------------------------- Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 48px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer-col h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.96rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.socials a:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #fff;
}

.footer-bottom a:hover {
  color: var(--red);
}

/* ---------------------------------------------------------------- Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(228, 49, 43, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.3s var(--ease);
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--red-deep);
  transform: translateY(-4px);
}

/* ---------------------------------------------------------------- Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader .pl-can {
  width: 70px;
  animation: plpulse 1.1s ease-in-out infinite;
}

@keyframes plpulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.05); }
}

.preloader .pl-bar {
  position: absolute;
  bottom: 34%;
  width: 140px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.preloader .pl-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--red);
  border-radius: 3px;
  animation: plbar 1.1s ease-in-out infinite;
}

@keyframes plbar {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ---------------------------------------------------------------- Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

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

[data-reveal="scale"] {
  transform: translateY(20px) scale(0.96);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 992px) {
  /* Stack hero and let it grow with its content instead of forcing full
     viewport height — prevents the stats colliding with the scroll cue. */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 70px;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
  .hero-badge { margin-inline: auto; }
  .hero-text { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; margin-top: 34px; }
  .hero-visual { min-height: 46vh; order: -1; margin-top: 10px; }
  .hero-can { width: min(52vw, 240px); }
  /* Scroll cue is redundant on touch layouts and overlaps content */
  .scroll-cue { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-links,
  .lang { display: none; }
  .burger { display: flex; }

  /* Mobile drawer */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(251, 250, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  }
  body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
  }
  .mobile-menu a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem;
    padding: 12px 0;
    color: var(--ink);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  }
  body.menu-open .mobile-menu a {
    transform: none;
    opacity: 1;
  }
  body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
  body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
  body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
  body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.26s; }

  .mobile-langs {
    display: flex;
    gap: 12px;
    margin-top: 30px;
  }
  .mobile-langs button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--line);
    overflow: hidden;
    padding: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s var(--ease) 0.3s, opacity 0.5s var(--ease) 0.3s,
      border-color 0.3s var(--ease);
  }
  body.menu-open .mobile-langs button { transform: none; opacity: 1; }
  .mobile-langs button img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-langs button.active { border-color: var(--red); }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .product-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .value-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .products-head { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero-stats { gap: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
