/* ============================================
   MK RENT A CAR — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --dark-card:   #1a1a1a;
  --dark-border: #2a2a2a;
  --gold:        #C9A84C;
  --gold-light:  #e0c06a;
  --gold-dark:   #a07c30;
  --gold-glow:   rgba(201, 168, 76, 0.25);
  --white:       #ffffff;
  --grey:        #aaaaaa;
  --grey-dark:   #555555;
  --green:       #2ecc71;
  --red:         #e74c3c;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --radius:       8px;
  --radius-lg:    16px;
  --transition:   0.3s ease;
  --shadow-gold:  0 0 30px rgba(201, 168, 76, 0.2);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.4);

  --nav-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::selection { background: var(--gold); color: var(--black); }

/* ── Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 100px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--white);
}
.section-title span { color: var(--gold); }

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

section {
  position: relative;
}

/* Smooth fade between all sections */
section::before,
section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}

section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--black), transparent);
}

section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--black), transparent);
}



.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0 40px;
}
.gold-line.center { margin: 16px auto 40px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--dark-border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  transition: transform 0.4s ease;
  transform: translateY(18px) scale(1.9);
  transform-origin: left center;
}

.nav-logo img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 0 12px var(--gold-glow));
  transition: filter var(--transition);
}

/* On scroll: slides back up into navbar */
#navbar.scrolled .nav-logo {
  transform: translateY(0) scale(1);
}

.nav-logo:hover img { filter: drop-shadow(0 0 16px rgba(201,168,76,0.5)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Smaller Book Now button in navbar */
.nav-right .btn-primary {
  padding: 9px 20px;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}

/* Language Switcher */
.lang-switcher { position: relative; }

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--grey);
  background: var(--dark-card);
  user-select: none;
}
.lang-current:hover { border-color: var(--gold); color: var(--gold); }
.lang-current .chevron { font-size: 0.6rem; transition: transform var(--transition); }
.lang-switcher.open .lang-current .chevron { transform: rotate(180deg); }
.lang-switcher.open .lang-current { border-color: var(--gold); color: var(--gold); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  min-width: 165px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}
.lang-switcher.open .lang-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--grey);
  border-bottom: 1px solid var(--dark-border);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: rgba(201,168,76,0.1); color: var(--gold); padding-left: 22px; }
.lang-option.active { color: var(--gold); background: rgba(201,168,76,0.05); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.99);
  padding: 32px 24px;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 3px;
  color: var(--grey);
  padding: 16px 0;
  border-bottom: 1px solid var(--dark-border);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

.mobile-lang-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.mobile-lang-options .lang-option {
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 8px 14px;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand img { height: 60px; margin-bottom: 20px; filter: drop-shadow(0 0 8px var(--gold-glow)); }

.footer-tagline { color: var(--grey); font-size: 0.9rem; line-height: 1.8; max-width: 260px; }

.footer-social { display: flex; gap: 12px; margin-top: 24px; }

.social-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--grey);
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 6px; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--grey);
  font-size: 0.9rem;
}
.footer-contact-item .icon { color: var(--gold); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--dark-border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: #999999; font-size: 0.8rem; }

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #999999; font-size: 0.8rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Floating Contact Cycler ── */
#contact-float {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 900;
  width: 58px; height: 58px;
}

.float-btn {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.float-btn.active {
  opacity: 1;
  pointer-events: auto;
  animation: floatBounce 0.6s ease forwards;
}

@keyframes floatBounce {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

.float-whatsapp { background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
.float-viber    { background: #7360F2; box-shadow: 0 4px 20px rgba(115,96,242,0.4); }
.float-call     { background: var(--gold); box-shadow: 0 4px 20px rgba(201,168,76,0.5); color: #111; }

.float-btn:hover { transform: scale(1.12) translateY(-3px); }
.float-whatsapp:hover { box-shadow: 0 8px 30px rgba(37,211,102,0.7); }
.float-viber:hover    { box-shadow: 0 8px 30px rgba(115,96,242,0.7); }
.float-call:hover     { box-shadow: 0 8px 30px rgba(201,168,76,0.7); }

.float-btn .tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--dark-card);
  color: var(--white);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  border: 1px solid var(--dark-border);
  pointer-events: none;
}
.float-btn:hover .tooltip { opacity: 1; transform: translateX(0); }

@media (max-width: 480px) {
  #contact-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
  flex-wrap: wrap;
}
#cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.85rem; color: var(--grey); flex: 1; min-width: 200px; }
.cookie-text a { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.cookie-text a:hover { border-color: var(--gold); }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav-logo { overflow: hidden; max-height: 70px; display: flex; align-items: center; }
  .nav-logo img { height: 60px; }
  #navbar.scrolled .nav-logo img { height: 72px; }
  .nav-container { padding: 0 16px; gap: 12px; }
  .nav-right { gap: 10px; flex-shrink: 0; }
  .nav-logo { flex-shrink: 0; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-contact-item { word-break: break-all; }
  .footer-contact-item a { word-break: break-all; }
  #whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .section-padding { padding: 70px 0; }
}

/* ── Car Images — fit all containers ── */
.car-card-image img,
.car-big-image img,
.car-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fleet page — tall card image */
.car-big-image {
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Homepage preview cards */
.car-card-image {
  height: 220px;
  overflow: hidden;
}

/* Prevent layout shift while loading */
.car-card-image img,
.car-big-image img {
  transition: transform 0.5s ease;
}

.car-card:hover .car-card-image img,
.car-big-card:hover .car-big-image img {
  transform: scale(1.04);
}

/* Minimum touch target for phone links */
.footer-contact-item a[href^="tel"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}