/*
Theme Name: Train Reservation Call
Theme URI: https://trainreservationcall.com/
Author: Trishala
Description: Custom train reservation theme
Version: 1.0
*/
:root {
    --navy: #103b66;
    --navy-deep: #092b4d;
    --blue: #175b91;
    --red: #bf1d2d;
    --red-hover: #a91423;
    --white: #ffffff;
    --cream: #f7f6f2;
    --paper: #efeee8;
    --text: #183047;
    --muted: #687889;
    --border: #e3e7eb;
    --shadow: 0 20px 55px rgba(16, 59, 102, 0.10);
    --heading-font: "Manrope", sans-serif;
    --body-font: "DM Sans", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: var(--body-font);
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body,
input,
select,
button {
    font-family: var(--body-font);
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(191, 29, 45, 0.35);
    outline-offset: 3px;
}

.container {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.section-padding {
    padding: 110px 0;
}

.section-kicker {
    display: inline-block;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease,
                transform 0.25s ease, border-color 0.25s ease;
}

.btn span {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.btn:hover span {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
}

.btn-light:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
}

/* TOP STRIP */

.top-strip {
    background: var(--navy-deep);
    color: #dce8f2;
    font-size: 11px;
    letter-spacing: 0.2px;
}

.top-strip-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-strip-inner > span:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #e0b66d;
    border-radius: 50%;
}

.top-contact a {
    color: var(--white);
    font-weight: 700;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #edf0f3;
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 83px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.brand-icon {
    display: flex;
    width: 41px;
    height: 41px;
    color: var(--red);
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    color: var(--navy);
    font-family: var(--heading-font);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.9px;
    white-space: nowrap;
}

.brand-text > span {
    color: var(--red);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.1vw, 29px);
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: #45586a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-btn {
    min-height: 44px;
    padding: 10px 16px;
    gap: 10px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease;
}

.menu-toggle.menu-open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.menu-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.menu-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO */

.hero {
    position: relative;
    display: flex;
    min-height: 610px;
    align-items: center;
    overflow: hidden;
    background: #193f61;
    color: var(--white);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    background-image: url("https://images.unsplash.com/photo-1474487548417-781cb71495f3?auto=format&fit=crop&w=2000&q=90");
    background-position: center 53%;
    background-size: cover;
    transform: scale(1.015);
    animation: heroReveal 1s ease-out both;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 28, 50, 0.91) 0%, rgba(8, 38, 65, 0.76) 40%, rgba(8, 38, 65, 0.22) 78%, rgba(8, 38, 65, 0.12) 100%),
        linear-gradient(0deg, rgba(5, 24, 42, 0.44), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 55px;
    padding-bottom: 115px;
}

