/* ============================================================
   Sreenivasa Cabs — Modern Enhancements CSS (2026)
   ============================================================ */

/* ── Google Font: Poppins for headings ──────────────────── */
h1, h2, h3, h4, .stat-number {
  font-family: 'Poppins', 'Lato', sans-serif;
}

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  --primary:   #088c18;
  --primary-dark: #066612;
  --accent:    #f5a623;
  --whatsapp:  #25d366;
  --whatsapp-dark: #1da851;
  --text-dark: #222222;
  --text-mid:  #555555;
  --bg-light:  #f8f9fa;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --radius:    10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Smooth Scroll ──────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Hero / Teaser Section Upgrade ─────────────────────── */
#teaser {
  background: linear-gradient(135deg, #1a3a1f 0%, #0d5216 40%, #088c18 70%, #a8d5ac 100%) !important;
  filter: none !important;
}

#teaser .title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

#teaser .subtitle {
  color: #d4f5d9 !important;
  font-size: 20px;
}

#teaser .reservation-form-shadow {
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(8,140,24,0.08) !important;
  overflow: hidden;
}

/* ── Booking Form Button ────────────────────────────────── */
#teaser form .submit {
  border-radius: 6px !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  letter-spacing: 0.5px;
  font-size: 18px !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(8,140,24,0.35) !important;
}
#teaser form .submit:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #044d0e 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8,140,24,0.45) !important;
}

/* ── Header Phone Number Links ──────────────────────────── */
.header-info .contact a {
  color: inherit;
  text-decoration: none;
}
.header-info .contact a:hover {
  color: var(--primary);
}

/* ── WhatsApp Header Button ─────────────────────────────── */
.whatsapp-header {
  margin-left: 16px;
  margin-top: 8px;
}
.btn-whatsapp-header {
  display: inline-block;
  background: var(--whatsapp);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 24px;
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(37,211,102,0.4);
}
.btn-whatsapp-header:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.55);
}
.icon-whatsapp {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.13em;
  fill: currentColor;
}
.btn-whatsapp-header .fa,
.btn-whatsapp-header .icon-whatsapp {
  margin-right: 5px;
  font-size: 16px;
}

/* ── NavBar WhatsApp link ───────────────────────────────── */
.nav-whatsapp {
  color: var(--whatsapp) !important;
  font-weight: 700 !important;
}
.nav-whatsapp .icon-whatsapp {
  margin-right: 4px;
}
.nav-whatsapp:hover {
  background-color: var(--whatsapp) !important;
  color: #fff !important;
  border-color: var(--whatsapp) !important;
}

/* ── Service Boxes Upgrade ──────────────────────────────── */
.service-box {
  border-radius: var(--radius);
  background: #fff;
  padding: 30px 28px !important;
  box-shadow: var(--shadow);
  border: 1px solid #e8f5e9;
  transition: var(--transition);
  height: 100%;
  margin-bottom: 24px;
}
.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(8,140,24,0.15);
  border-color: var(--primary);
}
.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}
.service-box:hover .service-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.service-icon i {
  color: var(--primary);
  font-size: 28px !important;
  transition: var(--transition);
}
.service-box:hover .service-icon i {
  color: #fff;
}
.service-title {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
}
.service-content {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ── Services Grid Alignment Fix ────────────────────────── */
#services .service-grid > [class*="col-"] {
  margin-bottom: 24px;
}

#services .service-grid .service-box {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  #services .service-grid {
    display: flex;
    flex-wrap: wrap;
  }

  #services .service-grid > [class*="col-"] {
    float: none;
    display: flex;
    margin-bottom: 24px;
  }

  #services .service-grid .service-box {
    width: 100%;
    margin-bottom: 0;
  }
}

/* ── Stats / Trust Badges Section ───────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 0;
  margin: 0 0 60px 0;
}
.stat-box {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.stat-box:last-child {
  border-right: none;
}
.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
@media (max-width: 767px) {
  .stat-box {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
    padding-bottom: 20px;
  }
  .stat-box:last-child { border-bottom: none; }
  .stat-number { font-size: 36px; }
}

/* ── Tariff Table Upgrade ───────────────────────────────── */
#vehicles .table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
}
#vehicles .vehicle-price td {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  vertical-align: middle;
  padding: 12px 8px;
}
#vehicles .table tbody tr:hover {
  background-color: #e8f5e9;
  transition: background 0.2s;
}
#vehicles .info2 {
  font-weight: 700;
  background: #f1f8f2;
  color: var(--primary-dark);
}

