/* =========================================
   ECO TRANSPORT LOCAL - PREMIUM SLOW THEME
   v3.1 (Unified, Sexy & Animated)
   ========================================= */

:root {
  /* --- PALETA DE CULORI (Nature Luxe) --- */
  --color-primary: #1a3c34;       /* Verde Pădure Adânc */
  --color-primary-dark: #112621;  /* Aproape Negru */
  --color-accent: #c4a982;        /* Auriu Sablat */
  --color-accent-light: #e6dac7;  /* Bej deschis */
  
  --color-text: #2c2c2c;          /* Cărbune Soft */
  --color-text-light: #66605b;    /* Gri Cald */
  
  /* --- BACKGROUNDS --- */
  --bg-body: #f9f8f4;             /* Crem "Eggshell" */
  --bg-surface: #ffffff;          /* Alb pur */
  --bg-footer: #141e1c;           /* Contrast puternic jos */

  /* --- GEOMETRIE --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --container-width: 1150px;

  /* --- UMBRE & ADÂNCIME --- */
  --shadow-subtle: 0 10px 40px -10px rgba(26, 60, 52, 0.04);
  --shadow-hover: 0 25px 50px -12px rgba(26, 60, 52, 0.12);
  --transition-slow: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* --- TYPOGRAPHY --- */
  --font-serif: 'Playfair Display', serif;  
  --font-sans: 'Inter', sans-serif;         
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Previne scroll orizontal la animații */
}

/* Textură subtilă */
body.bg-softgrid {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a3c34' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition-slow); }

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-top: 0;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); margin-bottom: 1.5rem; }
.h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }

.lead {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 60ch;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Linie decorativă aurie */
.h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 16px;
}

/* --- HEADER & NAV --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 244, 0.95);
  backdrop-filter: saturate(100%) blur(12px);
  border-bottom: 1px solid rgba(26, 60, 52, 0.05);
  padding: 12px 0;
  transition: padding 0.3s ease;
}

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

.brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo { height: 44px; width: auto; }

.navlinks {
  display: flex;
  gap: 32px;
}

.navlinks a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  padding: 4px 0;
}

.navlinks a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.4s ease;
}

.navlinks a:hover::after, .navlinks a.active::after { width: 100%; }
.navlinks a:hover, .navlinks a.active { color: var(--color-primary); }

/* --- CARDS --- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(0,0,0,0.02);
  transition: var(--transition-slow);
  overflow: hidden;
}

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

.card h3 { 
  font-size: 1.4rem; 
  margin-bottom: 1rem; 
  color: var(--color-primary); 
}
.meta { 
  color: var(--color-text-light); 
  font-size: 0.95rem; 
  margin-bottom: 2rem; 
}

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-slow);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary, .primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 60, 52, 0.15);
}

.btn-primary:hover, .primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 60, 52, 0.25);
}

.ghost, .btn-outline {
  background: transparent;
  border-color: #d1d5db;
  color: var(--color-text);
}

.ghost:hover, .btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: white;
}

/* Buton dezactivat (GDPR) */
.btn:disabled, button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #ccc !important;
  border-color: #ccc !important;
  color: #666 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* --- INPUTS & FORMS --- */
.input, select, textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.3s;
}

.input:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(26, 60, 52, 0.05);
}

/* =========================================
   PAGE SPECIFIC STYLES
   ========================================= */

/* --- BILETE (Pricing) --- */
.pricing-card-featured {
  background: var(--color-primary) !important;
  color: white !important;
  padding: 3rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
/* Forțăm culoarea textului în cardul de preț featured */
.pricing-card-featured h2, 
.pricing-card-featured .pricing-price,
.pricing-card-featured p,
.pricing-card-featured li {
  color: #ffffff !important;
}
.pricing-card-featured small, .pricing-card-featured .check-icon {
  color: var(--color-accent) !important;
}

/* --- DESPRE (Storytelling) --- */
.about-hero {
  display: grid; gap: 3rem; align-items: center; margin-bottom: 5rem;
}
.hero-image-wrapper img {
  width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/3; border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}
@media (min-width: 900px) {
  .about-hero { grid-template-columns: 1fr 1fr; }
  .hero-image-wrapper img { aspect-ratio: 3/4; height: 550px; }
}

/* --- FLOTA (Tech) --- */
.fleet-hero {
  padding: 6rem 0; text-align: center; 
  background: radial-gradient(circle at top, rgba(26,60,52,0.05), transparent 70%);
}
.fleet-image-container img {
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.6s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
}
.fleet-image-container:hover img {
  transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

/* --- GALERIE (Universală) --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden; height: 220px;
  background: #e5e7eb;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- KPI / STATISTICI --- */
.kpi-container {
  border-top: 1px solid rgba(196, 169, 130, 0.3);
  border-bottom: 1px solid rgba(196, 169, 130, 0.3);
  padding: 4rem 0;
  margin: 5rem 0;
  background: rgba(255,255,255,0.5);
}
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 3rem; text-align: center;
}
.kpi .num {
  font-family: var(--font-serif); font-size: 3.5rem; color: var(--color-primary);
  line-height: 1; display: block;
}
.kpi .label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; 
  color: var(--color-text-light); margin-top: 8px;
}

/* --- PROGRAM TOOLBAR --- */
.toolbar {
  background: var(--bg-surface); padding: 24px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle); display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; border: 1px solid rgba(0,0,0,0.03); margin-top: 2rem;
}
.toolbar .input { min-width: 200px; flex: 1; }

/* --- FOOTER --- */
.footer {
  background: var(--bg-footer); color: #a8a29e; padding: 5rem 0 3rem 0; margin-top: 6rem;
}
.footer-brand img { filter: brightness(0) invert(1) opacity(0.8); margin-bottom: 1rem; }
.footer a {
  color: #d6d3d1; margin-right: 2rem; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.footer a:hover { color: var(--color-accent); }

/* --- PILLS --- */
.pills { display: flex; gap: 8px; margin-bottom: 24px; }
.pill {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600; padding: 6px 14px; border-radius: 50px;
  background: white; border: 1px solid #e5e5e5; color: var(--color-primary);
}

/* --- HERO LAYOUT (Index) --- */
.hero-section {
  display: flex; flex-direction: column-reverse; gap: 3rem; padding: 4rem 0; align-items: center;
}
@media (min-width: 900px) {
  .hero-section { flex-direction: row; text-align: left; }
  .hero-content { flex: 1; }
  .hero-image { flex: 1; display: flex; justify-content: flex-end; }
  .hero-logo { max-height: 320px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav { flex-direction: column; height: auto; gap: 1rem; padding: 1rem 0; }
  .navlinks { flex-direction: column; gap: 12px; }
  .h1 { font-size: 2.5rem; }
  .toolbar { flex-direction: column; }
  .toolbar .input { width: 100%; }
}

@media print {
  .header, .footer, .btn, .toolbar { display: none !important; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #000; }
}

/* =========================================
   PAGE TRANSITIONS (PREMIUM ANIMATION)
   ========================================= */

/* 1. Starea inițială (Invizibilă & Coborâtă) */
body {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* 2. Starea încărcată (Vizibilă & La locul ei) */
body.page-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Starea de ieșire (Când pleci de pe pagină) */
body.page-exiting {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}