/* =============================================
   OurChurchCare — Custom Styles
   Mobile-first, Bootstrap 5 based
   ============================================= */


/* ════════════════════════════════════════════════
   SHARED NAVBAR  (.occ-navbar)
   ════════════════════════════════════════════════ */
.occ-navbar {
    background-color: var(--occ-blue);
    padding: 0.6rem 0;
}

.occ-navbar .navbar-nav .nav-link {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.occ-navbar .navbar-nav .nav-link:hover,
.occ-navbar .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.occ-navbar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.occ-navbar__wordmark {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.occ-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.occ-navbar .dropdown-menu {
    border-radius: 0.6rem;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
}

/* Navbar toggler – custom color */
.occ-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.88)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ════════════════════════════════════════════════
   PUBLIC PAGE BASE
   ════════════════════════════════════════════════ */
.occ-public-page {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════ */
.occ-hero {
    background: linear-gradient(135deg, #0f2742 0%, #1a3a5c 45%, #2d6a9f 100%);
    padding-bottom: 3rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .occ-hero {
        min-height: auto;
        padding-top: 2rem;
    }
}

.occ-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.occ-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

.occ-hero__wave--2 {
    bottom: 20px;
}

.occ-hero__badge {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
}

.occ-hero__headline {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.occ-hero__headline--accent {
    background: linear-gradient(90deg, #60d3f8, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.occ-hero__subheadline {
    color: rgba(255,255,255,0.78);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 520px;
}

/* Social proof avatars */
.occ-hero__avatars {
    display: flex;
}

.occ-hero__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    margin-right: -8px;
}

/* ── Mock Dashboard Card ── */
.occ-hero__card-stack {
    position: relative;
}

.occ-mock-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.occ-mock-card--main {
    border-radius: 16px;
    overflow: hidden;
}

.occ-mock-card__header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 14px;
    display: flex;
    align-items: center;
}

.occ-mock-card__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 5px;
}

.occ-mock-card__body {
    padding: 16px;
}

/* Floating badges */
.occ-mock-badge {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    z-index: 3;
    font-size: 0.82rem;
}

.occ-mock-badge--assignment {
    bottom: -18px;
    left: -20px;
    max-width: 220px;
}

.occ-mock-badge--sms {
    top: -16px;
    right: -16px;
    max-width: 210px;
}

@media (max-width: 575.98px) {
    .occ-mock-badge { display: none; }
}


/* ════════════════════════════════════════════════
   SECTION TYPOGRAPHY
   ════════════════════════════════════════════════ */
.occ-section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--occ-blue-mid);
    margin-bottom: 0.5rem;
}

.occ-section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.occ-section-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ════════════════════════════════════════════════
   WHY CARDS
   ════════════════════════════════════════════════ */
.occ-why-card {
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.occ-why-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.occ-why-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}


/* ════════════════════════════════════════════════
   SCRIPTURE QUOTE
   ════════════════════════════════════════════════ */
.occ-scripture {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f1fa 100%);
    border-left: 4px solid var(--occ-blue-mid);
    border-radius: 0 12px 12px 0;
    padding: 2rem 2.5rem;
}

.occ-scripture__text {
    font-size: 1.15rem;
    color: #1f2937;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.occ-scripture__ref {
    font-weight: 700;
    color: var(--occ-blue);
    font-size: 0.9rem;
}


/* ════════════════════════════════════════════════
   FEATURE CARDS
   ════════════════════════════════════════════════ */
.occ-feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.occ-feature-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.occ-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.bg-purple { background-color: #7c3aed !important; }


/* ════════════════════════════════════════════════
   HOW IT WORKS — STEPS
   ════════════════════════════════════════════════ */
.occ-step__number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--occ-blue) 0%, var(--occ-blue-mid) 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(26,58,92,0.3);
}


/* ════════════════════════════════════════════════
   PRICING CARDS
   ════════════════════════════════════════════════ */
