/* ===========================================
   NOMATYE FUNERAL SERVICES - GLOBAL STYLES
=========================================== */
:root {
    --gold:    #c9a227;
    --dark:    #1a3868;
    --ink:     #1a2d52;
    --muted:   #6b7280;
    --bg:      #f4f5f7;
    --white:   #ffffff;
    --border:  rgba(0,0,0,.08);
    --shadow:  0 2px 16px rgba(0,0,0,.07);
    --shadow2: 0 6px 32px rgba(0,0,0,.11);
    --radius:  14px;
    --r-pill:  999px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 15px;
}

/* -- TOPBAR ------------------------------- */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,.65);
    font-size: .82rem;
    padding: 7px 0;
}
.topbar a { color: rgba(255,255,255,.75); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .sep { opacity: .25; margin: 0 10px; }
.topbar-pay {
    background: var(--gold);
    color: var(--dark) !important;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    font-size: .82rem;
}

/* -- NAVBAR ------------------------------- */
.nav-shell {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.navbar { padding: 10px 0; }
.navbar-brand img { height: 42px; width: auto; }
.navbar-nav .nav-link {
    color: var(--ink) !important;
    font-weight: 600;
    font-size: .9rem;
    padding: 7px 13px !important;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.navbar-nav .nav-link:hover { background: rgba(201,162,39,.1); color: var(--gold) !important; }
.navbar-nav .nav-link.active { background: rgba(201,162,39,.14); color: var(--gold) !important; }

/* -- BUTTONS (global) --------------------- */
.btn { border-radius: var(--r-pill); font-weight: 700; }

.btn-gold {
    background: var(--gold);
    border: none;
    color: var(--dark);
    font-weight: 700;
    border-radius: var(--r-pill);
    padding: 11px 26px;
    transition: filter .15s, transform .1s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--dark); }

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,.55);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 10px 24px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .15s, border-color .15s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); color: #fff; }

.btn-dark {
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    padding: 11px 26px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: filter .15s;
    cursor: pointer;
}
.btn-dark:hover { filter: brightness(1.2); color: #fff; }

.btn-ghost {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--ink);
    border-radius: var(--r-pill);
    padding: 9px 22px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: border-color .15s, background .15s;
    cursor: pointer;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Bootstrap overrides */
.btn-primary {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--dark) !important;
    border-radius: var(--r-pill) !important;
    font-weight: 700 !important;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary {
    background: var(--dark) !important;
    border-color: var(--dark) !important;
    color: #fff !important;
    border-radius: var(--r-pill) !important;
    font-weight: 700 !important;
}

/* -- PAGE SHELL --------------------------- */
.page-shell { min-height: calc(100vh - 200px); background: var(--bg); }

/* -- FOOTER ------------------------------- */
footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 52px 0 24px;
}
footer a { color: rgba(255,255,255,.65); text-decoration: none; }
footer a:hover { color: var(--gold); }
.foot-heading {
    color: var(--gold);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
}
.foot-link { display: block; margin-bottom: 9px; font-size: .88rem; }
.foot-divider { border-color: rgba(255,255,255,.08); margin: 32px 0 20px; }
.foot-copy { font-size: .8rem; color: rgba(255,255,255,.38); }

/* -- WHATSAPP FLOAT ----------------------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 76px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
    text-decoration: none !important;
    transition: transform .15s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,.3);
    animation: waPulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes waPulse {
    0%   { transform: scale(.9); opacity: .8; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* -- CMB FLOAT ---------------------------- */
.cmb-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: var(--r-pill);
    padding: 11px 18px;
    font-weight: 800;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    cursor: pointer;
    transition: transform .15s, filter .15s;
    white-space: nowrap;
}
.cmb-float:hover { transform: translateY(-2px); filter: brightness(1.06); }
.cmb-float i { font-size: 15px; }

/* -- MODAL -------------------------------- */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 24px 64px rgba(0,0,0,.16);
}
.modal-header { border-bottom: none; padding: 24px 24px 8px; }
.modal-body { padding: 8px 24px 24px; }

/* -- UTILITY BUTTON CLASSES --------------- */
.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--ink);
    border-radius: var(--r-pill);
    padding: 9px 20px;
    font-weight: 700;
    font-size: .87rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,.45);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 9px 22px;
    font-weight: 700;
    font-size: .87rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); color: #fff; }

/* -- REVEAL ------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.on { opacity: 1; transform: none; }

/* -- SECTION UTILITIES -------------------- */
.section-pad { padding: 72px 0; }
@media (max-width:768px) { .section-pad { padding: 48px 0; } }
.section-label {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}
.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.section-sub { color: var(--muted); font-size: .95rem; margin-top: 8px; }
