/* =============================================
   ThaiLawOnline Property Law — Multilingual Styles
   Plugin: tlo-property-multilingual v2.0.0
   Languages: EN / TH / FR
   Compatible with Elementor and standard WP themes
   ============================================= */

/* --- CSS Variables — matches thailawonline.com design tokens --- */
:root {
    --tlo-primary: #1E73BE;
    --tlo-primary-dark: #155a96;
    --tlo-secondary: #27323d;
    --tlo-text: #4a5568;
    --tlo-text-light: #848d95;
    --tlo-bg-light: #f7f8fc;
    --tlo-bg-white: #ffffff;
    --tlo-accent-green: #38a169;
    --tlo-accent-gold: #d69e2e;
    --tlo-border: #e2e8f0;
    --tlo-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --tlo-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --tlo-radius: 12px;
}

/* ===================================================================
   LANGUAGE SWITCHER
   =================================================================== */
.tlo-lang-switcher {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tlo-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--tlo-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tlo-text);
    text-decoration: none;
    background: var(--tlo-bg-white);
    transition: all .2s ease;
}
.tlo-lang-btn:hover {
    border-color: var(--tlo-primary);
    color: var(--tlo-primary);
}
.tlo-lang-btn.tlo-lang-active {
    background: var(--tlo-primary);
    color: #fff;
    border-color: var(--tlo-primary);
    pointer-events: none;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.tlo-hero {
    background: linear-gradient(135deg, var(--tlo-secondary) 0%, #1a2940 100%);
    padding: 60px 40px;
    border-radius: var(--tlo-radius);
    color: #fff;
    margin-bottom: 0;
}
.tlo-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}
.tlo-hero-content h1,
.tlo-hero-content .tlo-hero-h1 {
    font-family: 'Abel', 'Roboto', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    color: #fff;
}
.tlo-hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    margin-bottom: 24px;
}
.tlo-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.tlo-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56,161,105,.15);
    color: #68d391;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}
.tlo-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.tlo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    border: 2px solid transparent;
    line-height: 1.4;
}
.tlo-btn-primary {
    background: var(--tlo-primary);
    color: #fff;
    border-color: var(--tlo-primary);
}
.tlo-btn-primary:hover {
    background: var(--tlo-primary-dark);
    border-color: var(--tlo-primary-dark);
    color: #fff;
}
.tlo-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.tlo-btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
    color: #fff;
}
/* Inside non-hero sections, outline buttons should be dark */
.tlo-section .tlo-btn-outline,
.tlo-final-cta .tlo-btn-outline {
    color: var(--tlo-secondary);
    border-color: var(--tlo-border);
}
.tlo-section .tlo-btn-outline:hover,
.tlo-final-cta .tlo-btn-outline:hover {
    border-color: var(--tlo-primary);
    color: var(--tlo-primary);
    background: rgba(30,115,190,.04);
}
.tlo-btn-full {
    width: 100%;
    text-align: center;
}
.tlo-btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* ===================================================================
   CTA SIDEBAR CARD (in hero)
   =================================================================== */
