/* ==========================================================================
   CHENNAI TRAVELLERS (POWERED BY SARA CAB) - MASTER STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary-color: #0f172a;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1da851;
  --dark-bg: #090d16;
  --card-bg: #1e293b;
  --card-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --light-bg: #f8fafc;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(30, 41, 59, 0.75);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 80px; /* space for sticky mobile bar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Header & Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

/* Dropdown Menu Styling */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  list-style: none !important;
  margin: 0;
  z-index: 999;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block !important;
}

.dropdown-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.dropdown-menu li a {
  display: block !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.9rem !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--accent-gold) !important;
}



.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 2rem;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 50%);
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quote Widget */
.quote-widget {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.widget-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--brand-blue);
  color: #fff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Section Containers */
.section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.2rem;
  color: #fff;
  margin-top: 6px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-specs {
  display: flex;
  gap: 12px;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 1rem;
}

/* Tariff Table */
.tariff-table-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table.tariff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.tariff-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--card-border);
}

table.tariff-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

/* Dynamic Tariff Calculator */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.calc-result-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.calc-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* Sticky Mobile Conversion Bar */
.mobile-conversion-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #0f172a;
  border-top: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  gap: 10px;
}

.mobile-btn-call {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-btn-whatsapp {
  background: var(--whatsapp-green);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Footer Matrix */
footer {
  background: #030712;
  border-top: 1px solid var(--card-border);
  padding: 4rem 2rem 2rem 2rem;
  color: var(--text-muted);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  /* Address block, then four link columns: pilgrimage, hill stations,
     company/fleet, and special services. */
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem;
}

.geo-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.geo-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Five columns need real width. Below that, step down rather than let the link
   text wrap mid-phrase ("Chennai Airport Group / Transfer"). */
@media (max-width: 1400px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2rem 2.5rem;
  }
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
