/* ==========================================================================
   Praying Mothers Unified Design System
   Specifications:
   - 3 Brand Colors + Neutrals (CSS Variables)
   - 2 Fonts Only: Montserrat (Headings) + Inter (Body)
   - Spacing Scale: 8px, 16px, 24px, 32px, 48px, 64px, 96px
   - Buttons: One Primary Style, One Secondary Style
   - Border Radius: 4-6px everywhere
   - Shadows: Very light or no shadows
   ========================================================================== */

:root {
    /* 1. Colors (Max 3 Brand Colors + Neutrals) */
    --color-primary: #0e021a;        /* Deep Midnight Plum */
    --color-secondary: #431475;      /* Royal Plum Accent */
    --color-accent: #d4af37;         /* Warm Gold Accent */

    /* Neutrals */
    --color-bg: #ffffff;
    --color-surface: #faf9fc;
    --color-surface-subtle: #f3f1f6;
    --color-border: #e2e8f0;
    --color-border-subtle: #f1f5f9;
    --color-text: #1e1526;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-white: #ffffff;

    /* 2. Fonts - Senior Interface Design Typography System */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-scripture: 'Playfair Display', Georgia, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* 3. Spacing Scale & Section Spacing */
    --space-8: 8px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-88: 88px;
    --space-96: 96px;
    --space-110: 110px;

    --section-spacing: 64px;
    --container-padding: 20px;

    /* 4. Border Radius (4-6px Everywhere) */
    --radius-sm: 4px;
    --radius: 6px;

    /* 5. Shadows */
    --shadow-none: none;
    --shadow-sm: 0 1px 3px rgba(14, 2, 26, 0.05);
    --shadow-md: 0 2px 6px rgba(14, 2, 26, 0.07);
}

@media (min-width: 768px) {
    :root {
        --section-spacing: 88px;
        --container-padding: 32px;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-spacing: 110px;
        --container-padding: 48px;
    }
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.72;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    body {
        font-size: 17px;
    }
}

/* Fluid Heading Hierarchy with clamp() */
h1, .h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.16;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.015em;
    margin-bottom: var(--space-16);
    text-transform: none;
}

h2, .h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.22;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.012em;
    margin-bottom: var(--space-16);
    text-transform: none;
}

h3, .h3 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.2vw, 25px);
    line-height: 1.32;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-8);
    text-transform: none;
}

h4, .h4, h5, h6 {
    font-family: var(--font-ui);
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.005em;
    margin-bottom: var(--space-8);
    text-transform: none;
}

label, .form-label {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: #334155;
    display: block;
    margin-bottom: 6px;
}

p, .prose p, .body-text {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: var(--space-16);
    text-transform: none !important;
    text-align: left;
}

@media (min-width: 1024px) {
    p, .prose p, .body-text {
        font-size: 17px;
    }
}

p:last-child {
    margin-bottom: 0;
}

/* Global Content Container */
.site-container, .container-custom {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-spacing {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Global Image & Media Responsive Rules */
img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Touch Targets & Form Inputs (48px high, 16px font prevents 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: 15px !important;
    font-family: var(--font-body);
    color: #1a0a2a;
    background-color: #ffffff;
    border: 1.5px solid #E2D9EC;
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(14, 2, 26, 0.04);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover,
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #BCA3D4;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background-color: #ffffff;
    border-color: #431475;
    box-shadow: 0 0 0 4px rgba(67, 20, 117, 0.12), 0 2px 4px rgba(14, 2, 26, 0.04);
}

textarea,
.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Touch Target Size on Mobile for buttons and interactive controls */
.btn-primary,
.btn-secondary,
.btn-gold,
.btn-royal,
.btn-secondary-dark,
button,
.touch-target {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Buttons (Primary & Secondary Only)
   ========================================================================== */
.btn-primary, .btn-gold, .btn-royal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none;
}

.btn-primary:hover, .btn-gold:hover, .btn-royal:hover {
    background-color: #c49f27;
    border-color: #c49f27;
    color: var(--color-primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background-color: transparent;
    color: var(--color-primary);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-none);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--color-surface-subtle);
    border-color: var(--color-text-muted);
    color: var(--color-primary);
}

/* Dark context variants */
.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary-dark:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--color-white);
}

/* ==========================================================================
   Universal Card Design System
   ========================================================================== */
.card-base, .card-clean, .card-luxury, .card {
    background-color: #ffffff;
    border: 1px solid #ECE6F0;
    border-radius: 8px;
    padding: 28px;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-base:hover, .card-clean:hover, .card-luxury:hover, .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20, 10, 30, 0.08);
}

/* Dark section cards */
.card-dark {
    background-color: #1A1026 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF;
}

.card-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(201, 169, 78, 0.3) !important;
}

/* Card Media / Image frame (16:10 fixed ratio, overflow hidden) */
.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #120A1C;
}

.card-media img, .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s 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.04);
}

/* Card Meta Line */
.card-meta {
    font-family: var(--font-body);
    font-size: 14px;
    color: #716682;
    text-transform: none;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.card-dark .card-meta {
    color: #B9B2C4;
}

/* Card Title */
.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #0e021a;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-dark .card-title {
    color: #FFFFFF;
}

