/* ==========================================================================
   Praying Mothers - Consolidated Design System v2
   Phases 2-5: CSS Variables · Fluid Typography · Cards · Responsive · A11y
   ========================================================================== */

/* ── 1. Design Tokens ──────────────────────────────────────────────────── */
:root {
    /* Brand colours - Warm, harmonious, reverent */
    --pm-navy:     #120824;
    --pm-purple:   #3b1263;
    --pm-purple-2: #521989;
    --pm-gold:     #b88a38;
    --pm-gold-dk:  #8f6721;
    --pm-gold-bg:  #fbf6eb;
    --pm-cream:    #fdfbf7;
    --pm-white:    #ffffff;

    /* Neutral text - Natural, readable contrast */
    --pm-text:     #1c1624;
    --pm-muted:    #4a4156;
    --pm-subtle:   #685f75;
    --pm-border:   #eae4dc;
    --pm-border-2: #ded6cc;

    /* Fonts */
    --pm-font-heading: 'Playfair Display', Georgia, serif;
    --pm-font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Fluid type scale  clamp(min, preferred, max) */
    --pm-text-xs:   clamp(12px, 1.3vw, 13px);
    --pm-text-sm:   clamp(13px, 1.5vw, 14.5px);
    --pm-text-base: clamp(16px, 1.7vw, 17.5px);
    --pm-text-lg:   clamp(18px, 2vw, 20px);
    --pm-text-xl:   clamp(20px, 2.5vw, 24px);
    --pm-text-2xl:  clamp(24px, 3vw, 30px);
    --pm-text-3xl:  clamp(28px, 4vw, 38px);
    --pm-text-4xl:  clamp(32px, 5vw, 48px);
    --pm-text-hero: clamp(34px, 5.5vw, 56px);

    /* Spacing scale (4px base) */
    --pm-sp-1: 4px;
    --pm-sp-2: 8px;
    --pm-sp-3: 12px;
    --pm-sp-4: 16px;
    --pm-sp-5: 20px;
    --pm-sp-6: 24px;
    --pm-sp-8: 32px;
    --pm-sp-10: 40px;
    --pm-sp-12: 48px;
    --pm-sp-16: 64px;
    --pm-sp-20: 80px;
    --pm-sp-24: 96px;

    /* Section vertical padding - fluid */
    --pm-section: clamp(56px, 8vw, 110px);

    /* Radii */
    --pm-radius-sm: 6px;
    --pm-radius:    10px;
    --pm-radius-lg: 16px;
    --pm-radius-xl: 20px;
    --pm-radius-full: 9999px;

    /* Shadows */
    --pm-shadow-sm:  0 1px 3px rgba(14,2,26,.05), 0 1px 2px rgba(14,2,26,.04);
    --pm-shadow:     0 4px 12px rgba(14,2,26,.07), 0 1px 3px rgba(14,2,26,.05);
    --pm-shadow-md:  0 8px 24px rgba(14,2,26,.09), 0 2px 6px rgba(14,2,26,.06);
    --pm-shadow-lg:  0 16px 40px rgba(14,2,26,.12), 0 4px 12px rgba(14,2,26,.07);

    /* Transitions */
    --pm-ease:    cubic-bezier(.16,1,.3,1);
    --pm-dur:     220ms;
}

/* ── 2. Reset augmentation ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--pm-font-body);
    font-size: var(--pm-text-base);
    line-height: 1.72;
    color: var(--pm-text);
    background: var(--pm-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* iOS Safari - support dynamic viewport */
    min-height: 100svh;
}

img, video, svg, canvas, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── 3. Skip Link (Accessibility) ──────────────────────────────────────── */
.pm-skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 9999;
    background: var(--pm-gold);
    color: var(--pm-navy);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 0 0 var(--pm-radius-sm) var(--pm-radius-sm);
    transition: top .2s;
    text-decoration: none;
}
.pm-skip-link:focus { top: 0; outline: 3px solid var(--pm-navy); }

