/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* "Marketplace" — a vibrant, friendly ordering app (Bolt/Uber-style),
     not a brochure and not a gray console. Warm white canvas, saturated
     orange brand accent, a rotating multicolor set for category tiles,
     big radii, bold pill buttons with color-matched glow shadows. */
  --bg: #ffffff;
  --bg-light: #fff2ea;
  --bg-card: #ffffff;
  --bg-card-inner: #fff6f0;
  --text: #1a1523;
  --text-dim: #6b6577;
  --accent: #ff5a1f;
  --accent-hover: #e64a0f;
  --accent-bright: #ff7a45;
  --teal: #2e6ff2;
  --teal-dim: #1d55c9;
  --gold-dark: var(--accent-hover);
  --gold: var(--accent);
  --gold-bright: var(--accent-bright);
  --gold-shine: #ffb088;
  --gold-white: #ffffff;
  --border: #f1e3da;
  --border-light: #f7ece5;
  --whatsapp: #25D366;
  --whatsapp-hover: #1ebe57;
  --call: var(--teal);
  --call-hover: var(--teal-dim);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --max-w: 1200px;

  /* Rotating marketplace palette — category tiles, stat chips, chip groups */
  --c1: #ff5a1f; --c1-bg: rgba(255,90,31,0.12);
  --c2: #2e6ff2; --c2-bg: rgba(46,111,242,0.12);
  --c3: #16a34a; --c3-bg: rgba(22,163,74,0.12);
  --c4: #9333ea; --c4-bg: rgba(147,51,234,0.12);
  --c5: #e11d8f; --c5-bg: rgba(225,29,143,0.12);
  --c6: #d4a017; --c6-bg: rgba(212,160,23,0.14);

  --shadow-sm: 0 2px 8px rgba(26,21,35,0.06);
  --shadow-md: 0 8px 24px rgba(26,21,35,0.09);
  --shadow-lg: 0 16px 40px rgba(26,21,35,0.14);
}

/* Real dark mode — proper variable cascade instead of scattered rgba
   overrides. html starts with class="light-theme"; script.js removes it
   to go dark. Any var() consumer below inherits this automatically. */
html:not(.light-theme) {
  --bg: #14111a;
  --bg-light: #1d1926;
  --bg-card: #211c2c;
  --bg-card-inner: #2a2436;
  --text: #f5f3f9;
  --text-dim: #a39bb0;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
  --accent-bright: #ff9466;
  --border: #332c40;
  --border-light: #3d3550;
  --gold-dark: var(--accent-hover);
  --gold: var(--accent);
  --gold-bright: var(--accent-bright);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === HONEYCOMB BG — inside page-wrapper via its own pseudo === */

/* ============================================================
   FLOATING LOGO — fixed, JS controls position & size
   ============================================================ */
.floating-logo {
  position: fixed;
  z-index: 9999;
  pointer-events: auto;
  cursor: pointer;
  animation: portalIn 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes portalIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
    filter: blur(12px) brightness(2);
  }
  40% {
    opacity: 0.6;
    filter: blur(4px) brightness(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1);
  }
}

.floating-logo__text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  display: block;
  /* JS sets font-size via style */
}

.spacer-line {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: absolute;
  bottom: 14vh;
  left: 10%;
  right: 10%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spacer-line--visible {
  opacity: 1;
}

.spacer-line--top {
  bottom: auto;
  top: 14vh;
}

.spacer-welcome {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.spacer-welcome--visible {
  opacity: 1;
}

/* Page wrapper — single stacking context for all content */
.page-wrapper {
  position: relative;
  z-index: 1;
}

.page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-opacity='0.02' stroke-width='0.5'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ffffff' stroke-opacity='0.01' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  pointer-events: none;
  z-index: 0;
}

/* Spacer — glossy black with logo stack centered */
.logo-spacer {
  height: 100vh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  background: var(--bg);
}

/* "Dă-i în sus!" pull hint */
.pull-hint {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(3rem, 14vw, 200px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  overflow: hidden;
}

.pull-hint--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR — glossy black with colorful paint splatters
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.navbar--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- NAVBAR LOGO --- */
.navbar__logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  text-transform: none;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* App-style logomark: a bold rounded-square tile with a warm gradient. */
.navbar__logo::before {
  content: 'R';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 60%, var(--accent-hover));
  box-shadow: 0 4px 10px rgba(255,90,31,0.35);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 14px;
  clip-path: none;
}

.navbar__logo:hover { opacity: 0.8; }

/* --- NAVBAR INNER --- */
.navbar__inner {
  position: relative;
  z-index: 20;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.navbar__inner .navbar__logo {
  margin-right: auto;
}

/* Slide-down menu panel — a flat app dropdown, not a dark takeover */
.navbar__links {
  position: absolute;
  top: 60px;
  left: 0; right: 0;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 9997;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15,17,34,0.08);
}

.navbar__links.open {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

.navbar__links a {
  display: block;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: left;
  padding: 14px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s, background 0.2s;
  border-top: 1px solid var(--border-light);
}

.navbar__links a:first-child { border-top: none; }

.navbar__links a:hover {
  color: var(--accent);
  background: var(--bg-light);
}

/* Navbar controls — lang + theme (always visible in navbar bar) */
.navbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.navbar__lang {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px;
  cursor: pointer;
  gap: 0;
  height: 26px;
}

.navbar__lang-opt {
  padding: 3px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-radius: 4px;
  transition: all 0.25s ease;
  line-height: 1;
}

.navbar__lang-opt--active {
  background: var(--accent);
  color: #fff;
}

.navbar__theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.navbar__theme:hover {
  background: var(--bg-card-inner);
  border-color: var(--gold);
}

.navbar__theme-icon {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.navbar__theme:hover .navbar__theme-icon { color: var(--gold); }

.navbar__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dim);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.navbar__search-btn:hover {
  background: var(--bg-card-inner);
  border-color: var(--gold);
  color: var(--gold);
}
/* Show moon in dark mode, sun in light mode */
.navbar__theme-icon--light { display: none; }
.navbar__theme-icon--dark { display: block; }

html.light-theme .navbar__theme-icon--light { display: block; }
html.light-theme .navbar__theme-icon--dark { display: none; }

/* === LIGHT THEME (page background/text) — the navbar itself stays the
   permanent black bar with the orange rule regardless of this toggle;
   see .navbar / html.light-theme .navbar above. === */
html.light-theme body {
  background: var(--bg);
  color: var(--text);
}

html.light-theme .logo-spacer {
  background: var(--bg);
}

html.light-theme .page-wrapper::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000000' stroke-opacity='0.03' stroke-width='0.5'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23000000' stroke-opacity='0.015' stroke-width='0.5'/%3E%3C/svg%3E");
}

html.light-theme .section--dark {
  background: var(--bg-light);
}


html.light-theme .contact__form input,
html.light-theme .contact__form select,
html.light-theme .contact__form textarea {
  background: var(--bg-card-inner);
  color: var(--text);
}

html.light-theme .footer {
  background: var(--bg-light);
}


html.light-theme .spacer-line {
  background: rgba(0,0,0,0.08);
}

html.light-theme .icon-grid .gi {
  color: rgba(0,0,0,0.12);
}

/* .hero-intro.app-hero keeps its gradient in both themes — no flat override */

html.light-theme .helper {
  background: var(--bg);
}

html.light-theme .helper__search {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

html.light-theme .btn--primary {
  color: #fff;
}

/* --- LIGHT THEME: Hero section --- */
html.light-theme .hero__tag-main {
  color: var(--text-dim);
}
html.light-theme .hero__tag-materials {
  color: var(--text-dim);
}
html.light-theme .hero__title {
  color: rgba(0,0,0,0.35);
}
html.light-theme .hero__sep {
  color: rgba(0,0,0,0.1);
}
html.light-theme .hero-ops__label {
  color: var(--text-dim);
}

/* --- LIGHT THEME: Navbar --- */
html.light-theme .navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15,17,34,0.02);
}

