/* ═══════════════════════════════════════════════════════════════════════════
   County Maps Pro — Global Stylesheet
   Reusable across all pages. Requires Bulma + Font Awesome loaded before this.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Global ── */
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', sans-serif; }

/* ── Sticky nav ── */
.navbar-custom {
    background: rgba(10, 20, 40, 0.92);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 1.5rem;
}
.navbar-custom .navbar-brand strong {
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: .5px;
}
.navbar-custom .navbar-brand span { color: #4fc3f7; }
.navbar-custom a.navbar-item,
.navbar-custom .navbar-link { color: #cde; font-weight: 500; }
.navbar-custom a.navbar-item:hover { color: #fff; background: transparent; }
.btn-nav-login {
    background: #4fc3f7;
    color: #0a1428 !important;
    border-radius: 6px;
    padding: .4rem 1.1rem !important;
    font-weight: 700 !important;
    margin-left: .5rem;
}
.btn-nav-login:hover { background: #81d4fa; }

/* ── Shared fixed background layer — works in Firefox & iOS Safari ── */
.parallax-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('/us-background-map.jpg') center center / cover no-repeat;
    z-index: -2;
    filter: grayscale(30%) brightness(0.65);
}

/* ── Hero ── */
.hero-main {
    min-height: 100vh;
    position: relative;
    background: transparent;
}
.hero-main::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(5,15,35,.25) 0%, rgba(10,40,80,.25) 100%);
    z-index: -1;
}
.hero-main .hero-body { position: relative; z-index: 1; padding-top: 8rem; }
.hero-tagline {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.9);
}
.hero-tagline span { color: #4fc3f7; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-sub {
    font-size: 1.2rem;
    color: #e8f4ff;
    max-width: 560px;
    margin: 1.2rem 0 2.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.btn-hero-primary {
    background: #4fc3f7;
    color: #0a1428;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    padding: .85rem 2.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, transform .15s;
}
.btn-hero-primary:hover { background: #81d4fa; transform: translateY(-2px); }
.btn-hero-ghost {
    border: 2px solid rgba(255,255,255,.55);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: .85rem 2.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color .2s, background .2s;
    margin-left: 1rem;
}
.btn-hero-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-badges { margin-top: 3rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-badge { color: #e8f4ff; font-size: .95rem; text-shadow: 0 1px 5px rgba(0,0,0,.8); }
.hero-badge i { color: #4fc3f7; margin-right: .4rem; }

/* ── Scrolling background sections (use shared fixed layer) ── */
.section-map-bg {
    background: transparent;
    position: relative;
}
.section-map-bg::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 0;
}
.section-map-bg.overlay-dark::before  { background: rgba(8,18,40,.88); }
.section-map-bg.overlay-light::before { background: rgba(8,18,50,.78); }
.section-map-bg > .container,
.section-map-bg > .section-inner { position: relative; z-index: 1; }

/* ── Section typography helpers ── */
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
    color: #4fc3f7;
    font-weight: 700;
    margin-bottom: .5rem;
}
.section-title-light {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: .6rem;
}
.section-sub-light { color: #8aaac8; font-size: 1.05rem; margin-bottom: 3rem; }

/* ── Features ── */
#features { padding: 5rem 1.5rem; }
.feature-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 2rem 1.6rem;
    height: 100%;
    transition: background .2s, transform .2s;
}
.feature-card:hover { background: rgba(79,195,247,.1); transform: translateY(-4px); }
.feature-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #1565c0, #4fc3f7);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.2rem;
}
.feature-card h3 { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { color: #8aaac8; font-size: .95rem; line-height: 1.6; }

/* ── How it works ── */
#how-it-works { padding: 5rem 1.5rem; background: #f4f7fc; }
.step-number {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #1565c0, #4fc3f7);
    border-radius: 50%;
    color: #fff; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.step-card { text-align: center; padding: 1.5rem; }
.step-card h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; color: #1a2a4a; }
.step-card p { color: #556; font-size: .95rem; line-height: 1.6; }

/* ── Pricing ── */
#pricing { padding: 5rem 1.5rem; }
.pricing-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: transform .2s;
    height: 100%;
}
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.is-featured {
    border-color: #4fc3f7;
    background: rgba(79,195,247,.1);
}
.pricing-badge {
    background: #4fc3f7;
    color: #0a1428;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: .8rem;
}
.pricing-card h3 { color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: .5rem; }
.pricing-price { font-size: 2.8rem; font-weight: 800; color: #4fc3f7; line-height: 1; }
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: .6rem; }
.pricing-period { color: #8aaac8; font-size: .9rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; text-align: left; }
.pricing-features li { color: #b0c8e8; font-size: .95rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.pricing-features li i { color: #4fc3f7; margin-right: .5rem; width: 16px; }
.pricing-features li.unavailable { color: #556; }
.pricing-features li.unavailable i { color: #445; }
.btn-pricing {
    background: #4fc3f7;
    color: #0a1428;
    font-weight: 700;
    padding: .75rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: background .2s;
}
.btn-pricing:hover { background: #81d4fa; color: #0a1428; }
.btn-pricing-ghost {
    border: 2px solid rgba(79,195,247,.5);
    color: #4fc3f7;
    font-weight: 700;
    padding: .75rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: background .2s, border-color .2s;
}
.btn-pricing-ghost:hover { background: rgba(79,195,247,.1); border-color: #4fc3f7; color: #4fc3f7; }

/* ── CTA banner ── */
#cta { padding: 5rem 1.5rem; }
.cta-box {
    background: linear-gradient(135deg, rgba(21,101,192,.5), rgba(79,195,247,.25));
    border: 1px solid rgba(79,195,247,.3);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
}
.cta-box h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.cta-box p { color: #8aaac8; font-size: 1.1rem; margin-bottom: 2rem; }

/* ── Footer ── */
footer {
    background: #060f20;
    padding: 2.5rem 1.5rem;
    color: #556;
    font-size: .9rem;
}
footer a { color: #4fc3f7; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-divider { border-top: 1px solid #1a2a40; margin: 1.5rem 0; }

/* ── Modals (shared base) ── */
.modal-card { border-radius: 14px; overflow: hidden; max-width: 760px; width: 90vw; }
.modal-card-head { background: #0a1428; border-bottom: 1px solid #1a2a40; }
.modal-card-title { color: #fff; font-weight: 700; }
.modal-card-body { background: #0d1b35; padding: 0; }

/* ── Demo modal ── */
.demo-map-placeholder {
    height: 420px;
    background: url('/us-background-map.jpg') center/cover;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.demo-map-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(5,15,35,.55);
}
.demo-label {
    position: relative; z-index: 1;
    color: #fff; text-align: center;
}
.demo-label p { color: #8aaac8; margin-top: .5rem; }

/* ── Login modal ── */
#loginModal .modal-card { max-width: 420px; }
#loginModal .modal-card-head { padding: 1.2rem 1.5rem; }
#loginModal .modal-card-body { padding: 1.8rem 1.5rem; }
#loginModal .label { color: #b0c8e8; font-weight: 600; }
#loginModal .input {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 8px;
}
#loginModal .input::placeholder { color: #556; }
#loginModal .input:focus { border-color: #4fc3f7; box-shadow: 0 0 0 2px rgba(79,195,247,.2); }
.btn-login-primary {
    background: #4fc3f7; color: #0a1428; font-weight: 700;
    border: none; border-radius: 8px; width: 100%;
    padding: .75rem; font-size: 1rem; cursor: pointer;
    transition: background .2s;
}
.btn-login-primary:hover { background: #81d4fa; }
.btn-login-primary:disabled { opacity: .6; cursor: not-allowed; }
.login-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 1.2rem 0; }
.login-link { color: #4fc3f7; background: none; border: none; cursor: pointer; font-size: .9rem; text-decoration: underline; padding: 0; }
.login-link:hover { color: #81d4fa; }
#loginNotif { border-radius: 8px; font-size: .9rem; padding: .75rem 1rem; margin-bottom: 1rem; display: none; }
#loginNotif.is-danger  { background: rgba(241,70,104,.15); color: #ff6b8a; border: 1px solid rgba(241,70,104,.3); }
#loginNotif.is-success { background: rgba(72,199,142,.15); color: #48c78e; border: 1px solid rgba(72,199,142,.3); }
#loginNotif.is-info    { background: rgba(32,156,238,.15); color: #4fc3f7; border: 1px solid rgba(32,156,238,.3); }

/* ── Utility ── */
.mt-0 { margin-top: 0 !important; }