/* ── 4. Focus ring (global visible focus) ───────────────────────────────── */
:focus-visible {
    outline: 2.5px solid var(--pm-gold);
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── 5. Typography ──────────────────────────────────────────────────────── */
h1,.h1 { font-family: var(--pm-font-heading); font-size: var(--pm-text-hero); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; color: var(--pm-navy); margin-bottom: var(--pm-sp-4); }
h2,.h2 { font-family: var(--pm-font-heading); font-size: var(--pm-text-4xl); font-weight: 700; line-height: 1.2;  letter-spacing: -.018em; color: var(--pm-navy); margin-bottom: var(--pm-sp-4); }
h3,.h3 { font-family: var(--pm-font-heading); font-size: var(--pm-text-2xl); font-weight: 600; line-height: 1.3;  letter-spacing: -.012em; color: var(--pm-navy); margin-bottom: var(--pm-sp-2); }
h4,.h4,h5,h6 { font-family: var(--pm-font-body); font-size: var(--pm-text-xl); font-weight: 600; line-height: 1.4; letter-spacing: -.008em; color: var(--pm-navy); margin-bottom: var(--pm-sp-2); }

p, .body-text {
    font-size: var(--pm-text-base);
    line-height: 1.75;
    color: var(--pm-muted);
    margin-bottom: var(--pm-sp-4);
}
p:last-child, .body-text:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color var(--pm-dur) var(--pm-ease); }

label, .form-label {
    font-size: var(--pm-text-sm);
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 6px;
}

/* ── 6. Buttons ─────────────────────────────────────────────────────────── */
.btn-primary, .btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #b88a38;
    color: #ffffff;
    font-family: var(--pm-font-body);
    font-size: var(--pm-text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 11px 26px;
    min-height: 44px;
    border-radius: var(--pm-radius-sm);
    border: 1px solid #a3792c;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(184, 138, 56, 0.25);
    transition: background var(--pm-dur) var(--pm-ease), box-shadow var(--pm-dur), transform .1s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary:hover, .btn-gold:hover {
    background: #a3792c;
    border-color: #8c651e;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(184, 138, 56, 0.32);
}
.btn-primary:active, .btn-gold:active { transform: scale(.98); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--pm-navy);
    font-family: var(--pm-font-body);
    font-size: var(--pm-text-sm);
    font-weight: 600;
    padding: 11px 24px;
    min-height: 44px;
    border-radius: var(--pm-radius-sm);
    border: 1px solid var(--pm-border-2);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: all var(--pm-dur) var(--pm-ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn-secondary:hover {
    background: #fdfbf7;
    border-color: #c9bfb2;
    color: var(--pm-purple);
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--pm-sp-2);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: var(--pm-font-body);
    font-size: var(--pm-text-sm);
    font-weight: 600;
    padding: 11px 22px;
    min-height: 44px;
    border-radius: var(--pm-radius-sm);
    border: 1.5px solid rgba(255,255,255,.22);
    cursor: pointer;
    transition: all var(--pm-dur) var(--pm-ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn-secondary-dark:hover { background: rgba(255,255,255,.16); }

/* ── 7. Cards (Harare City Inspired: Premium Elevation, Clean Border & Glassmorphic Highlights) ── */
.card-base, .card-clean, .card-luxury, .card {
    background: #ffffff;
    border: 1px solid rgba(222, 214, 204, 0.85);
    border-radius: var(--pm-radius-lg);   /* 18-20px */
    padding: 30px;
    box-shadow: 0 4px 20px -4px rgba(18, 8, 36, 0.05), 0 2px 6px -2px rgba(18, 8, 36, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-base:hover, .card-clean:hover, .card-luxury:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(18, 8, 36, 0.12), 0 8px 18px -6px rgba(18, 8, 36, 0.06);
    border-color: rgba(184, 138, 56, 0.40);
}
.card-base:focus-within, .card-clean:focus-within {
    outline: 2px solid var(--pm-gold);
    outline-offset: 3px;
}

/* ── City of Harare Clean Card Design (Minimalist, Elevated, Gold Dash, Pure White) ── */
.card-harare {
    background: #ffffff;
    border: 1.5px solid #ece7ee;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 18px -4px rgba(18, 8, 36, 0.03);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-harare:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -10px rgba(18, 8, 36, 0.09);
    border-color: #d8c293;
}
.card-harare.active,
.card-harare.featured {
    border-color: #dfc38e;
    box-shadow: 0 6px 22px -4px rgba(184, 138, 56, 0.12);
}
.card-harare:focus-within {
    outline: 2px solid #b88a38;
    outline-offset: 3px;
}

.harare-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f2f8;
    border: 1px solid #eae4f1;
    color: #2d104d;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}
.harare-icon i {
    font-size: 22px;
    display: inline-flex;
}
.card-harare:hover .harare-icon {
    transform: scale(1.05);
}
.harare-icon.primary,
.card-harare.active .harare-icon,
.card-harare.featured .harare-icon {
    background: #160a28;
    border-color: #160a28;
    color: #dfb15b;
    box-shadow: 0 8px 20px -3px rgba(22, 10, 40, 0.25);
}

.harare-title {
    font-family: var(--pm-font-body);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.32;
    color: #120824;
    margin-top: 22px;
    margin-bottom: 0;
    letter-spacing: -0.015em;
    transition: color 0.2s ease;
}
.card-harare:hover .harare-title {
    color: #3b1263;
}

.harare-gold-dash {
    width: 34px;
    height: 2.5px;
    background: #c59b27;
    border-radius: 2px;
    margin-top: 10px;
    margin-bottom: 14px;
}

.harare-desc {
    font-size: 14px;
    line-height: 1.62;
    color: #554a63;
    margin-bottom: 24px;
    flex-grow: 1;
}

.harare-action {
    font-size: 14px;
    font-weight: 700;
    color: #b88a38;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
}
.harare-action .arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
    display: inline-block;
}
.card-harare:hover .harare-action {
    color: #8f6721;
}
.card-harare:hover .harare-action .arrow {
    transform: translateX(5px);
}

/* dark variant */
.card-dark {
    background: #1A1026 !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #fff;
    border-radius: var(--pm-radius-lg);
}
.card-dark:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    border-color: rgba(201,169,78,.30) !important;
}

/* Card Media - 16/10 fixed ratio */
.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--pm-radius);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--pm-navy);
    /* placeholder shimmer while loading */
    background-image: linear-gradient(90deg,#f0ecf5 25%,#e8e3ee 50%,#f0ecf5 75%);
    background-size: 400% 100%;
    animation: pm-shimmer 1.4s ease infinite;
}
.card-media img, .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .4s var(--pm-ease);
}
.card-base:hover .card-media img,
.card-clean:hover .card-media img,
.card:hover .card-media img,
.card-base:hover .card-img,
.card-clean:hover .card-img,
.card:hover .card-img {
    transform: scale(1.05);
}