/* ── Testimonials / Reviews Section ────────────────────── */
.reviews-section {
  background: var(--bg-light);
  padding: 70px 0;
}
.reviews-section .title h2,
.reviews-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.reviews-section .underline {
  height: 4px;
  width: 80px;
  background: var(--primary);
  display: block;
  margin: 0 auto 40px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(8,140,24,0.15);
}
.review-stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 14px;
}
.review-stars .fa {
  margin-right: 2px;
}
.review-text {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.75;
  flex-grow: 1;
  font-style: italic;
  margin-bottom: 18px;
}
.review-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
  padding-top: 14px;
}
.review-author strong {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
}
.review-author span {
  color: var(--primary);
  font-size: 13px;
  margin-top: 2px;
}

/* ── Contact Section ────────────────────────────────────── */
#contact .form-control {
  border-radius: 6px;
  border: 1.5px solid #ddd;
  transition: border-color 0.2s;
}
#contact .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,140,24,0.12);
}
.submit-message {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 6px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 15px rgba(8,140,24,0.3);
}
.submit-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8,140,24,0.45);
  background: var(--primary-dark);
}

/* ── Footer Upgrades ────────────────────────────────────── */
footer {
  background: #1a1a1a;
  padding: 36px 0 24px;
}
footer .footer-nav li a {
  color: #ccc;
  transition: color 0.2s;
}
footer .footer-nav li a:hover {
  color: var(--primary);
}
footer .footer-social {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}
footer .footer-social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ccc;
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition);
}
footer .footer-social li a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
footer .footer-social li a[href*="whatsapp"]:hover {
  background: var(--whatsapp);
}
footer .copyright {
  color: #888;
  font-size: 13px;
  margin-top: 8px;
}

/* ── WhatsApp Floating Button ───────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.55);
  text-decoration: none !important;
  transition: var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float .fa,
.whatsapp-float .icon-whatsapp {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.7);
}
.whatsapp-tooltip {
  display: none;
  position: absolute;
  right: 68px;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.whatsapp-float:hover .whatsapp-tooltip {
  display: block;
}
@keyframes pulse-whatsapp {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ── Scroll-to-Top Button (already exists, just style better) */
.scrollup {
  background: var(--primary) !important;
  border-radius: 8px;
  bottom: 100px !important;
  right: 28px !important;
  z-index: 99999 !important;
  width: 44px;
  height: 44px;
  text-indent: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.scrollup:hover { opacity: 1; }

/* ── Section Title Underlines ───────────────────────────── */
#services h2,
#vehicles h2,
#contact h2,
.reviews-section .title h2,
.reviews-section h2 {
  font-size: 42px;
  color: var(--text-dark) !important;
}

/* ── General Responsive Tweaks ──────────────────────────── */
@media (max-width: 992px) {
  .whatsapp-header { display: none; }
  #teaser { height: auto !important; padding: 50px 0 30px !important; }
  #teaser .reservation-form-shadow { height: auto !important; margin-top: 24px; }
  .stat-number { font-size: 40px; }
}
@media (max-width: 768px) {
  #teaser .title { font-size: 26px; }
  #teaser .subtitle { font-size: 16px; }
  #teaser .car-img { height: 220px !important; line-height: 240px !important; }
  .reviews-section h2,
  #services h2,
  #vehicles h2 { font-size: 30px; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 16px; }
  .whatsapp-float .fa,
  .whatsapp-float .icon-whatsapp { font-size: 26px; }
}

/* ── Tariff section spacing ─────────────────────────────── */
#vehicles {
  margin-top: 0;
  padding-top: 60px;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.tariff-card {
  background: #fff;
  border: 1px solid #e7edf3;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 8px 22px rgba(15, 36, 84, 0.06);
  transition: var(--transition);
}

.tariff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 36, 84, 0.12);
  border-color: rgba(10, 150, 40, 0.2);
}

.tariff-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-dark);
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef4f7;
}

.tariff-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tariff-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #e8edf3;
  font-size: 13px;
  color: var(--text-mid);
}

.tariff-card li:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.tariff-card li strong {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tariff-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tariff-card {
    padding: 16px 14px 12px;
  }

  .tariff-card h3 {
    font-size: 17px;
  }
}
}
