:root {
  /* Color System - Mediterranean Minimalism */
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-primary: #1A1D29;
  --color-accent: #2B5F75;
  --color-accent-light: #4A8BA8;
  --color-warm: #D4956C;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-border: #E8E8E5;
  
  /* Typography */
  --font-display: 'Outfit', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-accent: 'Crimson Pro', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: 1.5rem; }

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(43, 95, 117, 0.03) 0%, rgba(74, 139, 168, 0.05) 100%);
  z-index: -1;
  animation: fadeIn 1s ease-out;
}

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

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

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

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.125rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-style: italic;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.hero h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.hero p {
  font-size: 1.25rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 95, 117, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.hero-visual {
  position: relative;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards;
}

.hero-image {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Fleet Grid */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.car-card {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
  cursor: pointer;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.car-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e5 100%);
}

.car-info {
  padding: 1.75rem;
}

.car-category {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.car-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.car-specs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.car-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.availability-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.available {
  background: #E8F5E9;
  color: #2E7D32;
}

.unavailable {
  background: #FFEBEE;
  color: #C62828;
}

/* Calendar Section */
.calendar-section {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.date-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

.input-group input,
.input-group select {
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background: var(--color-bg);
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.filter-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

/* Contact Form */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: var(--color-surface);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background: var(--color-bg);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-info {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: 12px;
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

.info-value {
  color: var(--color-text-light);
  font-size: 1.0625rem;
}

/* Section */
.section {
  padding: var(--space-xl) 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: 1.125rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.section-title {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: var(--space-xl);
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: white;
}

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

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .fleet-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 6rem 1rem 3rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .section {
    padding: var(--space-lg) 1rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}