@keyframes pm-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Gold accent line reveal on hover */
.card-base::after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    background: var(--pm-gold);
    border-radius: 0 0 var(--pm-radius-lg) var(--pm-radius-lg);
    position: absolute;
    bottom: 0; left: 0;
    transition: width .35s var(--pm-ease);
}
.card-base { position: relative; overflow: hidden; }
.card-base:hover::after { width: 100%; }

/* Card components */
.card-meta {
    font-size: var(--pm-text-xs);
    color: var(--pm-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.card-dark .card-meta { color: #B9B2C4; }

/* Card civic category pill badge */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: var(--pm-radius-full);
    background: #fbf6eb;
    color: #8f6721;
    border: 1px solid #ebd9b8;
    margin-bottom: 14px;
    align-self: flex-start;
}

.card-title {
    font-family: var(--pm-font-heading);
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--pm-navy);
    letter-spacing: -.015em;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.card-base:hover .card-title,
.card-clean:hover .card-title {
    color: var(--pm-purple);
}
.card-dark .card-title { color: #fff; }

.card-desc {
    font-size: var(--pm-text-sm);
    line-height: 1.68;
    color: var(--pm-muted);
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-dark .card-desc { color: #B9B2C4; }

.card-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #b88a38;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    letter-spacing: 0.2px;
    transition: color var(--pm-dur), gap var(--pm-dur);
}
.card-base:hover .card-link,
.card-clean:hover .card-link {
    color: #8f6721;
    gap: 10px;
}

/* Card icon box - Clean Harare Squircle Standard */
.card-icon-box {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: #f5f2f8;
    border: 1.5px solid #ece7ee;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.card-icon-box i {
    font-size: 22px;
    color: var(--pm-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.card-base:hover .card-icon-box {
    transform: scale(1.05);
    background: #ece5f3;
    border-color: #d8c293;
}

/* Card date badge */
.card-date-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 52px; height: 52px;
    background: #FAF8FC; border: 1px solid var(--pm-border); border-radius: var(--pm-radius-sm);
    padding: 4px 8px; flex-shrink: 0;
}
.card-date-badge .day  { font-family: var(--pm-font-heading); font-size: 20px; font-weight: 700; line-height: 1; color: var(--pm-navy); }
.card-date-badge .month { font-family: var(--pm-font-heading); font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--pm-gold); line-height: 1; margin-top: 2px; }

/* ── 8. Card Grid System ─────────────────────────────────────────────────── */
.pm-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.5vw, 28px);
}
@media (min-width: 600px)  { .pm-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pm-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1440px) { .pm-cards-grid.pm-cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* Equal height rows */
.pm-cards-grid > * { height: 100%; }

/* ── 9. Hero refinements ─────────────────────────────────────────────────── */
/* Lighter gradient so photos read brighter while text stays readable */
.hero-overlay-standard,
.hero-overlay-mountain {
    position: absolute; inset: 0;
    background: linear-gradient(
        100deg,
        rgba(14,2,26,.95) 0%,
        rgba(14,2,26,.88) 35%,
        rgba(14,2,26,.65) 58%,
        rgba(14,2,26,.22) 80%,
        rgba(14,2,26,.06) 100%
    );
    pointer-events: none;
}
@media (max-width: 767px) {
    .hero-overlay-standard,
    .hero-overlay-mountain {
        background: linear-gradient(
            175deg,
            rgba(14,2,26,.92) 0%,
            rgba(14,2,26,.82) 60%,
            rgba(14,2,26,.50) 100%
        ) !important;
    }
}

/* Hero slides: use 100dvh on supporting browsers */
.hero-swiper .swiper-slide {
    min-height: clamp(440px, 62svh, 720px);
}
@media (min-width: 640px) {
    .hero-swiper .swiper-slide { min-height: clamp(540px, 70svh, 760px); }
}
@media (min-width: 1024px) {
    .hero-swiper .swiper-slide { min-height: clamp(620px, 78svh, 820px); }
}

/* Pause button for slider - accessibility */
.hero-pause-btn {
    position: absolute;
    bottom: 28px; right: 20px;
    z-index: 30;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--pm-dur), border-color var(--pm-dur);
    font-size: 13px;
}
.hero-pause-btn:hover { background: rgba(255,255,255,.22); }
.hero-pause-btn:focus-visible { outline: 2px solid var(--pm-gold); }

/* Arrow refinements - show on keyboard focus too */
.hero-swiper .hero-prev,
.hero-swiper .hero-next {
    width: 48px !important; height: 48px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255,255,255,.28) !important;
    background: rgba(14,2,26,.25) !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity .3s, border-color .2s, background .2s !important;
}
.hero-swiper:hover .hero-prev,
.hero-swiper:hover .hero-next,
.hero-swiper .hero-prev:focus-visible,
.hero-swiper .hero-next:focus-visible { opacity: 1 !important; pointer-events: auto !important; }
.hero-swiper .hero-prev:hover,
.hero-swiper .hero-next:hover,
.hero-swiper .hero-prev:focus-visible,
.hero-swiper .hero-next:focus-visible {
    border-color: var(--pm-gold) !important;
    color: var(--pm-gold) !important;
    background: rgba(14,2,26,.55) !important;
}

/* ── 10. Top bar - mobile: fluid ticker + clean ellipsis ─────────────────── */
@media (max-width: 599px) {
    /* Hide social row entirely on tiny screens */
    .topbar-socials { display: none !important; }
    /* Fluid responsive ticker with clean ellipsis */
    .schedule-ticker-wrap {
        display: inline-flex !important;
        align-items: center;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }
    .schedule-ticker-item {
        display: inline-block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    /* Hide email address in top bar */
    .topbar-email { display: none !important; }
}

/* ── 11. Header - sticky, shadow-on-scroll ──────────────────────────────── */
header.pm-header-scrolled {
    box-shadow: 0 2px 12px rgba(14,2,26,.10) !important;
}

/* Dropdown polish - already there; add subtle shadow depth */
nav .group:hover > div[class*="absolute"],
nav .group:focus-within > div[class*="absolute"] {
    box-shadow: 0 12px 36px rgba(14,2,26,.12), 0 2px 6px rgba(14,2,26,.06);
}

/* Hamburger tap target */
#mobileMenuBtn { 
    touch-action: manipulation;
    flex-shrink: 0 !important;
}

/* ── 12. Forms - large inputs, prevent iOS zoom ──────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select, textarea,
.form-input, .form-select, .form-textarea {
    width: 100%;
    min-height: 48px;
    font-size: 16px !important; /* prevent iOS auto-zoom */
    font-family: var(--pm-font-body);
    color: #1a0a2a;
    background: #fff;
    border: 1.5px solid #E2D9EC;
    border-radius: var(--pm-radius-sm);
    padding: 12px 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
input:focus, select:focus, textarea:focus,
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--pm-purple);
    box-shadow: 0 0 0 4px rgba(67,20,117,.12);
}
textarea, .form-textarea { min-height: 140px; resize: vertical; }

