/* ===================================
   Kayalar Otomotiv - Design System 2.0
   High-End UX/UI Edition (2025)
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  /* --- Palette: Clean Luxury --- */
  --color-bg-body: #ffffff;
  --color-bg-surface: #f8f9fa;
  --color-bg-surface-2: #f2f4f6;

  --color-text-primary: #111111;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;

  --color-accent: #d4af37;
  /* Classic Gold */
  --color-accent-light: #f4e4bc;
  --color-accent-hover: #b8960c;

  --color-success: #25D366;
  /* WhatsApp/Success */
  --color-action: #ff6b35;
  /* CTA Orange */

  /* --- Gradients --- */
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #b8860b 100%);
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);

  /* --- Typography: Fluid Scale --- */
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 2vw + 1rem, 2rem);
  --text-3xl: clamp(2rem, 4vw + 1rem, 3rem);
  --text-4xl: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --text-huge: clamp(3rem, 7vw + 1rem, 6rem);

  /* --- Spacing: Fluid --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2rem, 4vw, 3rem);
  --space-xl: clamp(3rem, 6vw, 5rem);
  --space-2xl: clamp(4rem, 8vw, 8rem);

  /* --- UI Elements --- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  /* Elevated Card */
  --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  /* Hover State */
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.25);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --border-subtle: 1px solid rgba(0, 0, 0, 0.06);

  /* --- Animation --- */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-short: 200ms;
  --duration-medium: 400ms;
}

/* ===================================
   Base Reset & Defaults
   =================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-short) var(--ease-smooth);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1400px;
  /* Wider container for premium feel */
  margin: 0 auto;
  padding: 0 5vw;
}

/* ===================================
   Typography Utility
   =================================== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-huge);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-2xl);
}

.display-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

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

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================================
   Components: Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-transform: uppercase;
  /* Keeping uppercase for buttons */
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-spring);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-shop {
  background: var(--color-action);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* ===================================
   Components: Header (Smart Sticky)
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.4s var(--ease-smooth);
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

/* Navigation Links - Desktop */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

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

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

/* Mobile Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #000;
  transition: 0.3s;
}

/* ===================================
   Section: Hero (Dynamic)
   =================================== */
.hero {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: var(--color-bg-surface-2);
  /* Fallback */
}

/* Video/Parallax Container */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  opacity: 0.4;
  /* Add subtle texture or pattern here if needed */
  background-image: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.1), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* ===================================
   Sections: General
   =================================== */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-alt {
  background: var(--color-bg-surface);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header p {
  color: var(--color-text-secondary);
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ===================================
   Component: Cards (Modern)
   =================================== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

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

/* ===================================
   Footer (4-Column Layout)
   =================================== */
.footer {
  background: #0f0f0f;
  color: #fff;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: #888;
  margin-bottom: 0.75rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    line-height: 1.2;
  }

  .nav-menu {
    display: none;
  }

  /* Mobile menu implementation needed in JS */
  .menu-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1.5rem;
  }
}