/*
Theme Name: My Taxi
Theme URI: https://example.com/my-taxi
Author: OpenAI
Author URI: https://openai.com
Description: Cab booking WordPress theme inspired by modern taxi booking websites.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: my-taxi
*/

:root {
    --taxi-yellow: #ffcc29;
    --taxi-yellow-dark: #f1b800;
    --taxi-dark: #111827;
    --taxi-darker: #0b1220;
    --taxi-slate: #5f6b7a;
    --taxi-border: #e5e7eb;
    --taxi-soft: #f7f8fb;
    --taxi-white: #ffffff;
    --taxi-green: #16a34a;
    --taxi-red: #dc2626;
    --site-width: 1180px;
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--taxi-dark);
    background: var(--taxi-soft);
    line-height: 1.6;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.site-main {
    min-height: 100vh;
}

.site-shell {
    width: min(100% - 28px, var(--site-width));
    margin: 0 auto;
}

.topbar {
    background: var(--taxi-darker);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
}

.topbar .site-shell {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.site-header .site-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--taxi-yellow), #ffd95f);
    color: var(--taxi-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.site-description {
    margin: 0;
    color: var(--taxi-slate);
    font-size: 0.92rem;
}

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

.header-nav a {
    font-weight: 600;
    color: var(--taxi-dark);
}

.header-cta,
.button-link,
.booking-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-cta,
.booking-submit {
    background: var(--taxi-yellow);
    color: var(--taxi-dark);
    box-shadow: 0 16px 34px rgba(255, 204, 41, 0.34);
}

.button-link {
    background: var(--taxi-dark);
    color: var(--taxi-white);
}

.header-cta:hover,
.button-link:hover,
.booking-submit:hover {
    transform: translateY(-1px);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 13, 23, 0.58), rgba(8, 13, 23, 0.18)),
        url("assets/images/hero/booking-bg.jpg") 72% center / cover no-repeat;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 23, 0.06), rgba(8, 13, 23, 0.18));
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
    align-items: center;
    gap: 38px;
    padding: 70px 0;
}

.hero-copy {
    color: var(--taxi-white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.94rem;
    font-weight: 700;
}

.hero-title {
    margin: 18px 0 0;
    max-width: 640px;
    font-size: clamp(2.45rem, 4vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-text {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.booking-card {
    width: 100%;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
}

.booking-ribbon {
    display: block;
    margin: -26px -26px 20px;
    padding: 12px 20px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(135deg, #ffcb22, #ffbb0c);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
}

.booking-title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.15;
}

.booking-subtitle {
    margin: 8px 0 20px;
    color: var(--taxi-slate);
    font-size: 0.98rem;
}

.booking-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.booking-notice--success {
    background: rgba(22, 163, 74, 0.13);
    color: #0d7a34;
}

.booking-notice--error {
    background: rgba(220, 38, 38, 0.12);
    color: #b51d1d;
}

.tab-list,
.trip-type-list,
.local-service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.local-service-list {
    display: none;
}

.local-service-list.is-visible {
    display: grid;
}

.tab-button,
.trip-type-button,
.service-option-button {
    min-height: 50px;
    border: 1px solid var(--taxi-border);
    border-radius: 14px;
    background: #f9fafb;
    color: var(--taxi-dark);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab-button.is-active,
.trip-type-button.is-active,
.service-option-button.is-active {
    background: var(--taxi-dark);
    border-color: var(--taxi-dark);
    color: var(--taxi-white);
}

.booking-form {
    display: grid;
    gap: 14px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.94rem;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid #d6dbe3;
    border-radius: 999px;
    background: var(--taxi-white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: var(--taxi-yellow);
    box-shadow: 0 0 0 4px rgba(255, 204, 41, 0.18);
}

.booking-submit {
    width: 100%;
    margin-top: 4px;
    cursor: pointer;
}

.section-block {
    padding: 84px 0;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 204, 41, 0.16);
    color: #7a5a00;
    font-size: 0.9rem;
    font-weight: 700;
}

.section-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.08;
}

.section-text {
    margin: 14px 0 0;
    color: var(--taxi-slate);
}

.feature-grid,
.service-grid,
.route-grid,
.testimonial-grid {
    display: grid;
    gap: 24px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.route-card,
.testimonial-card,
.content-card,
.post-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--taxi-white);
    box-shadow: var(--shadow-md);
}

.feature-card {
    text-align: center;
}

.feature-icon,
.service-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 204, 41, 0.22), rgba(255, 204, 41, 0.48));
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--taxi-dark);
}

.service-card {
    border-top: 5px solid var(--taxi-yellow);
}

.route-card {
    background: linear-gradient(180deg, #ffffff, #fffdf7);
}

.route-card--media {
    overflow: hidden;
    padding: 0;
}

.route-card__media img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.route-card__content {
    display: grid;
    gap: 14px;
    padding: 28px;
}

.route-meta {
    margin: 0;
    color: var(--taxi-slate);
}

.route-card .button-link {
    margin-top: 6px;
}

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: "\"";
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(255, 204, 41, 0.32);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
}

.testimonial-text {
    margin: 0 0 18px;
    color: var(--taxi-slate);
}

.testimonial-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.testimonial-city {
    margin: 4px 0 0;
    color: var(--taxi-slate);
}

.cta-strip {
    padding: 34px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, var(--taxi-dark), #1e293b);
    color: var(--taxi-white);
    box-shadow: var(--shadow-lg);
}

.cta-strip h3 {
    margin: 0;
    font-size: 1.7rem;
}

.cta-strip p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
}

.content-section {
    padding: 80px 0;
}

.page-title,
.entry-title {
    margin-top: 0;
    line-height: 1.1;
}

.entry-meta {
    margin-bottom: 22px;
    color: var(--taxi-slate);
    font-size: 0.94rem;
}

.posts-grid {
    display: grid;
    gap: 24px;
}

.site-footer {
    background: var(--taxi-darker);
    color: rgba(255, 255, 255, 0.82);
}

.footer-upper {
    padding: 58px 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-title {
    margin: 0 0 14px;
    color: var(--taxi-white);
    font-size: 1.05rem;
}

.footer-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-list li + li {
    margin-top: 10px;
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.94rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1080px) {
    .hero-grid,
    .feature-grid,
    .service-grid,
    .route-grid,
    .testimonial-grid,
    .footer-upper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .topbar .site-shell,
    .site-header .site-shell,
    .cta-strip,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav {
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero-grid,
    .feature-grid,
    .service-grid,
    .route-grid,
    .testimonial-grid,
    .footer-upper {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-text,
    .hero-title {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 18px, var(--site-width));
    }

    .booking-card,
    .feature-card,
    .service-card,
    .route-card,
    .testimonial-card,
    .content-card,
    .post-card,
    .cta-strip {
        padding: 22px;
    }

    .tab-list,
    .trip-type-list,
    .local-service-list {
        grid-template-columns: 1fr;
    }

    .hero-section {
        background-position: 68% center;
    }
}
