/* Rail Ramblers - Shared Stylesheet (rail-themed) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2b2b2b;
  line-height: 1.6;
  background: #fafaf6;
}

a { text-decoration: none; color: inherit; }

/* Top utility bar */
.utility-bar {
  background: #2d1f1a;
  color: #f5e7d8;
  font-size: 14px;
  padding: 8px 0;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.utility-bar .left span { margin-right: 18px; }
.utility-bar a { color: #f4c66b; font-weight: 600; }

/* Header */
header {
  background: #fff;
  border-bottom: 3px solid #6b2e2a;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #6b2e2a;
}
.logo .train-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg,#6b2e2a,#3d1a18);
  border-radius: 10px;
  color: #f4c66b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #8a7560;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-size: 15px;
  color: #2b2b2b;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
nav a:hover, nav a.active { color: #6b2e2a; }
nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: #6b2e2a;
}

.header-tfn {
  background: linear-gradient(135deg,#2e7d4f,#1e5a37);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(30,90,55,0.3);
}
.header-tfn small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.6px;
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(45,31,26,0.88), rgba(107,46,42,0.82)),
              url('https://images.unsplash.com/photo-1474487548417-781cb71495f3?auto=format&fit=crop&w=1600&q=60');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: 0.3px;
}
.hero p {
  font-size: 18px;
  max-width: 740px;
  margin: 0 auto 30px;
  opacity: 0.95;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #f4c66b;
  color: #3d1a18;
}
.btn-primary:hover { background: #f0b94d; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: #6b2e2a; }

/* Sections */
section { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  color: #3d1a18;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: #6b5a4a;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 16px;
}

/* Cards / Services grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  padding: 30px 24px;
  box-shadow: 0 4px 16px rgba(60,40,30,0.07);
  border: 1px solid #f0e6d8;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(60,40,30,0.12);
}
.card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,#2e7d4f,#1e5a37);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 19px;
  color: #3d1a18;
  margin-bottom: 10px;
}
.card p {
  color: #6b5a4a;
  font-size: 14px;
}

/* Features */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.feature {
  text-align: center;
  padding: 20px;
}
.feature .icon {
  margin: 0 auto 14px;
}
.feature h4 {
  color: #3d1a18;
  margin-bottom: 8px;
  font-size: 17px;
}
.feature p {
  font-size: 14px;
  color: #6b5a4a;
}

/* Routes strip */
.routes-strip {
  background: #fff;
  padding: 50px 0;
  border-top: 1px solid #f0e6d8;
  border-bottom: 1px solid #f0e6d8;
}
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.route-pill {
  background: #fdf8f0;
  border: 1px solid #f0e6d8;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: #6b5a4a;
}
.route-pill strong {
  display: block;
  color: #3d1a18;
  font-size: 16px;
  margin-bottom: 4px;
}

/* Page banner (for inner pages) */
.page-banner {
  background: linear-gradient(135deg, #3d1a18, #6b2e2a);
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}
.page-banner h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.breadcrumb {
  font-size: 14px;
  opacity: 0.9;
}
.breadcrumb a { color: #f4c66b; }

/* Content / Legal */
.content {
  background: #fff;
  padding: 50px 0;
}
.content .container {
  max-width: 900px;
}
.content h2 {
  color: #3d1a18;
  margin: 30px 0 12px;
  font-size: 22px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f0e6d8;
}
.content h3 {
  color: #6b2e2a;
  margin: 22px 0 10px;
  font-size: 17px;
}
.content p, .content li {
  color: #3d3329;
  font-size: 15px;
  margin-bottom: 12px;
}
.content ul, .content ol { margin: 8px 0 14px 22px; }
.content .updated {
  color: #8a7560;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 20px;
}
.callout {
  background: #fdf4e3;
  border-left: 4px solid #f4c66b;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 14px;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-box {
  background: #fdf8f0;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #f0e6d8;
}
.contact-info-box h3 {
  color: #3d1a18;
  margin-bottom: 16px;
}
.contact-info-box .info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.contact-info-box .info-item .ic {
  background: #6b2e2a;
  color: #f4c66b;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-info-box .info-item strong { display: block; color: #3d1a18; font-size: 14px; }
.contact-info-box .info-item span { color: #6b5a4a; font-size: 14px; }

form .field { margin-bottom: 16px; }
form label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #3d1a18;
  font-weight: 600;
}
form input, form select, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0d4c0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: #6b2e2a;
  box-shadow: 0 0 0 3px rgba(107,46,42,0.1);
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg,#2e7d4f,#1e5a37);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.cta-strip h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.cta-strip p { margin-bottom: 22px; opacity: 0.95; font-size: 16px; }
.cta-strip .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta-strip .btn-outline:hover { background: #fff; color: #1e5a37; }

/* Footer */
footer {
  background: #2d1f1a;
  color: #d4c4b0;
  padding: 50px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #f4c66b;
  margin-bottom: 16px;
  font-size: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: #f4c66b; }
.footer-contact p { margin-bottom: 8px; }
.footer-contact a.tfn {
  color: #f4c66b;
  font-weight: 700;
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}
.footer-disclaimer {
  border-top: 1px solid #4a352b;
  margin-top: 40px;
  padding: 24px 0;
  font-size: 12px;
  color: #a99680;
  line-height: 1.7;
}
.footer-bottom {
  background: #1a110d;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #8a7560;
}
.footer-bottom a { color: #f4c66b; }

/* Responsive */
@media (max-width: 700px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  nav ul { gap: 14px; }
  .header-inner { justify-content: center; }
}