/* Card Description */
.card-desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #554A63;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-dark .card-desc {
    color: #B9B2C4;
}

/* Card Bottom Text Link */
.card-link {
    font-family: var(--font-ui);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #C9A94E;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.card-link:hover {
    color: #a88732;
    transform: translateX(3px);
}

/* Editorial Scripture Quotes & Spiritual Accents */
.scripture-quote, .scripture-verse, .font-scripture {
    font-family: var(--font-scripture);
    font-style: italic;
    letter-spacing: normal;
}

/* Event Card Date Block */
.card-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    background-color: #FAF8FC;
    border: 1px solid #ECE6F0;
    border-radius: 6px;
    padding: 4px 8px;
    flex-shrink: 0;
}

.card-date-badge .day {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #0E021A;
}

.card-date-badge .month {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #C9A94E;
    line-height: 1;
    margin-top: 2px;
}

/* Giving Card Icon Box (32px icon, gold, soft square background) */
.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background-color: #FAF6E8;
    border: 1px solid rgba(201, 169, 78, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon-box i {
    font-size: 26px;
    color: #C9A94E;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* UIcons Fallback & Alias Definitions */
.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;
}

/* Form Controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 1px var(--color-secondary);
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
header {
    background-color: var(--color-white) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    border-bottom: 1px solid var(--color-border);
}

/* Swiper Slider & Hero Full-Coverage Rules */
.hero-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 520px;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-swiper .swiper-slide {
        min-height: 580px;
    }
}

@media (min-width: 1024px) {
    .hero-swiper .swiper-slide {
        min-height: 660px;
    }
}

/* Image Coverage & Dynamic Focal Points */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: var(--focus, 70% 25%) !important;
}

@media (max-width: 767px) {
    .hero-slide-img {
        object-position: var(--focus-mobile, 50% 20%) !important;
    }
}

/* Left-to-Right Overlays with High Legibility & Seamless Blending */
.hero-overlay-standard {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(14, 2, 26, 0.98) 0%, 
        rgba(14, 2, 26, 0.94) 38%, 
        rgba(14, 2, 26, 0.82) 55%, 
        rgba(14, 2, 26, 0.40) 75%, 
        rgba(14, 2, 26, 0.15) 100%
    );
    pointer-events: none;
}

.hero-overlay-mountain {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(14, 2, 26, 0.98) 0%, 
        rgba(14, 2, 26, 0.94) 38%, 
        rgba(14, 2, 26, 0.82) 55%, 
        rgba(14, 2, 26, 0.40) 75%, 
        rgba(14, 2, 26, 0.15) 100%
    );
    pointer-events: none;
}

/* Polished hero text glass backing to eliminate clashes with background poster text */
.hero-text-backdrop {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
}

@media (max-width: 767px) {
    .hero-overlay-standard,
    .hero-overlay-mountain {
        background: linear-gradient(
            180deg, 
            rgba(14, 2, 26, 0.96) 0%, 
            rgba(14, 2, 26, 0.90) 65%, 
            rgba(14, 2, 26, 0.65) 100%
        ) !important;
    }
    .hero-text-backdrop {
        padding: var(--space-12) var(--space-12);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}

/* Dots / Pagination */
.hero-swiper .hero-pagination {
    bottom: var(--space-24) !important;
    z-index: 20 !important;
}

.hero-swiper .swiper-pagination-bullet {
    background: var(--color-white) !important;
    opacity: 0.4 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    margin: 0 4px !important;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-accent) !important;
    opacity: 1 !important;
    width: 24px !important;
}

/* Arrows: 44px lighter circles, hidden during autoplay, visible on hero hover / focus */
.hero-swiper .hero-prev,
.hero-swiper .hero-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 25 !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease !important;
    margin-top: 0 !important;
}

.hero-swiper .hero-prev::after,
.hero-swiper .hero-next::after {
    display: none !important;
}

.hero-swiper .hero-prev i,
.hero-swiper .hero-next i {
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !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(--color-accent) !important;
    color: var(--color-accent) !important;
    background: rgba(20, 10, 30, 0.4) !important;
}

.hero-swiper .hero-prev {
    left: 20px !important;
    right: auto !important;
}

.hero-swiper .hero-next {
    right: 20px !important;
    left: auto !important;
}