/* --- LIGHT THEME: Helper / Finder --- */
html.light-theme .helper__heading {
  color: var(--text);
}
html.light-theme .helper__field select,
html.light-theme .helper__field input {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

/* --- LIGHT THEME: Hex stats --- */
html.light-theme .hex__val,
html.light-theme .hex__label {
  color: var(--text);
}
html.light-theme .hex {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
}


/* --- LIGHT THEME: Cat-tree --- */
html.light-theme .ct-card::before,
html.light-theme .ct-card::after {
  display: none;
}
html.light-theme .ct-card__chevron,
html.light-theme .ct-group__chevron {
  border-color: var(--text-dim);
}
html.light-theme .ct-group {
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light-theme .ct-group__label {
  color: rgba(0,0,0,0.7);
}
html.light-theme .ct-group--expandable > .ct-group__label:hover {
  color: #000;
}
html.light-theme .ct-sub {
  border-left-color: rgba(0,0,0,0.1);
}
html.light-theme .ct-sub--deep > .ct-sub__label {
  color: rgba(0,0,0,0.5);
}

/* --- LIGHT THEME: Palette viewer --- */
html.light-theme .pal-viewer__arrow {
  background: rgba(0,0,0,0.08);
  color: var(--text);
}
html.light-theme .pal-viewer__arrow:hover {
  background: rgba(0,0,0,0.15);
}
html.light-theme .pal-card__name {
  color: rgba(0,0,0,0.7);
}

/* --- LIGHT THEME: Footer --- */
html.light-theme .footer__col p,
html.light-theme .footer__col a {
  color: var(--text-dim);
}
html.light-theme .footer__copy {
  color: var(--text-dim);
}
html.light-theme .footer__bottom {
  border-top-color: rgba(0,0,0,0.1);
}

/* --- LIGHT THEME: End section --- */
html.light-theme .end-section__text {
  color: rgba(0,0,0,0.15);
}

/* --- LIGHT THEME: Scroll hints / spacer lines --- */
html.light-theme .scroll-hint__text {
  color: rgba(0,0,0,0.25);
}
html.light-theme .spacer-line {
  background: rgba(0,0,0,0.08);
}

/* --- LIGHT THEME: Search results --- */
html.light-theme .helper__results {
  background: var(--bg-card);
  border-color: var(--border);
}
html.light-theme .helper__result-item {
  color: var(--text);
  border-bottom-color: rgba(0,0,0,0.06);
}
html.light-theme .helper__result-item:hover {
  background: rgba(0,0,0,0.04);
}


/* --- LIGHT THEME: T&C accordion --- */
html.light-theme .footer__tac-toggle span {
  color: rgba(0,0,0,0.5);
}
html.light-theme .footer__tac-content {
  color: var(--text-dim);
}

/* --- LIGHT THEME: Logo & spacer --- */
html.light-theme .spacer-welcome {
  color: rgba(0,0,0,0.5);
}

/* Hamburger toggle — always visible */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.navbar__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-dim);
  transition: 0.3s;
}

/* ============================================================
   ICON GRID — flat icons in rows & columns behind logo
   ============================================================ */
.icon-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(11, 1fr);
  gap: 0;
  padding: 15vh 4vw;
  align-items: center;
  justify-items: center;
}

.gi {
  width: 28px;
  height: 28px;
  opacity: 0.10;
}

