/* ============================================================
   TREVO Guest Theme — Design System
   Colors: Purple #8552f2, Yellow #ffff1b, Gradient #892ae2→#8075ff
   Font: Rubik (400,500,600,700) + system fallbacks
   Mobile-first, 44px min touch targets
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px; line-height: 1.6; color: #1a1a2e;
    background: #fff; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8552f2; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; font-weight: 600; font-size: 16px;
    padding: 14px 28px; border-radius: 12px; border: none; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none; gap: 8px;
    min-height: 48px;
}
.btn--primary { background: #8552f2; color: #fff; }
.btn--primary:hover { background: #7040e0; text-decoration: none; }
.btn--yellow { background: #ffff1b; color: #1a1a2e; }
.btn--yellow:hover { background: #e6e600; text-decoration: none; }
.btn--outline { background: transparent; color: #8552f2; border: 2px solid #8552f2; }
.btn--outline:hover { background: #8552f2; color: #fff; text-decoration: none; }
.btn--full { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 14px; min-height: 40px; border-radius: 10px; }
.btn--lg { padding: 16px 36px; font-size: 18px; }
.btn--white { background: #fff; color: #8552f2; }
.btn--white:hover { background: #f0edff; text-decoration: none; }

/* --- Header --- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid #f0f0f5;
}
.header__inner {
    max-width: 1120px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; height: 64px; gap: 24px;
}
.header__logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 20px; color: #8552f2;
}
.header__logo:hover { text-decoration: none; }
.header__logo img { width: 36px; height: 36px; }
.header__nav {
    display: flex; gap: 4px; flex: 1;
    overflow: hidden;
}
.header__nav .nav {
    display: flex; gap: 4px; align-items: center;
    list-style: none; padding: 0; margin: 0;
}
.header__nav .nav li { list-style: none; }
.header__nav .nav a {
    padding: 8px 12px; border-radius: 8px; font-size: 14px;
    font-weight: 500; color: #555; transition: all 0.15s;
    display: block; white-space: nowrap;
}
.header__nav .nav a:hover { background: #f5f0ff; color: #8552f2; text-decoration: none; }
.header__nav .nav .nav-current a { color: #8552f2; font-weight: 600; }
.header__cta {
    background: #8552f2; color: #fff !important; padding: 10px 20px;
    border-radius: 10px; font-weight: 600; font-size: 14px;
    transition: background 0.15s; white-space: nowrap;
}
.header__cta:hover { background: #7040e0; text-decoration: none; }
.header__menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; color: #1a1a2e; align-items: center; justify-content: center;
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: #fff; flex-direction: column;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-bottom: 1px solid #f0f0f5;
}
.mobile-nav__close {
    background: none; border: none; cursor: pointer; width: 44px; height: 44px; color: #1a1a2e;
}
.mobile-nav__links {
    flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 4px;
    list-style: none; margin: 0;
}
.mobile-nav__links li { list-style: none; }
.mobile-nav__links a {
    display: block; padding: 14px 16px; font-size: 18px; font-weight: 500;
    color: #1a1a2e; border-radius: 12px;
}
.mobile-nav__links a:hover { background: #f5f0ff; text-decoration: none; }
.mobile-nav__cta { padding: 20px; border-top: 1px solid #f0f0f5; }

/* --- Mobile Nav Strip (horizontal pills below header, mobile only) --- */
.mobile-nav-strip {
    display: none;
    background: #fff;
    border-bottom: 1px solid #f0f0f5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-nav-strip::-webkit-scrollbar { display: none; }
.mobile-nav-strip .nav {
    display: flex; gap: 8px; padding: 10px 16px;
    list-style: none; margin: 0; white-space: nowrap;
    min-width: max-content;
}
.mobile-nav-strip .nav li { list-style: none; }
.mobile-nav-strip .nav a {
    display: inline-block; padding: 8px 16px;
    font-size: 13px; font-weight: 500; color: #555;
    background: #f5f0ff; border-radius: 20px;
    transition: all 0.15s;
}
.mobile-nav-strip .nav a:hover,
.mobile-nav-strip .nav .nav-current a {
    background: #8552f2; color: #fff; text-decoration: none;
}

/* --- Main content --- */
.gh-main { min-height: 60vh; }

/* --- Footer --- */
.footer {
    background: #1a1a2e; color: #ccc; padding: 48px 20px 24px;
    margin-top: 64px;
}
.footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px; max-width: 1120px; margin: 0 auto;
}
.footer__logo {
    display: flex; align-items: center; gap: 8px; color: #fff;
    font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.footer__tagline { font-size: 14px; line-height: 1.5; margin-bottom: 16px; color: #999; }
.footer__col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer__col a {
    display: block; color: #999; font-size: 14px; padding: 4px 0;
    transition: color 0.15s;
}
.footer__col a:hover { color: #ffff1b; text-decoration: none; }
.footer__social {
    display: flex; gap: 16px; justify-content: center;
    margin: 24px 0; padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__social a { color: #999; display: inline-flex; align-items: center; justify-content: center; }
.footer__social a:hover { color: #ffff1b; }
.footer__bottom {
    text-align: center; font-size: 13px; color: #777;
    padding-top: 20px;
}

/* === SECTION HEADINGS === */
.section { padding: 60px 20px; }
.section--alt { background: #f8f6ff; }
.section__title {
    font-size: 32px; font-weight: 700; text-align: center;
    margin-bottom: 8px; color: #1a1a2e;
}
.section__subtitle {
    font-size: 16px; text-align: center; color: #666;
    max-width: 560px; margin: 0 auto 40px;
}

/* === HERO === */
.hero {
    padding: 80px 20px 60px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #892ae2 0%, #8075ff 100%);
    position: relative; overflow: hidden;
}

/* Decorative blob behind hero */
.hero::before {
    content: ''; position: absolute; top: -120px; right: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,27,0.08);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -60px; left: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.hero__badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 500; margin-bottom: 16px;
    background: rgba(255,255,255,0.12); color: #fff;
    position: relative; z-index: 1;
}
.hero__title { font-size: 40px; font-weight: 700; line-height: 1.15; margin-bottom: 16px; position: relative; z-index: 1; }
.hero__subtitle { font-size: 18px; opacity: 0.9; max-width: 640px; margin: 0 auto 28px; line-height: 1.5; position: relative; z-index: 1; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero__locations { margin-top: 24px; position: relative; z-index: 1; }
.hero__locations-toggle {
    display: block; width: 100%; max-width: 400px; margin: 0 auto 16px;
    padding: 10px 18px; border-radius: 24px; font-size: 14px; font-weight: 500;
    background: rgba(255,255,27,0.15); color: #fff;
    border: 1px solid rgba(255,255,27,0.3); cursor: pointer; text-align: center;
}
.hero__pills {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    max-width: 480px; margin: 0 auto; padding: 0 8px;
}
.hero__pills--sub { margin-top: 10px; grid-template-columns: repeat(2, 1fr); }
.hero__pill {
    display: block; text-align: center; padding: 7px 12px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.12); cursor: default;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero__pill.pill--accent { background: rgba(255,255,27,0.15); border-color: rgba(255,255,27,0.25); }

/* === TRUST STRIP === */
.trust-strip { padding: 20px; border-bottom: 1px solid #f0f0f5; }
.trust-strip__inner {
    display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
    max-width: 800px; margin: 0 auto;
}
.trust-strip__item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #555; }
.trust-strip__icon { font-size: 18px; }

/* === HOW IT WORKS === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.step { text-align: center; padding: 24px 16px; }
.step__number {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #892ae2, #8075ff);
    color: #fff; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.step__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step__desc { font-size: 14px; color: #666; line-height: 1.5; }

/* === FEATURE GRID === */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.feature {
    padding: 24px; background: #fff; border-radius: 16px;
    border: 1px solid #f0f0f5; transition: box-shadow 0.2s;
}
.feature:hover { box-shadow: 0 8px 24px rgba(133,82,242,0.1); }
.feature__icon { font-size: 28px; margin-bottom: 12px; }
.feature__title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature__desc { font-size: 14px; color: #666; line-height: 1.5; }

/* === CAR CATEGORIES === */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.category {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #f0f0f5; transition: all 0.2s;
}
.category:hover { box-shadow: 0 8px 24px rgba(133,82,242,0.12); transform: translateY(-2px); }
.category__emoji {
    height: 140px; background: linear-gradient(135deg, #f5f0ff, #ede8ff);
    display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.category__body { padding: 16px; }
.category__name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.category__examples { font-size: 13px; color: #888; margin-bottom: 4px; }
.category__from { font-size: 12px; color: #999; }
.category__price { font-size: 14px; color: #8552f2; font-weight: 500; }

/* === SCENARIO CARDS === */
.scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.scenario {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #f0f0f5; display: flex; transition: box-shadow 0.2s;
}
.scenario:hover { box-shadow: 0 8px 24px rgba(133,82,242,0.1); }
.scenario__emoji {
    width: 72px; flex-shrink: 0;
    background: linear-gradient(135deg, #f5f0ff, #ede8ff);
    display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.scenario__body { padding: 16px; flex: 1; }
.scenario__title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.scenario__desc { font-size: 13px; color: #666; line-height: 1.4; }

/* === STICKY BOTTOM BAR (mobile) === */
.sticky-bottom {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-top: 1px solid #f0f0f5; padding: 8px 12px;
}
.sticky-bottom__inner { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sticky-bottom__text { flex: 1; line-height: 1.3; }
.sticky-bottom__text strong { font-size: 14px; display: block; }
.sticky-bottom__text span { font-size: 12px; color: #777; }
.sticky-bottom__close { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; padding: 4px 8px; }

/* === BLOG LISTING === */
.post-feed { display: grid; gap: 32px; padding: 40px 0; max-width: 800px; margin: 0 auto; }
.post-feed-header { text-align: center; padding: 40px 0 20px; }
.post-feed-header h2 { color: #8552f2; font-size: 32px; font-weight: 700; }
.post-card {
    border: 1px solid #f0f0f5; border-radius: 16px;
    padding: 24px; transition: transform 0.2s, box-shadow 0.2s; background: #fff;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(133,82,242,0.12); }
.post-card-title { font-size: 22px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; line-height: 1.3; }
.post-card-title a { color: #1a1a2e; }
.post-card-title a:hover { color: #8552f2; text-decoration: none; }
.post-card-excerpt {
    font-size: 15px; color: #6b7280; margin-bottom: 12px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { font-size: 13px; color: #8552f2; font-weight: 500; }

/* === SINGLE POST === */
.article { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
.article-header { margin-bottom: 32px; text-align: center; }
.article-title { font-size: 36px; font-weight: 700; color: #1a1a2e; line-height: 1.2; margin-bottom: 12px; }
.article-meta { font-size: 14px; color: #8552f2; font-weight: 500; }
.article-content { font-size: 17px; line-height: 1.8; color: #1a1a2e; }
.article-content h2 { font-size: 24px; font-weight: 600; margin: 32px 0 12px; }
.article-content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }
.article-content p { margin-bottom: 16px; }
.article-content a { color: #8552f2; text-decoration: underline; }
.article-content img { border-radius: 12px; margin: 24px auto; }
.article-content ul, .article-content ol { margin: 12px 0 16px 24px; }
.article-content li { margin-bottom: 6px; }

/* === PAGE CONTENT (FAQ, Contact, Terms, Privacy) === */
.page-content { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
.page-content h1 { font-size: 32px; font-weight: 700; color: #1a1a2e; margin-bottom: 24px; text-align: center; }
.page-content h2 { font-size: 22px; font-weight: 600; margin: 28px 0 12px; }
.page-content p { margin-bottom: 14px; line-height: 1.7; }
.page-content a { color: #8552f2; }
.page-content ul, .page-content ol { margin: 10px 0 16px 24px; }
.page-content li { margin-bottom: 6px; }
.page-content iframe { width: 100%; min-height: 600px; border: none; border-radius: 12px; margin: 16px 0; }

/* FAQ accordion style */
.faq-category { margin-bottom: 32px; }
.faq-category h2 { font-size: 22px; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #8552f2; }
.faq-item { margin-bottom: 12px; }
.faq-item h3 { font-size: 17px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.faq-item p { font-size: 15px; color: #555; margin: 4px 0 12px; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0; }
.pagination a, .pagination span {
    padding: 10px 18px; border-radius: 10px; font-weight: 500;
    font-size: 14px; color: #8552f2; border: 1px solid #e0d4ff;
}
.pagination a:hover { background: #8552f2; color: #fff; text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Mobile (<768px) --- */
@media (max-width: 768px) {
    .header__nav { display: none; }
    .header__cta { display: none; }
    .header__menu-btn { display: flex; }
    .mobile-nav-strip { display: block; }

    .hero { padding: 60px 16px 40px; }
    .hero__title { font-size: 28px; }
    .hero__subtitle { font-size: 15px; }
    .hero__actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
    .hero__actions .btn { width: 100%; }
    .hero__locations-toggle { display: block; }
    .hero__locations-content { display: none; }
    .hero__locations-content.is-open { display: block; padding-top: 16px; }
    .hero__pills { gap: 6px; padding: 0 4px; grid-template-columns: repeat(2, 1fr); max-width: 360px; }
    .hero__pill { padding: 6px 12px; font-size: 12px; }

    .trust-strip__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 0 4px; }
    .trust-strip__item { justify-content: center; font-size: 13px; }

    .section { padding: 40px 16px; }
    .section__title { font-size: 26px; }
    .section__subtitle { font-size: 15px; margin-bottom: 28px; }

    .steps { grid-template-columns: 1fr; gap: 20px; max-width: 400px; }
    .features { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature { padding: 16px; }
    .categories { grid-template-columns: 1fr 1fr; gap: 12px; }
    .category__emoji { height: 100px; font-size: 36px; }
    .scenarios { grid-template-columns: 1fr; gap: 12px; }
    .scenario__emoji { width: 56px; font-size: 24px; }

    .footer { padding: 32px 16px 20px; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }

    .sticky-bottom { display: block; }

    .article-title { font-size: 26px; }
    .page-content h1 { font-size: 26px; }
}

/* --- Tablet (768px–1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .header__menu-btn { display: none; }
    .header__nav { display: flex; }
    .header__cta { display: inline-flex; }
    .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer__col:last-child { grid-column: 2 / 4; }
}

/* --- Desktop (>1024px) --- */
@media (min-width: 1025px) {
    .header__menu-btn { display: none; }
    .header__nav { display: flex; }
    .header__cta { display: inline-flex; }
}

/* --- Small mobile (<480px) --- */
@media (max-width: 480px) {
    .hero__title { font-size: 26px; }
    .features { grid-template-columns: 1fr; }
    .categories { grid-template-columns: 1fr; }
    .hero__pills { gap: 6px; padding: 0 4px; grid-template-columns: repeat(2, 1fr); max-width: 360px; }
    .hero__pill { padding: 6px 12px; font-size: 12px; }
}

/* ============================================================
   Ghost Koenig Editor — Required Classes
   ============================================================ */
.kg-width-wide { width: 100%; }
@media (min-width: 768px) {
    .kg-width-wide {
        width: 85vw;
        max-width: 1040px;
        margin-left: calc(50% - 42.5vw);
    }
}
.kg-width-full { width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-wide img, .kg-width-full img { width: 100%; height: auto; display: block; }