/* ============================================
   PRIZMA MOSÓ - PREMIUM AUTOMOTIVE DESIGN
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (THEMES)
   ============================================ */

:root[data-theme="light"] {
  /* Primary Colors */
  --color-primary: #1a3a52;
  --color-primary-light: #2d5a7b;
  --color-primary-dark: #0f2535;

  /* Accent Colors */
  --color-accent: #ff6b35;
  --color-accent-light: #ff8555;
  --color-accent-dark: #e55a2b;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #eff0f3;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-tertiary: #888888;
  --color-border: #e0e0e0;
  --color-border-light: #efefef;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
  --gradient-soft: linear-gradient(135deg, #f8f9fa 0%, #eff0f3 100%);
}

:root[data-theme="dark"] {
  /* Primary Colors */
  --color-primary: #e8f0f7;
  --color-primary-light: #f5f7fa;
  --color-primary-dark: #d0dce8;

  /* Accent Colors */
  --color-accent: #ff7a4d;
  --color-accent-light: #ff9470;
  --color-accent-dark: #ff6b35;

  /* Neutrals */
  --color-bg: #0f1419;
  --color-bg-secondary: #1a1f26;
  --color-bg-tertiary: #242a32;
  --color-text: #e8f0f7;
  --color-text-secondary: #b0bcc9;
  --color-text-tertiary: #7a8696;
  --color-border: #2a3139;
  --color-border-light: #343c45;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);

  /* Glassmorphism */
  --glass-bg: rgba(26, 31, 38, 0.8);
  --glass-border: rgba(232, 240, 247, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
  --gradient-accent: linear-gradient(135deg, #ff7a4d 0%, #ff9470 100%);
  --gradient-soft: linear-gradient(135deg, #1a1f26 0%, #242a32 100%);
}

/* Theme transition animation */
.theme-transition,
.theme-transition *,
.theme-transition *:before,
.theme-transition *:after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.lead {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
}

nav li a {
  padding: 0.5rem 1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav li a:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-accent);
  text-decoration: none;
}

nav li a.active {
  color: var(--color-accent);
  font-weight: 600;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#themeToggle, #languageSwitch {
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.3s ease;
}

#themeToggle:hover, #languageSwitch:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.05);
}

#languageSwitch {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0;
  border-radius: 50%;
}

.btn-cta {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-accent);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.85), rgba(45, 90, 123, 0.85)), url('') center/cover;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 2rem;
  z-index: 1;
  animation: slideUp 0.8s ease-out;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ============================================
   BENTO GRID LAYOUTS
   ============================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.bento-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.grid-item {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.grid-item-large {
  grid-column: span 2;
}

.grid-item-tall {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .grid-item-large {
    grid-column: span 1;
  }

  .grid-item-tall {
    grid-row: span 1;
  }
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--color-text-secondary);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.testimonial-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 100px;
  color: var(--color-accent);
  opacity: 0.1;
  font-family: 'Playfair Display', serif;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #ffc107;
}

.stars svg {
  width: 20px;
  height: 20px;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ============================================
   PRICING TABLE
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--color-accent);
  background: var(--color-bg-tertiary);
  transform: scale(1.05);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 1rem 0;
}

.pricing-price-currency {
  font-size: 1.25rem;
}

.pricing-period {
  color: var(--color-text-tertiary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
}

/* ============================================
   COOKIE CONSENT
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.cookie-text {
  flex: 1;
  color: var(--color-text-secondary);
}

.cookie-accept {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */

section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.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; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  section { padding: 3rem 1.5rem; }

  .navbar {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  section { padding: 2rem 1rem; }

  .hero {
    min-height: 60vh;
  }

  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1rem; }

  nav ul {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  nav li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .bento-grid,
  .bento-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-accept {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  section { padding: 1.5rem 1rem; }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  nav ul {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root[data-theme="light"] {
    --color-primary: #000000;
    --color-accent: #ff4500;
  }

  :root[data-theme="dark"] {
    --color-primary: #ffffff;
    --color-accent: #ffaa00;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header, footer, .cookie-banner {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
