/* ==========================================================================
   Tripeo Informational & Service Pages Stylesheet (pages.css)
   ========================================================================== */

.page-hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 110px 24px 90px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.page-hero h1 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto 18px;
    color: #ffffff !important;
    max-width: 1000px;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.15rem;
    color: #cbd5e1 !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.65;
}

/* 1600px Max-Width Containers */
.page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-legal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* Feature & Info Cards Grid */
.page-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.page-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .page-grid-2,
    .page-grid-3 {
        grid-template-columns: 1fr;
    }
}

.page-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px 28px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.page-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.page-card-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.page-card-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Stats / Highlights Banner */
.page-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    margin: -45px auto 45px;
    max-width: 1420px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    text-align: center;
}

@media (max-width: 860px) {
    .page-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-stats-bar {
        grid-template-columns: 1fr;
    }
}

.stat-item h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: #0284c7;
    margin: 0 0 4px;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

/* Rich Prose / Legal Content */
.legal-content {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 48px 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    color: #334155;
    line-height: 1.8;
    font-size: 1.02rem;
}

@media (max-width: 640px) {
    .legal-content {
        padding: 28px 20px;
    }
}

.legal-content h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #f1f5f9;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 10px;
}

.legal-content p {
    margin-bottom: 18px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 22px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-callout {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    color: #0369a1;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Universal Page CTA Box with Background Image Support */
.page-cta-box {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 20px;
    padding: 60px 36px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.35);
    margin-top: 50px;
}

.page-cta-box h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-cta-box p {
    font-size: 1.1rem;
    color: #f1f5f9;
    max-width: 680px;
    margin: 0 auto 30px;
    line-height: 1.65;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
