/* Guide pages (hatyai-airport-car-rental, rental-requirements, faq) — same palette as theme-energy.css */
:root {
    --g-red: #E10600;
    --g-red-deep: #8E0000;
    --g-red-dark: #4A0000;
    --g-gold: #FFC72C;
    --g-gold-deep: #F59E0B;
    --g-ink: #0E0E10;
    --g-ink-3: #23232A;
    --g-mist: #F6F3F0;
    --g-text: #2A2A30;
    --g-muted: #62626C;
    --g-line: #ECE4DF;
    --g-radius: 16px;
    --g-display: 'Prompt', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Sarabun', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--g-text);
    background: var(--g-mist);
    overflow-x: hidden;
}
a { color: var(--g-red); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--g-display); line-height: 1.3; color: var(--g-ink); }

.g-container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.g-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(14, 14, 16, .97);
    border-bottom: 3px solid var(--g-red);
}
.g-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 12px; }
.g-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.g-logo {
    width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--g-gold), var(--g-gold-deep)); color: var(--g-ink); font-size: 20px;
}
.g-brand-name { display: block; font-family: var(--g-display); font-weight: 700; color: #fff; font-size: 19px; line-height: 1.1; }
.g-brand-sub { display: block; font-size: 12px; color: var(--g-gold); }
.g-nav { display: flex; align-items: center; gap: 4px; }
.g-nav a {
    color: #EDEDF2; text-decoration: none; font-family: var(--g-display); font-weight: 500;
    font-size: 15px; padding: 8px 12px; border-radius: 999px;
}
.g-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.g-nav .g-nav-cta { background: linear-gradient(135deg, var(--g-red), var(--g-red-deep)); color: #fff; margin-left: 6px; }
.g-nav .g-nav-cta:hover { background: linear-gradient(135deg, var(--g-gold), var(--g-gold-deep)); color: var(--g-ink); }
.g-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; width: 44px; height: 44px; cursor: pointer; }

/* Hero */
.g-hero {
    color: #fff; padding: 36px 0 44px;
    background:
        repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .03) 46px 48px),
        radial-gradient(120% 90% at 90% 0%, rgba(225, 6, 0, .6), transparent 60%),
        linear-gradient(180deg, var(--g-ink) 0%, var(--g-red-dark) 100%);
}
.g-breadcrumb { font-size: 14px; color: #D8CFCB; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.g-breadcrumb a { color: var(--g-gold); text-decoration: none; }
.g-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.6vw, 2.9rem); font-weight: 800; max-width: 860px; }
.g-lead { margin-top: 12px; font-size: clamp(1rem, 2vw, 1.2rem); color: #F1E9E4; max-width: 780px; }
.g-hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.g-btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 12px 24px; border-radius: 999px; text-decoration: none;
    font-family: var(--g-display); font-weight: 700; font-size: 16px; color: #fff;
    background: linear-gradient(135deg, var(--g-red), var(--g-red-deep));
    box-shadow: 0 10px 26px -8px rgba(225, 6, 0, .6);
    min-height: 48px;
}
.g-btn:hover { background: linear-gradient(135deg, var(--g-gold), var(--g-gold-deep)); color: var(--g-ink); }
.g-btn-ghost { background: transparent; border: 2px solid var(--g-gold); color: var(--g-gold); box-shadow: none; }
.g-btn-gold { background: linear-gradient(135deg, var(--g-gold), var(--g-gold-deep)); color: var(--g-ink); }
.g-btn-gold:hover { background: #fff; }

/* Article */
.g-main { padding: 36px 0 90px; }
.g-article > section, .g-article > .g-answer, .g-article > .g-cta, .g-article > .g-note {
    background: #fff; border-radius: var(--g-radius); padding: 28px;
    box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .35); margin-bottom: 22px;
}
.g-article h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; margin-bottom: 14px;
    padding-left: 14px; border-left: 6px solid var(--g-red);
}
.g-article h3 { font-size: 1.15rem; font-weight: 700; margin: 18px 0 6px; }
.g-article p + p { margin-top: 10px; }
.g-article ul, .g-article ol { padding-left: 1.4em; }
.g-article li { margin: 6px 0; }
.g-article section > ul li::marker { color: var(--g-red); }