.gi:nth-child(10n+1) { color: #e74c3c; }
.gi:nth-child(10n+2) { color: #3498db; }
.gi:nth-child(10n+3) { color: #2ecc71; }
.gi:nth-child(10n+4) { color: #f39c12; }
.gi:nth-child(10n+5) { color: #9b59b6; }
.gi:nth-child(10n+6) { color: #e91e8c; }
.gi:nth-child(10n+7) { color: #1abc9c; }
.gi:nth-child(10n+8) { color: #e67e22; }
.gi:nth-child(10n+9) { color: #00bcd4; }
.gi:nth-child(10n+10) { color: #8a5228; }

.gi svg {
  width: 100%;
  height: 100%;
}

/* Hide empty spacer icons in logo gap */
.gi--empty { visibility: hidden; }

/* Stagger odd rows horizontally + vertical jitter for bushy look */
.gi:nth-child(-n+10),                      /* R1 */
.gi:nth-child(n+21):nth-child(-n+30),     /* R3 */
.gi:nth-child(n+71):nth-child(-n+80),     /* R8 */
.gi:nth-child(n+91):nth-child(-n+100) {   /* R10 */
  transform: translateX(50%);
}

/* Vertical jitter — vary each column position */
.gi:nth-child(10n+1) { transform: translateY(-35%); }
.gi:nth-child(10n+2) { transform: translateY(20%); }
.gi:nth-child(10n+3) { transform: translateY(-10%); }
.gi:nth-child(10n+4) { transform: translateY(30%); }
.gi:nth-child(10n+5) { transform: translateY(-25%); }
.gi:nth-child(10n+6) { transform: translateY(15%); }
.gi:nth-child(10n+7) { transform: translateY(-40%); }
.gi:nth-child(10n+8) { transform: translateY(25%); }
.gi:nth-child(10n+9) { transform: translateY(-15%); }
.gi:nth-child(10n+10) { transform: translateY(35%); }

/* Odd rows: combine horizontal + vertical offset */
.gi:nth-child(-n+10):nth-child(10n+1),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+1),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+1),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+1) { transform: translateX(50%) translateY(-35%); }

.gi:nth-child(-n+10):nth-child(10n+2),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+2),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+2),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+2) { transform: translateX(50%) translateY(20%); }

.gi:nth-child(-n+10):nth-child(10n+3),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+3),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+3),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+3) { transform: translateX(50%) translateY(-10%); }

.gi:nth-child(-n+10):nth-child(10n+4),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+4),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+4),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+4) { transform: translateX(50%) translateY(30%); }

.gi:nth-child(-n+10):nth-child(10n+5),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+5),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+5),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+5) { transform: translateX(50%) translateY(-25%); }

.gi:nth-child(-n+10):nth-child(10n+6),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+6),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+6),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+6) { transform: translateX(50%) translateY(15%); }

.gi:nth-child(-n+10):nth-child(10n+7),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+7),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+7),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+7) { transform: translateX(50%) translateY(-40%); }

.gi:nth-child(-n+10):nth-child(10n+8),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+8),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+8),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+8) { transform: translateX(50%) translateY(25%); }

.gi:nth-child(-n+10):nth-child(10n+9),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n+9),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n+9),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n+9) { transform: translateX(50%) translateY(-15%); }

.gi:nth-child(-n+10):nth-child(10n),
.gi:nth-child(n+21):nth-child(-n+30):nth-child(10n),
.gi:nth-child(n+71):nth-child(-n+80):nth-child(10n),
.gi:nth-child(n+91):nth-child(-n+100):nth-child(10n) { transform: translateX(50%) translateY(35%); }


/* ============================================================
   SCROLL HINTS — horizontal at bottom of spacer
   ============================================================ */
.scroll-hints {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.scroll-hints--hidden {
  opacity: 0;
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* "or" label between arrows and rotate */
.scroll-hints__or {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0.7;
}

/* Rotate phone indicator */
.rotate-hint {
  display: none;
  position: relative;
  width: 32px;
  height: 48px;
}

.rotate-hint__phone {
  width: 32px;
  height: 48px;
  color: #8a5228;
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(184, 115, 51, 0.4));
  animation: phoneRock 3s ease-in-out infinite;
  transform-origin: center center;
}

.rotate-hint__arrow {
  position: absolute;
  top: -4px;
  right: -14px;
  width: 18px;
  height: 18px;
  color: #c2884c;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px rgba(184, 115, 51, 0.3));
  animation: phoneRock 3s ease-in-out infinite;
}

@keyframes phoneRock {
  0%, 100% { transform: rotate(0deg); }
  35%, 65% { transform: rotate(-90deg); }
}

.scroll-arrow {
  width: 28px;
  height: 16px;
  position: relative;
  opacity: 0;
  animation: arrowGlow 2.4s ease-in-out infinite;
}

.scroll-arrow:nth-child(1) { animation-delay: 0s; }
.scroll-arrow:nth-child(2) { animation-delay: 0.3s; }
.scroll-arrow:nth-child(3) { animation-delay: 0.6s; }

.scroll-arrow::before,
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  width: 16px;
  height: 2px;
  border-radius: 1px;
}

.scroll-arrow::before {
  left: 50%;
  transform-origin: left center;
  transform: rotate(35deg);
  background: linear-gradient(90deg, transparent, #8a5228, #c2884c);
  box-shadow: 0 -4px 8px rgba(184, 115, 51, 0.5), 0 0 4px rgba(184, 115, 51, 0.3);
}

.scroll-arrow::after {
  right: 50%;
  transform-origin: right center;
  transform: rotate(-35deg);
  background: linear-gradient(90deg, #c2884c, #8a5228, transparent);
  box-shadow: 0 -4px 8px rgba(184, 115, 51, 0.5), 0 0 4px rgba(184, 115, 51, 0.3);
}

@keyframes arrowGlow {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: drop-shadow(0 -2px 4px rgba(184, 115, 51, 0.0));
  }
  30% {
    opacity: 1;
    transform: translateY(0);
    filter: drop-shadow(0 -4px 10px rgba(184, 115, 51, 0.6));
  }
  60% {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 -6px 14px rgba(184, 115, 51, 0.4));
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
    filter: drop-shadow(0 -2px 4px rgba(184, 115, 51, 0.0));
  }
}

/* ============================================================
   HELPER — product finder selector
   ============================================================ */
.helper {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 48px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.helper__heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

/* Search bar */
.helper__search-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 20px;
}

.helper__search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
  z-index: 2;
}

.helper__search {
  width: 100%;
  padding: 18px 20px 18px 48px;
  background: var(--bg-card);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  transition: box-shadow 0.2s, transform 0.15s;
}

.helper__search:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255,90,31,0.18);
}

.helper__search::placeholder { color: var(--text-dim); }

/* Search results dropdown */
.helper__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  list-style: none;
  text-align: left;
}

.helper__results.active { display: block; }

