/* ==========================================================================
   WANI TOUR & CAR RENTAL - HOME PAGE STYLES
   Pixel-Parity with Luxury Reference Design
   ========================================================================== */

/* Hero Banner & Background */
.hero-section {
  position: relative;
  background-color: #090c10;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.88;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(9, 12, 16, 0.7) 0%, 
    rgba(9, 12, 16, 0.2) 40%, 
    rgba(9, 12, 16, 0.85) 85%,
    #090c10 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 1rem;
}

.hero-header-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.8rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-transform: none;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  font-weight: 300;
}

/* ==========================================================================
   Floating Booking Search Widget
   ========================================================================== */
.hero-booking-wrapper {
  position: relative;
  z-index: 5;
  margin-top: 2rem;
}

.booking-widget-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.35rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.widget-field {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  padding-right: 1rem;
}

.widget-field:nth-last-child(2) {
  border-right: none;
}

.widget-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: capitalize;
  margin-bottom: 0.2rem;
}

.widget-input {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: transparent;
  padding: 0.15rem 0;
  font-weight: 500;
  width: 100%;
}

.widget-input:focus {
  color: var(--text-primary);
}

.btn-widget-search {
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  transition: var(--transition);
  height: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-widget-search:hover {
  background: var(--primary-blue-hover);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   Car Category Section
   ========================================================================== */
.category-section {
  padding: 5rem 0 3.5rem;
  background: var(--bg-white);
}

.category-header {
  margin-bottom: 2.25rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.category-card {
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}

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

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-img {
  transform: scale(1.06);
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.category-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.category-brand-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.category-arrow-btn {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
  transition: var(--transition);
}

.category-card:hover .category-arrow-btn {
  background: #ffffff;
  color: var(--primary-blue);
  transform: rotate(45deg);
}

/* ==========================================================================
   Trend Vehicles Section
   ========================================================================== */
.trend-section {
  padding: 3.5rem 0 5rem;
  background: var(--bg-white);
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.btn-view-all {
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-view-all:hover {
  background: var(--primary-blue-hover);
  transform: translateX(3px);
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.vehicle-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  border: 1px solid #e8eef5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.vehicle-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

/* Highlighting specific cards like reference */
.vehicle-card.highlight-card {
  background: #f8faff;
  border-color: #dbeafe;
}

.vehicle-card-header {
  margin-bottom: 1rem;
}

.vehicle-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.vehicle-category-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.vehicle-img-wrap {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 1.25rem;
  overflow: hidden;
}

.vehicle-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-img {
  transform: scale(1.05);
}

.vehicle-specs-pills {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.spec-pill {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  color: var(--text-secondary);
}

.vehicle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.vehicle-price-box {
  display: flex;
  flex-direction: column;
}

.vehicle-price {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.vehicle-price-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-card-book {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-card-book:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-header-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .booking-widget-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .widget-field {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
  }
  .btn-widget-search {
    grid-column: span 2;
  }
  .category-grid,
  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
    min-height: auto;
  }
  .hero-header-row {
    margin-bottom: 1.5rem;
  }
  .hero-title {
    font-size: clamp(2.35rem, 8vw, 3.5rem);
    line-height: 1.08;
  }
  .hero-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .booking-widget-bar {
    grid-template-columns: 1fr;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }
  .btn-widget-search {
    grid-column: span 1;
    min-height: 48px;
  }
  .category-section {
    padding: 3.5rem 0 2rem;
  }
  .trend-section {
    padding: 2.5rem 0 3.5rem;
  }
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .category-card {
    height: 260px;
    border-radius: 14px;
  }
  .category-brand-name {
    font-size: 1.45rem;
  }
  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .vehicle-card {
    padding: 0.85rem 0.75rem 0.75rem;
    border-radius: 12px;
  }
  .vehicle-card-header {
    margin-bottom: 0.35rem;
  }
  .vehicle-name {
    font-size: 1.15rem;
    line-height: 1.15;
  }
  .vehicle-category-sub {
    font-size: 0.68rem;
    margin-top: 1px;
  }
  .vehicle-img-wrap {
    height: 85px;
    margin: 0.25rem 0 0.5rem;
  }
  .vehicle-specs-pills {
    gap: 0.25rem;
    margin-bottom: 0.65rem;
  }
  .spec-pill {
    font-size: 0.62rem;
    padding: 1px 5px;
  }
  .vehicle-card-footer {
    padding-top: 0.5rem;
  }
  .vehicle-price {
    font-size: 0.95rem;
  }
  .vehicle-price-period {
    font-size: 0.68rem;
  }
  .btn-card-book {
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
  }
}