/* Validation states */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225,29,72,.10);
}
input:valid:not(:placeholder-shown):not([type="date"]):not([type="password"]) {
    border-color: #22c55e;
}

/* ── 13. WhatsApp Widget - safe-area and dismissible ────────────────────── */
.wa-widget-wrapper {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right:  calc(20px + env(safe-area-inset-right, 0px));
}

/* Dismiss button */
.wa-dismiss-btn {
    position: absolute;
    top: -10px; right: -10px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--pm-border);
    color: #6B6275;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.wa-dismiss-btn:hover { background: #f5f0f8; }

/* On small screens: make widget smaller so it doesn't cover CTAs */
@media (max-width: 479px) {
    .wa-circle  { width: 50px !important; height: 50px !important; }
    .wa-icon    { font-size: 24px !important; }
    .wa-widget-wrapper { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
}

/* ── 14. Page Hero component ─────────────────────────────────────────────── */
.page-hero {
    min-height: clamp(240px, 35svh, 440px);
}

/* ── 15. YouTube / Facebook click-to-load façade ───────────────────────── */
.pm-yt-facade {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--pm-radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.pm-yt-facade img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .3s;
}
.pm-yt-facade:hover img { opacity: .85; }
.pm-yt-facade .pm-yt-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.pm-yt-facade .pm-yt-play svg {
    width: 72px; height: 72px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
    transition: transform .2s;
}
.pm-yt-facade:hover .pm-yt-play svg { transform: scale(1.1); }

/* ── 16. Reduced-motion overrides ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .card-base:hover, .card-clean:hover, .card:hover { transform: none; }
    .card-base::after { display: none; }
    .card-media img { transition: none; }
    .card-link:hover { transform: none; }
    .hero-pause-btn { display: none; } /* slides don't move anyway */
    .wa-pulse-ring { display: none !important; }
    .pm-yt-facade img { transition: none; }
    .pm-yt-facade .pm-yt-play svg { transition: none; }
}

