/* ═══════════════════════════════════════════════════════════
   maskincare.be — Shared Styles
   Fonts, variables, base reset, layout chrome
═══════════════════════════════════════════════════════════ */

/* ── FONTS ── */
/* Fonts loaded via <link> in HTML to avoid render-blocking @import */

/* ── VARIABLES ── */
:root {
  --ivory:      #FAFAF7;
  --pebble:     #E8E4DF;
  --rose:       #C9A99A;
  --rose-light: #EAD9D3;
  --slate:      #2C2C2C;
  --slate-mid:  #5A5A5A;
  --sage:       #A8B5A2;
  --sage-light: #D6DDD4;
  --white:      #FFFFFF;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --rose-text:  #8C5E54;
  --sage-text:  #4A5E46;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--ivory);
  color-scheme: light;
}
body {
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── LANGUAGE BAR ── */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 10px 48px;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pebble);
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn.active,
.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--rose);
  background: var(--rose-light);
  outline: none;
}
.lang-sep { color: var(--pebble); font-size: 10px; }

/* ── BRAND NAV ── */
.brand-nav {
  position: sticky;
  top: 41px;
  z-index: 90;
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pebble);
  padding: 0 48px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.brand-nav::-webkit-scrollbar { display: none; }
.brand-nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-mid);
  text-decoration: none;
  padding: 16px 20px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.brand-nav a:hover,
.brand-nav a:focus-visible { color: var(--rose); border-bottom-color: var(--rose); outline: none; }
.brand-nav a.active { color: var(--rose); border-bottom-color: var(--rose); }

/* ── FILTER BAR (search + concern chips) ── */
.filter-bar {
  padding: 32px 48px 8px;
  background: var(--white);
}
@media (max-width: 768px) {
  .filter-bar { padding: 24px 24px 8px; }
}

/* ── COVER ── */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.cover::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.cover::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.cover-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-text);
  margin-bottom: 24px;
  opacity: 1;
}
.cover-logo {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 108px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  opacity: 1;
}
.cover-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  font-style: italic;
  color: var(--slate-mid);
  margin-bottom: 48px;
  opacity: 1;
}
.cover-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--slate-mid);
  max-width: 420px;
  line-height: 1.8;
  opacity: 1;
}
.cover-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--rose), transparent);
  margin: 40px auto;
  opacity: 1;
}
.cover-scroll {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-mid);
  text-decoration: none;
  opacity: 1;
  animation: pulse-arrow 2s ease-in-out infinite;
  cursor: pointer;
}

/* ── BRAND SECTION ── */
.brand-section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--pebble);
  opacity: 1;
  transform: translateY(0);
  scroll-margin-top: 96px;
}
body.js-ready .brand-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js-ready .brand-section.visible { opacity: 1; transform: translateY(0); }

.brand-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pebble);
}
.brand-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--sage);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-origin {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-text);
  margin-top: 8px;
}
.brand-count {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--pebble);
  line-height: 1;
  text-align: right;
}
.brand-count span {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-top: 4px;
}
.section-intro {
  font-size: 13px;
  color: var(--slate-mid);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
  font-style: italic;
  display: none;
}
body.lang-en .section-intro.lang-en,
body.lang-fr .section-intro.lang-fr,
body.lang-nl .section-intro.lang-nl { display: block; }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: stretch;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--rose);
  transition: height 0.3s ease;
}
.product-card:hover::before { height: 100%; }
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44,44,44,0.08);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ivory);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
  display: block;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--pebble);
  width: 100%;
  height: 100%;
}
.product-image-placeholder span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-mid);
  opacity: 0.4;
}

.product-type-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-text);
  background: var(--sage-light);
  padding: 3px 8px;
  border-radius: 10px;
}

.product-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-brand-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-text);
}
.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-desc {
  font-size: 12px;
  color: var(--slate-mid);
  line-height: 1.7;
  display: none;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 5.1em;
}
body.lang-en .product-desc.lang-en,
body.lang-fr .product-desc.lang-fr,
body.lang-nl .product-desc.lang-nl {
  display: -webkit-box;
  display: box;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--pebble);
  margin-top: auto;
}
.product-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--slate);
}
.product-size {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--slate-mid);
}

/* ── LOGO MARK ── */
.logo-mark { display: inline-flex; align-items: baseline; }
.logo-mask, .logo-kin, .logo-care {
  font-family: 'Pinyon Script', cursive;
  font-size: inherit;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: #8C5F72;
}
.logo-tld {
  font-family: var(--font-body);
  font-size: 0.32em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.08em;
  color: #C4A0B2;
  vertical-align: super;
  margin-left: 4px;
}

/* ── MULTILINGUAL ── */
.lang-en:not(body), .lang-fr:not(body), .lang-nl:not(body) { display: none; }
body.lang-en .lang-en,
body.lang-fr .lang-fr,
body.lang-nl .lang-nl { display: inline; }
.cover-tagline-text { display: none; }
body.lang-en .cover-tagline-text.lang-en,
body.lang-fr .cover-tagline-text.lang-fr,
body.lang-nl .cover-tagline-text.lang-nl { display: block; }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 32px;
  z-index: 200;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }


/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--ivory);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(44,44,44,0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--rose); }

/* ── FOOTER ── */
footer {
  background: var(--slate);
  color: var(--pebble);
  padding: 64px 48px;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ivory);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 32px;
}
.footer-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  margin-bottom: 32px;
}
.footer-brands a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pebble);
  text-decoration: none;
  padding: 0 10px;
  transition: color 0.2s;
}
.footer-brands a:hover { color: var(--rose); }
.footer-dot { color: var(--slate-mid); font-size: 10px; }
.footer-info { font-size: 11px; color: var(--pebble); letter-spacing: 0.05em; }
.footer-info a { color: var(--rose); text-decoration: none; }
.wa-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366 !important;
  text-decoration: none;
  transition: opacity 0.2s;
  font-weight: 500;
}
.wa-footer-link:hover { opacity: 0.75; }
.wa-footer-link svg { width: 14px; height: 14px; fill: #25D366; vertical-align: middle; }

/* ── ACTIVE BRAND NAV ── */
.brand-nav a.active {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .lang-bar  { padding: 10px 16px; gap: 2px; }
  .cover     { padding: 100px 20px 60px; min-height: 85vh; }
  .brand-section { padding: 48px 16px; }
  .brand-nav { padding: 0 16px; top: 42px; }
  .brand-nav a { padding: 16px 12px; font-size: 9px; letter-spacing: 0.1em; }
  .brand-header { grid-template-columns: 1fr; }
  .brand-count { text-align: left; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .product-card { padding: 16px 12px; gap: 10px; }
  .product-name { font-size: 14px; min-height: calc(14px * 1.3 * 2); }
  .product-desc { font-size: 11px; -webkit-line-clamp: 3; }
  footer { padding: 40px 20px; }
  .back-to-top { bottom: 20px; right: 16px; width: 38px; height: 38px; font-size: 16px; }
  .wa-float { bottom: 68px; right: 16px; width: 38px; height: 38px; }
  .wa-float svg { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
  /* Keep 2 columns even on small phones */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cover-logo   { font-size: clamp(40px, 13vw, 70px); }
  .product-card { padding: 12px 8px; gap: 8px; }
  .product-price { font-size: 16px; }
}
@media (min-width: 1400px) {
  .product-grid  { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .brand-section { padding: 80px 64px; }
  .brand-nav     { padding: 0 64px; }
}
