/* ============================================
   INTOUCH — MAIN CSS (Design System + Global)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────── */
:root {
  --primary:       #ec008a;
  --primary-light: #ff3daa;
  --primary-dark:  #c4007a;
  --accent:        #ff6ec7;
  --accent2:       #ff3d6e;
  --success:       #00b87a;

  --bg-base:   #f8f5f7;
  --bg-card:   #ffffff;
  --bg-card2:  #fdf0f8;
  --bg-glass:  rgba(255, 255, 255, 0.82);

  --text-primary:   #1a1a2e;
  --text-secondary: #5a4a5e;
  --text-muted:     #a990b0;

  --border:      rgba(236, 0, 138, 0.15);
  --border-glow: rgba(236, 0, 138, 0.45);

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  --shadow-sm:  0 2px 16px rgba(236,0,138,0.08);
  --shadow-md:  0 8px 32px rgba(236,0,138,0.12);
  --shadow-lg:  0 24px 64px rgba(236,0,138,0.15);
  --shadow-glow: 0 0 40px rgba(236,0,138,0.25);
  --shadow-glow-accent: 0 0 40px rgba(255,110,199,0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fce8f4; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

/* ── Utility classes ─────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-primary { background: rgba(236,0,138,0.12); color: var(--primary);       border: 1px solid rgba(236,0,138,0.3); }
.badge-accent  { background: rgba(255,110,199,0.15); color: var(--primary-dark);  border: 1px solid rgba(236,0,138,0.25); }
.badge-hot     { background: rgba(236,0,138,0.1);  color: var(--primary-dark);    border: 1px solid rgba(236,0,138,0.3); }
.badge-success { background: rgba(0,184,122,0.12); color: var(--success);         border: 1px solid rgba(0,184,122,0.3); }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.btn:hover::before { transform: scaleX(1); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 24px rgba(236,0,138,0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(236,0,138,0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-card2);
  color: var(--text-secondary);
  transition: var(--transition);
}
.btn-icon:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ── Section Heading ─────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}
.section-heading .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-heading p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Glass card ──────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ── Divider ─────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Star rating ─────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #FFD700;
  font-size: 13px;
}

/* ── Scroll reveal base ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* No-JS fallback: if JS hasn't run, show content */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ── Subtle pattern overlay ──────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(236,0,138,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* ── Toast ───────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 20px; }

/* ── Cart badge ──────────────────────────── */
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
}

/* ── Sales Channels ──────────────────────── */
.sales-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sales-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.sales-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236,0,138,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.sales-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.sales-card:hover::before { opacity: 1; }

.sales-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* White background variant for SVG logos with their own colors */
.sales-card-icon--white {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.07);
  padding: 8px;
}
.sales-card-icon--white img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sales-card-info { flex: 1; min-width: 0; }
.sales-card-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sales-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-card-arrow {
  font-size: 18px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition);
  flex-shrink: 0;
}
.sales-card:hover .sales-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .sales-channels-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sales-channels-grid { grid-template-columns: 1fr; }
}

/* ── Interactive Image Hotspots ──────────────── */
.zoom-hotspot {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.zoom-hotspot:hover {
  z-index: 20;
}

.hotspot-dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(236,0,138,0.5);
  position: relative;
  z-index: 2;
}

.hotspot-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0;
  animation: hotspot-pulse 2s ease-out infinite;
}

@keyframes hotspot-pulse {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hotspot-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
}

.hotspot-line {
  position: absolute;
  top: -1px; /* Center with 2px line based on parent */
  height: 2px;
  background: var(--primary);
  width: 0;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hotspot-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(236,0,138,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(236,0,138,0.12);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Flex Columns for Non-Overlapping Layout */
.hs-cards-col {
  position: absolute;
  top: 5%; bottom: 5%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 160px;
  z-index: 11;
  pointer-events: none;
}
.hs-col-left { left: -80px; align-items: flex-end; }
.hs-col-right { right: -80px; align-items: flex-start; }

.hs-card-left { transform: translateX(20px) scale(0.9); }
.hs-card-right { transform: translateX(-20px) scale(0.9); }

.zoom-image-container.revealed .hs-card-left,
.zoom-image-container.revealed .hs-card-right {
  opacity: 1; transform: translateX(0) scale(1);
}

/* SVG Leader Lines */
.hs-svg-line {
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.2s;
  filter: drop-shadow(0 0 6px rgba(236,0,138,0.3));
}
.zoom-image-container.revealed .hs-svg-line {
  stroke-dashoffset: 0 !important;
}

.hs-svg-arrow {
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}
.zoom-image-container.revealed .hs-svg-arrow {
  opacity: 1;
}

.hs-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
  white-space: nowrap;
}
.hs-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hs-col-left { left: 10px; width: 130px; }
  .hs-col-right { right: 10px; width: 130px; }
  .hotspot-card { padding: 8px 10px; min-width: 110px; }
  .hs-title { font-size: 11px; }
  .hs-desc { font-size: 9px; }
}
