/* =========================================================
   theme.css — ธีมใหม่ บังวันรถเช่า (โหลดต่อจาก style.css)
   แนวทาง: โทนแดง-เหลืองเดิม แต่พื้นหลังอ่อน ตัวอักษรอ่านง่าย
   สีแดงใช้เป็นจุดเน้น เหลืองใช้กับราคาและปุ่มสำคัญ
   ย้อนกลับธีมเดิม: ลบบรรทัดที่โหลด theme.css ใน header.php
   ========================================================= */

:root {
    --primary: #8a0d0d;          /* แดงเข้ม: หัวข้อ ตัวอักษรเน้น */
    --brand: #c8161d;            /* แดงสด: ปุ่ม แถบ ไอคอน */
    --brand-dark: #9e0f15;
    --gold: #c8161d;             /* เดิมใช้ชื่อ gold เป็นสีแดง คงไว้ให้ CSS เดิมใช้ได้ */
    --accent: #ffc928;           /* เหลืองทอง: ราคา ปุ่มเด่น */
    --accent-soft: #fff6d6;
    --primary-2: #ffffff;        /* เดิมเป็นเหลืองนีออนบนพื้นแดง เปลี่ยนเป็นขาวให้อ่านง่าย */
    --bg: #fbf8f6;
    --surface: #ffffff;
    --line: #efe6e2;
    --text: #23272f;
    --light-text: #5d6570;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 10px rgba(60, 20, 20, 0.06);
    --shadow-hover: 0 10px 28px rgba(140, 13, 13, 0.14);
    --heading-font: 'Kanit', 'Sarabun', sans-serif;
    --display-font: 'Kanit', 'Sarabun', sans-serif;
}

/* ---------- พื้นฐาน ---------- */
body {
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
}
p { color: var(--text); }

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0;
}
h1 { font-weight: 700; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

::selection { background: var(--accent); color: var(--primary); }

/* ลดการเคลื่อนไหวสำหรับผู้ที่ตั้งค่าไว้ในเครื่อง */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- ไอคอน ----------
   CSS เดิมมีกฎ ".fab,.fas" สำหรับปุ่มลอย แต่ชื่อซ้ำกับคลาสไอคอนของ Font Awesome
   ทำให้ไอคอนทุกตัวกลายเป็นวงกลม 55px จึงคืนค่าไอคอนให้ปกติ แล้วกำหนดปุ่มลอยเฉพาะ a.fab */
i.fas, i.fab, i.far {
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: inline-block;
    font-size: inherit;
    color: inherit;
    background: none;
    transition: none;
    animation: none;
}

/* ---------- ปุ่ม ---------- */
.btn {
    border-radius: 999px;
    font-family: var(--heading-font);
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 13px 26px;
    box-shadow: none;
    overflow: visible;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(200, 22, 29, 0.25);
}
.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(200, 22, 29, 0.3);
}
.btn i { font-size: 1.15em; }

/* ปุ่มโทร (ใช้คลาส fab-phone ร่วมกับ btn) */
.btn.fab-phone, .page-cta .btn-phone {
    width: auto;
    height: auto;
    background: var(--accent);
    color: var(--primary);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(255, 201, 40, 0.35);
    animation: none;
}
.btn.fab-phone:hover, .page-cta .btn-phone:hover {
    background: #ffbb00;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ---------- ส่วนหัว ---------- */
.header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.header.scrolled { box-shadow: 0 6px 18px rgba(60, 20, 20, 0.08); }
.nav::before {
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 70%, var(--accent) 70%, var(--accent) 100%);
}
.logo-box { width: auto; display: flex; align-items: center; gap: 4px; }
.brand-title { font-family: var(--heading-font); font-size: 21px; color: var(--primary); line-height: 1.2; }
.brand-subtitle { color: var(--light-text); font-size: 12.5px; }

.nav-menu { gap: 4px; align-items: center; }
.nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.97rem;
    white-space: nowrap;
}
.nav-link::after { display: none; }
.nav-link:hover { background: #fbeeee; color: var(--brand); }
.nav-link.active { background: var(--brand); color: #fff; }

/* เมนูแบบพับ ตั้งแต่จอขนาดกลางลงไป (เดิมพับที่ 768px ทำให้เมนูล้นเป็นสองบรรทัด) */
@media (max-width: 1100px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 6px;
        padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-2xl);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
        z-index: var(--z-dropdown);
        text-align: left;
    }
    .nav-menu.active { left: 0; }
    .nav-link { font-size: 1.1rem; padding: 12px 18px; border-radius: var(--radius-sm); }
    .hamburger { display: flex; flex-direction: column; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
.bar { background: var(--primary); }

/* ---------- ส่วนบนของหน้าแรก ---------- */
.hero { background: #fff; }
.hero2 {
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.hero-content { padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg); }
.hero-content h1.hero-title {
    font-size: 2.1rem;
    line-height: 1.35;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}
.hero-content h1.hero-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 5px;
    margin: 14px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand) 60%, var(--accent) 60%);
}
.buttons { gap: 12px; animation: none; margin-bottom: var(--spacing-md); }