.helper__results li {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.helper__results li:last-child { border-bottom: none; }
.helper__results li:hover { background: var(--bg-light); }

.helper__results li .helper__result-path {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.helper__results li mark {
  background: rgba(79,70,229,0.15);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 1px;
}


/* ============================================================
   AI EVALUATOR (homepage)
   ============================================================ */
.ai-eval {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
}
.ai-eval__subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
  margin-top: -4px;
  margin-bottom: 20px;
}
.ai-eval__upload {
  max-width: 540px;
  margin: 0 auto;
}
.ai-eval__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ai-eval__dropzone:hover,
.ai-eval__dropzone.dragover {
  border-color: var(--gold);
  background: rgba(138,82,40,0.04);
}
.ai-eval__dropzone-icon {
  width: 48px; height: 48px;
  color: var(--text-dim);
  margin-bottom: 12px;
  opacity: 0.5;
}
.ai-eval__dropzone-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.ai-eval__dropzone-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}
.ai-eval__preview { width: 100%; margin-top: 16px; }
.ai-eval__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.ai-eval__images:has(#aiAfterBox[style*="block"]),
.ai-eval__images--two {
  grid-template-columns: 1fr 1fr;
}
.ai-eval__img-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ai-eval__img-box img {
  width: 100%; display: block; border-radius: 12px;
}
.ai-eval__img-label {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 6px;
}
.ai-eval__img-label--after {
  background: rgba(138,82,40,0.85);
}
.ai-eval__result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.ai-eval__result-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.ai-eval__result-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold);
}
.ai-eval__result-desc {
  font-size: 0.8rem; color: var(--text-dim);
  line-height: 1.6; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ai-eval__result-grid { display: grid; gap: 8px; }
.ai-eval__result-item {
  display: flex; justify-content: space-between;
  align-items: baseline; padding: 6px 0;
}
.ai-eval__result-label {
  font-size: 0.75rem; color: var(--text-dim); font-weight: 500;
}
.ai-eval__result-value {
  font-size: 0.8rem; color: var(--text); font-weight: 600;
  text-align: right; max-width: 60%; word-break: break-word;
}
.ai-eval__actions {
  display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}
.ai-eval__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border: none; border-radius: 10px;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.ai-eval__btn:hover { opacity: 0.85; }
.ai-eval__btn:active { transform: scale(0.97); }
.ai-eval__btn--generate {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  flex: 1;
}
html.light-theme .ai-eval__btn--generate {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: var(--text);
}
.ai-eval__btn--reset {
  background: transparent; color: var(--text-dim);
  font-size: 0.72rem; padding: 8px 12px; margin-top: 4px;
}
.ai-eval__loading {
  display: flex; flex-direction: column;
  align-items: center; padding: 32px; gap: 16px;
}
.ai-eval__spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: aiSpin 0.8s linear infinite;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-eval__loading-text {
  font-size: 0.78rem; color: var(--text-dim);
}
.ai-eval__error {
  background: rgba(220,50,50,0.1);
  border: 1px solid rgba(220,50,50,0.3);
  border-radius: 10px;
  padding: 12px 16px; margin-top: 12px;
  font-size: 0.78rem; color: #e55; text-align: center;
}
html.light-theme .ai-eval__dropzone {
  border-color: rgba(0,0,0,0.12);
}
html.light-theme .ai-eval__dropzone:hover {
  border-color: var(--gold);
}
html.light-theme .ai-eval__result-desc {
  border-bottom-color: rgba(0,0,0,0.06);
}
html.light-theme .ai-eval__spinner {
  border-color: rgba(0,0,0,0.1);
  border-top-color: var(--gold);
}
@media (max-width: 500px) {
  .ai-eval__images:has(#aiAfterBox[style*="block"]),
  .ai-eval__images--two {
    grid-template-columns: 1fr;
  }
  .ai-eval__actions { flex-direction: column; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 24px 24px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 462px;
  top: 40px;
  right: -120px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--gold-dark) 0%, transparent 60%);
  opacity: 0.08;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 208px;
  bottom: 60px;
  right: 80px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--teal-dim) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.wip-banner {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.wip-line {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 10% 20px;
}

.wip-text {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

.hero-intro.app-hero {
  padding: 96px 24px 56px;
  margin: 0 0 8px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,90,31,0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(46,111,242,0.14), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(22,163,74,0.12), transparent 45%),
    var(--bg-light);
}

.app-hero__inner { max-width: 640px; margin: 0 auto; }

.hero__tag.app-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.hero__tag-main {
  display: inline;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 0;
}

.hero__tag-materials {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-dim);
  opacity: 0.6;
}

.hero__dot {
  color: var(--accent);
  margin: 0 2px;
}

.hero__title {
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: 400;
  line-height: 2;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.3);
}

.hero__svc {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  margin: 3px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.hero__svc:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-2px);
}

.hero__sep {
  color: rgba(255,255,255,0.1);
  margin: 0 2px;
  display: none;
}

/* === HERO OPERATIUNI — collapsible service hub === */
.hero-ops {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-ops__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  clip-path: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
}
.hero-ops__trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.hero-ops--open .hero-ops__trigger {
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(255,90,31,0.35);
}
.hero-ops--open .hero-ops__label,
.hero-ops--open .hero-ops__chevron {
  color: #fff;
}

.hero-ops__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--text-dim);
}

.hero-ops__chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: transform 0.3s;
}
.hero-ops--open .hero-ops__chevron {
  transform: rotate(180deg);
}

/* Services: hidden by default, radiate outward when open */
.hero-ops__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.hero-ops--open .hero-ops__services {
  max-height: 400px;
  opacity: 1;
  margin-top: 20px;
}