.g-answer { border-left: 6px solid var(--g-gold); background: linear-gradient(135deg, #fff, #FFF8E6) !important; }
.g-answer-title { font-family: var(--g-display); font-weight: 700; color: var(--g-red-deep); margin-bottom: 6px; }
.g-answer-title i { color: var(--g-gold-deep); }

.g-note { border: 1px dashed var(--g-gold-deep); background: #FFFBF0 !important; font-size: 15px; color: var(--g-muted); }

/* Steps */
.g-steps { list-style: none; padding: 0 !important; counter-reset: step; }
.g-steps li {
    counter-increment: step; position: relative; padding: 4px 0 14px 58px; margin: 0;
}
.g-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--g-red), var(--g-red-deep)); color: #fff;
    font-family: var(--g-display); font-weight: 800; font-size: 18px;
}
.g-steps li strong { display: block; font-family: var(--g-display); color: var(--g-ink); }

/* Tables */
.g-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--g-line); }
.g-table { width: 100%; border-collapse: collapse; min-width: 420px; font-size: 16px; }
.g-table caption { text-align: left; font-size: 14px; color: var(--g-muted); padding: 8px 12px; caption-side: bottom; }
.g-table th, .g-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--g-line); vertical-align: top; }
.g-table thead th { background: var(--g-ink); color: #fff; font-family: var(--g-display); font-weight: 600; }
.g-table tbody tr:nth-child(even) { background: #FBF8F6; }
.g-table td.g-price { font-family: var(--g-display); font-weight: 700; color: var(--g-red-deep); white-space: nowrap; }

/* Feature chips */
.g-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 6px; }
.g-chip { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--g-mist); }
.g-chip i { color: var(--g-red); font-size: 20px; margin-top: 4px; }
.g-chip strong { display: block; font-family: var(--g-display); color: var(--g-ink); }

/* FAQ */
.g-faq-item { padding: 14px 0; border-bottom: 1px solid var(--g-line); }
.g-faq-item:last-child { border-bottom: 0; }
.g-faq-item h3 { margin: 0 0 4px; display: flex; gap: 10px; }
.g-faq-item h3::before { content: "Q"; color: var(--g-red); font-weight: 800; }
.g-faq-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.g-faq-toc a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--g-mist); color: var(--g-ink); font-family: var(--g-display); font-size: 15px; }
.g-faq-toc a:hover { background: var(--g-red); color: #fff; }

/* CTA */
.g-cta { text-align: center; color: #fff; background: linear-gradient(135deg, var(--g-red), var(--g-red-deep) 60%, var(--g-red-dark)) !important; }
.g-cta h2 { color: #fff; border: 0; padding: 0; }
.g-cta p { color: #FFE9E6; margin-bottom: 18px; }
.g-cta .g-btn { margin: 6px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .35); }
.g-cta .g-btn-gold { background: linear-gradient(135deg, var(--g-gold), var(--g-gold-deep)); border: 0; }

/* Related */
.g-related h2 { border: 0; padding: 0; }
.g-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.g-related-card {
    display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; text-decoration: none;
    background: var(--g-ink-3); color: #D7D7DF; border: 1px solid transparent;
}
.g-related-card i { color: var(--g-gold); font-size: 22px; }
.g-related-card strong { color: #fff; font-family: var(--g-display); }
.g-related-card:hover { border-color: var(--g-red); box-shadow: 0 12px 28px -12px rgba(225, 6, 0, .6); }

/* Footer */
.g-footer { background: var(--g-ink); color: #C9C9D1; padding: 40px 0 20px; border-top: 4px solid var(--g-red); font-size: 15px; }
.g-footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 28px; }
.g-footer-title { font-family: var(--g-display); font-weight: 700; color: var(--g-gold); margin-bottom: 8px; }
.g-footer ul { list-style: none; }
.g-footer li { margin: 6px 0; }
.g-footer a { color: #fff; text-decoration: none; }
.g-footer a:hover { color: var(--g-gold); }
.g-footer li i { color: var(--g-gold); width: 18px; }
.g-footer-bottom { text-align: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Floating contact */
.g-fixed { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.g-fixed a {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 24px;
    text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .85);
}
.g-fixed-line { background: #06C755; }
.g-fixed-phone { background: linear-gradient(135deg, var(--g-red), var(--g-red-deep)); }

@media (max-width: 860px) {
    .g-toggle { display: block; }
    .g-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--g-ink); padding: 8px 16px 16px; border-bottom: 3px solid var(--g-red);
    }
    .g-nav.open { display: flex; }
    .g-nav a { padding: 12px; border-radius: 10px; }
    .g-nav .g-nav-cta { margin: 6px 0 0; text-align: center; }
    .g-article > section, .g-article > .g-answer, .g-article > .g-cta, .g-article > .g-note { padding: 20px 16px; }
    .g-footer-grid { grid-template-columns: 1fr; }
    .g-hero-actions .g-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