.hero-copy {
    max-width: 690px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.hero-eyebrow {
    color: #f1d7d8;
}

.eyebrow-line {
    width: 34px;
    height: 2px;
    background: #e65a67;
}

.hero h1 {
    margin-top: 23px;
    font-family: var(--heading-font);
    font-size: clamp(43px, 5.5vw, 76px);
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 1.09;
}

.hero h1 span {
    color: #f1c9ca;
}

.hero-copy > p {
    max-width: 490px;
    margin-top: 24px;
    color: #e3ebf1;
    font-size: 16px;
    line-height: 1.9;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 28px;
    color: #f5f7fa;
    font-size: 12px;
    font-weight: 600;
}

.hero-points > span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check-circle {
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: 11px;
}

.hero-caption {
    position: absolute;
    right: 32px;
    bottom: 108px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0f2f4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.caption-line {
    width: 27px;
    height: 1px;
    background: var(--white);
}

.hero-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: rgba(6, 30, 51, 0.67);
    border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.hero-bottom-inner {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #e3eaf0;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.7px;
}

.hero-bottom-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-bottom-right span {
    color: #f0b7bd;
    font-size: 18px;
}

@keyframes heroReveal {
    from {
        opacity: 0.65;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1.015);
    }
}

/* BOOKING PANEL */

.booking-section {
    position: relative;
    z-index: 5;
    padding-bottom: 35px;
    background: var(--cream);
}

.booking-card {
    position: relative;
    margin-top: -65px;
    padding: 33px 35px 21px;
    border: 1px solid rgba(227, 231, 235, 0.9);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.booking-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.booking-heading h2 {
    margin-top: 7px;
    color: var(--navy);
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.4;
}

.booking-heading p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.booking-train-icon {
    display: flex;
    width: 51px;
    height: 51px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fbecef;
    color: var(--red);
    font-size: 25px;
}

.train-search-form {
    display: grid;
    grid-template-columns: 1.25fr 30px 1.25fr 1fr 0.85fr auto;
    align-items: end;
    gap: 13px;
}

.field-group {
    min-width: 0;
}

.field-group label {
    display: block;
    margin-bottom: 9px;
    color: #5f7080;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.field-control {
    display: flex;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #dce2e7;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-control:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 91, 145, 0.08);
}

.field-icon {
    flex-shrink: 0;
    color: var(--red);
    font-size: 19px;
    line-height: 1;
}

.field-control input,
.field-control select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 11px;
}

.field-control input::placeholder {
    color: #9aa5af;
}

.field-control input:focus,
.field-control select:focus {
    outline: none;
}

.field-control select {
    cursor: pointer;
}

.swap-stations {
    display: flex;
    width: 30px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    border: 0;
    background: transparent;
    color: var(--red);
    font-size: 22px;
    transition: transform 0.25s ease;
}

.swap-stations:hover {
    transform: rotate(180deg);
}

.search-btn {
    min-height: 52px;
    padding-inline: 16px;
    gap: 10px;
    white-space: nowrap;
    font-size: 12px;
}

.booking-footnote {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: #84909c;
    font-size: 10px;
}

.booking-footnote span {
    color: var(--red);
}

.search-feedback {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #d5e5f2;
    border-radius: 5px;
    background: #f2f8fc;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.search-feedback.feedback-visible {
    display: block;
}

/* SECTION HEADINGS */

.section-heading h2 {
    margin-top: 13px;
    color: var(--navy);
    font-family: var(--heading-font);
    font-size: clamp(35px, 4.1vw, 51px);
    font-weight: 700;
    letter-spacing: -2.2px;
    line-height: 1.18;
}

.section-heading h2 span {
    color: var(--red);
}

.split-heading {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: end;
    gap: 65px;
    margin-bottom: 44px;
}

.heading-description {
    max-width: 435px;
    padding-bottom: 6px;
}

.heading-description > p,
.routes-heading > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.95;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 19px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0b2b6;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.text-link span {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translate(3px, -3px);
}

/* JOURNEY VISUALS */

.journey-section {
    background: var(--cream);
}

.journey-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 24px;
}

.journey-card {
    position: relative;
    min-width: 0;
    height: 435px;
    overflow: hidden;
    background: var(--navy);
}

.journey-card-large {
    height: 465px;
}

.journey-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.journey-card:hover img {
    transform: scale(1.055);
}

.journey-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 26, 44, 0.87), rgba(5, 26, 44, 0.04) 75%);
    content: "";
}

.journey-card-content {
    position: absolute;
    right: 28px;
    bottom: 30px;
    left: 28px;
    z-index: 2;
    color: var(--white);
}

.image-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #f2c5c9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.journey-card-content h3 {
    font-family: var(--heading-font);
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -1.3px;
    line-height: 1.2;
}

.journey-card-small .journey-card-content h3 {
    font-size: clamp(24px, 2.5vw, 32px);
}

.journey-card-content p {
    margin-top: 12px;
    color: #e0e8ef;
    font-size: 12px;
}

/* ROUTE CARDS */

.routes-section {
    background: var(--white);
}

.routes-heading {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 45px;
}

.routes-heading > p {
    max-width: 420px;
    padding-bottom: 6px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.route-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 59, 102, 0.10);
}

.route-image {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: #e9edf1;
}

.route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.route-card:hover .route-image img {
    transform: scale(1.06);
}