.occ-plan-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.occ-plan-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.occ-plan-card--featured {
    background: linear-gradient(135deg, var(--occ-blue) 0%, var(--occ-blue-mid) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 48px rgba(26,58,92,0.35);
    transform: scale(1.03);
}

.occ-plan-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.occ-plan-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.occ-plan-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.occ-plan-card__price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.occ-plan-card__period {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.occ-plan-card__features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
    flex-grow: 1;
}

.occ-plan-card__features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}


/* ════════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════════ */
.occ-cta-banner {
    background: linear-gradient(135deg, #0f2742 0%, #1a3a5c 50%, #2d6a9f 100%);
}

.text-white-75 { color: rgba(255,255,255,0.75) !important; }


/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.occ-footer {
    background: #0f2742;
    margin-top: auto;
}


/* ════════════════════════════════════════════════
   AUTH PAGES  (login / register)
   ════════════════════════════════════════════════ */
.occ-auth-page {
    background: linear-gradient(160deg, #f0f7ff 0%, #f9fafb 60%, #e8f1fa 100%);
    min-height: calc(100vh - 60px);
}


/* ════════════════════════════════════════════════
   PLAN SELECTOR TABS  (register page)
   ════════════════════════════════════════════════ */
.occ-plan-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.occ-plan-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.15s;
    min-width: 110px;
}

.occ-plan-tab:hover {
    border-color: var(--occ-blue-mid);
    color: var(--occ-blue);
}

.occ-plan-tab--active {
    border-color: var(--occ-blue);
    background: var(--occ-blue-light);
    color: var(--occ-blue);
}

.occ-plan-tab__price {
    font-size: 0.72rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}

/* ── Brand Colors ───────────────────────────────────────────────────────── */
:root {
    --occ-blue:       #1a3a5c;
    --occ-blue-mid:   #2d6a9f;
    --occ-blue-light: #e8f1fa;
    --occ-green:      #28a745;
    --occ-font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--occ-font);
    background-color: #f4f6f9;
    color: #212529;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar.bg-primary {
    background-color: var(--occ-blue) !important;
}

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
    border-radius: 0.75rem;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--occ-blue-mid);
    box-shadow: 0 0 0 0.2rem rgba(45, 106, 159, 0.2);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
    background-color: var(--occ-blue);
    border-color: var(--occ-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--occ-blue-mid);
    border-color: var(--occ-blue-mid);
}

/* ── Mobile Bottom Nav ──────────────────────────────────────────────────── */
#mobileNav {
    z-index: 1030;
    height: 72px;               /* explicit bar height */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Row and cols must fill the bar */
#mobileNav > .row {
    height: 100%;
}

#mobileNav > .row > .col {
    display: flex;
    height: 100%;
}

/* Each nav item fills its column entirely */
.occ-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    gap: 5px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.occ-nav-item i {
    font-size: 1.75rem;
    line-height: 1;
}

.occ-nav-item--active {
    color: var(--occ-blue-mid);
}

.occ-nav-item:hover,
.occ-nav-item:active {
    color: var(--occ-blue-mid);
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    white-space: nowrap;
}

/* ── List Groups ────────────────────────────────────────────────────────── */
.list-group-item {
    padding: 0.85rem 1rem;
}

/* ── Touch targets (mobile accessibility) ───────────────────────────────── */
@media (max-width: 767.98px) {
    .btn {
        padding: 0.5rem 1rem;
        min-height: 44px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 1rem;
    }

    .list-group-item {
        padding: 0.9rem 1rem;
    }
}

/* ── Stat cards ─────────────────────────────────────────────────────────── */
.stat-card-icon {
    font-size: 2rem;
    line-height: 1;
}

/* ── User avatar (small, for tables/lists) ──────────────────────────────── */
.occ-avatar-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Page transitions (subtle) ───────────────────────────────────────────── */
main {
    animation: fadeIn 0.15s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
