@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bm-green-dark: #0b5e2c;
    --bm-green: #0e7a38;
    --bm-green-light: #14963f;
    --bm-gold: #f2a900;
    --bm-orange: #e8821a;
    --bm-cream: #fbf8f0;
    --bm-text: #1d2b21;
    --bm-border: #e3ece4;
}

* { box-sizing: border-box; }

body.landing {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--bm-text);
    background: var(--bm-cream);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.landing h1, .landing h2, .landing h3 {
    font-family: 'Sora', 'Segoe UI', sans-serif;
}

::selection { background: var(--bm-gold); color: #20330f; }

/* ===== Top progress bar ===== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
    background: linear-gradient(90deg, var(--bm-gold), var(--bm-orange)); transition: width .1s linear;
}

/* ===== Nav ===== */
.lp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6%;
    background: rgba(11, 94, 44, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.lp-nav.scrolled {
    background: rgba(11, 94, 44, 0.92);
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
    padding: 10px 6%;
}
.lp-nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; letter-spacing: .3px; }
.lp-nav .brand img { height: 44px; width: 44px; border-radius: 50%; border: 2px solid var(--bm-gold); object-fit: cover; }
.lp-nav .nav-links { display: flex; align-items: center; }
.lp-nav .nav-links a { margin-left: 26px; font-weight: 600; font-size: .92rem; position: relative; color: #fff; }
.lp-nav .nav-links a:not(.btn-login)::after {
    content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--bm-gold);
    transition: width .25s ease;
}
.lp-nav .nav-links a:not(.btn-login):hover::after { width: 100%; }
.lp-nav .btn-login {
    background: var(--bm-gold); color: #20330f; padding: 10px 22px; border-radius: 24px; font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}
.lp-nav .btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(242,169,0,.4); }

/* ===== Hero with background image + floating shapes ===== */
.lp-hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: url('../img/back.jpg') center center / cover no-repeat fixed;
    padding: 120px 6% 90px;
    overflow: hidden;
}
.lp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(8,60,30,.90) 0%, rgba(11,94,44,.8) 45%, rgba(232,130,26,.55) 130%);
    z-index: 0;
}
.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-shapes span {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
    animation: driftShape 14s ease-in-out infinite;
}
.hero-shapes span:nth-child(1) { width: 220px; height: 220px; top: 8%; left: 6%; animation-duration: 16s; }
.hero-shapes span:nth-child(2) { width: 140px; height: 140px; top: 62%; left: 14%; background: rgba(242,169,0,.15); animation-duration: 11s; animation-delay: 1.5s; }
.hero-shapes span:nth-child(3) { width: 300px; height: 300px; top: 20%; right: 8%; background: rgba(232,130,26,.12); animation-duration: 19s; animation-delay: .5s; }
.hero-shapes span:nth-child(4) { width: 90px; height: 90px; bottom: 10%; right: 20%; background: rgba(255,255,255,.12); animation-duration: 9s; animation-delay: 2.5s; }
@keyframes driftShape {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(18px,-26px) scale(1.06); }
    66% { transform: translate(-16px,14px) scale(.96); }
}

.lp-hero .hero-inner { position: relative; z-index: 1; max-width: 780px; }
.lp-hero .hero-badge {
    display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
    padding: 7px 18px; border-radius: 20px; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 22px; backdrop-filter: blur(4px);
    animation: fadeDown .8s ease both;
}
.lp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; margin: 0 0 16px; line-height: 1.15;
    animation: fadeUp .9s ease .1s both;
}
.lp-hero h1 .typed-wrap { display: inline-block; position: relative; }
.lp-hero h1 span.accent {
    background: linear-gradient(95deg, var(--bm-gold), #ffd97a 55%, var(--bm-orange));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% auto; animation: shineText 5s linear infinite;
}
@keyframes shineText { to { background-position: 200% center; } }
.lp-hero p {
    max-width: 640px; margin: 0 auto 32px; font-size: 1.08rem; opacity: .95; line-height: 1.7;
    animation: fadeUp .9s ease .25s both;
}
.lp-hero .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp .9s ease .4s both; }
.lp-hero .btn-primary {
    background: var(--bm-gold); color: #20330f; padding: 15px 34px; border-radius: 28px; font-weight: 700;
    display: inline-block; transition: transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden;
}
.lp-hero .btn-primary::after {
    content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.35); transform: translateX(-120%) skewX(-20deg);
    transition: transform .5s ease;
}
.lp-hero .btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); }
.lp-hero .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(242,169,0,.45); }
.lp-hero .btn-ghost {
    background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.6); color: #fff;
    padding: 15px 30px; border-radius: 28px; font-weight: 700; display: inline-block;
    transition: background .25s ease, transform .25s ease;
}
.lp-hero .btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }

.scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 16px;
}
.scroll-cue::before {
    content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--bm-gold);
    border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s infinite;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollDot { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 8px; } }

/* ===== Stats strip ===== */
.lp-stats {
    position: relative; z-index: 2; margin: -54px 6% 0; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0;
    background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(11,94,44,.18);
    overflow: hidden;
}
.lp-stats .stat {
    text-align: center; padding: 26px 12px; border-right: 1px solid var(--bm-border);
}
.lp-stats .stat:last-child { border-right: none; }
.lp-stats .stat .num {
    font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--bm-green-dark);
}
.lp-stats .stat .num::after { content: attr(data-suffix); }
.lp-stats .stat .lbl { font-size: .8rem; color: #6b7d70; margin-top: 4px; }

/* ===== Sections ===== */
.lp-section { padding: 100px 6% 90px; }
.lp-section h2 { text-align: center; color: var(--bm-green-dark); margin-bottom: 8px; font-size: 2rem; font-weight: 800; }
.lp-section .sub { text-align: center; color: #6b7d70; margin-bottom: 46px; max-width: 560px; margin-left: auto; margin-right: auto; }
.lp-eyebrow {
    display: block; text-align: center; color: var(--bm-orange); font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}

.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.lp-card {
    background: #fff; border: 1px solid var(--bm-border); border-radius: 16px; padding: 32px 24px;
    text-align: center; box-shadow: 0 4px 16px rgba(11,94,44,.06), 0 0 0 1px rgba(14,122,56,.06), 0 0 18px rgba(14,122,56,.08);
    border-top: 4px solid var(--bm-gold);
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0; transform: translateY(30px);
}
.lp-card.in-view { animation: fadeUp .7s ease forwards; }
.lp-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 16px 34px rgba(11,94,44,.14), 0 0 0 1px rgba(242,169,0,.3), 0 0 30px rgba(242,169,0,.20); }
.lp-card .icon {
    font-size: 1.9rem; margin-bottom: 14px; width: 64px; height: 64px; line-height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bm-green-dark), var(--bm-green-light)); color: #fff; margin: 0 auto 16px;
    transition: transform .3s ease;
}
.lp-card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.lp-card h3 { color: var(--bm-green-dark); margin: 8px 0; font-size: 1.08rem; }
.lp-card p { font-size: .92rem; color: #5d6b60; line-height: 1.6; margin: 0; }

/* ===== Transparency section: officials + ordinances/resolutions ===== */
.lp-officials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin-top: 10px; }
.lp-official-card {
    background: #fff; border-radius: 16px; padding: 24px 18px; text-align: center;
    border: 1px solid var(--bm-border);
    box-shadow: 0 4px 16px rgba(11,94,44,.06), 0 0 0 1px rgba(14,122,56,.06), 0 0 18px rgba(14,122,56,.08);
    transition: transform .25s ease, box-shadow .25s ease;
    opacity: 0; transform: translateY(24px);
}
.lp-official-card.in-view { animation: fadeUp .7s ease forwards; }
.lp-official-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(11,94,44,.14), 0 0 0 1px rgba(242,169,0,.3), 0 0 26px rgba(242,169,0,.18); }
.lp-official-card .photo {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
    border: 3px solid var(--bm-gold); box-shadow: 0 0 0 4px rgba(14,122,56,.12);
    display: block; background: #f1f8f2;
}
.lp-official-card .photo-fallback {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center;
    justify-content: center; font-size: 2rem; color: #fff; font-weight: 800;
    background: linear-gradient(135deg, var(--bm-green-dark), var(--bm-green-light));
    border: 3px solid var(--bm-gold); box-shadow: 0 0 0 4px rgba(14,122,56,.12);
}
.lp-official-card h4 { margin: 4px 0 2px; color: var(--bm-text); font-size: 1rem; }
.lp-official-card .role { color: var(--bm-green-dark); font-weight: 700; font-size: .82rem; }

