/* ==========================================================================
   RailAssist Direct - Professional Travel Technology Design System
   High-Conversion, Clean, Trustworthy & Google Ads-Compliant Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette - Clean, Trustworthy & Professional */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --text-main: #0f172a;        /* Deep Charcoal / Dark Navy */
  --text-secondary: #334155;   /* Slate Gray */
  --text-muted: #64748b;       /* Cool Muted */
  --text-subtle: #94a3b8;      /* Dimmed Placeholder */
  
  /* Brand Accents - Professional Rail Blue #177FA6 */
  --primary: #177FA6;          /* User requested primary CTA color */
  --primary-hover: #126585;    /* Deep Rail Blue Hover */
  --primary-light: #e8f5fa;    /* Soft Tint */
  --primary-border: #bce3f2;
  
  --accent-call: #177FA6;       /* Cohesive CTA color #177FA6 */
  --accent-call-hover: #126585;
  --accent-alert: #f59e0b;     /* Amber */
  --accent-error: #ef4444;     /* Red */
  --accent-success: #10b981;   /* Emerald */

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #177FA6;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.05);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Container */
  --max-width: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(23, 127, 166, 0.25);
  transform: translateY(-1px);
}

.btn-call {
  background: #177FA6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(23, 127, 166, 0.3);
}

.btn-call:hover {
  background: #126585;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(23, 127, 166, 0.4);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
}

/* --- Sticky Header & Call Now CTA Styling --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.header-logo-img {
  height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.header-brand:hover .header-logo-img {
  transform: scale(1.02);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Premium Header Call Now CTA Button (Simple #177FA6 Combination) */
.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #177FA6;
  color: #ffffff !important;
  padding: 8px 22px 8px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(23, 127, 166, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-header-call:hover {
  background: #126585;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(23, 127, 166, 0.4);
}

.header-call-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-call-text-box {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.header-call-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d8f1fa;
}

.header-call-number {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

/* Mobile Sticky Bottom CTA Bar - ONLY CALL NOW */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-call-btn {
  width: 100%;
  height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: #177FA6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(23, 127, 166, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.mobile-sticky-call-btn:hover, .mobile-sticky-call-btn:active {
  background: #126585 !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.hero-transparent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--primary-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

/* Section Wrappers */
.section-wrapper {
  padding: 64px 0;
}

.section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

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

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 32px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

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

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 32px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Phone view: Hide menu completely, keep clean Logo + prominent Call Now button */
  .header-nav {
    display: none !important;
  }
  .header-logo-img {
    height: 40px;
    max-width: 165px;
  }
  .header-call-number {
    display: none;
  }
  .header-call-label {
    font-size: 0.82rem;
  }
  .btn-header-call {
    padding: 6px 14px 6px 8px;
  }
  
  .mobile-sticky-bar {
    display: block;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body {
    padding-bottom: 76px; /* Offset for sticky bar */
  }
  .hero-section {
    padding: 28px 0 40px;
  }
  .hero-transparent-badge {
    font-size: 0.76rem;
    padding: 6px 14px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