/* ── 17. Responsive safety net ──────────────────────────────────────────── */
/* Prevent any element from causing horizontal overflow */
.max-w-7xl, .max-w-5xl, .max-w-4xl,
[class*="max-w-"] {
    max-width: 100%;
}
@media (max-width: 319px) {
    body { font-size: 15px; }
    h1,.h1 { font-size: 28px; }
    h2,.h2 { font-size: 24px; }
}

/* Fix: no fixed widths wider than viewport */
table { border-collapse: collapse; width: 100%; }
td, th { word-break: break-word; }

/* Landscape mobile: shrink hero slightly so content is visible */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-swiper .swiper-slide { min-height: 320px; }
    .page-hero { min-height: 200px; }
}

/* ── 18. Scroll reveal (transform+opacity only) ─────────────────────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--pm-ease), transform .6s var(--pm-ease);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed { opacity: 1; transform: translateY(0); }

/* ── 19. Text gold gradient ─────────────────────────────────────────────── */
.text-gold-gradient { color: var(--pm-gold); }

/* ── 20. UIcons icon alias fixes ─────────────────────────────────────────── */
.fi-rr-hands-praying::before,
.fi-rr-pray::before,
.fi-rr-praying-hands::before { content: "\ec61" !important; }
.fi-rr-book-bible::before { content: "\e99d" !important; }