/* Hide navigation arrows completely on mobile below 768px */
@media (max-width: 767px) {
    .hero-swiper .hero-prev,
    .hero-swiper .hero-next {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   Calm, Branded Floating WhatsApp Action Widget
   ========================================================================== */
.wa-widget-wrapper {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-widget-wrapper.wa-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Hide WhatsApp button when mobile menu is open */
body.mobile-menu-open .wa-widget-wrapper {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Greeting Speech Bubble */
.wa-bubble {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(42, 24, 56, 0.12), 0 2px 6px rgba(42, 24, 56, 0.06);
    border: 1px solid #ECE6F0;
    padding: 12px 14px;
    width: 230px;
    margin-bottom: 2px;
    animation: waBubbleFadeIn 0.35s ease-out forwards;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(42, 24, 56, 0.16);
}

.wa-bubble.hidden {
    display: none !important;
}

@keyframes waBubbleFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wa-bubble-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #6B6275;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    padding: 0;
    z-index: 2;
}

.wa-bubble-close:hover {
    color: #2A1838;
    background: #F4F0F6;
}

.wa-bubble-content {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wa-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wa-bubble-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wa-bubble-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #2A1838;
}

.wa-bubble-text {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 13px;
    line-height: 1.4;
    color: #4B4554;
    margin: 0;
}

.wa-bubble-tail {
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-right: 1px solid #ECE6F0;
    border-bottom: 1px solid #ECE6F0;
    transform: rotate(45deg);
}

/* Button & Pill Container */
.wa-btn-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Slide-out Pill Label on Hover */
.wa-hover-pill {
    position: absolute;
    right: calc(100% + 12px);
    background: #ffffff;
    color: #2A1838;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(42, 24, 56, 0.12);
    border: 1px solid #ECE6F0;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-btn-container:hover .wa-hover-pill {
    opacity: 1;
    transform: translateX(0);
}

/* Pulsing Ring (Every 6 Seconds) */
.wa-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    pointer-events: none;
    animation: waPulse 6s ease-out infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    18% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* WhatsApp Circle Button */
.wa-circle {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
    cursor: pointer;
}

.wa-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    background-color: #22bf5b;
}

.wa-circle:active {
    transform: scale(0.95);
}

.wa-circle:focus-visible {
    outline: 3px solid #C9A94E;
    outline-offset: 3px;
}

/* WhatsApp Icon */
.wa-icon {
    font-size: 30px;
    line-height: 1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Availability Status Dot */
.wa-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #9ca3af; /* Default off-hours grey */
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}

.wa-status-dot.online {
    background-color: #22c55e;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .wa-widget-wrapper {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: calc(20px + env(safe-area-inset-right, 0px));
    }
    .wa-circle {
        width: 54px;
        height: 54px;
    }
    .wa-icon {
        font-size: 26px;
    }
    .wa-hover-pill {
        display: none; /* Hide hover pill on touch devices */
    }
}

/* Suppress greeting bubble on small mobile screens to prevent obscuring content */
@media (max-width: 639px) {
    .wa-bubble {
        display: none !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wa-widget-wrapper {
        transition: none !important;
    }
    .wa-pulse-ring {
        animation: none !important;
        display: none !important;
    }
    .wa-hover-pill {
        transition: none !important;
    }
    .wa-bubble {
        animation: none !important;
    }
    .wa-circle {
        transition: none !important;
    }
}

/* Universal text helpers */
.text-gold-gradient {
    color: var(--color-accent);
}

/* ==========================================================================
   Reusable Page Hero Component Styles
   ========================================================================== */
.page-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.page-hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity, transform;
    overflow: hidden;
}

.page-hero-slide.is-active {
    opacity: 1;
}

.page-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, center center);
    transform: scale(1);
    transition: transform 6s linear;
}

.page-hero-slide.is-active .page-hero-img {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .page-hero-slide {
        transition: none !important;
    }
    .page-hero-img {
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Typewriter Effect Styles
   ========================================================================== */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: var(--color-accent);
    margin-left: 2px;
    vertical-align: -0.1em;
    animation: typewriterBlink 0.9s infinite;
}

@keyframes typewriterBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.typewriter-word-wrap {
    display: inline-block;
    min-width: 5.8em; /* Reserve space to prevent layout jump */
    text-align: left;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .typewriter-cursor {
        display: none !important;
    }
}

/* ==========================================================================
   Anchored in Jesus Christ Section
   ========================================================================== */
.anchored-section {
    background-color: #FAF6F0;
}

.anchored-decor-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.anchored-gold-frame {
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 1px solid #B8924A;
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 767px) {
    .anchored-gold-frame {
        top: 10px;
        left: 10px;
        right: -10px;
        bottom: -10px;
    }
}

.anchored-slideshow-container {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 560px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1E0F2D;
    box-shadow: 0 10px 30px rgba(42, 24, 56, 0.08);
}

@media (max-width: 767px) {
    .anchored-slideshow-container {
        max-height: 380px;
    }
}

.anchored-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    overflow: hidden;
    will-change: opacity, transform;
}

.anchored-slide.is-active {
    opacity: 1;
}

.anchored-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, center center);
    transform: scale(1);
    transition: transform 5s linear;
}

.anchored-slide.is-active .anchored-slide-img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .anchored-slide {
        transition: none !important;
    }
    .anchored-slide-img {
        transition: none !important;
        transform: none !important;
    }
}

/* Dots underneath anchored slideshow */
.anchored-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    position: relative;
    z-index: 5;
}

.anchored-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #DDD2C7;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anchored-dot.is-active {
    background-color: #B8924A;
    width: 22px;
    border-radius: 4px;
}

/* Scroll Reveal Fade-up */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