/* Staggered pill animation */
.hero-ops__services .hero__svc {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.2s, border-color 0.2s;
}
.hero-ops--open .hero-ops__services .hero__svc {
  transform: scale(1);
  opacity: 1;
}
.hero-ops--open .hero__svc:nth-child(1)  { transition-delay: 0.04s; }
.hero-ops--open .hero__svc:nth-child(2)  { transition-delay: 0.07s; }
.hero-ops--open .hero__svc:nth-child(3)  { transition-delay: 0.10s; }
.hero-ops--open .hero__svc:nth-child(4)  { transition-delay: 0.13s; }
.hero-ops--open .hero__svc:nth-child(5)  { transition-delay: 0.16s; }
.hero-ops--open .hero__svc:nth-child(6)  { transition-delay: 0.19s; }
.hero-ops--open .hero__svc:nth-child(7)  { transition-delay: 0.22s; }
.hero-ops--open .hero__svc:nth-child(8)  { transition-delay: 0.25s; }
.hero-ops--open .hero__svc:nth-child(9)  { transition-delay: 0.28s; }
.hero-ops--open .hero__svc:nth-child(10) { transition-delay: 0.31s; }
.hero-ops--open .hero__svc:nth-child(11) { transition-delay: 0.34s; }
.hero-ops--open .hero__svc:nth-child(12) { transition-delay: 0.37s; }
.hero-ops--open .hero__svc:nth-child(13) { transition-delay: 0.40s; }

.hero-ops__group-label {
  display: block;
  width: 100%;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c1);
  margin-top: 14px;
  margin-bottom: 6px;
  padding-left: 2px;
}
.hero-ops__group-label:first-child { margin-top: 0; }
.hero-ops__group-label:nth-of-type(2) { color: var(--c2); }
.hero-ops__group-label:nth-of-type(3) { color: var(--c4); }
.hero-ops__group-label:nth-of-type(4) { color: var(--c3); }

.hero__sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 0;
}

/* Hero stat hexagons */
.hero__grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stat {
  padding: 20px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.hero__stat:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

.hero__stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* === BUTTONS — bold rounded pills with a color-matched glow === */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  border-radius: 999px;
  clip-path: none;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,90,31,0.32);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,90,31,0.4);
}

.btn--outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(37,211,102,0.32);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,211,102,0.4);
}

.btn--call {
  background: var(--call);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(46,111,242,0.32);
}

.btn--call:hover {
  background: var(--call-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46,111,242,0.4);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--full { width: 100%; text-align: center; }

/* === SECTIONS === */
.section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section--dark {
  background: var(--bg-light);
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.section--dark > .section__header,
.section--dark > .contact,
.section--dark > .contact-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section__header { margin-bottom: 20px; }

.section__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
}

.section__sub {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

/* === PALETTE SECTION === */
.pal-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.pal-tab {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.pal-tab:hover {
  border-color: var(--gold);
  color: var(--text);
}

.pal-tab--active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}

.pal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.pal-grid--collapsed {
  max-height: 320px;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255,255,255,0.05);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.pal-grid--collapsed::-webkit-scrollbar {
  width: 6px;
}

.pal-grid--collapsed::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.pal-grid--collapsed::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.pal-grid--expanded {
  max-height: none !important;
  overflow-y: unset !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.pal-swatch {
  aspect-ratio: 1;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.06);
}

.pal-swatch:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 2;
}

.pal-swatch__code {
  opacity: 0.9;
  font-size: 0.65rem;
}

.pal-swatch__name {
  opacity: 0.7;
  font-size: 0.62rem;
  margin-top: 2px;
}

/* === FULLSCREEN PALETTE VIEWER === */
.pal-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.pal-viewer.open {
  display: flex;
}

.pal-viewer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background-color 0.3s;
}

.pal-viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}

.pal-viewer__logo {
  position: relative;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 10vw, 5rem);
  text-align: center;
  letter-spacing: 4px;
  padding-top: 40px;
  pointer-events: none;
  user-select: none;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0.15;
}

.pal-viewer__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s;
}

.pal-viewer__arrow:hover { background: rgba(255,255,255,0.2); }
.pal-viewer__arrow--left { left: 16px; }
.pal-viewer__arrow--right { right: 16px; }

.pal-viewer__main {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.pal-viewer__code {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.pal-viewer__name {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.pal-viewer__desc {
  font-size: 0.82rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.pal-viewer__scroller {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 3;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.pal-viewer__track {
  display: flex;
  gap: 4px;
  height: 100%;
  align-items: center;
  padding: 0 50%;
  will-change: transform;
}

.pal-viewer__chip {
  flex-shrink: 0;
  width: 48px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.pal-viewer__chip--active {
  border-color: #fff;
  transform: scale(1.15);
}

/* === CATEGORIES === */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.cat {
  position: relative;
  padding: 40px 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.cat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #5c431a 0%, #8b6914 12%, #8a5228 24%, #c2884c 35%, #e8c396 44%, #fff3e0 50%, #e8c396 56%, #c2884c 65%, #8a5228 76%, #8b6914 88%, #5c431a 100%);
  z-index: 0;
  transition: opacity 0.4s;
}

.cat::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background: var(--bg-card);
  z-index: 1;
}

.cat > * { position: relative; z-index: 2; }

.cat:hover::before {
  background: linear-gradient(135deg, #4a2e18 0%, #a07820 12%, #c2884c 24%, #e8c050 35%, #ffe070 44%, #fffae0 50%, #ffe070 56%, #e8c050 65%, #c2884c 76%, #a07820 88%, #4a2e18 100%);
}

/* Rounded pill tags */
.cat__list li {
  border-radius: 12px;
}

.cat--large { grid-column: 1 / -1; }

.cat__icon {
  width: 48px;
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cat__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-shine), var(--gold), var(--gold-dark));
  z-index: 0;
}

.cat__icon::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--bg-card);
  z-index: 1;
}

.cat__icon svg {
  color: var(--gold-bright);
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 2;
}

.cat__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cat__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat__list li {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  padding: 5px 14px;
  border: 1px solid var(--border);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.cat__list li:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dark);
}

.cat__subs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.cat__sub h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}


