/* ============================================
   LANDORO — Trust & Content Pages Stylesheet v3
   /assets/css/trust-pages.css
   
   Hero & CTA: hardcoded dark navy (#0f172a / #1a2b4a)
   Cards/sections: use site CSS vars with safe fallbacks
   Gold accent: #d4af37
   ============================================ */

/* ---------- Page Hero ---------- */
.page-hero {
    background: linear-gradient(135deg, #1C2C4C 0%, #2A3F63 100%) !important;
    color: #fff !important;
    padding: 80px 0 60px;
    text-align: center !important;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero .container,
.page-hero > div {
    position: relative;
    z-index: 1;
}

.page-hero * {
    text-align: center !important;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    color: #fff !important;
    text-align: center !important;
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    z-index: 1;
    float: none !important;
    display: block !important;
    width: 100% !important;
}

/* Dark mode hero */
[data-theme="dark"] .page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

[data-theme="dark"] .page-hero::before {
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}

[data-theme="dark"] .page-hero::after {
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
}

.page-hero .subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8) !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
    text-align: center !important;
    position: relative;
    z-index: 1;
}

.page-hero .hero-badges {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4af37 !important;
}

/* ---------- Content Sections ---------- */
.tp-section {
    padding: 60px 0;
}

.tp-section.alt-bg {
    background: rgba(0,0,0,0.02);
}

/* Utility: centre headings */
.tp-center { text-align: center; }

/* Two-column layout */
.tp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Two-col with vertical divider */
.tp-two-col.tp-divided {
    gap: 0;
}

.tp-two-col.tp-divided > .tp-col {
    padding: 0 40px;
}

.tp-two-col.tp-divided > .tp-col:first-child {
    border-right: 1px solid var(--glass-border, rgba(0,0,0,0.08));
    padding-left: 0;
}

.tp-two-col.tp-divided > .tp-col:last-child {
    padding-right: 0;
}

.tp-col {}

/* 2x2 FAQ grid */
.tp-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0;
}

