/* Premium trust pages v2 — luxury + responsive (Divi) */

/* Full-width pagebuilder: remove extra top gap */
body.secp-trust-page.et_pb_pagebuilder_layout #main-content .container {
    padding-top: 0;
    width: 100%;
    max-width: 100%;
}

body.secp-trust-page #left-area {
    padding-bottom: 0;
}

.secp-trust-page .et_pb_section {
    margin-bottom: 0;
}

/* Hero background images */
.secp-trust-page .et_pb_section:first-child {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.secp-trust-hero {
    font-size: clamp(1.85rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0.5em 0 0.35em;
    color: #fff;
}

.secp-trust-page .lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 1.25em;
    color: rgba(255,255,255,0.92);
}

/* Breadcrumbs */
.secp-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25em 0.5em;
    font-size: 0.875rem;
}

.secp-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.secp-breadcrumbs li:not(:first-child)::before {
    content: "›";
    margin-right: 0.5em;
    opacity: 0.6;
    color: rgba(255,255,255,0.7);
}

.secp-breadcrumbs a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.secp-breadcrumbs a:hover {
    color: #c9a227;
}

.secp-breadcrumbs li[aria-current="page"] {
    color: #c9a227;
}

/* Hero badges */
.secp-hero-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 0.75em;
}

.secp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 0.45em 0.9em;
    border-radius: 999px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 600;
    backdrop-filter: blur(4px);
    line-height: 1.3;
}

/* Hero CTA buttons — center + stack on small screens */
.secp-trust-page .et_pb_section:first-child .et_pb_column_4_4 {
    text-align: center;
}

.secp-trust-page .et_pb_section:first-child .et_pb_button_module_wrapper {
    display: inline-block;
    vertical-align: middle;
}

/* Trust cards */
.secp-trust-badge-row .et_pb_blurb,
.secp-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.secp-trust-badge-row .et_pb_blurb:hover,
.secp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1) !important;
}

.secp-trust-badge-row .et_pb_blurb_content {
    height: 100%;
}

/* Stats */
.secp-trust-stat .stat-number {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #c9a227;
    line-height: 1.1;
}

.secp-trust-stat .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    margin-top: 0.4em;
}

/* Prose content */
.secp-prose h2 {
    margin-top: 1.75em;
    margin-bottom: 0.65em;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.secp-prose h2:first-child {
    margin-top: 0;
}

.secp-prose h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

.secp-prose p,
.secp-prose li {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.secp-prose a {
    color: #1a2744;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.secp-prose a:hover {
    color: #c9a227;
}

/* Section headings */
.secp-section-heading h2 {
    margin: 0 0 0.5em;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.secp-section-lead {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.75;
    color: #64748b;
    margin: 0;
}

/* Friendly checklist */
.secp-checklist {
    list-style: none;
    padding: 0;
    margin: 1em 0 0;
}

.secp-checklist li {
    position: relative;
    padding: 0.45em 0 0.45em 1.75em;
    line-height: 1.6;
}

.secp-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 1.25em;
    height: 1.25em;
    background: #c9a227;
    color: #1a2744;
    border-radius: 50%;
    font-size: 0.65em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Quick link cards */
.secp-quick-links-row .et_pb_blurb,
.secp-quick-link {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.secp-quick-links-row .et_pb_blurb:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.09) !important;
}

.secp-quick-links-row .et_pb_blurb_content p {
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Image captions */
.secp-image-caption-wrap {
    margin-top: -8px !important;
}

.secp-image-caption {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

.secp-image-text-row .et_pb_image {
    overflow: hidden;
    border-radius: 12px;
}

.secp-image-text-row .et_pb_image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive tables */
.secp-prose .secp-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.secp-policy-table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 0.95rem;
}

.secp-policy-table th,
.secp-policy-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.secp-policy-table th {
    background: #1a2744;
    color: #fff;
    font-weight: 600;
}

.secp-policy-table tr:last-child td {
    border-bottom: none;
}

.secp-policy-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* Step lists */
.secp-step-list {
    counter-reset: secp-step;
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}

.secp-step-list li {
    counter-increment: secp-step;
    position: relative;
    padding: 1.25em 1.25em 1.25em 3.75em;
    margin-bottom: 0.85em;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.secp-step-list li::before {
    content: counter(secp-step);
    position: absolute;
    left: 1em;
    top: 1.15em;
    width: 2em;
    height: 2em;
    background: linear-gradient(135deg, #1a2744, #2a3f6b);
    color: #c9a227;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Two-column grids in content */
.secp-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 1.5em 0;
}

.secp-eligible-yes {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1.5em;
    border-radius: 12px;
}

.secp-eligible-no {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1.5em;
    border-radius: 12px;
}

/* Contact */
.secp-contact-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75em;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.secp-contact-sidebar h3 {
    margin-top: 0;
    color: #1a2744;
}

.secp-map-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 2.5em 1.5em;
    text-align: center;
    border: 2px dashed #cbd5e1;
}

/* Accordion — larger touch targets */
.secp-trust-page .et_pb_accordion .et_pb_toggle_title {
    font-size: 1rem !important;
    padding: 18px 0 !important;
    line-height: 1.4 !important;
}

.secp-trust-page .et_pb_accordion .et_pb_toggle_content {
    padding-bottom: 18px !important;
}

/* Testimonials */
.secp-testimonial .et_pb_testimonial_description {
    font-style: italic;
}

.secp-trust-page .et_pb_testimonial {
    height: 100%;
}

/* Images in alternating sections */
.secp-trust-page .et_pb_image {
    margin-bottom: 0;
}

.secp-trust-page .et_pb_image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

/* Timeline */
.secp-timeline-row .et_pb_blurb {
    height: 100%;
}

/* Nav + misc */
.secp-page-nav {
    text-align: center;
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.8;
}

.secp-page-nav a {
    color: #1a2744;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.secp-page-nav a:hover {
    color: #c9a227;
}

.secp-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.secp-trust-page .et_pb_contact_form_container {
    border-radius: 12px;
}

.secp-trust-page .et_pb_contact_form input,
.secp-trust-page .et_pb_contact_form textarea {
    font-size: 16px !important; /* prevents iOS zoom */
}

.secp-trust-page .et_pb_button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secp-trust-page .et_pb_button:hover {
    transform: translateY(-2px);
}

/* ── Tablet ── */
@media (max-width: 980px) {
    .secp-two-col-grid {
        grid-template-columns: 1fr;
    }

    .secp-contact-row .et_pb_column_1_3 {
        margin-top: 24px;
    }

    .secp-timeline-row .et_pb_column {
        margin-bottom: 16px;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .secp-trust-page .et_pb_row {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .secp-trust-page .et_pb_section:first-child .et_pb_button_module_wrapper {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 10px !important;
    }

    .secp-trust-page .et_pb_section:first-child .et_pb_button {
        display: block !important;
        width: 100% !important;
    }

    .secp-hero-badge {
        flex: 1 1 calc(50% - 0.5em);
        text-align: center;
        min-width: 140px;
    }

    .secp-policy-table th,
    .secp-policy-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .secp-step-list li {
        padding-left: 3.5em;
    }

    .secp-page-nav a {
        white-space: normal;
    }
}

@media (max-width: 479px) {
    .secp-hero-badge {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .secp-trust-badge-row .et_pb_blurb,
    .secp-trust-page .et_pb_button {
        transition: none;
    }
}
