/*
Theme Name: Amtrains Rail
Theme URI: https://amtraiins.com/
Author: Admin
Description: Custom clean, modern, and responsive rail booking & travel theme inspired by Amtrak.
Version: 1.1
*/

:root {
  --primary-color: #0b2545;      
  --secondary-color: #134074;  
  --accent-color: #d90429;    
  --accent-hover: #b80322;
  --light-bg: #f8f9fa;       
  --text-dark: #1d2d44;      
  --text-muted: #6c757d;          
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

html{
	margin-top:0px!important;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
/*   padding: 8px 0; */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-links a, 
.user-actions a {
  margin-right: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.top-links a:hover, 
.user-actions a:hover {
  color: var(--white);
}

.btn-outline-sm {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border-radius: 4px;
}

.btn-outline-sm:hover {
  background: var(--white);
  color: var(--primary-color) !important;
}

/* ==========================================================================
   MAIN NAVIGATION
   ========================================================================== */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.logo i {
  color: var(--accent-color);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--secondary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* ==========================================================================
   HERO & BOOKING ENGINE
   ========================================================================== */
.hero-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1515165562839-978bbcf18277?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  padding: 60px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.75) 0%, rgba(11, 37, 69, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  color: var(--white);
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-text .badge {
  background-color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 15px 0;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* BOOKING CARD (CLEAN SINGLE-FORM STRUCTURE) */
.booking-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.booking-header h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-form {
  display: block;
}

.trip-type {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.trip-type label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group input, 
.input-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background-color: var(--white);
}

.input-group input:focus, 
.input-group select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.1);
}



/* ==========================================================================
   FEATURES BAR
   ========================================================================== */
.features-bar {
  background-color: var(--light-bg);
  padding: 35px 0;
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-item i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.feature-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DESTINATIONS SECTION
   ========================================================================== */
.destinations-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  background: var(--white);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-img {
  position: relative;
  height: 200px;
}

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

.card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(11, 37, 69, 0.85);
  color: var(--white);
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price strong {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.btn-link {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   DEALS & OFFERS
   ========================================================================== */
.deals-section {
  padding-bottom: 80px;
}

.deals-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  padding: 50px;
  color: var(--white);
}

.badge-accent {
  background-color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.deals-content h2 {
  font-size: 2rem;
  margin: 15px 0 10px;
}

.deals-content p {
  opacity: 0.9;
  margin-bottom: 25px;
  max-width: 500px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  color: var(--white);
  display: inline-block;
  margin-bottom: 15px;
}

.brand-col p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 300px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 8px;
  color: var(--white);
}

.social-links a:hover {
  background-color: var(--accent-color);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.85rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-links a {
  margin-left: 15px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
	.hero-text {
		display:none ;
	}
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .booking-card {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .legal-links a {
    margin: 0 8px;
  }
}