﻿/* EuroDrop ecommerce sections, icons, and homepage mobile rules. */

/* ---- 2026-04-21 Round 3: spadri-style ecommerce sections ---- */

/* USP trust strip */
.usp-strip {
  position: relative;
  padding: clamp(var(--s5), 4vw, var(--s6)) 0;
  background: var(--ink);
  color: var(--surface);
}

.usp-strip .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--s3), 2vw, var(--s5));
}

@media (min-width: 720px) {
  .usp-strip .container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.usp-icon {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.5vw, 52px);
  height: clamp(40px, 4.5vw, 52px);
  flex: 0 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  color: var(--coral);
}

.usp-icon i[data-lucide],
.usp-icon svg.lucide,
.usp-icon svg {
  width: clamp(20px, 2.2vw, 26px);
  height: clamp(20px, 2.2vw, 26px);
  display: block;
}

.usp-item:nth-child(2) .usp-icon { color: var(--lime); }
.usp-item:nth-child(3) .usp-icon { color: var(--blue-soft); }
.usp-item:nth-child(4) .usp-icon { color: var(--coral); }

.usp-item strong {
  display: block;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.usp-item span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.65);
  font-size: clamp(0.7rem, 0.85vw, 0.78rem);
  font-weight: 500;
  line-height: 1.35;
}

/* Promo grid â€” spadri-style large collection tiles */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s3), 2.5vw, var(--s5));
}

@media (min-width: 720px) {
  .promo-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.promo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(280px, 50vw, 440px);
  padding: clamp(var(--s4), 4vw, var(--s7));
  color: var(--surface);
  background: linear-gradient(135deg, #1b2130 0%, #0e1116 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform 360ms var(--ease-snap), box-shadow 360ms var(--ease-snap);
}

.promo-tile.accent-coral {
  background: linear-gradient(135deg, #ff8a5f 0%, #e04820 100%);
}

.promo-tile.accent-blue {
  background: linear-gradient(135deg, #4f7bff 0%, #1f5eff 100%);
}

.promo-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-soft);
}

.promo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0) 25%, rgba(14, 17, 22, 0.82) 100%);
  transition: opacity 300ms var(--ease-snap);
}

.promo-tile.accent-coral::after {
  background: linear-gradient(180deg, rgba(255, 107, 61, 0) 25%, rgba(224, 72, 32, 0.88) 100%);
}

.promo-tile.accent-blue::after {
  background: linear-gradient(180deg, rgba(31, 94, 255, 0) 25%, rgba(15, 50, 160, 0.88) 100%);
}

.promo-tile > * {
  position: relative;
  z-index: 2;
}

.promo-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.promo-tile:hover img {
  transform: scale(1.06);
}

.promo-tile .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: var(--s3);
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-tile h3 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 16px rgba(14, 17, 22, 0.35);
}

.promo-tile p {
  margin: 12px 0 var(--s4);
  max-width: 360px;
  color: rgba(255,255,255,0.94);
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  line-height: 1.45;
}

.promo-tile .promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1.4vw, 14px) clamp(16px, 2vw, 22px);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  width: fit-content;
  transition: transform 220ms var(--ease-snap), background 220ms var(--ease-snap), color 220ms var(--ease-snap);
}

.promo-tile:hover .promo-cta {
  background: var(--ink);
  color: var(--surface);
}

.promo-tile .promo-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 220ms var(--ease-snap);
}

.promo-tile:hover .promo-cta svg {
  transform: translateX(4px);
}

/* Newsletter strip */
.newsletter-strip {
  position: relative;
  padding: clamp(var(--s6), 8vw, var(--s8)) 0;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 0% 100%, rgba(255, 107, 61, 0.5) 0%, transparent 60%),
    radial-gradient(50% 100% at 100% 0%, rgba(31, 94, 255, 0.35) 0%, transparent 65%),
    linear-gradient(135deg, #0e1116 0%, #1b212b 100%);
  color: var(--surface);
}

.newsletter-strip .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s4), 5vw, var(--s7));
  align-items: center;
}

