/*
 * City service pages (Tezpur, and the cities that follow).
 * File: assets/css/city-service.css
 *
 * Phone first. Most people reading this page are standing somewhere with a
 * bag, deciding who to ring, so the fare tables have to stay readable at
 * 360px and the call buttons have to stay reachable with one thumb.
 *
 * LAYOUT RULE
 * Headings and their opening answer are centred in a measure-limited block,
 * because centred prose wider than about 70 characters is tiring to read.
 * Everything else - tables, card grids, chips - spans the full container, so
 * no section ends with an empty right-hand third.
 *
 * Everything is prefixed cs- so it cannot collide with route.css or
 * public.css, both of which this page also loads.
 */

:root {
    --cs-brand-start: #667eea;
    --cs-brand-end: #764ba2;
    --cs-brand-deep: #5a3d8a;
    --cs-ink: #1a202c;
    --cs-ink-soft: #4a5568;
    --cs-ink-faint: #718096;
    --cs-line: #e2e8f0;
    --cs-surface: #ffffff;
    --cs-tint: #f5f6fd;
    --cs-radius: 12px;
    --cs-shadow: 0 1px 3px rgba(26, 32, 44, 0.06), 0 8px 24px rgba(26, 32, 44, 0.05);
}

/* ---------- Shell -------------------------------------------------- */

.cs-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.cs-section {
    padding: 64px 0;
    background: var(--cs-surface);
}

.cs-section-tint {
    background: var(--cs-tint);
}

.cs-section-dark {
    background: linear-gradient(135deg, var(--cs-brand-start) 0%, var(--cs-brand-end) 100%);
}

.cs-final {
    background: var(--cs-tint);
    border-top: 1px solid var(--cs-line);
}

/* The centred measure block: heading plus its opening answer. */
.cs-head {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.cs-head-tight {
    margin-top: 44px;
    margin-bottom: 22px;
}

.cs-section h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--cs-ink);
    margin: 0 0 14px;
}

.cs-head h3 {
    font-size: 1.25rem;
    color: var(--cs-ink);
    margin: 0 0 10px;
}

.cs-section-dark h2,
.cs-section-dark h3 {
    color: #ffffff;
}

.cs-answer {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--cs-ink-soft);
    margin: 0;
}

.cs-section-dark .cs-answer {
    color: rgba(255, 255, 255, 0.92);
}

.cs-note {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--cs-ink-faint);
    margin: 20px auto 0;
    max-width: 720px;
    text-align: center;
}

.cs-section-dark .cs-note {
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Hero ---------------------------------------------------- */

/* The navbar is transparent with white text until the page scrolls, so the
   first block has to be dark or the logo vanishes into it. */
.cs-hero {
    background: linear-gradient(135deg, var(--cs-brand-start) 0%, var(--cs-brand-end) 100%);
    color: #ffffff;
    padding: 104px 0 56px;
    text-align: center;
}

.cs-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.cs-breadcrumb li + li::before {
    content: "›";
    margin-right: 8px;
}

.cs-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.cs-breadcrumb a:hover {
    text-decoration: underline;
}

.cs-eyebrow {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.cs-hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 18px;
    color: #ffffff;
}

.cs-hero-copy {
    max-width: 760px;
    margin: 0 auto 30px;
}

.cs-hero .cs-answer {
    color: rgba(255, 255, 255, 0.94);
    margin: 0 0 14px;
}

.cs-hero .cs-answer:last-child {
    margin-bottom: 0;
}

/* The closing line is a hand-off to the buttons, so it reads as one. */
.cs-hero-close {
    font-weight: 600;
    color: #ffffff !important;
}

/* ---------- Buttons -------------------------------------------------- */

.cs-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.cs-hero .cs-cta {
    margin-top: 0;
}

.cs-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--cs-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cs-btn:hover {
    transform: translateY(-2px);
}

.cs-btn-call {
    background: #ffffff;
    color: var(--cs-brand-deep);
    box-shadow: var(--cs-shadow);
}

.cs-btn-wa {
    background: #25d366;
    color: #06351a;
}

.cs-btn-ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.cs-final .cs-btn-ghost {
    color: var(--cs-brand-deep);
    border-color: var(--cs-brand-start);
}

.cs-final .cs-btn-call {
    background: linear-gradient(135deg, var(--cs-brand-start) 0%, var(--cs-brand-end) 100%);
    color: #ffffff;
}

.cs-btn-primary {
    background: linear-gradient(135deg, var(--cs-brand-start) 0%, var(--cs-brand-end) 100%);
    color: #ffffff;
    box-shadow: var(--cs-shadow);
}

.cs-btn-small {
    padding: 10px 18px;
    font-size: 0.88rem;
    background: var(--cs-tint);
    color: var(--cs-brand-deep);
    border-color: var(--cs-line);
}

.cs-btn-small:hover {
    background: #ffffff;
    border-color: var(--cs-brand-start);
}

/* ---------- Tables ---------------------------------------------------- */

/* The wrapper scrolls, not the page. On a phone the fare table is wider than
   the screen and squeezing it to fit makes every column unreadable. */
.cs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    background: var(--cs-surface);
    box-shadow: var(--cs-shadow);
}

