/* ==========================================================================
   IFRIVIS Landing Page — brand-consistent, responsive redesign
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:root {
    --brand: #0b4a2e;
    --brand-dark: #073521;
    --brand-light: #e6f0ea;
    --brand-accent: #f59e0b;
    --text-dark: #1a2e22;
    --text-muted: #5f7267;
    --border-light: #e3ece6;
    --radius: 14px;
    --shadow-sm: 0 2px 10px rgba(11, 74, 46, 0.06);
    --shadow-md: 0 10px 30px rgba(11, 74, 46, 0.10);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { transition: color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease; }

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

.lp-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
}

/* ---------- Navbar ---------- */
.lp-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.lp-navbar .lp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.lp-brand img { height: 42px; width: auto; }

.lp-brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
    margin: 0;
    line-height: 1.1;
}

.lp-brand-text span {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.lp-nav-links a:hover,
.lp-nav-links a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.lp-nav-actions { display: flex; align-items: center; gap: 14px; }

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14.5px;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}

.lp-btn-primary { background: var(--brand); color: #fff; }
.lp-btn-primary:hover { background: var(--brand-dark); color: #fff; }

.lp-btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.lp-btn-outline:hover { background: var(--brand-light); color: var(--brand); }

.lp-btn-light { background: #fff; color: var(--brand); }
.lp-btn-light:hover { background: #f1f5f2; color: var(--brand); }

.lp-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--brand);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.lp-hero {
    background: linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
    padding: 72px 0 90px;
}

.lp-hero .lp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.lp-hero h2 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 20px;
    color: var(--text-dark);
}

.lp-hero p.lead {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Dashboard mockup */
.lp-mockup {
    background: var(--brand);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 14px;
    min-height: 320px;
}

.lp-mockup-sidebar {
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-mockup-sidebar .item {
    color: rgba(255,255,255,.75);
    font-size: 11.5px;
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-mockup-sidebar .item.active { background: rgba(255,255,255,.15); color: #fff; }

.lp-mockup-main {
    background: #f7faf8;
    border-radius: 14px;
    flex: 1;
    padding: 18px;
    min-width: 0;
}

.lp-mockup-main h6 { font-weight: 800; color: var(--text-dark); margin-bottom: 14px; font-size: 15px; }

.lp-mockup-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }

.lp-mockup-kpi {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.lp-mockup-kpi .val { font-weight: 800; font-size: 17px; color: var(--text-dark); }
.lp-mockup-kpi .lbl { font-size: 9px; color: var(--text-muted); font-weight: 600; }

.lp-mockup-chart {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    height: 110px;
}

.lp-mockup-chart svg { width: 100%; height: 100%; display: block; }

/* ---------- Stats bar ---------- */
.lp-stats {
    background: var(--brand-light);
    padding: 40px 0;
}

.lp-stats .lp-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.lp-stat .icon { color: var(--brand); font-size: 24px; margin-bottom: 8px; }
.lp-stat .num { font-size: 26px; font-weight: 800; color: var(--brand); }
.lp-stat .lbl { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ---------- Section shared ---------- */
.lp-section { padding: 90px 0; }
.lp-section-alt { background: #f9fbfa; }

.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.lp-section-head h3 { font-size: 32px; font-weight: 800; color: var(--text-dark); margin: 10px 0 12px; }
.lp-section-head h3 em { color: var(--brand); font-style: normal; }
.lp-section-head p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ---------- Capability cards ---------- */
.lp-cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lp-cap-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
}

.lp-cap-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.lp-cap-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.lp-cap-card h5 { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.lp-cap-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.lp-cap-card .learn { color: var(--brand); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.lp-cap-card .learn:hover { color: var(--brand-dark); }

/* ---------- Process steps ---------- */
.lp-process {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-process-step {
    flex: 1 1 120px;
    text-align: center;
    min-width: 110px;
    position: relative;
}

.lp-process-step .circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}

.lp-process-step .num {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-process-step h6 { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.lp-process-step p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.lp-process-connector {
    flex: 0 0 24px;
    height: 2px;
    background: var(--border-light);
    margin-top: 29px;
}

/* ---------- Why Us ---------- */
.lp-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 40px;
}

.lp-why-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.lp-why-item i { color: var(--brand); font-size: 18px; flex-shrink: 0; }

/* ---------- CTA banner ---------- */
.lp-cta {
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    color: #fff;
}

.lp-cta-left { display: flex; align-items: center; gap: 18px; }

.lp-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.lp-cta h4 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.lp-cta p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.lp-cta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-cta-or { color: rgba(255,255,255,.7); font-size: 13px; }

/* ---------- Footer ---------- */
.lp-footer { background: var(--brand-dark); color: rgba(255,255,255,.8); padding: 70px 0 0; }

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.lp-footer h5 { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.lp-footer p, .lp-footer li, .lp-footer a { font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.9; }
.lp-footer a { text-decoration: none; }
.lp-footer a:hover { color: #fff; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; }
.lp-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lp-footer-logo img { height: 38px; }
.lp-footer-logo span { font-weight: 800; color: #fff; font-size: 17px; }

.lp-footer-social { display: flex; gap: 10px; margin-top: 14px; }
.lp-footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}
.lp-footer-social a:hover { background: var(--brand); }

.lp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
}

.lp-footer-bottom a { color: rgba(255,255,255,.85); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .lp-nav-links { display: none; }
    .lp-nav-toggle { display: block; }
    .lp-nav-actions .lp-btn-outline { display: none; }

    .lp-hero .lp-container { grid-template-columns: 1fr; }
    .lp-hero h2 { font-size: 34px; }
    .lp-mockup { min-height: 260px; }

    .lp-stats .lp-container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .lp-cap-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-why-grid { grid-template-columns: 1fr; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }

    .lp-process { justify-content: center; }
    .lp-process-connector { display: none; }
    .lp-process-step { flex: 1 1 30%; }
}

@media (max-width: 767px) {
    .lp-navbar .lp-container { height: 66px; }
    .lp-brand img { height: 34px; }
    .lp-brand-text h1 { font-size: 15px; }
    .lp-brand-text span { display: none; }

    .lp-hero { padding: 44px 0 60px; }
    .lp-hero h2 { font-size: 28px; }
    .lp-mockup { flex-direction: column; }
    .lp-mockup-sidebar { flex-direction: row; width: 100%; overflow-x: auto; }
    .lp-mockup-kpis { grid-template-columns: repeat(2, 1fr); }

    .lp-section { padding: 60px 0; }
    .lp-section-head h3 { font-size: 26px; }

    .lp-cap-grid { grid-template-columns: 1fr; }
    .lp-stats .lp-container { grid-template-columns: 1fr 1fr; }
    .lp-process-step { flex: 1 1 45%; }

    .lp-cta { flex-direction: column; align-items: flex-start; text-align: left; }
    .lp-cta-actions { width: 100%; }

    .lp-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Mobile nav drawer */
.lp-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 53, 33, 0.6);
    z-index: 1000;
}

.lp-mobile-menu.open { display: block; }

.lp-mobile-menu-panel {
    position: absolute;
    top: 0; right: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    padding: 24px;
    box-shadow: -8px 0 24px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-mobile-menu-panel a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.lp-mobile-close { align-self: flex-end; background: none; border: none; font-size: 22px; color: var(--text-muted); margin-bottom: 6px; }
