/* ════════════════════════════════════════════════════════════
   Nelgates HRMS — Marketing site stylesheet
   Shared by landing.php, includes/feature-page.php, contact.php
   (header.php and footer.php carry their own scoped <style> blocks)
════════════════════════════════════════════════════════════ */

:root {
    --zp-blue: #1a73e8;
    --zp-blue-dark: #0d5bb8;
    --zp-blue-deep: #1a3d6d;
    --zp-blue-light: #e8f2fc;
    --zp-blue-pale: #f4f8fc;
    --zp-blue-muted: #5b8fc7;
    --zp-blue-b: #c9def7;
    --zp-text: #1a3d6d;
    --zp-text-soft: #4a6fa5;
    --zp-border: #d4e4f7;
    --zp-white: #ffffff;
}

* { box-sizing: border-box; }

body.marketing-page {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--zp-text-soft);
    background: var(--zp-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.marketing-page h1,
.marketing-page h2,
.marketing-page h3,
.marketing-page h4 {
    color: var(--zp-blue-deep);
    margin: 0;
    line-height: 1.25;
}

.marketing-page p { margin: 0; }
.marketing-page a { color: inherit; }

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

/* ── Scroll-reveal (progressively enhanced — invisible-by-default only
   kicks in once JS confirms it can actually reveal the elements) ── */
body.js-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
body.js-ready .reveal.in-view {
    opacity: 1;
    transform: none;
}
.reveal-delay-1.in-view, body:not(.js-ready) .reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2.in-view, body:not(.js-ready) .reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3.in-view, body:not(.js-ready) .reveal-delay-3 { transition-delay: .24s; }

/* ── Buttons ── */
.zp-btn-lg-primary,
.zp-btn-lg-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.zp-btn-lg-primary,
.zp-btn-lg-primary:link,
.zp-btn-lg-primary:visited,
.zp-btn-lg-primary i {
    background: var(--zp-blue);
    color: #ffffff !important;
    border: 1px solid var(--zp-blue);
}
.zp-btn-lg-primary:hover,
.zp-btn-lg-primary:hover i {
    background: var(--zp-blue-dark);
    border-color: var(--zp-blue-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}
.zp-btn-lg-outline {
    background: var(--zp-white);
    color: var(--zp-blue);
    border: 1.5px solid var(--zp-blue);
}
.zp-btn-lg-outline:hover {
    background: var(--zp-blue-light);
    transform: translateY(-1px);
}

/* ── Section heading helpers ── */
.zp-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--zp-blue-deep);
    margin-bottom: 14px;
}
.zp-section-title.text-start { text-align: left; }
.marketing-page .zp-section-subtitle {
    text-align: center;
    font-size: 15.5px;
    color: var(--zp-text-soft);
    max-width: 640px;
    margin: 0 auto 48px;
}

/* ── HERO ── */
.zp-hero {
    padding: 96px 0 56px;
    text-align: center;
    background: linear-gradient(180deg, var(--zp-blue-pale) 0%, var(--zp-white) 100%);
}
.zp-hero-badge {
    display: inline-block;
    background: var(--zp-blue-light);
    color: var(--zp-blue);
    border: 1px solid var(--zp-blue-b);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
}
.zp-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    max-width: 640px;
    margin: 0 auto 22px;
}

/* Hero content is always above the fold and visible at first paint —
   it shouldn't use the scroll-triggered fade-in (that's for content the
   user scrolls down to). Without this, it can render mid-transition
   (partial opacity) depending on exactly when the page is captured. */
.zp-hero .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
.zp-hero > .container-lg > p {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 17px;
    color: var(--zp-text-soft);
}
.zp-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* ── STATS ── */
.zp-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    padding: 56px 0;
}
.zp-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--zp-blue);
    line-height: 1.1;
}
.zp-stat-label {
    font-size: 13.5px;
    color: var(--zp-text-soft);
    margin-top: 4px;
}

