/* ===== PMS / AIF PAGE ===== */
/* Ported from the reference design's inline <style> block.
   TODO: this file defines :root variables (--brand-blue, --text-main, etc.)
   and a generic `section { padding: 96px 0; }` rule. Since extra_css is only
   loaded on this page that should be safe, but worth a quick check against
   index.css / contact-us.css for any clashing variable or selector names. */

:root {
    --brand-blue: #304aa6;
    --brand-blue-hover: #243985;
    --brand-blue-light: #f4f6fc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #fafafa;
    --border-color: #e2e8f0;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1da851;
}

/* Container & Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

/* Typography Utilities */
.section-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 680px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: #cbd5e1;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #0f172a;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 56px;
}

.trust-pills {
    display: inline-flex;
    gap: 32px;
    padding: 16px 32px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-pill-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Team & Experience Section */
.experience-section {
    background-color: var(--brand-blue-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.stat-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--brand-blue);
}

.product-header {
    margin-bottom: 24px;
}

.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.product-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: bold;
}

/* Advantage Section */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.advantage-card {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.advantage-title {
    font-size: 1.125rem !important;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantage-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-blue);
}

/* Success message shown inside the modal after a successful submit
   (toggled by pms-aif-opportunities.js) */
.pms-aif-success {
    display: none;
    margin-top: 12px;
    padding: 11px 13px;
    background: #edf9f2;
    color: #16794b;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .product-grid,
    .experience-grid,
    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .trust-pills {
        flex-direction: column;
        gap: 12px;
        border-radius: 8px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }
}