/* ============================================================
   LEMON TV — Design System & Base Styles
   YOUR BRAND. ON EVERY SCREEN.
   ============================================================ */

:root {
  /* Brand colours */
  --lemon-yellow: #F9CE03;
  --lemon-green: #65B401;
  --cinematic-black: #050505;
  --pure-white: #FFFFFF;
  --dark-surface: #101010;
  --card-bg: #151515;
  --muted-text: #A1A1A1;
  --border: rgba(255, 255, 255, 0.12);

  /* Gradients */
  --yellow-gradient: linear-gradient(135deg, #F9CE03, #FFAA00);
  --green-gradient: linear-gradient(135deg, #65B401, #A5E600);
  --brand-gradient: linear-gradient(120deg, #F9CE03, #65B401);

  /* Typography */
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-ui: "Inter", sans-serif;

  /* Layout */
  --nav-height: 80px;
  --container: 1320px;
  --section-pad: 15px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Effects */
  --glass-bg: rgba(16, 16, 16, 0.55);
  --glass-blur: 20px;
  --shadow-glow-yellow: 0 0 40px rgba(249, 206, 3, 0.25);
  --shadow-glow-green: 0 0 40px rgba(101, 180, 1, 0.25);
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index scale */
  --z-base: 1;
  --z-content: 10;
  --z-nav: 1000;
  --z-overlay: 2000;
  --z-preloader: 9999;
  --z-cursor: 10000;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--lemon-yellow) #0a0a0a;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-body);
  background: var(--cinematic-black);
  color: var(--pure-white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

/* ---------- Brand scrollbars (Chrome / Edge / Safari) ---------- */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 0; /* hide page-level horizontal scrollbar */
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F9CE03, #65B401);
  border-radius: 999px;
  border: 2px solid #0a0a0a;
  min-height: 40px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFE14A, #7ACC0A);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

/* Nested scroll areas keep branded horizontal thumbs */
.process-track-wrap::-webkit-scrollbar,
.horizontal-gallery::-webkit-scrollbar,
.service-list-grid::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

body.touch-device {
  cursor: auto;
}

body.touch-device * {
  cursor: auto !important;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-cinematic);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: none;
  appearance: none;
}

body.touch-device button {
  cursor: pointer;
}

::selection {
  background: var(--lemon-yellow);
  color: var(--cinematic-black);
}

:focus-visible {
  outline: 2px solid var(--lemon-yellow);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.heading-xl {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.heading-lg {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.heading-md {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.text-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted-text);
  max-width: 42rem;
  line-height: 1.75;
}

.text-muted {
  color: var(--muted-text);
}

.text-yellow {
  color: var(--lemon-yellow);
}

.text-green {
  color: var(--lemon-green);
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lemon-yellow);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--lemon-yellow);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: min(var(--container), 100%);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.section {
  position: relative;
  padding-block: 15px;
  margin-block: 0;
  z-index: var(--z-content);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.section-header {
  margin-top: 15px;
  margin-bottom: 15px;
  max-width: 900px;
}

.section-header.centered {
  text-align: center;
  margin-inline: auto;
}

.section-header.centered .eyebrow {
  justify-content: center;
}

.section-header.centered .eyebrow::before {
  display: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Film grain overlay ---------- */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--lemon-yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-cinematic),
              height 0.3s var(--ease-cinematic),
              background 0.3s,
              border-color 0.3s,
              opacity 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor.ready {
  opacity: 1;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--lemon-yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-dot.ready {
  opacity: 1;
}

.cursor.hover {
  width: 64px;
  height: 64px;
  background: rgba(249, 206, 3, 0.1);
  border-color: var(--lemon-green);
}

.cursor.click {
  width: 28px;
  height: 28px;
}

body.touch-device .cursor,
body.touch-device .cursor-dot {
  display: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-cinematic),
              box-shadow 0.35s,
              background 0.35s,
              color 0.35s,
              border-color 0.35s;
  white-space: nowrap;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-cinematic);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--yellow-gradient);
  color: var(--cinematic-black);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(249, 206, 3, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--pure-white);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--lemon-green);
  color: var(--lemon-green);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green-gradient);
  color: var(--cinematic-black);
  box-shadow: var(--shadow-glow-green);
}

.btn-outline-yellow {
  border: 1.5px solid var(--lemon-yellow);
  color: var(--lemon-yellow);
  background: transparent;
}

.btn-outline-yellow:hover {
  background: var(--lemon-yellow);
  color: var(--cinematic-black);
}

.btn-sm {
  padding: 0.7rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.15rem 2.25rem;
  font-size: 1rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-cinematic);
}

.btn-icon:hover {
  border-color: var(--lemon-yellow);
  color: var(--lemon-yellow);
  background: rgba(249, 206, 3, 0.08);
}

/* Magnetic button wrapper */
.magnetic {
  display: inline-block;
  transition: transform 0.2s ease-out;
}

/* ---------- Glass panels ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.glass-strong {
  background: rgba(16, 16, 16, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border);
}

/* ---------- Page shell ---------- */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.8s var(--ease-cinematic);
}

.page-wrapper.revealed {
  opacity: 1;
}

.page-wrapper.no-preloader {
  opacity: 1;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-height) + 15px);
  padding-bottom: 15px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249, 206, 3, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(101, 180, 1, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, var(--cinematic-black) 0%, var(--dark-surface) 100%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}

.page-hero .breadcrumb a:hover {
  color: var(--lemon-yellow);
}

.page-hero .breadcrumb i {
  font-size: 0.7rem;
}

/* ---------- Decorative shapes ---------- */
.accent-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.accent-orb.yellow {
  background: rgba(249, 206, 3, 0.15);
}

.accent-orb.green {
  background: rgba(101, 180, 1, 0.12);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Film strip ---------- */
.film-strip {
  display: flex;
  gap: 4px;
  overflow: hidden;
  height: 28px;
  opacity: 0.35;
}

.film-strip span {
  flex-shrink: 0;
  width: 36px;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #222 0px,
    #222 4px,
    transparent 4px,
    transparent 8px
  );
  border-top: 3px solid #444;
  border-bottom: 3px solid #444;
  position: relative;
}

.film-strip span::before,
.film-strip span::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #111;
  border-radius: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.film-strip span::before { top: 2px; }
.film-strip span::after { bottom: 2px; }

/* ---------- Utility ---------- */
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--lemon-yellow);
  color: var(--cinematic-black);
  padding: 0.75rem 1.5rem;
  z-index: 10001;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}