.tlo-cta-card {
    background: var(--tlo-bg-white);
    border-radius: var(--tlo-radius);
    padding: 32px 28px;
    color: var(--tlo-secondary);
    box-shadow: var(--tlo-shadow-lg);
}
.tlo-cta-card h3 {
    font-size: 18px;
    margin: 0 0 4px;
    color: var(--tlo-secondary);
}
.tlo-cta-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--tlo-primary);
    margin-bottom: 20px;
}
.tlo-cta-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.tlo-cta-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--tlo-text);
    border-bottom: 1px solid var(--tlo-border);
}
.tlo-cta-features li:last-child {
    border-bottom: none;
}
.tlo-cta-phone {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--tlo-text-light);
}
.tlo-cta-phone a {
    color: var(--tlo-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===================================================================
   SECTIONS
   =================================================================== */
.tlo-section {
    padding: 60px 24px;
}
.tlo-section-alt {
    background: var(--tlo-bg-light);
}
.tlo-stitle {
    font-family: 'Abel', 'Roboto', sans-serif;
    font-size: 30px;
    color: var(--tlo-secondary);
    margin: 0 0 8px;
    line-height: 1.3;
}
.tlo-ssub {
    color: var(--tlo-text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 700px;
}

/* ===================================================================
   GRID LAYOUTS
   =================================================================== */
.tlo-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}
.tlo-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.tlo-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* ===================================================================
   OWNERSHIP CARDS
   =================================================================== */
.tlo-ocard {
    background: var(--tlo-bg-white);
    border: 1px solid var(--tlo-border);
    border-radius: var(--tlo-radius);
    padding: 28px;
    transition: all .2s ease;
}
.tlo-ocard:hover {
    box-shadow: var(--tlo-shadow-lg);
    border-color: var(--tlo-primary);
    transform: translateY(-2px);
}
.tlo-oicon {
    width: 48px;
    height: 48px;
    background: rgba(30,115,190,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}
.tlo-ocard h3 {
    font-size: 18px;
    color: var(--tlo-secondary);
    margin: 0 0 8px;
}
.tlo-ocard p {
    font-size: 14px;
    color: var(--tlo-text);
    margin-bottom: 16px;
    line-height: 1.6;
}
.tlo-ometa {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--tlo-border);
}
.tlo-oprice {
    color: var(--tlo-primary);
    font-weight: 700;
    font-size: 16px;
}
.tlo-olink {
    color: var(--tlo-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.tlo-olink:hover {
    text-decoration: underline;
}

/* ===================================================================
   SERVICES GRID
   =================================================================== */
.tlo-svc {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--tlo-bg-white);
    border: 1px solid var(--tlo-border);
    border-radius: 10px;
    transition: all .2s ease;
}
.tlo-svc:hover {
    box-shadow: var(--tlo-shadow);
    border-color: var(--tlo-primary);
}
.tlo-svc-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(30,115,190,.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.tlo-svc h4 {
    font-size: 16px;
    color: var(--tlo-secondary);
    margin: 0 0 4px;
}
.tlo-svc p {
    font-size: 13px;
    color: var(--tlo-text-light);
    margin: 0 0 8px;
    line-height: 1.5;
}
.tlo-svc a {
    color: var(--tlo-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.tlo-svc a:hover {
    text-decoration: underline;
}
.tlo-svc .tlo-oprice {
    font-size: 14px;
}

/* ===================================================================
   COMPARISON TABLE
   =================================================================== */
.tlo-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tlo-ctable {
    width: 100%;
    border-collapse: collapse;
    background: var(--tlo-bg-white);
    border-radius: var(--tlo-radius);
    overflow: hidden;
    box-shadow: var(--tlo-shadow);
    min-width: 640px;
}
.tlo-ctable thead th {
    background: var(--tlo-secondary);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}
.tlo-ctable thead th:first-child {
    width: 200px;
}
.tlo-ctable thead th.tlo-hl {
    background: var(--tlo-primary);
}
.tlo-ctable tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--tlo-border);
    font-size: 14px;
    vertical-align: top;
    color: var(--tlo-text);
}
.tlo-ctable tbody tr:last-child td {
    border-bottom: none;
}
.tlo-ctable tbody td:nth-child(2) {
    background: rgba(30,115,190,.03);
}

/* ===================================================================
   PROCESS STEPS
   =================================================================== */
.tlo-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.tlo-step {
    text-align: center;
    padding: 24px 12px;
    position: relative;
}
.tlo-step-num {
    width: 48px;
    height: 48px;
    background: var(--tlo-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}
.tlo-step h4 {
    font-size: 15px;
    color: var(--tlo-secondary);
    margin: 0 0 8px;
}
.tlo-step p {
    font-size: 13px;
    color: var(--tlo-text-light);
    line-height: 1.5;
    margin: 0;
}
.tlo-step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -14px;
    top: 36px;
    color: var(--tlo-primary);
    font-size: 20px;
    font-weight: 700;
}

/* ===================================================================
   LINKS HUB
   =================================================================== */
.tlo-lcat h3 {
    font-size: 18px;
    color: var(--tlo-secondary);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tlo-primary);
}
.tlo-lcat ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tlo-lcat li {
    padding: 8px 0;
    border-bottom: 1px solid var(--tlo-border);
}
.tlo-lcat li:last-child {
    border-bottom: none;
}
.tlo-lcat a {
    color: var(--tlo-text);
    text-decoration: none;
    font-size: 15px;
    transition: color .2s;
}
.tlo-lcat a:hover {
    color: var(--tlo-primary);
}

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */
.tlo-faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.tlo-faq-item {
    border: 1px solid var(--tlo-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--tlo-bg-white);
}
.tlo-faq-q {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tlo-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.tlo-faq-q:hover {
    color: var(--tlo-primary);
}
.tlo-faq-plus {
    font-size: 24px;
    color: var(--tlo-primary);
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}
.tlo-faq-open .tlo-faq-plus {
    transform: rotate(45deg);
}
.tlo-faq-a {
    padding: 0 24px 0;
    font-size: 15px;
    color: var(--tlo-text);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.tlo-faq-open .tlo-faq-a {
    max-height: 600px;
    padding: 0 24px 20px;
}
.tlo-faq-a a {
    color: var(--tlo-primary);
    text-decoration: none;
    font-weight: 600;
}
.tlo-faq-a a:hover {
    text-decoration: underline;
}

/* ===================================================================
   E-E-A-T TRUST SIGNALS
   =================================================================== */
.tlo-eeat-grid {
    margin-top: 36px;
}
.tlo-eeat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--tlo-bg-white);
    border-radius: var(--tlo-radius);
    box-shadow: var(--tlo-shadow);
}
.tlo-eeat-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.tlo-eeat-card h4 {
    font-size: 16px;
    color: var(--tlo-secondary);
    margin: 0 0 8px;
}
.tlo-eeat-card p {
    font-size: 13px;
    color: var(--tlo-text-light);
    line-height: 1.5;
    margin: 0;
}

/* ===================================================================
   FINAL CTA
   =================================================================== */
.tlo-final-cta {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, var(--tlo-secondary) 0%, #1a2940 100%);
    color: #fff;
    border-radius: var(--tlo-radius);
    margin: 40px 0 0;
}
.tlo-final-cta h2 {
    font-family: 'Abel', 'Roboto', sans-serif;
    font-size: 30px;
    margin: 0 0 8px;
    color: #fff;
}
.tlo-final-cta p {
    color: rgba(255,255,255,.8);
    margin-bottom: 28px;
}
.tlo-final-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tlo-final-cta .tlo-btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.tlo-final-cta .tlo-btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
    color: #fff;
}
.tlo-final-offices {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin: 0;
}

/* ===================================================================
   RESPONSIVE — TABLET
   =================================================================== */
@media (max-width: 1024px) {
    .tlo-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .tlo-hero-content h1,
    .tlo-hero-content .tlo-hero-h1 {
        font-size: 32px;
    }
    .tlo-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .tlo-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================================================
   RESPONSIVE — MOBILE
   =================================================================== */
@media (max-width: 768px) {
    .tlo-hero {
        padding: 40px 24px;
    }
    .tlo-hero-content h1,
    .tlo-hero-content .tlo-hero-h1 {
        font-size: 26px;
    }
    .tlo-section {
        padding: 40px 16px;
    }
    .tlo-stitle {
        font-size: 24px;
    }
    .tlo-grid-2 {
        grid-template-columns: 1fr;
    }
    .tlo-grid-3 {
        grid-template-columns: 1fr;
    }
    .tlo-grid-4 {
        grid-template-columns: 1fr;
    }
    .tlo-steps {
        grid-template-columns: 1fr;
    }
    .tlo-step:not(:last-child)::after {
        display: none;
    }
    .tlo-ctable {
        font-size: 12px;
    }
    .tlo-ctable thead th,
    .tlo-ctable tbody td {
        padding: 10px 12px;
    }
    .tlo-lang-switcher {
        justify-content: center;
    }
    .tlo-final-cta {
        padding: 40px 20px;
    }
    .tlo-final-cta h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tlo-hero-content h1,
    .tlo-hero-content .tlo-hero-h1 {
        font-size: 22px;
    }
    .tlo-stitle {
        font-size: 20px;
    }
    .tlo-faq-q {
        font-size: 14px;
        padding: 16px 20px;
    }
    .tlo-faq-a {
        font-size: 14px;
    }
    .tlo-hero-badges {
        gap: 6px;
    }
    .tlo-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ===================================================================
   THAI FONT SUPPORT
   When lang="th", switch to readable Thai typefaces
   =================================================================== */
[lang="th"] .tlo-hero-content h1,
[lang="th"] .tlo-hero-content .tlo-hero-h1,
[lang="th"] .tlo-stitle,
[lang="th"] .tlo-final-cta h2 {
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}
[lang="th"] .tlo-faq-q,
[lang="th"] .tlo-ocard h3,
[lang="th"] .tlo-svc h4,
[lang="th"] .tlo-eeat-card h4 {
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .tlo-lang-switcher,
    .tlo-hero-btns,
    .tlo-final-cta {
        display: none;
    }
    .tlo-section {
        padding: 20px 0;
        break-inside: avoid;
    }
    .tlo-faq-a {
        max-height: none !important;
        padding: 0 0 12px !important;
    }
}
