/* ==========================================================================
   RWB+ App-like UI — Mobile-First / PWA style design system
   Shared across index.php and every included page (about/contact/market/...)
   ========================================================================== */

:root {
    --app-primary: #176507;
    --app-primary-light: #6db86b;
    --app-gradient: linear-gradient(135deg, #6db86b 0%, #176507 100%);
    --app-radius-sm: 0.75rem;
    --app-radius: 1.25rem;
    --app-radius-lg: 1.75rem;
    --app-shadow: 0 8px 24px rgba(23, 101, 7, 0.10);
    --app-shadow-lg: 0 16px 40px rgba(23, 101, 7, 0.16);
    --bottom-nav-height: 98px;
}

/* Extra corner-radius utilities (Bootstrap 5.0 only ships up to .rounded-3) */
.rounded-4 { border-radius: var(--app-radius) !important; }
.rounded-5 { border-radius: var(--app-radius-lg) !important; }

/* ---- App Card ---- */
.app-card {
    background: #fff;
    border: none;
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--app-shadow-lg);
}

.app-card-header {
    background: var(--app-gradient);
    color: #fff;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.app-card-body {
    padding: 1.5rem;
}

/* ---- Section wrapper: gives every page the same mobile-first gutters ---- */
.app-section {
    padding: 1.75rem 0;
}

/* ---- App-style gradient hero (reusable on sub-pages) ---- */
.app-hero {
    background: var(--app-gradient);
    border-radius: 0 0 var(--app-radius-lg) var(--app-radius-lg);
    color: #fff;
    padding: 1.75rem 1.25rem 2.25rem;
    box-shadow: var(--app-shadow-lg);
}

/* ---- Buttons feel more "tappable" / app-like ---- */
.btn {
    border-radius: 50px;
}

.btn-square,
.back-to-top {
    border-radius: var(--app-radius-sm);
}

/* ---- Bottom Navigation Bar (mobile / PWA style) ---- */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    height: var(--bottom-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav .bottom-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: var(--bottom-nav-height);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8a8f98;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item i {
    font-size: 1.95rem;
    line-height: 1;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--app-primary);
    transform: translateY(-2px);
}

.bottom-nav-item.nav-cta {
    color: #fff;
}

.bottom-nav-item.nav-cta .bottom-nav-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-top: -38px;
    border-radius: 50%;
    background: var(--app-gradient);
    box-shadow: var(--app-shadow-lg);
    color: #fff;
}

.bottom-nav-item.nav-cta .bottom-nav-cta-icon i {
    font-size: 1.8rem;
}

.bottom-nav-item.nav-cta.active,
.bottom-nav-item.nav-cta:hover {
    color: var(--app-primary);
}

@media (max-width: 991.98px) {
    .bottom-nav {
        display: block;
    }

    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0));
    }

    .back-to-top {
        bottom: calc(var(--bottom-nav-height) + 16px) !important;
    }
}
