/* Park & Rent - Core Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #b71917;
  --primary-hover: #9c1513;
  --secondary: #1a1a1e;
  --accent: #4a9501;
  --accent-hover: #3d7a01;
  --bg-dark: #0d0d11;
  --bg-dark-card: #18181c;
  --bg-light: #f8f9fa;
  --bg-light-card: #ffffff;
  
  --text-dark: #ffffff;
  --text-dark-muted: #a0a0a5;
  --text-light: #1a1a1e;
  --text-light-muted: #6c757d;
  
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-sans: 'Montserrat', sans-serif;
  
  /* Container & Grid */
  --container-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
  
  /* Shadow & Glass */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --glass-dark: rgba(24, 24, 28, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.flex { display: flex; }
.grid { display: grid; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 25, 23, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 149, 1, 0.3);
}

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

body.dark-mode .btn-outline {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

body.dark-mode .btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--bg-dark);
}

/* Header & Navigation */
.header-top {
  background-color: var(--secondary);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
}

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

.header-top-info span {
  margin-right: 20px;
}

.header-top-info a:hover, .header-top-social a:hover {
  color: var(--primary);
}

.header-top-social a {
  margin-left: 15px;
}

.navbar {
  background-color: var(--bg-light-card);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

body.dark-mode .navbar {
  background-color: var(--bg-dark-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo img {
  max-height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 8px 0;
  position: relative;
}

body.dark-mode .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

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

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary);
}

body.dark-mode .mobile-menu-btn {
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,30,0.85) 0%, rgba(26,26,30,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Booking Widget Card */
.booking-card-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 100;
}

.booking-card {
  background-color: var(--bg-light-card);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border-top: 5px solid var(--primary);
}

body.dark-mode .booking-card {
  background-color: var(--bg-dark-card);
}

.booking-card-title {
  margin-bottom: 25px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Features Section */
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-light-card);
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
  text-align: center;
}

body.dark-mode .feature-card {
  background-color: var(--bg-dark-card);
  border-color: var(--border-dark);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(183, 25, 23, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  color: var(--primary);
  font-size: 1.8rem;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary);
  color: #fff;
  transform: rotate(360deg);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Info Section (Split Layout) */
.info-split {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .info-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.info-content h2 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.info-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
}

.info-content p {
  margin-bottom: 20px;
  color: var(--text-light-muted);
}

body.dark-mode .info-content p {
  color: var(--text-dark-muted);
}

.info-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.info-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 8px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  border-radius: 8px;
}

/* Reviews Carousel/List */
.reviews-section {
  background-color: var(--bg-light-card);
}

body.dark-mode .reviews-section {
  background-color: var(--bg-dark-card);
}

.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.review-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
}

body.dark-mode .review-card {
  background-color: var(--bg-dark);
  border-color: var(--border-dark);
}

.review-stars {
  color: #ffc107;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-light-muted);
}

body.dark-mode .review-text {
  color: var(--text-dark-muted);
}

.review-author {
  font-weight: 700;
  font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(15deg);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--text-dark-muted);
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact span {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .navbar .container {
    height: 80px;
  }
  .nav-menu {
    display: none; /* Mobile menu toggled via JS */
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Booking Widget Embed Wrapper Styles */
.eparking-embed-container {
  min-height: 500px;
  width: 100%;
}

/* Dropdown navigation styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light-card);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    z-index: 100;
    border-top: 3px solid var(--primary);
}

body.dark-mode .dropdown-content {
    background-color: var(--bg-dark-card);
}

.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

body.dark-mode .dropdown-content li a {
    color: var(--text-dark);
}

.dropdown-content li a:hover {
    background-color: rgba(183, 25, 23, 0.05);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 992px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent !important;
        border: none;
        padding-left: 20px;
        display: none;
    }
}