/* ── FEATURES GRID ── */
.zp-features { padding: 24px 0 88px; }
.zp-feature-card {
    display: block;
    height: 100%;
    background: var(--zp-white);
    border: 1px solid var(--zp-border);
    border-radius: 14px;
    padding: 28px 26px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.zp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 115, 232, 0.14);
    border-color: var(--zp-blue-b);
}
.zp-feature-card h3 { margin-bottom: 8px; }
.zp-feature-card p {
    color: var(--zp-text-soft);
    font-size: 14px;
    margin-bottom: 16px;
}
.zp-feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--zp-blue-light);
    color: var(--zp-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--zp-blue);
}
.zp-feature-card:hover .learn-more { text-decoration: underline; }

/* ── CHECK LIST (used in core HR / leave management sections) ── */
.zp-check-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.zp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--zp-text-soft);
    margin-bottom: 12px;
    line-height: 1.5;
}
.zp-check-list li i {
    color: var(--zp-blue);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ── Generic content section wrapper (image + copy blocks) ── */
.zp-core-section,
.zp-content-block {
    padding: 80px 0;
}
.zp-content-block h2 {
    font-size: 2rem;
    margin-bottom: 18px;
}
.zp-content-block p {
    color: var(--zp-text-soft);
    font-size: 15.5px;
    line-height: 1.75;
}
.zp-core-section h2 {
    font-size: 2rem;
    margin-bottom: 18px;
}
.zp-core-section p.lead {
    color: var(--zp-text-soft);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 26px;
}

/* ── CTA band ── */
.zp-cta {
    background: linear-gradient(135deg, var(--zp-blue) 0%, var(--zp-blue-dark) 100%);
    padding: 72px 0;
    text-align: center;
}
.zp-cta h2 {
    color: var(--zp-white);
    font-size: 2rem;
    margin-bottom: 14px;
}
.zp-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 26px;
    font-size: 15.5px;
}
.zp-cta .zp-btn-lg-primary,
.zp-cta .zp-btn-lg-primary i {
    background: var(--zp-white);
    color: var(--zp-blue) !important;
    border-color: var(--zp-white);
}
.zp-cta .zp-btn-lg-primary:hover,
.zp-cta .zp-btn-lg-primary:hover i {
    background: var(--zp-blue-light);
    color: var(--zp-blue) !important;
}

/* ════════════════════════════════════════════════════════════
   FEATURE DETAIL PAGES (includes/feature-page.php)
════════════════════════════════════════════════════════════ */
.zp-feature-hero {
    padding: 48px 0 64px;
    background: linear-gradient(180deg, var(--zp-blue-pale) 0%, var(--zp-white) 100%);
}
.breadcrumb {
    font-size: 13px;
    color: var(--zp-blue-muted);
    margin-bottom: 28px;
}
.breadcrumb a {
    color: var(--zp-blue-muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--zp-blue); text-decoration: underline; }
.zp-feature-hero h1 {
    font-size: 2.4rem;
    max-width: 760px;
    margin-bottom: 16px;
}
.zp-feature-hero p.intro {
    font-size: 16.5px;
    color: var(--zp-text-soft);
    max-width: 680px;
    margin-bottom: 0;
}

.zp-benefits-grid { padding: 72px 0; }
.zp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15.5px;
    color: var(--zp-text-soft);
    margin-bottom: 16px;
}
.zp-benefit-item i { color: var(--zp-blue); margin-top: 3px; }

.zp-core-visual {
    width: 100%;
    min-height: 280px;
    border-radius: 14px;
    background: var(--zp-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    color: var(--zp-blue);
}
.zp-hero-float { animation: zpFloat 3.5s ease-in-out infinite; }
@keyframes zpFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.zp-faq { padding: 72px 0 88px; }
.zp-faq-item {
    border: 1px solid var(--zp-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.zp-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--zp-blue-deep);
    font-size: 15px;
    list-style: none;
}
.zp-faq-item summary::-webkit-details-marker { display: none; }
.zp-faq-item summary::after {
    content: '+';
    float: right;
    font-size: 18px;
    color: var(--zp-blue);
}
.zp-faq-item[open] summary::after { content: '−'; }
.zp-faq-item p {
    margin-top: 12px;
    color: var(--zp-text-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .zp-hero { padding: 76px 0 40px; }
    .zp-hero h1 { font-size: 2.1rem; }
    .zp-section-title { font-size: 1.6rem; }
    .zp-stats { gap: 36px; }
    .zp-feature-hero h1 { font-size: 1.8rem; }
    .zp-core-visual { font-size: 64px; min-height: 200px; }
}