@media (min-width: 820px) {
  .newsletter-strip .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.newsletter-strip h2 {
  margin: 0 0 var(--s3);
  font-size: clamp(1.75rem, 4.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.newsletter-strip h2 .accent {
  color: var(--coral);
  font-style: italic;
}

.newsletter-strip p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,0.82);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.newsletter-form input[type="email"],
.newsletter-form input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  color: var(--surface);
  background: transparent;
  border: 0;
  font-size: 0.98rem;
  font-weight: 500;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  min-height: 52px;
  padding: 0 22px;
  background: var(--coral);
  color: var(--surface);
  border: 0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 200ms var(--ease-snap), transform 200ms var(--ease-snap);
}

.newsletter-form button:hover {
  background: #ff8c5f;
  transform: translateY(-1px);
}

.newsletter-note {
  margin-top: var(--s3);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

/* Brand cards with logo-style typography */
.brand-card {
  font-family: var(--display);
  font-size: 1.45rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-card:nth-child(2n) {
  font-style: italic;
  font-weight: 900;
}

.brand-card:nth-child(3n) {
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Single-product trust row â€” SVG aligned */
.trust-icon {
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--coral);
  background: var(--coral-soft) !important;
  border-radius: 12px !important;
  font-size: 0 !important;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 960px) {
  .usp-strip .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s4);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-tile {
    min-height: 340px;
    padding: var(--s5);
  }

  .promo-tile h3 {
    font-size: 2.2rem;
  }

  .newsletter-strip .container {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .newsletter-strip h2 {
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  .usp-strip .container {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

/* A11y helper */
.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;
}

.newsletter-msg {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 0 4px;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  min-height: 1em;
}

.newsletter-form {
  flex-wrap: wrap;
}

/* Brand rail (light band with wordmarks) */
.section.brand-rail {
  padding-top: var(--s6);
  padding-bottom: var(--s6);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-rail-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  border-left: 1px solid var(--line);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: var(--s4);
  border-right: 1px solid var(--line);
  color: var(--text-soft, #6b7280);
  text-decoration: none;
  transition: color 220ms var(--ease-snap), transform 220ms var(--ease-snap), background 220ms var(--ease-snap);
}

.brand-mark:hover {
  color: var(--coral);
  transform: translateY(-2px);
  background: var(--coral-soft);
}

.brand-wordmark {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
  transition: transform 220ms var(--ease-snap);
}

.brand-mark:hover .brand-wordmark {
  transform: scale(1.04);
}

@media (max-width: 960px) {
  .brand-rail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brand-mark:nth-child(4n) {
    border-right: 0;
  }

  .brand-mark:nth-child(n+5) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .brand-rail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-mark {
    border-right: 1px solid var(--line) !important;
  }

  .brand-mark:nth-child(2n) {
    border-right: 0 !important;
  }

  .brand-mark:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

/* Branded placeholder for products without a featured image */
.ed-thumb-placeholder {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: var(--s5);
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(255,107,61,0.18) 0%, rgba(255,107,61,0) 70%),
    var(--coral-soft, #fff3ec);
  color: #b03d1c;
}

.ed-thumb-placeholder svg {
  width: 70%;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(255,107,61,0.18));
}

.ed-thumb-placeholder-text {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b03d1c;
  opacity: 0.75;
}

/* ============================================================
   Round 4 (2026-04-22) â€” icon library + mobile-first polish
   ============================================================ */

/* Lucide icons render as <svg class="lucide"> with 24x24 default.
   Constrain inside common wrappers so painting doesn't break layout. */
.icon-btn > i[data-lucide],
.icon-btn > svg.lucide,
.icon-btn > svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.btn-arrow > i[data-lucide],
.btn-arrow > svg.lucide,
.btn-arrow > svg {
  width: 16px;
  height: 16px;
  display: block;
}

.promo-tile .eyebrow > i[data-lucide],
.promo-tile .eyebrow > svg.lucide {
  width: 14px;
  height: 14px;
}

.promo-tile .promo-cta > i[data-lucide],
.promo-tile .promo-cta > svg.lucide {
  width: 14px;
  height: 14px;
  transition: transform 220ms var(--ease-snap);
}

.promo-tile:hover .promo-cta > i[data-lucide],
.promo-tile:hover .promo-cta > svg.lucide {
  transform: translateX(4px);
}

/* Simple Icons brand logos (img tag fetched from cdn.simpleicons.org) */
.brand-logo {
  display: block;
  width: auto;
  height: clamp(22px, 2.6vw, 32px);
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 220ms var(--ease-snap), opacity 220ms var(--ease-snap), transform 220ms var(--ease-snap);
}

.brand-mark:hover .brand-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}

/* Mobile-first brand rail: 3-col -> 4-col -> 8-col */
.brand-rail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 560px) {
  .brand-rail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .brand-rail-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Keep bottom dividers clean when rail wraps to fewer columns */
.brand-mark {
  min-height: clamp(64px, 8vw, 96px);
  padding: clamp(var(--s3), 2vw, var(--s4));
}

/* Category arrow (Lucide marker replacing h3::after) */
.category-arrow {
  position: absolute;
  right: clamp(var(--s4), 3vw, var(--s5));
  bottom: clamp(var(--s4), 3vw, var(--s5));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(14, 17, 22, 0.18);
  transition: transform 280ms var(--ease-snap), background 280ms var(--ease-snap);
  z-index: 3;
}

.category-arrow > i[data-lucide],
.category-arrow > svg.lucide {
  width: 18px;
  height: 18px;
}

.category-card:hover .category-arrow {
  transform: translateX(6px);
  background: var(--coral);
  color: var(--surface);
}

/* Story-card lucide icon â€” replaces the horizontal ::before bar */
.story-icon {
  display: block;
  width: clamp(26px, 3vw, 32px);
  height: clamp(26px, 3vw, 32px);
  margin-bottom: clamp(var(--s3), 2vw, var(--s4));
  color: var(--coral);
}

.story-card:nth-child(2) .story-icon { color: var(--blue); }
.story-card:nth-child(3) .story-icon { color: var(--ink); }
.story-card:nth-child(4) .story-icon { color: var(--lime); }

/* Newsletter kicker inline icon */
.newsletter-strip .kicker {
  color: rgba(255,255,255,0.92);
}

.newsletter-strip .kicker > i[data-lucide],
.newsletter-strip .kicker > svg.lucide {
  color: var(--coral);
}

/* Mobile-first section-head: stack on mobile, inline on tablet+ */
.section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(var(--s3), 2.6vw, var(--s5));
  margin-bottom: clamp(var(--s4), 4vw, var(--s6));
}

@media (min-width: 720px) {
  .section-head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

/* Announce bar: allow horizontal scroll instead of cramping on small phones */
.announce {
  font-size: clamp(0.64rem, 1.4vw, 0.75rem);
  padding: 8px clamp(var(--s3), 3vw, var(--s5));
  gap: clamp(12px, 3vw, 24px);
}

/* Mobile-first USP text clamp â€” override older rules when they kick in */
.usp-item strong {
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
}

.usp-item span {
  font-size: clamp(0.66rem, 0.95vw, 0.78rem);
}

/* Hero copy + btn-row tighten on mobile */
.hero .btn-row {
  flex-wrap: wrap;
  gap: clamp(var(--s2), 1.6vw, var(--s3));
}

.hero .btn-row .btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

@media (min-width: 560px) {
  .hero .btn-row .btn {
    flex: 0 0 auto;
  }
}

/* Container horizontal padding on mobile */
@media (max-width: 640px) {
  .container {
    padding-left: clamp(14px, 4vw, 18px);
    padding-right: clamp(14px, 4vw, 18px);
  }
}

/* Prevent the old desktop-first breakpoints from reintroducing hardcoded px
   sizes that fight clamp(). */
@media (max-width: 1180px) {
  .h1 { font-size: clamp(2.4rem, 7vw, 6rem); }
  .h2 { font-size: clamp(1.7rem, 4.2vw, 3.4rem); }
  .h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
}

@media (max-width: 860px) {
  .h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
  .h2 { font-size: clamp(1.7rem, 5vw, 3rem); }
  .h3 { font-size: clamp(1.15rem, 3.2vw, 1.6rem); }
  .btn {
    min-height: clamp(44px, 5vw, 52px);
    padding: 0 clamp(16px, 3vw, 22px);
    font-size: clamp(0.82rem, 2vw, 0.9rem);
  }
  .category-card {
    min-height: clamp(220px, 50vw, 340px);
    padding: clamp(var(--s3), 3vw, var(--s5));
  }
  .hero-visual {
    min-height: clamp(240px, 60vw, 360px);
  }
}

@media (max-width: 560px) {
  .h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .h2 { font-size: clamp(1.5rem, 7vw, 2.35rem); }
  .h3 { font-size: clamp(1.05rem, 4.6vw, 1.55rem); }
  .section {
    padding: clamp(var(--s5), 10vw, var(--s7)) 0;
  }
  .stat-strip {
    padding: var(--s3);
  }
  .stat {
    padding: 10px 8px;
    gap: 8px;
  }
  .stat > i[data-lucide],
  .stat > svg.lucide {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }
  .ticket {
    padding: 8px 12px;
    font-size: 0.68rem;
  }
  .launch-strip {
    text-align: left;
  }
  .launch-strip .btn {
    width: 100%;
  }
  .hero-note {
    font-size: 0.7rem;
    padding: 6px 12px 6px 10px;
  }
}

