/* ================================================================
   PVcar Design System — Luxury Auto Salon, Žilina
   Aggressive & Sporty | Premium & Exclusive
   ================================================================ */

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

/* ================================================================
   CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* --- Primary Colors --- */
  --color-black: #0a0a0a;
  --color-black-deep: #050505;
  --color-black-rich: #111111;
  --color-black-soft: #1a1a1a;
  --color-black-muted: #222222;

  /* --- Accent: Racing Red --- */
  --color-red: #e31837;
  --color-red-bright: #ff1a3d;
  --color-red-dark: #b81230;
  --color-red-glow: rgba(227, 24, 55, 0.4);
  --color-red-subtle: rgba(227, 24, 55, 0.1);

  /* --- Neutrals --- */
  --color-white: #ffffff;
  --color-white-off: #f5f5f5;
  --color-gray-100: #e8e8e8;
  --color-gray-200: #d0d0d0;
  --color-gray-300: #b0b0b0;
  --color-gray-400: #888888;
  --color-gray-500: #666666;
  --color-gray-600: #444444;
  --color-gray-700: #333333;
  --color-gray-800: #2a2a2a;
  --color-gray-900: #1c1c1c;

  /* --- Special --- */
  --color-carbon: #1d1d1d;
  --color-chrome: #c0c0c0;
  --color-gold: #d4a853;
  --color-gold-dark: #b8922f;

  /* --- Gradients --- */
  --gradient-red: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-bright) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-black-deep) 0%, var(--color-black-rich) 100%);
  --gradient-carbon: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  --gradient-hero: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
  --gradient-red-fade: linear-gradient(90deg, var(--color-red) 0%, transparent 100%);

  /* --- Typography --- */
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(3.5rem, 8vw, 8rem);
  --fs-h1: clamp(2.5rem, 5vw, 5rem);
  --fs-h2: clamp(2rem, 4vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h4: clamp(1.25rem, 2vw, 1.75rem);
  --fs-h5: clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-h6: clamp(1rem, 1.2vw, 1.15rem);
  --fs-body: clamp(0.95rem, 1vw, 1.05rem);
  --fs-body-lg: clamp(1.05rem, 1.2vw, 1.2rem);
  --fs-small: clamp(0.8rem, 0.9vw, 0.875rem);
  --fs-xs: 0.75rem;
  --fs-label: 0.8rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
  --ls-widest: 0.2em;

  /* --- Spacing --- */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 12rem;

  /* --- Layout --- */
  --container-max: 1400px;
  --container-narrow: 900px;
  --container-wide: 1600px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-padding: clamp(4rem, 10vw, 8rem);

  /* --- Borders --- */
  --border-thin: 1px solid rgba(255, 255, 255, 0.08);
  --border-red: 1px solid var(--color-red);
  --border-red-glow: 1px solid rgba(227, 24, 55, 0.5);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
  --shadow-red: 0 4px 30px rgba(227, 24, 55, 0.3);
  --shadow-red-lg: 0 8px 50px rgba(227, 24, 55, 0.4);
  --shadow-red-glow: 0 0 40px rgba(227, 24, 55, 0.25);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* --- Transitions --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-dramatic: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Z-Index Scale --- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-gray-200);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Carbon fiber texture overlay on body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-carbon);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--color-red);
  color: var(--color-white);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-black-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* ================================================================
   TYPOGRAPHY SYSTEM
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-white);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-wider);
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-wide);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

h6 {
  font-size: var(--fs-h6);
}

.display {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 0.95;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--color-white);
}

/* Gradient text for headings */
.text-gradient {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-red {
  color: var(--color-red);
}

.text-chrome {
  color: var(--color-chrome);
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-gray-400);
}

.text-white {
  color: var(--color-white);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-gray-300);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-gray-200);
  font-weight: var(--fw-light);
}

small,
.text-small {
  font-size: var(--fs-small);
}

.text-xs {
  font-size: var(--fs-xs);
}

a:not(.btn) {
  color: var(--color-red);
  transition: color var(--transition-fast);
}

a:not(.btn):hover {
  color: var(--color-red-bright);
}

/* Decorative line under section titles */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-xl);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-red);
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Section subtitle / eyebrow */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--color-red);
  flex-shrink: 0;
}

.section-eyebrow.center {
  justify-content: center;
}

.section-eyebrow.center::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--color-red);
  flex-shrink: 0;
}

/* ================================================================
   LAYOUT: CONTAINER, SECTION, GRID
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: var(--z-base);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.container-fluid {
  max-width: 100%;
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.section-dark {
  background: var(--color-black-deep);
}

.section-darker {
  background: var(--color-black);
}

.section-carbon {
  background: var(--color-carbon);
  background-image: var(--gradient-carbon);
}

/* Red accent line at top of section */
.section-accent {
  border-top: 3px solid var(--color-red);
}

/* Diagonal section divider */
.section-skew {
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  padding-top: calc(var(--section-padding) + 3rem);
  padding-bottom: calc(var(--section-padding) + 3rem);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-sm {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) 0;
  border-bottom: var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--transition-fast);
}

.nav-brand span {
  color: var(--color-red);
}

.nav-brand:hover {
  color: var(--color-red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gray-200);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-red);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-red);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: var(--z-modal);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* CTA button in nav */
.nav-cta {
  margin-left: var(--space-lg);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-xl);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-slow);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

/* Primary: Solid Red */
.btn-primary {
  background: var(--gradient-red);
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-lg);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-red);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-red-bright);
  outline-offset: 3px;
}

/* Secondary: Dark filled */
.btn-secondary {
  background: var(--color-gray-800);
  color: var(--color-white);
  border-color: var(--color-gray-700);
}

.btn-secondary:hover {
  background: var(--color-gray-700);
  border-color: var(--color-gray-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-gray-400);
  outline-offset: 3px;
}

/* Outline: Red border */
.btn-outline {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn-outline:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--color-red-bright);
  outline-offset: 3px;
}

/* Ghost: Minimal */
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Button sizes */
.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--fs-body);
}

.btn-sm {
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--fs-xs);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black-deep);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

/* Dark overlay with gradient */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.4) 0%,
    rgba(5, 5, 5, 0.2) 40%,
    rgba(5, 5, 5, 0.6) 70%,
    rgba(5, 5, 5, 0.95) 100%
  );
  z-index: 1;
}

/* Red accent glow at bottom */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-red-fade);
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--space-2xl);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 0.95;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero-title .accent {
  color: var(--color-red);
  display: block;
  text-shadow: 0 0 60px var(--color-red-glow);
}

.hero-subtitle {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  color: var(--color-gray-300);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-wide);
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Animated scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gray-400);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-red), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* Parallax container */
.parallax-wrapper {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--gradient-card);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(227, 24, 55, 0.2);
  box-shadow: var(--shadow-lg), var(--shadow-red-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;