.route-number {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(10, 38, 61, 0.65);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.route-info {
    padding: 23px 22px 21px;
}

.route-category {
    color: var(--red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.route-info h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--navy);
    font-family: var(--heading-font);
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.5;
}

.route-arrow {
    color: var(--red);
    font-size: 17px;
}

.route-info > p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.route-select {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.route-select span {
    color: var(--red);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.route-select:hover span {
    transform: translate(3px, -3px);
}

.routes-disclaimer {
    margin-top: 22px;
    color: #87929c;
    font-size: 11px;
    line-height: 1.8;
}

/* FEATURE BANNER */

.feature-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 485px;
    background: var(--navy);
    color: var(--white);
}

.feature-image {
    min-height: 485px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 70px clamp(35px, 7vw, 105px);
    background: var(--navy);
}

.feature-content .section-kicker {
    color: #f0b7bd;
}

.feature-content h2 {
    margin-top: 18px;
    font-family: var(--heading-font);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.2;
}

.feature-content > p {
    max-width: 410px;
    margin-top: 20px;
    color: #d7e3ed;
    font-size: 13px;
    line-height: 2;
}

.feature-content .btn {
    margin-top: 27px;
}

.feature-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
    color: #d7e3ed;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.1px;
}

.feature-note span {
    color: #f0b7bd;
    font-size: 12px;
}

/* BENEFITS */

.benefits-section {
    background: var(--cream);
}

.centered-heading {
    max-width: 620px;
    margin: 0 auto 55px;
    text-align: center;
}

.centered-heading h2 {
    margin-top: 13px;
}

.centered-heading > p {
    max-width: 470px;
    margin: 17px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.benefit-card {
    padding: 34px 29px 33px;
    border: 1px solid #e7e8e4;
    background: var(--white);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: #d8b0b5;
}

.benefit-icon {
    display: flex;
    width: 57px;
    height: 57px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #fbedef;
    color: var(--red);
}

.benefit-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-index {
    display: block;
    margin-top: 27px;
    color: #8995a0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.benefit-card h3 {
    margin-top: 8px;
    color: var(--navy);
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.benefit-card > p {
    margin-top: 11px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.95;
}

/* CLOSING CTA */

.closing-cta {
    position: relative;
    display: flex;
    min-height: 420px;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.closing-cta-image {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(7, 35, 59, 0.93), rgba(7, 35, 59, 0.69) 55%, rgba(7, 35, 59, 0.36)),
        url("https://images.unsplash.com/photo-1502481851512-e9e2529bfbf9?auto=format&fit=crop&w=1900&q=85");
    background-position: center;
    background-size: cover;
}

.closing-cta-content {
    position: relative;
    z-index: 1;
    padding-top: 75px;
    padding-bottom: 75px;
}

.closing-cta .section-kicker {
    color: #f0b7bd;
}

.closing-cta h2 {
    margin-top: 17px;
    font-family: var(--heading-font);
    font-size: clamp(37px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -2.6px;
    line-height: 1.15;
}

.closing-cta h2 span {
    color: #f0b7bd;
}

.closing-cta p {
    margin-top: 18px;
    color: #e1eaf1;
    font-size: 14px;
}

.closing-cta .btn {
    margin-top: 27px;
}

/* FOOTER */

.site-footer {
    background: #f5f6f7;
    color: var(--text);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.35fr 0.7fr 0.9fr 1.15fr;
    gap: 45px;
    padding-top: 66px;
    padding-bottom: 55px;
}

.footer-brand .brand-icon {
    width: 38px;
    height: 38px;
}

.footer-brand .brand-text {
    font-size: 17px;
}

.footer-brand-column > p {
    max-width: 265px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-column h4 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.footer-column > a {
    color: #667686;
    font-size: 11px;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
}

.footer-column > a:hover {
    color: var(--red);
}

.footer-column > p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.footer-column > p.footer-small {
    font-size: 10px;
    color: #87929c;
}

.footer-bottom {
    display: flex;
    min-height: 61px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #dfe4e8;
    color: #7b8894;
    font-size: 10px;
}

.footer-disclaimer {
    padding-top: 0;
    padding-bottom: 25px;
    color: #7b8894;
    font-size: 10px;
    line-height: 1.8;
}

/* RESPONSIVE: LAPTOP */

@media (max-width: 1100px) {
    .container {
        width: min(100% - 48px, 1000px);
    }

    .navbar {
        gap: 18px;
    }

    .brand-text {
        font-size: 17px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .main-nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 11px;
    }

    .header-btn {
        padding-inline: 12px;
        font-size: 11px;
    }

    .train-search-form {
        grid-template-columns: 1fr 30px 1fr 1fr;
        row-gap: 20px;
    }

    .station-field:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .swap-stations {
        grid-column: 2;
        grid-row: 1;
    }

    .station-field:nth-of-type(2) {
        grid-column: 3 / 5;
        grid-row: 1;
    }

    .date-field {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .passenger-field {
        grid-column: 3;
        grid-row: 2;
    }

    .search-btn {
        grid-column: 4;
        grid-row: 2;
    }

    .footer-main {
        gap: 28px;
    }
}

/* RESPONSIVE: TABLET */

@media (max-width: 820px) {
    .container {
        width: calc(100% - 40px);
    }

    .section-padding {
        padding: 80px 0;
    }

    .navbar {
        min-height: 73px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--border);
        background: var(--white);
        box-shadow: 0 15px 25px rgba(16, 59, 102, 0.08);
    }

    .main-nav.nav-open {
        display: flex;
    }

    .nav-link {
        padding: 13px 5px;
        border-bottom: 1px solid #eef1f3;
        font-size: 13px;
    }

    .nav-link::after {
        display: none;
    }

    .header-btn {
        min-height: 42px;
    }

    .hero {
        min-height: 565px;
    }

    .hero h1 {
        font-size: clamp(43px, 7vw, 64px);
        letter-spacing: -2.7px;
    }

    .hero-copy {
        max-width: 600px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(5, 28, 50, 0.91), rgba(8, 38, 65, 0.57)),
            linear-gradient(0deg, rgba(5, 24, 42, 0.4), transparent);
    }

    .booking-card {
        padding: 27px 24px 20px;
    }

    .booking-heading h2 {
        font-size: 23px;
    }

    .split-heading,
    .routes-heading {
        gap: 30px;
    }

    .journey-grid {
        grid-template-columns: 1fr 0.8fr;
        gap: 16px;
    }

    .journey-card,
    .journey-card-large {
        height: 385px;
    }

    .journey-card-content {
        right: 20px;
        bottom: 23px;
        left: 20px;
    }

    .journey-card-content h3 {
        font-size: 29px;
    }

    .journey-card-small .journey-card-content h3 {
        font-size: 25px;
    }

    .routes-grid {
        gap: 15px;
    }

    .route-image {
        height: 185px;
    }

    .route-info {
        padding: 19px 15px;
    }

    .route-info h3 {
        font-size: 17px;
    }

    .feature-content {
        padding: 55px 35px;
    }

    .feature-content h2 {
        font-size: 36px;
    }

    .benefits-grid {
        gap: 15px;
    }

    .benefit-card {
        padding: 25px 19px;
    }

    .benefit-card h3 {
        font-size: 18px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 38px;
    }
}

/* RESPONSIVE: MOBILE */

@media (max-width: 560px) {
    .container {
        width: calc(100% - 34px);
    }

    .section-padding {
        padding: 65px 0;
    }

    .top-strip-inner {
        min-height: 35px;
    }

    .top-strip-inner > span:first-child {
        font-size: 10px;
    }

    .top-contact {
        font-size: 10px;
    }

    .navbar {
        min-height: 68px;
        gap: 10px;
    }

    .brand {
        gap: 7px;
    }

    .brand-icon {
        width: 33px;
        height: 33px;
    }

    .brand-text {
        font-size: 16px;
        letter-spacing: -0.8px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .header-btn {
        display: none;
    }

    .hero {
        min-height: 560px;
        align-items: flex-start;
    }

    .hero-image {
        background-position: 57% center;
    }

    .hero-content {
        padding-top: 79px;
        padding-bottom: 95px;
    }

    .hero h1 {
        margin-top: 20px;
        font-size: clamp(39px, 10vw, 52px);
        letter-spacing: -2.2px;
        line-height: 1.13;
    }

    .hero-copy > p {
        max-width: 360px;
        margin-top: 19px;
        font-size: 14px;
        line-height: 1.9;
    }

    .hero-points {
        flex-direction: column;
        gap: 12px;
        margin-top: 23px;
    }

    .hero-caption {
        display: none;
    }

    .hero-bottom-inner {
        min-height: 47px;
        font-size: 8px;
        letter-spacing: 0.9px;
    }

    .hero-bottom-right {
        gap: 6px;
    }

    .hero-bottom-right span {
        font-size: 15px;
    }

    .booking-section {
        padding-bottom: 20px;
    }

    .booking-card {
        margin-top: -40px;
        padding: 24px 17px 18px;
        border-radius: 6px;
    }

    .booking-heading {
        margin-bottom: 22px;
    }

    .booking-heading h2 {
        font-size: 22px;
        letter-spacing: -0.8px;
    }

    .booking-heading p {
        font-size: 12px;
    }

    .booking-train-icon {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .train-search-form {
        grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr);
        gap: 15px 8px;
    }

    .station-field:first-child {
        grid-column: 1 / 4;
        grid-row: 1;
    }

    .swap-stations {
        display: flex;
        grid-column: 1 / 4;
        grid-row: 2;
        width: 100%;
        height: 22px;
        margin: -8px 0;
        font-size: 22px;
        transform: rotate(90deg);
    }

    .swap-stations:hover {
        transform: rotate(270deg);
    }

    .station-field:nth-of-type(2) {
        grid-column: 1 / 4;
        grid-row: 3;
    }

    .date-field {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .passenger-field {
        grid-column: 3;
        grid-row: 4;
    }

    .field-group label {
        font-size: 9px;
        letter-spacing: 0.7px;
    }

    .field-control {
        min-height: 48px;
        gap: 7px;
        padding: 0 9px;
    }

    .field-control input,
    .field-control select {
        font-size: 11px;
    }

    .field-icon {
        font-size: 16px;
    }

    .search-btn {
        grid-column: 1 / 4;
        grid-row: 5;
        width: 100%;
        min-height: 49px;
    }

    .booking-footnote {
        align-items: flex-start;
        font-size: 10px;
        line-height: 1.7;
    }

    .split-heading,
    .routes-heading {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 39px;
        letter-spacing: -1.8px;
    }

    .heading-description > p,
    .routes-heading > p {
        font-size: 13px;
    }

    .heading-description {
        padding-bottom: 0;
    }

    .journey-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .journey-card,
    .journey-card-large {
        height: 360px;
    }

    .journey-card-small {
        height: 320px;
    }

    .journey-card-content h3,
    .journey-card-small .journey-card-content h3 {
        font-size: 30px;
    }

    .routes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .route-image {
        height: 225px;
    }

    .route-info {
        padding: 22px 20px;
    }

    .route-info h3 {
        font-size: 21px;
    }

    .route-info > p {
        font-size: 13px;
    }

    .feature-band {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 280px;
        height: 280px;
    }

    .feature-content {
        padding: 48px 24px;
    }

    .feature-content h2 {
        font-size: 37px;
    }

    .feature-content > p {
        font-size: 13px;
    }

    .feature-note {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .centered-heading {
        margin-bottom: 35px;
    }

    .centered-heading h2 {
        font-size: 35px;
    }

    .centered-heading > p {
        font-size: 12px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .benefit-card {
        padding: 26px 23px;
    }

    .benefit-card h3 {
        font-size: 20px;
    }

    .benefit-card > p {
        font-size: 13px;
    }

    .closing-cta {
        min-height: 390px;
    }

    .closing-cta-content {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .closing-cta h2 {
        font-size: 39px;
        letter-spacing: -1.7px;
    }

    .closing-cta p {
        max-width: 300px;
        font-size: 13px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
        padding-top: 47px;
        padding-bottom: 38px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
    }

    .footer-brand-column > p {
        max-width: 310px;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        min-height: 75px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .footer-disclaimer {
        padding-bottom: 20px;
    }
}

/* SMALL MOBILE */

@media (max-width: 370px) {
    .container {
        width: calc(100% - 26px);
    }

    .brand-text {
        font-size: 14px;
    }

    .top-contact {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero-bottom-inner {
        font-size: 7px;
    }

    .booking-card {
        padding-inline: 13px;
    }

    .booking-heading h2 {
        font-size: 20px;
    }

    .booking-train-icon {
        width: 36px;
        height: 36px;
    }

    .train-search-form {
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    }

    .field-control {
        padding-inline: 7px;
    }

    .field-control input,
    .field-control select {
        font-size: 10px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .route-info h3 {
        font-size: 18px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