/* Tables with few columns would look stranded at full width. */
.cs-narrow {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.cs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    min-width: 620px;
}

.cs-table-narrow {
    min-width: 360px;
}

.cs-table caption {
    caption-side: bottom;
    text-align: center;
    padding: 14px 18px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--cs-ink-faint);
    border-top: 1px solid var(--cs-line);
}

.cs-table thead th {
    background: var(--cs-tint);
    text-align: left;
    padding: 14px 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cs-ink-soft);
    border-bottom: 1px solid var(--cs-line);
    white-space: nowrap;
}

.cs-seats {
    display: block;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--cs-ink-faint);
    font-weight: 400;
}

.cs-table tbody th,
.cs-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--cs-line);
    color: var(--cs-ink);
    text-align: left;
}

.cs-table tbody th {
    font-weight: 600;
    white-space: nowrap;
}

.cs-table tbody td {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cs-table tbody tr:last-child th,
.cs-table tbody tr:last-child td {
    border-bottom: none;
}

.cs-table tbody tr:hover {
    background: var(--cs-tint);
}

.cs-table a {
    color: var(--cs-brand-deep);
    text-decoration: none;
    font-weight: 600;
}

.cs-table a:hover {
    text-decoration: underline;
}

.cs-onreq {
    color: var(--cs-ink-faint);
    font-style: italic;
}

/* ---------- Route cards ------------------------------------------------ */

.cs-routes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.cs-route {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 20px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    text-decoration: none;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cs-route:hover {
    transform: translateY(-3px);
    border-color: var(--cs-brand-start);
    box-shadow: var(--cs-shadow);
}

/* Bleeds to the card edge by cancelling the card's own padding, rather than
   restructuring the card into a padded inner wrapper. */
.cs-route-img {
    display: block;
    margin: -20px -20px 4px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--cs-radius) var(--cs-radius) 0 0;
    background: var(--cs-tint);
}

/* aspect-ratio on the box reserves the space before the file arrives, so a
   lazily loaded photo cannot shove the grid down as it lands. The sources
   are 1200px wide but range from 675 to 1600 tall, so cover crops them to a
   common shape instead of letting each one set its own height. */
.cs-route-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cs-route:hover .cs-route-img img {
    transform: scale(1.05);
}

.cs-route-head {
    display: block;
}

.cs-route-to {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cs-ink);
    line-height: 1.25;
}

.cs-route-from {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cs-ink-faint);
    margin-top: 3px;
}

.cs-route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cs-route-meta span {
    font-size: 0.78rem;
    color: var(--cs-ink-soft);
    background: var(--cs-tint);
    border-radius: 999px;
    padding: 4px 10px;
}

.cs-route-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--cs-line);
}

.cs-route-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cs-brand-deep);
    font-variant-numeric: tabular-nums;
}

.cs-route-go {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cs-ink-faint);
    white-space: nowrap;
}

.cs-route:hover .cs-route-go {
    color: var(--cs-brand-start);
}

/* ---------- Fleet ------------------------------------------------------- */

.cs-fleet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cs-car {
    display: flex;
    flex-direction: column;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    overflow: hidden;
    box-shadow: var(--cs-shadow);
}

.cs-car-img {
    background: var(--cs-tint);
    padding: 12px;
}

.cs-car-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cs-car-body {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-car-body h3 {
    font-size: 1.15rem;
    color: var(--cs-ink);
    margin: 0 0 10px;
}

.cs-car-specs {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
}

.cs-car-specs li {
    font-size: 0.78rem;
    color: var(--cs-ink-soft);
    background: var(--cs-tint);
    border-radius: 999px;
    padding: 4px 12px;
}

.cs-car-body p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--cs-ink-soft);
}

.cs-car-price {
    font-weight: 700;
    color: var(--cs-brand-deep) !important;
    font-size: 1rem !important;
    margin-top: auto !important;
}

.cs-car .cs-btn-small {
    align-self: center;
}

/* ---------- Service cards ----------------------------------------------- */

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

.cs-card {
    display: flex;
    flex-direction: column;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cs-card:hover {
    transform: translateY(-3px);
    border-color: var(--cs-brand-start);
    box-shadow: var(--cs-shadow);
}

/* 2 / 1 matches the sources, so nothing is cropped away. */
.cs-card-img {
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--cs-tint);
}