/* === TRUST STATS — colorful rounded chips === */
.trust-stats {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 56px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-stat {
  text-align: center;
  padding: 20px 32px;
  border-radius: 20px;
  background: var(--c1-bg);
  min-width: 140px;
}
.trust-stat:nth-child(2) { background: var(--c2-bg); }
.trust-stat:nth-child(3) { background: var(--c3-bg); }
.trust-stat:nth-child(4) { background: var(--c4-bg); }
.trust-stat__num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c1);
}
.trust-stat:nth-child(2) .trust-stat__num { color: var(--c2); }
.trust-stat:nth-child(3) .trust-stat__num { color: var(--c3); }
.trust-stat:nth-child(4) .trust-stat__num { color: var(--c4); }
.trust-stat__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

/* === ABOUT === */
/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

/* Contact cards — soft rounded cards with a colorful shadow lift on hover */
.contact-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card::before,
.contact-card::after { display: none; }
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-card__inner {
  position: relative;
  z-index: 2;
}

/* Form card */
.contact-card--form .contact-card__inner {
  padding: 36px 32px;
}
.contact-card__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card-inner);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,31,0.12); }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--text-dim); }
.contact__form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--text-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a8a' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.contact__form select option { background: var(--bg-card); color: var(--text); padding: 8px; }
.contact__form select optgroup { color: var(--gold); font-weight: 600; }
.contact__form select:valid:not([value=""]) { color: var(--text); }
.contact__form textarea { resize: vertical; min-height: 120px; }

.contact-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  margin-top: 12px;
  background: rgba(74, 158, 106, 0.1);
  border: 1px solid rgba(74, 158, 106, 0.3);
  border-radius: 12px;
  font-size: 0.82rem;
  color: #4a9e6a;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Contact info cards (right column) */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card--link .contact-card__inner {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--c1-bg);
  border: none;
  color: var(--c1);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__icon--wa {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
}
.contact-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-card__value {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.contact-card--link:hover .contact-card__value {
  color: var(--text);
}

/* === SECTION DIVIDERS === */
.section--dark {
  position: relative;
  border-radius: var(--radius-lg);
}

.section--dark::before,
.section--dark::after { display: none; }

/* === FOOTER === */
.footer {
  border-top: none;
  padding: 48px 24px 36px;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer::before { display: none; }

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__logo::before {
  content: 'R';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 60%, var(--accent-hover));
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  clip-path: none;
}

.footer__copy { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.5px; }

/* Footer grid layout */
.footer__tagline {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.footer__grid {
  max-width: var(--max-w);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer__col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer__col p,
.footer__col a {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.8;
  display: block;
}

.footer__col a {
  text-decoration: none;
  transition: color 0.2s;
}

/* Operations multi-column layout — always full-width and last, so its
   tall content never stretches the row that Companie/Locatie sit in */
.footer__col--ops {
  grid-column: 1 / -1;
  order: 10;
}
.footer__ops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
}
.footer__ops-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 4px;
}
.footer__ops-group p {
  font-size: 0.72rem;
  line-height: 1.7;
}

.footer__col a:hover {
  color: var(--gold-bright);
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Footer T&C */
.footer__tac {
  max-width: var(--max-w);
  margin: 24px auto 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.footer__tac-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  padding: 8px;
  transition: color 0.2s;
}

.footer__tac-toggle:hover { color: var(--gold); }

.footer__tac-toggle svg {
  transition: transform 0.3s;
}

.footer__tac--open .footer__tac-toggle svg {
  transform: rotate(180deg);
}

.footer__tac-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.8;
  text-align: left;
  padding: 0 16px;
}

.footer__tac--open .footer__tac-content {
  max-height: 5000px;
  padding: 16px;
}

.footer__tac-content h4 {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
}

.footer__tac-content h5 {
  color: rgba(255,255,255,0.8);
  font-size: 0.76rem;
  margin: 16px 0 8px;
}

.footer__tac-content h6 {
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  margin: 12px 0 6px;
}

.footer__tac-content ul {
  padding-left: 20px;
  margin: 4px 0 12px;
}

.footer__tac-content li {
  margin-bottom: 4px;
}

.footer__tac-content p {
  margin: 6px 0;
}

.footer__tac-table {
  width: 100%;
  max-width: 500px;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 0.7rem;
}

.footer__tac-table th,
.footer__tac-table td {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.footer__tac-table th {
  color: var(--gold);
  font-weight: 600;
  background: rgba(255,255,255,0.03);
}

.footer__tac-table td {
  color: var(--text-dim);
}

/* T&C accept box inside footer */
.footer__tac-accept {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__tac-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}

.footer__tac-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.footer__tac-btn {
  padding: 10px 28px;
  font-size: 0.8rem;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.footer__tac-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* === T&C ACCEPTANCE POPUP === */
.tac-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tac-popup.open { display: flex; }

.tac-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.tac-popup__box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.tac-popup__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tac-popup__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.tac-popup__close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.tac-popup__body {
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.8;
  flex: 1;
}

.tac-popup__body h5 {
  color: rgba(255,255,255,0.8);
  font-size: 0.76rem;
  margin: 14px 0 6px;
}

.tac-popup__body h6 {
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  margin: 10px 0 4px;
}

.tac-popup__body ul {
  padding-left: 20px;
  margin: 4px 0 10px;
}

.tac-popup__body li {
  margin-bottom: 3px;
}

.tac-popup__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 0.7rem;
}

.tac-popup__body th,
.tac-popup__body td {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.tac-popup__body th {
  color: var(--gold);
  font-weight: 600;
  background: rgba(255,255,255,0.03);
}

.tac-popup__footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tac-popup__check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text);
}

.tac-popup__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.tac-popup__accept {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  opacity: 0.4;
  pointer-events: none;
}

.tac-popup__accept.active {
  opacity: 1;
  pointer-events: auto;
}

.tac-popup__accept.active:hover {
  background: var(--gold-bright);
}

/* Hide footer sections until T&C accepted */
.footer__tac.tac-hidden {
  display: none;
}

/* === ACCENTS === */

.section__tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  clip-path: none;
}

/* ============================================================
   END SECTION — "the end."
   ============================================================ */
.end-section {
  height: auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.end-section__text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-dim);
}

/* === PORTRAIT / LANDSCAPE CONTENT TOGGLE === */
.landscape-only { display: none !important; }