/* Compact horizontal card */
.tp-card-h {
    background: var(--glass-bg, #fff);
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.tp-card-h:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.tp-card-h .card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-card-h h3 {
    font-size: 0.95rem;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 4px 0;
    font-weight: 600;
}

.tp-card-h p {
    font-size: 0.85rem;
    color: var(--text-secondary, #4a5568);
    line-height: 1.5;
    margin: 0;
}

/* Card link style */
.tp-link {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: opacity 0.2s ease;
}

.tp-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Dark mode alt-bg */
[data-theme="dark"] .tp-section.alt-bg {
    background: rgba(255,255,255,0.02);
}

[data-theme="dark"] .tp-section h2,
[data-theme="dark"] .tp-section h3,
[data-theme="dark"] .tp-step-text h3,
[data-theme="dark"] .tp-card h3,
[data-theme="dark"] .tp-info h4,
[data-theme="dark"] .tp-section .lead {
    color: #f9fafb;
}

[data-theme="dark"] .tp-section p,
[data-theme="dark"] .tp-step-text p,
[data-theme="dark"] .tp-card p,
[data-theme="dark"] .tp-info p,
[data-theme="dark"] .tp-checklist li {
    color: #9ca3af;
}

[data-theme="dark"] .tp-checklist li strong {
    color: #f9fafb;
}

[data-theme="dark"] .tp-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .tp-card-h {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .tp-card-h h3 {
    color: #f9fafb;
}

[data-theme="dark"] .tp-card-h p {
    color: #9ca3af;
}

[data-theme="dark"] .tp-two-col.tp-divided > .tp-col:first-child {
    border-right-color: #374151;
}

[data-theme="dark"] .tp-faq-item {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .tp-faq-q {
    color: #f9fafb;
}

[data-theme="dark"] .tp-faq-q:hover {
    background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .tp-faq-a p {
    color: #d1d5db;
}

[data-theme="dark"] .tp-info {
    background: rgba(212, 175, 55, 0.03);
}

[data-theme="dark"] .tp-info.green {
    background: rgba(34, 197, 94, 0.03);
}

[data-theme="dark"] .tp-info.blue {
    background: rgba(59, 130, 246, 0.03);
}

[data-theme="dark"] .tp-table tbody td {
    color: #d1d5db;
    border-color: #374151;
}

[data-theme="dark"] .tp-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

[data-theme="dark"] .tp-checklist li {
    border-color: #374151;
}

[data-theme="dark"] .article-cta-box {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .article-cta-box h3 {
    color: #f9fafb;
}

[data-theme="dark"] .article-cta-box p {
    color: #9ca3af;
}

.tp-section h2 {
    font-size: 1.7rem;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 16px;
    font-weight: 700;
}

.tp-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 10px;
    margin-top: 28px;
    font-weight: 600;
}

.tp-section p {
    margin-bottom: 16px;
    color: var(--text-secondary, #4a5568);
    line-height: 1.8;
    font-size: 1rem;
}

.tp-section .lead {
    font-size: 1.1rem;
    color: var(--text-primary, #333);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ---------- Containers (centred) ---------- */
.tp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.tp-container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Trust Cards ---------- */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

/* Force 3 columns on desktop */
.tp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tp-card {
    background: var(--glass-bg, #fff);
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 16px;
    padding: 30px 26px;
    transition: all 0.3s ease;
}

.tp-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tp-card .card-icon {
    width: 52px;
    height: 52px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.tp-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.tp-card p {
    font-size: 0.92rem;
    color: var(--text-secondary, #4a5568);
    line-height: 1.6;
    margin: 0;
}

.tp-card.highlighted {
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.06);
}

/* ---------- Process Steps ---------- */
.tp-steps {
    margin: 36px 0;
}

.tp-step {
    display: flex;
    gap: 22px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.tp-step-num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.tp-step-text h3 {
    margin: 2px 0 6px 0;
    font-size: 1.05rem;
    color: var(--text-primary, #1a1a2e);
}

.tp-step-text p {
    margin: 0;
    color: var(--text-secondary, #4a5568);
    font-size: 0.92rem;
}

/* ---------- Info Boxes ---------- */
.tp-info {
    padding: 22px 26px;
    margin: 28px 0;
    border-left: 4px solid #d4af37;
    background: rgba(212, 175, 55, 0.04);
    border-radius: 0 12px 12px 0;
}

.tp-info.gold {
    border-left-color: #d4af37;
    background: rgba(212, 175, 55, 0.04);
}

.tp-info.blue {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.03);
}

.tp-info.green {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.03);
}

.tp-info h4 {
    font-size: 1rem;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 6px;
}

.tp-info p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary, #4a5568);
}

/* ---------- Checklist ---------- */
.tp-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tp-checklist li {
    padding: 12px 0 12px 40px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-primary, #333);
    border-bottom: 1px solid var(--glass-border, rgba(0,0,0,0.06));
    line-height: 1.6;
}

.tp-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.tp-checklist li:last-child { border-bottom: none; }

.tp-checklist li strong {
    color: var(--text-primary, #1a1a2e);
}

/* ---------- Comparison Table ---------- */
.tp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    overflow: hidden;
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 12px;
}

.tp-table thead th {
    background: #1C2C4C !important;
    color: #fff !important;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.tp-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--glass-border, #e2e8f0);
    font-size: 0.9rem;
    color: var(--text-secondary, #4a5568);
}

.tp-table tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.015);
}

.tbl-yes { color: #22c55e; font-weight: 600; }
.tbl-no { color: #ef4444; font-weight: 600; }
.tbl-maybe { color: #d4af37; font-weight: 600; }

/* ---------- Page CTA ---------- */
.tp-cta {
    background: linear-gradient(135deg, #1C2C4C 0%, #2A3F63 100%) !important;
    color: #fff !important;
    text-align: center !important;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
}

.tp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.tp-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.tp-cta .container,
.tp-cta > div {
    position: relative;
    z-index: 1;
}

/* Dark mode CTA */
[data-theme="dark"] .tp-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

[data-theme="dark"] .tp-cta::before {
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}

[data-theme="dark"] .tp-cta::after {
    background: radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
}

.tp-cta * {
    text-align: center !important;
}

.tp-cta h2 {
    color: #fff !important;
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.tp-cta p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tp-cta .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    margin-right: 12px;
}

.tp-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.tp-cta .btn-outline {
    display: inline-block;
    color: rgba(255,255,255,0.7) !important;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.tp-cta .btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}

/* ---------- FAQ ---------- */
.tp-faq { margin: 28px 0; }

.tp-faq-item {
    background: var(--glass-bg, #fff);
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tp-faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.tp-faq-q {
    padding: 16px 22px;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tp-faq-q:hover {
    background: rgba(0,0,0,0.02);
}

.tp-faq-toggle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #d4af37;
    transition: transform 0.3s ease;
    margin-left: 16px;
    flex-shrink: 0;
}

.tp-faq-item.active .tp-faq-toggle {
    transform: rotate(45deg);
}

.tp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
}

.tp-faq-item.active .tp-faq-a {
    padding: 0 22px 18px;
    max-height: 500px;
}

.tp-faq-a p {
    font-size: 0.9rem;
    color: var(--text-secondary, #4a5568);
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.tp-faq-a p:last-child { margin-bottom: 0; }
.tp-faq-a a { color: #d4af37; font-weight: 600; }
.tp-faq-a a:hover { text-decoration: underline; }

/* ---------- Article Styles (Help Centre) ---------- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--glass-border, #e2e8f0);
    font-size: 0.85rem;
    color: var(--text-secondary, #999);
    flex-wrap: wrap;
}

.category-tag {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.article-body h2 {
    font-size: 1.4rem;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border, rgba(0,0,0,0.06));
    color: var(--text-primary, #1a1a2e);
}

.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 { font-size: 1.1rem; margin-top: 24px; color: var(--text-primary, #1a1a2e); }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; color: var(--text-secondary, #4a5568); }
.article-body strong { color: var(--text-primary, #1a1a2e); }

.article-cta-box {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 40px 0 20px;
}

.article-cta-box h3 { color: var(--text-primary, #1a1a2e); margin: 0 0 8px 0; font-size: 1.15rem; }
.article-cta-box p { color: var(--text-secondary, #4a5568); margin: 0 0 20px 0; font-size: 0.95rem; }

.article-cta-box .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
    color: #fff;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-cta-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-hero { padding: 60px 0 44px; border-radius: 0 !important; }
    .page-hero h1 { font-size: 1.6rem; }
    .tp-section { padding: 40px 0; }
    .tp-section h2 { font-size: 1.35rem; }
    .tp-grid { grid-template-columns: 1fr; }
    .tp-grid-3 { grid-template-columns: 1fr; }
    .tp-two-col { grid-template-columns: 1fr; gap: 24px; }
    .tp-two-col.tp-divided > .tp-col { padding: 0; border-right: none !important; }
    .tp-faq-grid { grid-template-columns: 1fr; }
    .tp-step { gap: 16px; }
    .tp-table { font-size: 0.8rem; }
    .tp-table thead th, .tp-table tbody td { padding: 10px 12px; }
    .tp-container, .tp-container-narrow { padding: 0 20px; }
    .tp-cta .btn-primary, .tp-cta .btn-outline {
        display: block;
        margin: 0 auto 12px;
        max-width: 260px;
        text-align: center !important;
    }
}