.cs-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cs-card:hover .cs-card-img img {
    transform: scale(1.05);
}

.cs-card-body {
    display: block;
    padding: 18px 20px 22px;
}

.cs-card h3 {
    font-size: 1.05rem;
    color: var(--cs-ink);
    margin: 0 0 8px;
}

.cs-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--cs-ink-soft);
}

/* ---------- Pickup points and chips --------------------------------------- */

.cs-pickups {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.cs-pickups li {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-left: 3px solid var(--cs-brand-start);
    border-radius: var(--cs-radius);
    padding: 16px 18px;
    text-align: left;
}

.cs-pickup-name {
    display: block;
    font-weight: 600;
    color: var(--cs-ink);
    margin-bottom: 3px;
}

.cs-pickup-note {
    display: block;
    font-size: 0.85rem;
    color: var(--cs-ink-faint);
}

.cs-credit {
    margin: 22px auto 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--cs-ink-faint);
}

.cs-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cs-chips li {
    background: var(--cs-tint);
    border: 1px solid var(--cs-line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--cs-ink-soft);
}

/* ---------- FAQ ------------------------------------------------------------ */

/* <details> rather than a scripted accordion: the answers stay in the HTML
   for Google and for anything else that reads the page, and the control
   works with the keyboard without a line of JavaScript. */
.cs-faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.cs-faq-item {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    overflow: hidden;
}

.cs-faq-item[open] {
    border-color: var(--cs-brand-start);
}

.cs-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--cs-ink);
    position: relative;
    text-align: left;
}

.cs-faq-item summary::-webkit-details-marker {
    display: none;
}

.cs-faq-item summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    border-right: 2px solid var(--cs-brand-start);
    border-bottom: 2px solid var(--cs-brand-start);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.cs-faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.cs-faq-item summary:hover {
    background: var(--cs-tint);
}

.cs-faq-answer {
    padding: 0 20px 18px;
    text-align: left;
}

.cs-faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--cs-ink-soft);
}

/* ---------- Sticky call bar -------------------------------------------------- */

.cs-sticky {
    display: none;
}

@media (max-width: 767px) {
    .cs-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: var(--cs-line);
        box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.14);
    }

    .cs-sticky a {
        padding: 15px 10px;
        text-align: center;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
    }

    .cs-sticky-call {
        background: linear-gradient(135deg, var(--cs-brand-start) 0%, var(--cs-brand-end) 100%);
        color: #ffffff;
    }

    .cs-sticky-wa {
        background: #25d366;
        color: #06351a;
    }

    /* Keep the bar from covering the last line of the footer. */
    body {
        padding-bottom: 54px;
    }
}

/* ---------- Small screens ------------------------------------------------------ */

@media (max-width: 768px) {
    .cs-hero {
        padding: 92px 0 44px;
    }

    .cs-hero h1 {
        font-size: 1.9rem;
    }

    .cs-section {
        padding: 44px 0;
    }

    .cs-section h2 {
        font-size: 1.4rem;
    }

    .cs-head {
        margin-bottom: 28px;
    }

    .cs-answer {
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .cs-container {
        padding: 0 16px;
    }

    .cs-hero h1 {
        font-size: 1.65rem;
    }

    .cs-routes,
    .cs-pickups,
    .cs-grid,
    .cs-fleet {
        grid-template-columns: 1fr;
    }

    .cs-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-cta .cs-btn {
        text-align: center;
    }

    .cs-chips li {
        font-size: 0.82rem;
        padding: 7px 13px;
    }

    .cs-faq-item summary {
        font-size: 0.95rem;
        padding: 16px 46px 16px 16px;
    }
}

@media (min-width: 1024px) {
    .cs-hero h1 {
        font-size: 2.75rem;
    }
}

/* ---------- Plain cards (no photograph) ---------------------------------- */

/* Used by the local-service and why-book sections, where a stock photograph
   would add nothing. Same grid as the service cards, lighter treatment. */
.cs-grid-plain {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cs-plain {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-top: 3px solid var(--cs-brand-start);
    border-radius: 0 0 var(--cs-radius) var(--cs-radius);
    padding: 20px 22px 22px;
    text-align: left;
}

.cs-section-tint .cs-plain {
    background: var(--cs-surface);
}

.cs-plain h3 {
    font-size: 1.05rem;
    color: var(--cs-ink);
    margin: 0 0 8px;
}

.cs-plain p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--cs-ink-soft);
}

.cs-plain a,
.cs-head a {
    color: var(--cs-brand-deep);
    text-decoration: underline;
}
