/*
 * ProveOutcomes marketing stylesheet (decision 10.2-C).
 * Ported from the Angular home2 component design
 * (src/proveoutcomes-ui/src/app/features/public/home2) so the Laravel
 * marketing/policy pages share the same look. Maintained independently from
 * the Angular build. White-label enterprises ship their own copy under
 * public/assets/{APP_ENTERPRISE}/css/marketing.css.
 */

:root {
    --primary: #0B457F;
    --primary-dark: #093a6b;
    --primary-light: #1565C0;
    --secondary: #2E8A3B;
    --secondary-dark: #267231;
    --accent: #F5A623;
    --dark-bg: #0d2a4a;
    --text: #333333;
    --text-dark: #333333;
    --text-muted: #666;
    --border: #e0e0e0;
    --bg-light: #f5f7fa;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR (home2) ───────────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon { height: 32px; }

.nav-links { display: flex; gap: 24px; font-size: 0.9rem; }
.nav-links a { color: var(--text-muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn-request {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color .3s ease, transform .2s ease;
    white-space: nowrap;
}
.btn-request:hover { background-color: var(--primary-dark); transform: translateY(-1px); text-decoration: none; color: #fff; }

.btn-signin {
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid rgba(11, 69, 127, 0.3);
    text-decoration: none;
    transition: all .3s ease;
    white-space: nowrap;
}
.btn-signin:hover { border-color: var(--primary); background: rgba(11, 69, 127, 0.05); text-decoration: none; }

/* ─── HERO (home2) ─────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 90vh; background: #fafbfa; }

.hero-content {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    margin-top: 40px;
    align-items: flex-start;
}

.hero-text-left { flex: 0 0 30%; padding-top: 20px; }
.hero-text-left h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-dark); }

.highlight-word { color: var(--secondary); position: relative; }
.highlight-word::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-subtitle { font-size: 1.1rem; color: var(--secondary); font-weight: 600; margin-bottom: 12px; }
.hero-description { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 24px; }

.hero-actions { display: flex; gap: 12px; margin-bottom: 30px; }

.btn-primary-action {
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color .3s ease, transform .2s ease;
}
.btn-primary-action:hover { background-color: var(--primary-dark); transform: translateY(-2px); text-decoration: none; color: #fff; }

.btn-secondary-action {
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(11, 69, 127, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .3s ease;
}
.btn-secondary-action:hover { border-color: var(--primary); background: rgba(11, 69, 127, 0.05); text-decoration: none; }

.scroll-down {
    background: var(--secondary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    cursor: pointer;
    transition: transform .3s ease;
}
.scroll-down:hover { transform: translateY(4px); }

/* Hero panel slats */
.hero-panels { display: flex; gap: 15px; height: 500px; flex: 0 0 48%; }

.panel {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 50px;
    transition: all .4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.panel:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); }
.panel.p1, .panel.p4 { transform: translateY(40px); }
.panel.p2, .panel.p3 { transform: translateY(-20px); }
.panel.p1:hover, .panel.p4:hover { transform: translateY(40px) scale(1.02); }
.panel.p2:hover, .panel.p3:hover { transform: translateY(-20px) scale(1.02); }

.hero-stats-right { writing-mode: vertical-rl; display: flex; justify-content: space-around; flex: 0 0 auto; }
.stat-item { margin-bottom: 30px; font-size: 0.85rem; color: #666; }
.stat-item strong { font-size: 1.4rem; color: var(--primary); }

/* ─── MISSION (home2) ──────────────────────────────────────────────────── */
.mission { padding: 100px 50px; }

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-image-card { position: relative; }

.curved-img {
    width: 100%;
    border-radius: 100px 30px 100px 30px;
    object-fit: cover;
    height: 400px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.image-overlay-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
}

.action-circle-btn {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(46, 138, 59, 0.4);
    transition: all .3s ease;
}
.action-circle-btn:hover {
    background: var(--secondary-dark);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 138, 59, 0.5);
    text-decoration: none;
    color: #fff;
}

.mission-text-card h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--text-dark); }
.mission-text-card p { color: #555; line-height: 1.7; margin-bottom: 16px; font-size: 1rem; }

/* ─── STATS DASHBOARD (home2) ──────────────────────────────────────────── */
.stats-dashboard { padding: 50px; display: flex; justify-content: center; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    grid-template-rows: repeat(2, 200px);
    gap: 0;
}

.dash-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.dash-box h3 { font-size: 2rem; margin-bottom: 5px; }
.dash-box p { font-size: 0.9rem; margin: 0; }

.accent-box { background-color: var(--accent); color: #fff; }
.primary-box { background-color: var(--primary); color: #fff; }
.secondary-box { background-color: var(--secondary); color: #fff; }

.image-box { background-size: cover; background-position: center; }
.img-1 { background-image: url('../img/ngo/ngo1-food-security.jpg'); }
.img-2 { background-image: url('../img/ngo/ngo1-climate-and-environment.jpg'); }

.top-left     { border-radius: 80px 0 80px 80px; }
.top-right    { border-radius: 0 80px 80px 80px; }
.bottom-left  { border-radius: 80px 80px 0 80px; }
.bottom-right { border-radius: 80px 80px 80px 0; }
.dashboard-grid .image-box.img-1 { border-radius: 0 80px 0 80px; }
.dashboard-grid .image-box.img-2 { border-radius: 80px 0 80px 0; }

/* ─── FEATURES (home2) ─────────────────────────────────────────────────── */
.features-section { padding: 80px 50px; background: #f8f9fa; }
.features-container { max-width: 1200px; margin: 0 auto; }

.features-header { text-align: center; margin-bottom: 50px; }
.features-header h2 { font-size: 2.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.features-header p { color: #777; font-size: 1rem; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.feature-card h5 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.feature-card p { color: #777; font-size: 0.9rem; line-height: 1.5; margin: 0; }

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    transition: transform .3s ease;
}
.feature-icon:hover { transform: scale(1.1); }

/* ─── CTA (home2) ──────────────────────────────────────────────────────── */
.cta-section {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 80px 50px 20px 50px;
    position: relative;
    margin-top: 100px;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-visual { flex: 0 0 auto; }
.cta-visual img {
    width: 220px;
    height: 320px;
    object-fit: cover;
    transform: translateY(-130px);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cta-content { flex: 1; padding: 0 40px; }
.cta-content h2 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.15; color: #fff; }
.cta-content .highlight { color: var(--accent); }
.cta-content p { color: rgba(255, 255, 255, 0.7); line-height: 1.7; font-size: 1rem; }

.cta-arrow-btn {
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: all .3s ease;
}
.cta-arrow-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); text-decoration: none; color: #fff; }

/* ─── FOOTER (home2 — shared across every marketing page) ──────────────── */
.site-footer { background-color: var(--dark-bg); color: #fff; padding: 10px 50px 20px 50px; }
.cta-section + .site-footer, .cta-section .footer-nav-tags { margin-top: 40px; }

.footer-nav-tags {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    margin-top: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-nav-tags span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}
.main-footer a { color: rgba(255, 255, 255, 0.4); text-decoration: none; transition: color .2s ease; }
.main-footer a:hover { color: rgba(255, 255, 255, 0.7); }

.footer-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── PAGE HERO (pricing / legal pages — home2-styled band) ────────────── */
.page-hero {
    background: var(--dark-bg);
    color: #fff;
    text-align: center;
    padding: 70px 24px 60px;
}
.page-hero h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 12px; color: #fff; }
.page-hero h1 .highlight { color: var(--accent); }
.page-hero p { color: rgba(255, 255, 255, 0.7); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* Billing interval toggle */
.interval-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 22px;
    margin-top: 24px;
    font-size: 0.9rem;
    font-weight: 600;
}
.interval-toggle .save-badge {
    background: var(--accent);
    color: #1a1a2e;
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 2px 8px;
    margin-left: 4px;
}
.toggle-switch { position: relative; width: 46px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    transition: background .2s ease;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
}
.toggle-switch input:checked + .toggle-slider { background: var(--secondary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ─── PRICING CARDS (mirrors Angular pricing-page breakdown) ───────────── */
.pricing-section { padding: 70px 24px 90px; background: #fafbfa; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
    align-items: stretch;
}

.plan-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.plan-card.popular { border-color: var(--primary); }

.popular-banner {
    background: var(--primary);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px;
}

.plan-body { padding: 28px 24px; display: flex; flex-direction: column; flex: 1; }
.plan-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.plan-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.plan-interval { font-size: 0.8rem; color: #888; margin-bottom: 16px; }

.plan-features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.plan-features li i { margin-top: 3px; }
.plan-features li.off { color: #aaa; }
.plan-features .i-on { color: var(--secondary); }
.plan-features .i-cap { color: var(--primary); }
.plan-features .i-off { color: #ccc; }

.plan-feature-flags { border-top: 1px solid #eee; padding-top: 12px; margin-bottom: 20px; }
.feature-flags-label { font-size: 0.75rem; font-weight: 600; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.feature-flags-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.feature-flag-tag { display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 4px; background: #f0f4f8; color: #333; border: 1px solid #dde3ea; }

.plan-cta {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all .3s ease;
}
.plan-cta.solid { background: var(--primary); color: #fff; }
.plan-cta.solid:hover { background: var(--primary-dark); text-decoration: none; }
.plan-cta.outline { color: var(--primary); border: 2px solid rgba(11, 69, 127, 0.35); }
.plan-cta.outline:hover { border-color: var(--primary); background: rgba(11, 69, 127, 0.05); text-decoration: none; }

.pricing-cta-bottom { text-align: center; margin-top: 50px; }
.pricing-cta-bottom p { color: var(--text-muted); margin-bottom: 12px; }

/* ─── LEGAL / POLICY CONTENT ───────────────────────────────────────────── */
.legal-content { max-width: 800px; margin: 0 auto; padding: 60px 24px 80px; }
.legal-content h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-content h2 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--text-dark); }
.legal-content p { color: #555; margin-bottom: 16px; line-height: 1.7; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; color: #555; line-height: 1.9; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

/* ─── LEGACY SUPPORT (sector landing pages still use these) ────────────── */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    transition: all .15s;
    text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ─── RESPONSIVE (home2) ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; padding: 0 30px; }
    .hero-text-left { flex: none; text-align: center; margin-bottom: 40px; }
    .hero-text-left h1 { font-size: 2.5rem; }
    .hero-actions { justify-content: center; }
    .scroll-down { margin: 20px auto; }
    .hero-panels { flex: none; width: 100%; height: 350px; }
    .hero-stats-right { display: none; }
    .mission-grid { grid-template-columns: 1fr; gap: 40px; }
    .dashboard-grid { grid-template-columns: repeat(2, 200px); grid-template-rows: repeat(3, 180px); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-container { flex-direction: column; text-align: center; }
    .cta-visual img { transform: translateY(-60px); width: 180px; height: 250px; }
    .cta-content { padding: 0; margin-bottom: 30px; }
    .nav-links { display: none; }
}

@media (max-width: 640px) {
    .navbar { padding: 15px 20px; }
    .hero-content { padding: 0 20px; }
    .hero-text-left h1 { font-size: 2rem; }
    .hero-panels { height: 280px; gap: 8px; }
    .panel { border-radius: 30px; }
    .mission { padding: 60px 20px; }
    .mission-text-card h2 { font-size: 1.8rem; }
    .stats-dashboard { padding: 30px 20px; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .features-section { padding: 60px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-section { padding: 60px 20px 20px 20px; }
    .cta-content h2 { font-size: 2rem; }
    .footer-nav-tags { flex-wrap: wrap; gap: 12px; justify-content: center; }
    .main-footer { flex-direction: column; gap: 10px; text-align: center; padding-bottom: 20px; }
    .site-footer { padding: 10px 20px 20px; }
    .page-hero h1 { font-size: 2rem; }
    .btn-signin { display: none; }
}