/* Show rotate hint + "or" on mobile portrait only */
@media (max-width: 768px) and (orientation: portrait) {
  .scroll-hints__or { display: block; }
  .rotate-hint { display: block; }
}

/* ============================================================
   LANDSCAPE MOBILE — libertine version
   ============================================================ */
@media (orientation: landscape) and (max-height: 600px) {
  .portrait-only { display: none !important; }
  .landscape-only { display: block !important; }

  /* Compact spacing */
  .logo-spacer { height: 30vh; }
  .hero { padding: 20px 24px 40px; }
  .hero__title { font-size: 0.75rem; line-height: 1.8; margin-bottom: 16px; }
  .hero__sub { margin-bottom: 24px; font-size: 0.85rem; }
  .hero__svc { padding: 3px 8px; font-size: 0.7rem; }
  .hero__actions { margin-bottom: 40px; flex-direction: row; }
  .hero__actions .btn { font-size: 0.75rem; padding: 12px 20px; }
  .hero__grid { flex-direction: row; gap: 8px; }
  .hero__stat { padding: 14px 20px; }
  .hero__stat-num { font-size: 1.6rem; }
  .hero__stat-label { font-size: 0.6rem; }

  .hero-intro { padding: 32px 24px; }

  .section { padding: 40px 24px; }
  .section__header { margin-bottom: 16px; }
  .section__title { font-size: clamp(1.2rem, 3vw, 1.6rem); }
  .section__desc { font-size: 0.8rem; }

  .proc { padding: 16px; }
  .cat { padding: 20px 16px; }
  .cat__title { font-size: 0.85rem; }
  .cat__list li { font-size: 0.65rem; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-card--form .contact-card__inner { padding: 24px 20px; }
  .contact-card--link .contact-card__inner { padding: 18px 20px; }

  .helper { padding: 32px 24px; min-height: auto; }
  .helper__heading { margin-bottom: 16px; font-size: 1.2rem; }
  .helper__search input { font-size: 0.8rem; padding: 12px 14px; }

  /* Category tree — landscape uses base styles */
  .ct-pill { font-size: 0.65rem; padding: 4px 10px; }

  .end-section { padding: 20px 0; }
  .end-section__text { font-size: 1.2rem; }

  .footer { padding: 24px; }
  .footer__inner { flex-direction: row; font-size: 0.72rem; }

  .navbar { padding: 8px 16px; }
  .navbar a, .navbar__link { font-size: 0.72rem; }
  .scroll-top { font-size: 0.65rem; padding: 8px 14px; }

  /* Hide scroll hints entirely in landscape */
  .scroll-hints { display: none; }
}

/* === RESPONSIVE — TABLET (769px–1024px) === */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer__col--ops { grid-column: 1 / -1; }
  .footer__col:nth-child(4),
  .footer__col:nth-child(5) { grid-column: auto; }
  .icon-grid { grid-template-columns: repeat(8, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  /* cat-tree uses base desktop styles */
}

/* === RESPONSIVE — TABLET & MOBILE === */
@media (max-width: 768px) {
  .logo-spacer { height: 60vh; }
  .hero { padding: 20px 16px 60px; }
  .hero__title { font-size: 0.78rem; }
  .hero__svc { font-size: 0.7rem; padding: 6px 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .hero__grid { flex-direction: column; align-items: stretch; }
  .hero__stat { padding: 16px 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
  .categories { grid-template-columns: 1fr; }
  .cat--large { grid-column: 1; }
  .cat__subs { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact__row { grid-template-columns: 1fr; }
  .contact-card--form .contact-card__inner { padding: 28px 20px; }
  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__col--ops { grid-column: 1 / -1; }
  .footer__ops-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col:last-child { grid-column: 1 / -1; }
  .hero::before, .hero::after { display: none; }
  .bracket { display: none; }
  .rivet--bl, .rivet--br { display: none; }
  .section { padding: 60px 16px; }
  .section__header { margin-bottom: 16px; }
  .section__title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cat__title { font-size: 1rem; }
  .cat__list li { font-size: 0.75rem; padding: 6px 12px; min-height: 38px; display: inline-flex; align-items: center; }
  .helper { min-height: auto; }
  .helper__heading { font-size: 1.4rem; }
  /* cat-tree uses base mobile styles */
  .icon-grid { grid-template-columns: repeat(5, 1fr); }
  .ct-pill { padding: 6px 14px; min-height: 38px; display: inline-flex; align-items: center; }
  .navbar__lang-opt { padding: 4px 10px; font-size: 0.62rem; min-height: auto; display: inline-flex; align-items: center; }
}

@media (max-width: 400px) {
  .hero { padding: 20px 12px 48px; }
  .section { padding: 48px 12px; }
  .section__title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .cat { padding: 20px 14px; }
  .proc { padding: 18px; }
  .contact-card--form .contact-card__inner { padding: 20px 16px; }
  .hero__title { font-size: 0.72rem; }
  .hero__sub { font-size: 0.85rem; }
  .btn { padding: 14px 24px; font-size: 0.75rem; }
  .helper { padding: 32px 12px; }
  .helper__heading { font-size: 1.2rem; }
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  /* cat-tree uses base small styles */
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col:last-child { grid-column: auto; }
}

/* ============================================================
   CATEGORY TREE — icon-centric grid cards
   ============================================================ */
.cat-tree {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 16px 80px;
}

.cat-tree > .section__header {
  margin-bottom: 28px;
  text-align: center;
}

/* --- Cards — a colorful marketplace grid of tiles, icon on top --- */
#catTree {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.ct-card {
  position: relative;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 18px 16px;
  border-radius: 20px;
  text-decoration: none;
}

.ct-card::before,
.ct-card::after { display: none; }

.ct-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.ct-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  border: none;
  border-radius: 14px;
  background: var(--c1-bg);
  clip-path: none;
  transition: transform 0.2s ease;
}
.ct-card__icon::before,
.ct-card__icon::after { display: none !important; }

.ct-card:hover .ct-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.ct-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--c1);
  transition: color 0.2s;
  filter: none;
}

/* Rotate the marketplace palette across tiles */
#catTree .ct-card:nth-of-type(6n+2) .ct-card__icon { background: var(--c2-bg); }
#catTree .ct-card:nth-of-type(6n+2) .ct-card__icon svg { color: var(--c2); }
#catTree .ct-card:nth-of-type(6n+3) .ct-card__icon { background: var(--c3-bg); }
#catTree .ct-card:nth-of-type(6n+3) .ct-card__icon svg { color: var(--c3); }
#catTree .ct-card:nth-of-type(6n+4) .ct-card__icon { background: var(--c4-bg); }
#catTree .ct-card:nth-of-type(6n+4) .ct-card__icon svg { color: var(--c4); }
#catTree .ct-card:nth-of-type(6n+5) .ct-card__icon { background: var(--c5-bg); }
#catTree .ct-card:nth-of-type(6n+5) .ct-card__icon svg { color: var(--c5); }
#catTree .ct-card:nth-of-type(6n+6) .ct-card__icon { background: var(--c6-bg); }
#catTree .ct-card:nth-of-type(6n+6) .ct-card__icon svg { color: var(--c6); }

.ct-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  overflow: visible;
  display: block;
  transition: color 0.2s;
}

