/* ============================================================
   PayrollSys — Home / Landing Page Styles
   Uses CSS variables from theme.css for consistent branding
   ============================================================ */

/* ── Reset & base ────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: var(--theme-font-family, 'Segoe UI', system-ui, sans-serif);
    font-size: 16px !important;     /* home page keeps readable size regardless of theme */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar-home {
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c) 0%,
        var(--theme-accent,  #2563a8) 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    padding: .75rem 0;
    transition: background .3s;
}

/* Logo image in navbar */
.home-nav-logo {
    max-height: 32px;
    max-width:  100px;
    object-fit: contain;
}

/* Nav links */
.navbar-home .home-nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 500;
    padding: .45rem .85rem !important;
    border-radius: 6px;
    transition: color .2s, background .2s;
    position: relative;
}
.navbar-home .home-nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
.navbar-home .home-nav-link.active {
    color: #fff !important;
    font-weight: 700;
}
.navbar-home .home-nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.8);
    position: absolute;
    bottom: 4px;
    left: .85rem;
    right: .85rem;
}

/* Login button in navbar */
.home-nav-btn {
    background: rgba(255,255,255,.15);
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 50px;
    padding: .4rem 1.2rem !important;
    font-weight: 600;
    font-size: .875rem;
    transition: background .2s, border-color .2s;
}
.home-nav-btn:hover {
    background: rgba(255,255,255,.28);
    border-color: #fff;
    color: #fff !important;
}

/* Mobile menu — toggler icon is white via navbar-dark Bootstrap class */
.navbar-home .navbar-toggler {
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.3);
}
.navbar-home .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.25);
}

/* Mobile collapsed menu */
@media (max-width: 991.98px) {
    .navbar-home .navbar-collapse {
        background: var(--theme-primary, #1a3a5c);
        border-radius: 0 0 10px 10px;
        padding: .75rem 1rem 1rem;
        margin-top: .5rem;
        border-top: 1px solid rgba(255,255,255,.15);
    }
    .navbar-home .home-nav-link {
        display: block;
        padding: .5rem .75rem !important;
    }
    .navbar-home .home-nav-link.active::after { display: none; }
    .navbar-home .ms-lg-2 { margin-left: 0 !important; margin-top: .5rem; }
    .home-nav-btn { display: inline-block; }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
    min-height: 88vh;
    padding: 80px 0 60px;
    background: linear-gradient(145deg,
        rgba(var(--theme-primary, #1a3a5c), .04) 0%,
        rgba(255,255,255,1) 60%,
        rgba(var(--theme-accent, #2563a8), .04) 100%);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: 50px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}

.hero-highlight {
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 480px;
}

/* Hero illustration */
.hero-illustration {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-main {
    font-size: 8rem;
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 8px 24px rgba(37,99,168,.25));
}

.hero-icon-float {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37,99,168,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--theme-accent, #2563a8);
    animation: float-icon 3s ease-in-out infinite;
}

.hero-icon-f1 { top: 20px;  left: 20px;   animation-delay: 0s; }
.hero-icon-f2 { top: 20px;  right: 20px;  animation-delay: .75s; }
.hero-icon-f3 { bottom: 30px; left: 10px; animation-delay: 1.5s; }
.hero-icon-f4 { bottom: 30px; right: 10px;animation-delay: 2.25s; }

@keyframes float-icon {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.home-btn-primary {
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
    border: none;
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    padding: .7rem 1.8rem;
    transition: transform .2s, box-shadow .2s, filter .2s;
    box-shadow: 0 4px 16px rgba(37,99,168,.3);
}
.home-btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,168,.35);
    color: #fff !important;
}

.home-btn-outline {
    color: var(--theme-primary, #1a3a5c) !important;
    border: 2px solid var(--theme-primary, #1a3a5c);
    font-weight: 700;
    border-radius: 50px;
    padding: .65rem 1.8rem;
    background: transparent;
    transition: all .2s;
}
.home-btn-outline:hover {
    background: var(--theme-primary, #1a3a5c);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
    color: #fff;
    padding: 2rem 0;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.stat-lbl {
    font-size: .78rem;
    opacity: .78;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section { background: #f8f9fa; }

.about-tag {
    display: inline-block;
    color: var(--theme-accent, #2563a8);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-left: 3px solid var(--theme-accent, #2563a8);
    padding-left: .6rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a1a2e;
}

.section-text { color: #6c757d; font-size: 1rem; }

/* About icon grid */
.about-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.aig-cell {
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.aig-cell i { font-size: 2.2rem; }
.aig-primary {
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
}
.aig-accent {
    background: linear-gradient(135deg,
        var(--theme-accent,  #2563a8),
        var(--theme-primary, #1a3a5c));
    opacity: .85;
}

/* ── FEATURES ────────────────────────────────────────────── */
.features-section { background: #fff; }

.feature-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(37,99,168,.15);
    border-color: var(--theme-accent, #2563a8);
}

.feature-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
    color: #fff;
}
.feature-icon-primary {
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
}
.feature-icon-accent {
    background: linear-gradient(135deg,
        var(--theme-accent,  #2563a8),
        #0096c7);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: .5rem;
}
.feature-text { color: #6c757d; font-size: .9rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section { background: #f8f9fa; }

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37,99,168,.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c),
        var(--theme-accent,  #2563a8));
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card h5 {
    color: var(--theme-primary, #1a3a5c);
    font-weight: 700;
    margin-bottom: .5rem;
}
.contact-card p { color: #6c757d; font-size: .9rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer-section {
    background: linear-gradient(135deg,
        var(--theme-primary, #1a3a5c) 0%,
        var(--theme-accent,  #2563a8) 100%);
    color: #fff;
    padding: 3.5rem 0 1.5rem;
}

.footer-heading {
    color: rgba(255,255,255,.6);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

.footer-text { color: rgba(255,255,255,.75); font-size: .9rem; }

.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-link {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .88rem;
    transition: color .2s;
}
.footer-link:hover { color: #fff; }

.footer-divider { border-color: rgba(255,255,255,.18); }
.footer-copy { color: rgba(255,255,255,.55); font-size: .8rem; }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .2s, transform .2s;
}
.social-link:hover {
    background: rgba(255,255,255,.3);
    color: #fff;
    transform: translateY(-3px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-section { min-height: auto; padding: 60px 0 40px; }
    .hero-illustration { width: 260px; height: 260px; }
    .hero-icon-main { font-size: 5.5rem; }
    .about-icon-grid { gap: .6rem; }
    .aig-cell { padding: 1.25rem .75rem; }
    .aig-cell i { font-size: 1.6rem; }
    .stats-bar { padding: 1.5rem 0; }
    .stat-num { font-size: 1.5rem; }
}