/* ── 21. Footer ─────────────────────────────────────────────────────────── */
footer a:hover { color: #fff; }

/* ── 22. Swiper pagination dots - reuse design token ───────────────────── */
.swiper-pagination-bullet { background: rgba(255,255,255,.4) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--pm-gold) !important; width: 22px !important; border-radius: 4px !important; }

/* ── 23. Lightbox ─────────────────────────────────────────────────────── */
#lightboxModal img { border-radius: var(--pm-radius); }

/* ── 24. Harare City Inspired Hero Floating Highlight Cards & Quick Cards ── */
.hero-floating-card {
    background: rgba(18, 9, 34, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.55), 0 10px 24px -5px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}
.hero-floating-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 78, 0.60);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.65), 0 0 24px rgba(201, 169, 78, 0.15);
}

.hero-floating-mini {
    background: rgba(24, 12, 44, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.hero-floating-mini:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 169, 78, 0.50);
}

.hero-gold-line {
    width: 48px;
    height: 3.5px;
    background: #c59b27;
    border-radius: 2px;
    margin: 18px 0;
}

.hero-pill-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 9999px;
    background: #b88a38;
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 15.5px);
    box-shadow: 0 8px 24px rgba(184, 138, 56, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}
.hero-pill-primary:hover {
    background: #a27727;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(184, 138, 56, 0.45);
    transform: translateY(-2px);
}
.hero-pill-primary .pill-arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.hero-pill-primary:hover .pill-arrow-circle {
    transform: translateX(2px);
}

.hero-pill-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 15.5px);
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}
.hero-pill-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.40);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── 25. Eye-Catching Card System (Photo Anchors, Floating Badges, Button Pins) ── */
.card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #120824;
    box-shadow: 0 4px 12px rgba(18, 8, 36, 0.08);
}
.card-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-base:hover .card-media-wrap img,
.card-clean:hover .card-media-wrap img,
.card-featured-altar:hover .card-media-wrap img {
    transform: scale(1.06);
}
.card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 8, 36, 0.65) 0%, rgba(18, 8, 36, 0.10) 50%, transparent 100%);
    pointer-events: none;
}
.card-tag-floating {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 13px;
    border-radius: 9999px;
    background: #c59b27;
    color: #120824;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.card-tag-floating.featured {
    background: linear-gradient(135deg, #e5c464 0%, #b88a38 100%);
    color: #120824;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.card-tag-floating.purple {
    background: #3b1263;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 18px;
    border-radius: 9999px;
    background: #fbf6eb;
    border: 1px solid #ebd9b8;
    color: #8f6721;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
    text-decoration: none;
    margin-top: auto;
}
.card-btn-action:hover,
.card-base:hover .card-btn-action {
    background: #b88a38;
    border-color: #a27727;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(184, 138, 56, 0.30);
    transform: translateY(-1px);
}
.card-btn-action .btn-arrow-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(184, 138, 56, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.card-btn-action:hover .btn-arrow-icon,
.card-base:hover .card-btn-action .btn-arrow-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateX(3px);
}

.card-featured-altar {
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%) !important;
    border: 1.5px solid #dfc38e !important;
    box-shadow: 0 10px 30px -6px rgba(184, 138, 56, 0.16), 0 2px 8px rgba(18, 8, 36, 0.04) !important;
}
.card-featured-altar:hover {
    border-color: #b88a38 !important;
    box-shadow: 0 24px 50px -10px rgba(184, 138, 56, 0.28), 0 0 22px rgba(184, 138, 56, 0.18) !important;
}