/* Trailing arrow chip, bottom-right of the tile */
.ct-card--link::after {
  content: '';
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-top: 2px solid var(--text-dim);
  border-right: 2px solid var(--text-dim);
  transform: rotate(45deg);
  opacity: 0.5;
  transition: border-color 0.2s, transform 0.2s, opacity 0.2s;
}
.ct-card--link:hover::after {
  border-color: var(--accent);
  opacity: 1;
  transform: rotate(45deg) translate(2px, -2px);
}

/* Hide legacy card elements */
.ct-card__materials,
.ct-card__count,
.ct-card__meta,
.ct-card__price-hint,
.ct-card__info,
.ct-card__head { display: none !important; }

@media (min-width: 640px) {
  #catTree { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
  .ct-card { padding: 22px 20px; }
  .ct-card__icon { width: 52px; height: 52px; }
  .ct-card__icon svg { width: 26px; height: 26px; }
  .ct-card__title { font-size: 0.95rem; }
}

/* === Search Overlay === */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.search-overlay--open {
  opacity: 1;
  pointer-events: auto;
}
.search-overlay__box {
  width: 90%;
  max-width: 540px;
  background: #1e1e28;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  position: relative;
}
.search-overlay__input {
  width: 100%;
  padding: 16px 48px 16px 20px;
  font-size: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.search-overlay__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
}
.search-overlay__results {
  max-height: 360px;
  overflow-y: auto;
}
.search-overlay__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.search-overlay__item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.search-overlay__item-type {
  font-size: 0.65rem;
  color: var(--gold, #8a5228);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-left: 12px;
}
.search-overlay__empty {
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}
html.light-theme .search-overlay__box {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}
html.light-theme .search-overlay__input { color: var(--text); }
html.light-theme .search-overlay__item { color: var(--text); border-bottom-color: rgba(0,0,0,0.04); }
html.light-theme .search-overlay__item:hover { background: rgba(0,0,0,0.03); }
html.light-theme .search-overlay__close { color: rgba(0,0,0,0.4); }
html.light-theme .search-overlay__empty { color: rgba(0,0,0,0.4); }

/* Clickable card link */
.ct-card--link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

/* Chevron */
.ct-card__chevron,
.ct-group__chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ct-card--open > .ct-card__head .ct-card__chevron {
  transform: rotate(45deg);
}

.ct-group--open > .ct-group__label .ct-group__chevron,
.ct-sub--open > .ct-sub__label .ct-group__chevron {
  transform: rotate(45deg);
}

/* Card body */
.ct-card__body {
  display: none;
  padding: 0 32px 28px;
}

.ct-card--open > .ct-card__body {
  display: block;
}

/* --- Groups (subcategories level 1) --- */
.ct-group {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ct-group:last-child { border-bottom: none; }

.ct-group__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ct-group--expandable {
  cursor: pointer;
}

.ct-group--expandable > .ct-group__label:hover {
  color: #fff;
}

.ct-group__body {
  display: none;
  padding-top: 12px;
}

.ct-group--open > .ct-group__body {
  display: block;
}

/* --- Sub-levels (level 2+) --- */
.ct-sub {
  padding: 10px 0 10px 16px;
  border-left: 1px solid rgba(255,255,255,0.06);
  margin-left: 4px;
}

.ct-sub__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ct-sub--expandable {
  cursor: pointer;
}

.ct-sub--expandable > .ct-sub__label:hover {
  color: var(--gold-bright);
}

.ct-sub__body {
  display: none;
  padding-top: 10px;
}

.ct-sub--open > .ct-sub__body {
  display: block;
}

.ct-sub--deep {
  margin-bottom: 8px;
}

.ct-sub--deep > .ct-sub__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-transform: none;
  letter-spacing: 0.3px;
}

/* --- Pills (leaf items) --- */
.ct-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ct-pill {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-card-inner);
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  cursor: pointer;
}

.ct-pill:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
}

/* === PRICE DISPLAY (ct-item, ct-prices, ct-note) === */

.ct-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ct-item:last-child { border-bottom: none; }

.ct-item > .ct-pill {
  margin-bottom: 6px;
}

.ct-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 4px 0 2px 16px;
}

.ct-price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 0.72rem;
}

.ct-price__label {
  color: var(--text-dim);
  font-weight: 400;
  opacity: 0.65;
}

.ct-price__val {
  color: var(--gold-bright, #d4b44a);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.ct-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.6;
  padding: 2px 0 4px 16px;
  font-style: italic;
}

/* price group on flat groups (no children) */
.ct-group > .ct-prices {
  padding: 4px 0 2px 0;
}

html.light-theme .ct-price__val {
  color: var(--gold-dark, #8a6d1b);
}

html.light-theme .ct-item {
  border-bottom-color: rgba(0,0,0,0.06);
}

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  box-shadow: var(--shadow-lg);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, background 0.2s, color 0.2s;
  z-index: 9000;
}

.scroll-top--visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}