/* ---------- หัวข้อแต่ละส่วน ---------- */
.section { padding: 72px 0; }
.section-tag {
    background: var(--accent-soft);
    color: var(--primary);
    border: 1px solid #ffe08a;
    box-shadow: none;
    font-family: var(--heading-font);
    font-weight: 500;
    padding: 6px 16px;
}
.section-title { margin-bottom: 40px; }
.section-title h2 { font-size: 2.25rem; line-height: 1.3; margin-bottom: 22px; }
.section-title h2::after {
    width: 64px;
    height: 5px;
    bottom: -12px;
    background: linear-gradient(90deg, var(--brand) 60%, var(--accent) 60%);
}
.section-title p { color: var(--light-text); font-size: 1.07rem; }
.text-highlight { color: var(--brand); }
.text-highlight::after { background: var(--accent); height: 4px; opacity: 0.9; }

/* ---------- การ์ดจุดเด่น ---------- */
.card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 28px 24px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fdeceb;
}
.card-icon i { color: var(--brand); font-size: 1.6rem; }
.card:hover .card-icon { transform: none; background: var(--brand); }
.card:hover .card-icon i { color: #fff; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--light-text); }

/* ---------- เกี่ยวกับเรา ---------- */
.about-description { font-size: 1.05rem; }
.about-highlight {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: var(--radius-sm);
}
.guarantee-list li { gap: 12px; }
.guarantee-list li i { color: #1f9d55; font-size: 1.2rem; }
.about-image {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px;
}
.about-image img { border-radius: var(--radius-sm); }
.price-highlight {
    background: linear-gradient(120deg, var(--brand) 0%, var(--primary) 100%);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(140, 13, 13, 0.2);
}
.price-highlight h4 { color: #fff; margin: 0; line-height: 1.8; }
.price-badge {
    background: var(--accent);
    color: var(--primary);
    display: inline-block;
    margin-top: 6px;
}

/* ---------- รายการรถ ---------- */
.cars-grid { gap: 24px; }
.car-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.car-image { background: #f4efed; }
.car-content { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.car-title {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--light-text);
    font-family: var(--font-family);
    font-weight: 600;
    margin-bottom: 2px;
}
.car-model {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.car-price {
    background: var(--accent-soft);
    border: 1px solid #ffe08a;
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-top: auto;
    margin-bottom: 14px;
}
.price-amount { color: var(--primary); font-family: var(--heading-font); font-size: 1.9rem; }
.price-unit { color: var(--light-text); }

.catalog-cta {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

/* ---------- เงื่อนไข (accordion) ---------- */
.term-item {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.term-item:hover { border-color: #f3cfcf; }
.term-header { background: var(--surface); padding: 18px 22px; }
.term-header:hover { background: #fdf6f5; }
.term-header h4 { font-size: 1.1rem; }
.term-header h4 i, .term-header .fa-chevron-down { color: var(--brand); }
.term-body { padding: 0 22px 20px; }
.important-note { background: var(--accent-soft); border-left-color: var(--accent); }

/* ---------- แกลเลอรี ---------- */
.gallery-item { box-shadow: var(--shadow); }
.gallery-item:hover { transform: translateY(-3px); }
.gallery-overlay { background: rgba(138, 13, 13, 0.55); }

/* ---------- ติดต่อ ---------- */
.contact-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.contact-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.contact-icon { background: #fdeceb; border-radius: 18px; }
.contact-icon i { color: var(--brand); font-size: 1.6rem; }
.social-link i { font-size: 1.15rem; }
.term-header h4 i { font-size: 1.1rem; }
.guarantee-list li i { font-size: 1.2rem; }
.contact-card h3 { color: var(--primary); }
.contact-card p { color: var(--text); }
.contact-card small { color: var(--light-text); opacity: 1; }
.map-container { border: 1px solid var(--line); }

/* ---------- เนื้อหา SEO ท้ายหน้าแรก ---------- */
.seo-content-section .seo-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px clamp(18px, 4vw, 44px);
    box-shadow: var(--shadow);
}
.seo-content-section .cta-section {
    background: linear-gradient(120deg, var(--brand) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    margin-top: 28px;
}
.seo-content-section .cta-section h3,
.seo-content-section .cta-section p { color: #fff; }
.seo-content-section .cta-section .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.seo-content-section .cta-section .btn-primary:hover { background: var(--accent-soft); color: var(--primary); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }

.home-guides a {
    display: inline-block;
    font-family: var(--heading-font);
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fdeceb;
    color: var(--brand);
    text-decoration: none;
}
.home-guides a:hover { background: var(--brand); color: #fff; }

/* ---------- ส่วนท้าย ---------- */
.footer {
    background: #2a0b0b;
    background: linear-gradient(160deg, #3a0c0c 0%, #1f0707 100%);
    color: rgba(255, 255, 255, 0.85);
}
.footer::before { height: 4px; background: linear-gradient(90deg, var(--brand) 70%, var(--accent) 70%); }
.footer h4 { color: #fff; font-family: var(--heading-font); }
.footer h4::after { background: var(--accent); height: 3px; border-radius: 99px; }
.footer-about h4 { color: #fff; }
.footer p, .footer-description, .footer span { color: rgba(255, 255, 255, 0.82); }
.footer a { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.footer a:hover { color: var(--accent); }
.area-item { background: rgba(255, 255, 255, 0.05); border-left-color: var(--accent); }
.area-item p { color: rgba(255, 255, 255, 0.85); }
.destinations-grid span {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}
.social-link { border-color: rgba(255, 255, 255, 0.2); }
.copyright-text a { color: var(--accent); }
@media (max-width: 1100px) and (min-width: 769px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

/* ---------- ปุ่มลอย ---------- */
.fab-container { gap: 10px; }
a.fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    animation: none;            /* เลิกเต้นตลอดเวลา (รบกวนสายตา) */
}
a.fab:hover { transform: translateY(-2px) scale(1.04); color: #fff; }
a.fab-phone { background: #1f9d55; }
a.fab-line { background: #06c755; }
a.fab-facebook { background: #1877f2; }
.fab-container a.fab-phone { animation: ring-soft 6s ease-in-out infinite; }  /* ขยับเบา ๆ เฉพาะปุ่มโทร */
@keyframes ring-soft {
    0%, 92%, 100% { transform: none; }
    94% { transform: rotate(-10deg); }
    96% { transform: rotate(10deg); }
    98% { transform: rotate(-6deg); }
}

/* ---------- หน้าข้อมูล (ราคา / จุดรับ-ส่ง / FAQ / 404) ---------- */
.info-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 201, 40, 0.22) 0, rgba(255, 201, 40, 0) 40%),
        linear-gradient(120deg, var(--brand) 0%, var(--primary) 100%);
}
.info-hero h1 { font-size: 2.3rem; line-height: 1.3; }
.breadcrumb a { color: var(--accent); }
.answer-box { border: 1px solid var(--line); border-left: 5px solid var(--accent); box-shadow: var(--shadow); }
.info-card { border: 1px solid var(--line); }
.info-page .info-card h3 i.fas { color: var(--brand); }
.price-table thead th { background: #fdf1f0; }
.price-table td.price { color: var(--primary); font-family: var(--heading-font); font-weight: 600; }
.price-table tbody tr:hover { background: var(--accent-soft); }
.faq-item { border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq-item summary { font-family: var(--heading-font); font-weight: 500; }
.faq-item summary::after { color: var(--brand); }
.faq-item[open] { border-color: #f3cfcf; }
.page-cta { border: 1px solid var(--line); }
.related-links a { border: 1px solid var(--line); }
.related-links a:hover { border-color: #f3cfcf; transform: translateY(-2px); }

/* ---------- มือถือ ---------- */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .section { padding: 52px 0; }
    .section-title h2 { font-size: 1.7rem; }
    .hero-content h1.hero-title { font-size: 1.55rem; }
    .buttons .btn { width: 100%; max-width: 360px; }
    .cars-grid { grid-template-columns: 1fr; }
    .info-hero h1 { font-size: 1.65rem; }
    .footer-content { text-align: left; }
    .footer h4::after { left: 0; transform: none; }
}
@media (max-width: 480px) {
    .brand-title { font-size: 18px; }
    .brand-subtitle { font-size: 11.5px; }
    a.fab { width: 46px; height: 46px; font-size: 1.1rem; }
}