.lp-docs-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.lp-docs-tab {
    background: #fff; border: 1.5px solid var(--bm-border); color: var(--bm-green-dark); font-weight: 700;
    padding: 9px 20px; border-radius: 22px; cursor: pointer; font-family: inherit; font-size: .88rem;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.lp-docs-tab.active, .lp-docs-tab:hover {
    background: var(--bm-green-dark); color: #fff; box-shadow: 0 0 0 3px rgba(242,169,0,.3), 0 0 16px rgba(14,122,56,.3);
}
.lp-docs-panel { display: none; }
.lp-docs-panel.active { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lp-doc-card {
    background: #fff; border: 1px solid var(--bm-border); border-radius: 14px; padding: 20px 22px; text-align: left;
    box-shadow: 0 4px 16px rgba(11,94,44,.06), 0 0 0 1px rgba(14,122,56,.06), 0 0 16px rgba(14,122,56,.08);
    transition: box-shadow .25s ease, transform .25s ease;
}
.lp-doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(11,94,44,.12), 0 0 0 1px rgba(242,169,0,.3), 0 0 24px rgba(242,169,0,.16); }
.lp-doc-card .doc-no { display: inline-block; background: #f1f8f2; color: var(--bm-green-dark); font-weight: 700; font-size: .74rem; padding: 4px 10px; border-radius: 10px; margin-bottom: 8px; }
.lp-doc-card h4 { margin: 0 0 6px; color: var(--bm-text); font-size: 1rem; }
.lp-doc-card p { margin: 0 0 8px; font-size: .87rem; color: #5d6b60; line-height: 1.55; }
.lp-doc-card .doc-date { font-size: .78rem; color: var(--bm-muted, #7a8a7e); font-weight: 600; }

/* ===== Mobile hamburger for landing nav ===== */
.lp-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }


.lp-services { background: linear-gradient(180deg, #fff 0%, #f3faf4 100%); }

/* ===== How it works (steps with connecting line) ===== */
.lp-steps { position: relative; max-width: 940px; margin: 0 auto; }
.lp-steps .track {
    position: absolute; top: 34px; left: 8%; right: 8%; height: 3px;
    background: repeating-linear-gradient(90deg, var(--bm-border) 0 10px, transparent 10px 18px);
}
.lp-steps .track-fill {
    position: absolute; top: 34px; left: 8%; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--bm-gold), var(--bm-orange));
    transition: width 1.1s ease;
}
.lp-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.lp-step { text-align: center; opacity: 0; transform: translateY(24px); }
.lp-step.in-view { animation: fadeUp .6s ease forwards; }
.lp-step .circle {
    width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 3px solid var(--bm-gold);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 800;
    font-family: 'Sora', sans-serif; color: var(--bm-green-dark); font-size: 1.3rem; position: relative; z-index: 1;
    box-shadow: 0 6px 16px rgba(11,94,44,.12); transition: transform .3s ease;
}
.lp-step:hover .circle { transform: scale(1.1) rotate(6deg); }
.lp-step h4 { margin: 0 0 6px; color: var(--bm-green-dark); font-family: 'Sora', sans-serif; font-size: 1rem; }
.lp-step p { font-size: .85rem; color: #5d6b60; margin: 0; line-height: 1.5; }

/* ===== Footer ===== */
.lp-footer {
    background: linear-gradient(120deg, var(--bm-green-dark), #073a1c);
    color: #cfe7d6; text-align: center; padding: 36px 6%; font-size: .9rem;
}
.lp-footer b { color: #fff; }

/* Fade-in-on-scroll utility */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Back-to-top button */
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--bm-green-dark); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(11,94,44,.35); opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, background .3s ease; z-index: 90; font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--bm-green); }

@media (max-width: 900px) {
    .lp-steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
    .lp-steps .track, .lp-steps .track-fill { display: none; }
}
@media (max-width: 700px) {
    .lp-nav-toggle { display: inline-block; }
    .lp-nav .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 300px;
        background: linear-gradient(180deg, var(--bm-green-dark), #073c1e);
        flex-direction: column; align-items: flex-start; padding: 90px 26px 26px;
        transform: translateX(100%); transition: transform .28s ease; box-shadow: -8px 0 30px rgba(0,0,0,.3);
    }
    .lp-nav .nav-links.open { display: flex; transform: translateX(0); }
    .lp-nav .nav-links a { margin: 0 0 22px; font-size: 1rem; }
    .lp-nav .nav-links a:not(.btn-login)::after { display: none; }
    .lp-hero { background-attachment: scroll; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); margin-top: -36px; }
    .lp-stats .stat:nth-child(2n) { border-right: none; }
    .lp-stats .stat { border-bottom: 1px solid var(--bm-border); }
    .lp-officials-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .lp-official-card { padding: 18px 10px; }
    .lp-docs-panel.active { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .lp-officials-grid { grid-template-columns: 1fr 1fr; }
}
