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

/* =========================================================
   TaxiManop275.com - Main Stylesheet
   Cleaned + Responsive
   Desktop: 4-column footer
   Tablet : 2-column footer
   Mobile : 1-column footer
   ========================================================= */

:root {
    --navy: #071b33;
    --blue: #0b63f6;
    --cyan: #17c3ff;
    --yellow: #ffd33d;
    --orange: #ff9d2e;
    --white: #fff;
    --muted: #64748b;
    --bg: #f5f8fc;
    --line: #e5eaf1;
    --shadow: 0 18px 55px rgba(7, 27, 51, .10);
    --radius: 22px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    color: var(--navy);
    background: #fff;
    line-height: 1.75;
    overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
    font-family: inherit;
}

.container {
    width: min(1140px, calc(100% - 40px));
    margin-inline: auto;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    background: var(--navy);
    color: #dce9f8;
    font-size: 13px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(7, 27, 51, .08);
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 21px;
}

.brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 9px 24px rgba(11, 99, 246, .25);
    flex: 0 0 auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 23px;
    font-size: 15px;
    font-weight: 500;
}

.menu a {
    color: #26384d;
}

.menu a:hover,
.menu a.active {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 10px 17px;
    border-radius: 12px;
}

.hamb,
.menu-toggle {
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #09233f;
    cursor: pointer;
}

.hamb {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

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

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */

.language-switcher,
.language-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-switcher {
    margin-right: 4px;
}

.language-switcher button,
.language-switcher-mobile button {
    border: 1px solid #d9e1ea;
    background: #fff;
    color: #17365d;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease;
}

.language-switcher button {
    font-size: 13px;
    padding: 7px 9px;
}

.language-switcher-mobile {
    display: none;
}

.language-switcher-mobile button {
    font-size: 12px;
    padding: 6px 8px;
}

.language-switcher button:hover,
.language-switcher-mobile button:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #09233f;
}

#google_translate_element {
    display: inline-block;
}

.goog-te-gadget {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
    font-size: 14px !important;
}

.goog-te-gadget-simple {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    padding: 7px 10px !important;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(23, 195, 255, .35), transparent 32%),
        linear-gradient(135deg, #071b33 0%, #0a2c55 58%, #0868d9 100%);
    color: var(--white);
    padding: 82px 0 76px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    right: -140px;
    bottom: -220px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    align-items: center;
    gap: 55px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #06182e;
    background: var(--yellow);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    margin: 0 0 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--yellow);
}

.hero p {
    font-size: 18px;
    color: #d9e7f7;
    max-width: 650px;
    margin: 0 0 29px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    padding: 12px 20px;
    font-weight: 700;
    transition: .2s;
}

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

.btn-primary {
    background: var(--yellow);
    color: #071b33;
    box-shadow: 0 12px 30px rgba(255, 211, 61, .2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, .28);
    color: var(--white);
}

.hero-card {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.mockup {
    aspect-ratio: 4 / 3;
    border-radius: 19px;
    background: linear-gradient(145deg, #dff6ff, #8ac7ff 45%, #214a76);
    position: relative;
    overflow: hidden;
}

.mockup::before {
    content: 'MOCKUP PHOTO';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .9);
    font-weight: 700;
    letter-spacing: 2px;
}

.car-shape {
    position: absolute;
    width: 70%;
    height: 28%;
    background: #fff;
    border-radius: 45% 45% 18% 18%;
    left: 15%;
    bottom: 23%;
    box-shadow: 0 14px 20px rgba(0, 0, 0, .18);
}

.car-shape::after,
.car-shape::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #071b33;
    bottom: -9px;
}

.car-shape::before {
    left: 14%;
}

.car-shape::after {
    right: 14%;
}

/* =========================================================
   SECTIONS / CONTENT
   ========================================================= */

.section {
    padding: 84px 0;
}

.section.alt {
    background: var(--bg);
}

.section-head {
    max-width: 760px;
    margin-bottom: 38px;
}

.kicker {
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
}

.section h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    margin: 8px 0 12px;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 25px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(7, 27, 51, .05);
    min-width: 0;
}

.icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #eaf3ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.card h3 {
    margin: 0 0 7px;
    font-size: 20px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.image-box {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.checklist {
    display: grid;
    gap: 12px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.check {
    color: #0aa96c;
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 28px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 17px;
    min-width: 0;
}

.stat strong {
    display: block;
    font-size: 26px;
}

.stat span {
    font-size: 13px;
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    background: #fff;
    min-width: 0;
}

.service-card h3 {
    margin: 0 0 6px;
}

.service-card p {
    color: var(--muted);
    margin: 0;
}

.banner {
    background: linear-gradient(135deg, #071b33, #0a56b9);
    border-radius: 30px;
    padding: 45px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.banner h2 {
    margin: 0 0 7px;
    font-size: 32px;
}

.banner p {
    margin: 0;
    color: #d8e8f7;
}

.faq {
    max-width: 900px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 17px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.faq p {
    color: var(--muted);
    margin: 10px 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 25px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-item {
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 17px;
    background: #fff;
}

.contact-item small {
    color: var(--muted);
    display: block;
}

.contact-item strong {
    font-size: 18px;
}

/* =========================================================
   BREADCRUMB / PAGE HERO
   ========================================================= */

.crumb {
    background: var(--bg);
    padding: 14px 0;
    font-size: 13px;
    color: var(--muted);
}

.page-hero {
    padding: 65px 0;
    background: linear-gradient(135deg, #071b33, #0b5dc5);
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    margin: 0 0 10px;
}

.page-hero p {
    margin: 0;
    color: #dceafa;
    max-width: 800px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
}

/* =========================================================
   MAP
   ========================================================= */

.map-mock {
    height: 320px;
    border-radius: 24px;
    background: repeating-linear-gradient(35deg, #edf2f5 0 20px, #e4ebef 20px 22px);
    position: relative;
    overflow: hidden;
}

.map-mock::after {
    content: 'MAP MOCKUP';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #708096;
    font-weight: 700;
    letter-spacing: 2px;
}

.route {
    position: absolute;
    width: 70%;
    height: 3px;
    background: var(--blue);
    left: 15%;
    top: 52%;
    transform: rotate(-12deg);
    z-index: 2;
}

.pin {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    background: #ff5b5b;
    transform: rotate(-45deg);
    z-index: 3;
}

.pin.one {
    left: 18%;
    top: 58%;
}

.pin.two {
    right: 18%;
    top: 42%;
}

.mobile-bar {
    display: none;
}

/* =========================================================
   CUSTOM GRID SYSTEM
   ========================================================= */

.row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.col-xl-4 {
    grid-column: span 1;
}

.row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.row-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* =========================================================
   FIXED CONTACT BAR
   ========================================================= */

#fixed_bar {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 9999999999999;
}

#fixed_bar img {
    max-width: 100%;
    margin-bottom: 10px !important;
}

#top_header {
    background-color: #101010;
    color: #fff;
    padding: 3px !important;
}

/* =========================================================
   FOOTER - SINGLE SOURCE OF TRUTH
   ========================================================= */

.footer {
    background: #061629;
    color: #b8c8db;
    padding: 55px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-grid > * {
    min-width: 0;
}

.footer h3 {
    color: #fff;
    margin: 0 0 10px;
}

.footer a {
    overflow-wrap: anywhere;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 35px;
    padding-top: 18px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================================
   TABLET <= 900px
   ========================================================= */

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 60px;
    }

    .menu {
        position: absolute;
        display: none;
        left: 20px;
        right: 20px;
        top: 75px;
        background: #fff;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .menu.open {
        display: flex;
    }

    .hamb {
        display: block;
    }

    .nav-cta {
        text-align: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .language-switcher-mobile {
        display: flex;
    }
}

/* =========================================================
   MOBILE <= 600px
   ========================================================= */

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1140px);
    }

    .topbar .container {
        display: block;
        text-align: center;
    }

    .topbar .container span:last-child {
        display: none;
    }

    .cards,
    .stats,
    .row,
    .row-2,
    .row-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .banner {
        padding: 30px;
        display: block;
    }

    .banner .btn {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-card {
        margin-top: 5px;
    }

    .page-hero {
        padding: 48px 0;
    }

    .footer {
        padding: 40px 0 20px;
    }

    /* Important: footer becomes one column on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-grid > * {
        width: 100%;
        min-width: 0;
    }

    .footer h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .footer-bottom {
        display: block;
        text-align: center;
        margin-top: 28px;
    }

    .footer-bottom span {
        display: block;
        margin-top: 8px;
    }

    #fixed_bar {
        right: 8px;
        bottom: 8px;
    }

    #fixed_bar img {
        margin-bottom: 7px;
    }
}

/* =========================================================
   VERY SMALL PHONES <= 380px
   ========================================================= */

@media (max-width: 380px) {
    .container {
        width: calc(100% - 22px);
    }

    .nav-inner {
        gap: 12px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .footer-grid {
        gap: 20px;
    }
}


/* ซ่อนบน PC */
.language-switcher-mobile {
    display: none;
}

/* Mobile */
@media (max-width: 900px) {

    .language-switcher-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        margin-right: 10px;
    }

    .language-switcher-mobile button {
        width: 48px;
        height: 42px;

        display: flex;
        align-items: center;
        justify-content: center;

        white-space: nowrap;
        word-break: keep-all;

        border: 1px solid #d9e1ea;
        background: #fff;
        color: #17365d;

        font-family: 'IBM Plex Sans Thai', sans-serif;
        font-size: 16px;
        font-weight: 600;

        padding: 0;
        border-radius: 8px;
        cursor: pointer;
    }

    .language-switcher-mobile button:hover {
        background: #ffd42a;
        border-color: #ffd42a;
    }
}

/* =========================================================
   ROW 4x2
   Desktop : 4 columns
   Tablet  : 2 columns
   Mobile  : 2 columns
   ========================================================= */

.row-4x2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 900px) {
    .row-4x2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}