/* ============================================
   MAS ARIZONA BRAND STYLESHEET
   Centralized styles for all pages
   Last Updated: February 18, 2026
   ============================================ */

/* ============================================
   DESIGN SYSTEM: MAS Brand Identity (Official Colors)
   Aesthetic: Professional, vibrant, trustworthy, energetic
   ============================================ */

:root {
    /* MAS Official Brand Palette (from national/Arizona sites) */
    --color-earth: #1A1A1A;
    --color-earth-light: #4A4A4A;
    --color-sand: #F0F4F8;
    --color-sand-dark: #E4EAF2;
    --color-terracotta: #7AC142;
    --color-terracotta-dark: #6AAF35;
    --color-terracotta-light: #A3D670;
    --color-sage: #2B5FA6;
    --color-sage-dark: #1E4578;
    --color-sage-light: #4A7FC8;
    --color-gold: #7AC142;
    --color-gold-light: #A3D670;
    --color-cream: #FAFAFA;
    --color-stone: #666666;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-warm: 0 4px 20px rgba(43, 95, 166, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-earth);
    background: var(--color-sand);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--color-terracotta);
    color: white;
    z-index: 1100;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* ============================================
   STRATEGY BANNER
   ============================================ */

.strategy-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    color: white;
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-md);
    transform: translateY(0);
    transition: transform var(--transition-base);
}

.strategy-banner.hidden {
    transform: translateY(-100%);
}

.strategy-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-right: 40px;
    position: relative;
}

.strategy-banner-text {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.strategy-banner-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.strategy-banner-message {
    font-size: 14px;
    font-weight: 500;
}

.strategy-banner-message strong {
    font-weight: 700;
    color: var(--color-gold-light);
}

.strategy-banner-link {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition-fast);
}

.strategy-banner-link:hover {
    color: var(--color-gold-light);
}

.strategy-banner-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.strategy-banner-cta {
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.strategy-banner-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.strategy-banner-close {
    padding: var(--space-xs);
    color: white;
    opacity: 0.8;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.strategy-banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.strategy-banner-close svg {
    width: 20px;
    height: 20px;
}

/* Adjust header position when banner is visible */
body:not(.banner-dismissed) .header {
    top: 46px;
}

body:not(.banner-dismissed) .prayer-widget {
    top: 134px;
}

body:not(.banner-dismissed) .hero {
    padding-top: 118px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--color-stone); }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

/* Footer logo is on dark background — use white version via filter */
.footer-brand .logo-img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-earth);
    opacity: 0.8;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.highlight::after {
    width: 100%;
}

.nav-link.highlight {
    color: var(--color-terracotta);
    opacity: 1;
    font-weight: 600;
}

.nav-cta {
    display: flex;
    gap: var(--space-sm);
}

.mobile-menu-btn {
    display: none;
    padding: var(--space-xs);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-sand);
    z-index: 999;
    display: none;
    flex-direction: column;
    padding: var(--space-2xl) var(--space-lg);
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.mobile-menu-close {
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-menu-nav a {
    display: block;
    padding: var(--space-md);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-earth);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.highlight {
    background: var(--color-white);
    color: var(--color-terracotta);
}

.mobile-menu-cta {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-sand-dark);
}

.mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: white;
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-warm);
}

.btn-secondary {
    background: var(--color-earth);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-earth-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-earth);
    color: var(--color-earth);
}

.btn-outline:hover {
    background: var(--color-earth);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--color-earth);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   PRAYER TIMES WIDGET (Floating)
   ============================================ */

.prayer-widget {
    position: fixed;
    top: 88px;
    right: var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) var(--space-lg);
    z-index: 900;
    min-width: 200px;
    animation: slideIn 0.5s ease-out 0.3s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prayer-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.prayer-widget-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-stone);
}

.prayer-widget-location {
    font-size: 0.7rem;
    color: var(--color-sage);
    display: flex;
    align-items: center;
    gap: 4px;
}

.prayer-next {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.prayer-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.prayer-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.prayer-countdown {
    font-size: 0.75rem;
    color: var(--color-stone);
    margin-top: var(--space-xs);
}

.prayer-all-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-sage);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.prayer-all-link:hover {
    color: var(--color-terracotta);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(122, 193, 66, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(43, 95, 166, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(43, 95, 166, 0.1);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-sage);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.6s ease-out;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-sage);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.hero-title {
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero-title .accent {
    color: var(--color-terracotta);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-stone);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    animation: fadeUp 0.6s ease-out 0.4s both;
}

.stat {
    text-align: left;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-earth);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-stone);
    margin-top: var(--space-xs);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
}

.hero-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: var(--space-xl);
}

.hero-image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    margin-bottom: var(--space-md);
}

.hero-image-placeholder span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Floating cards */
.hero-float-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-float-card.card-event {
    bottom: 10%;
    left: -20%;
    animation-delay: 0s;
}

.hero-float-card.card-community {
    top: 15%;
    right: -15%;
    animation-delay: 1s;
}

.float-card-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-stone);
    margin-bottom: var(--space-xs);
}

.float-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.float-card-meta {
    font-size: 0.75rem;
    color: var(--color-terracotta);
    font-weight: 500;
}

/* ============================================
   THIS WEEK SECTION
   ============================================ */

.this-week {
    background: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-header-text h2 {
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    color: var(--color-stone);
    font-size: 1.125rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.event-card {
    background: var(--color-sand);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

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

.event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-sage);
    transition: var(--transition-base);
}

.event-card:hover::before {
    width: 6px;
    background: var(--color-terracotta);
}

.event-card.featured::before {
    background: var(--color-terracotta);
}

.event-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.event-date-box {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    text-align: center;
    min-width: 56px;
    box-shadow: var(--shadow-sm);
}

.event-date-day {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-earth);
    line-height: 1;
}

.event-date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-stone);
    margin-top: 2px;
}

.event-meta {
    flex: 1;
}

.event-time {
    font-size: 0.875rem;
    color: var(--color-stone);
    margin-bottom: var(--space-xs);
}

.event-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: rgba(43, 95, 166, 0.1);
    color: var(--color-sage);
}

.event-category.youth {
    background: rgba(122, 193, 66, 0.1);
    color: var(--color-terracotta);
}

.event-category.family {
    background: rgba(122, 193, 66, 0.15);
    color: var(--color-gold);
}

.event-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-earth);
}

.event-description {
    font-size: 0.9375rem;
    color: var(--color-stone);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.event-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--color-stone);
    margin-bottom: var(--space-md);
}

.event-location svg {
    width: 16px;
    height: 16px;
    color: var(--color-sage);
}

.event-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-terracotta);
    transition: var(--transition-fast);
}

.event-cta:hover {
    gap: var(--space-sm);
}

.event-cta svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   COMMUNITY PULSE (Live Activity)
   ============================================ */

.community-pulse {
    background: var(--color-cream);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-lg) 0;
}

.pulse-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.pulse-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-stone);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-sage);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse-dot.urgent {
    background: var(--color-terracotta);
}

.pulse-item strong {
    color: var(--color-earth);
}

.pulse-highlight {
    color: var(--color-terracotta);
    font-weight: 600;
}

/* ============================================
   NEW HERE CTA SECTION
   ============================================ */

.new-here-cta {
    background: var(--color-sage);
    position: relative;
    overflow: hidden;
}

.new-here-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.new-here-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.new-here-content {
    position: relative;
    z-index: 1;
}

.new-here-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.new-here-content > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    max-width: 440px;
}

.new-here-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.new-here-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.feature-text h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.new-here-cta .btn-primary {
    background: var(--color-white);
    color: var(--color-sage);
}

.new-here-cta .btn-primary:hover {
    background: var(--color-cream);
    transform: translateY(-2px);
}

/* Testimonial cards in New Here section */
.new-here-testimonials {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-terracotta-light) 0%, var(--color-terracotta) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
}

.testimonial-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-earth);
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--color-stone);
}

.testimonial-card p {
    font-size: 0.9375rem;
    color: var(--color-earth-light);
    font-style: italic;
    line-height: 1.6;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */

.programs-preview {
    background: var(--color-sand);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.program-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition-base);
}

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

.program-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
}

.program-card:nth-child(2) .program-icon {
    background: linear-gradient(135deg, var(--color-terracotta-light) 0%, var(--color-terracotta) 100%);
}

.program-card:nth-child(3) .program-icon {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.program-card:nth-child(4) .program-icon {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
}

.program-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-earth);
}

.program-card p {
    font-size: 0.9375rem;
    color: var(--color-stone);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-terracotta);
    transition: var(--transition-fast);
}

.program-link:hover {
    gap: var(--space-sm);
}

.program-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   DONATION SECTION
   ============================================ */

.donation-section {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.donation-inner {
    position: relative;
    z-index: 1;
}

.donation-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.donation-header h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.donation-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.impact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-base);
}

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

.impact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-terracotta-light) 0%, var(--color-terracotta) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.75rem;
}

.impact-card:nth-child(2) .impact-icon {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
}

.impact-card:nth-child(3) .impact-icon {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.impact-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-earth);
    margin-bottom: var(--space-sm);
}

.impact-card p {
    font-size: 0.9375rem;
    color: var(--color-stone);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.impact-amount {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-terracotta);
    margin-top: var(--space-sm);
}

.donation-cta-container {
    text-align: center;
}

.donation-amounts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.amount-btn {
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition-base);
    cursor: pointer;
}

.amount-btn:hover,
.amount-btn.active {
    background: white;
    color: var(--color-terracotta);
    border-color: white;
    transform: translateY(-2px);
}

.custom-amount {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.custom-amount input {
    width: 120px;
    padding: var(--space-md) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    text-align: center;
}

.custom-amount input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-amount input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.donation-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: white;
    color: var(--color-terracotta);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.donation-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.donation-cta-btn svg {
    width: 20px;
    height: 20px;
}

.donation-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.donation-methods span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.payment-icons {
    display: flex;
    gap: var(--space-xs);
}

.payment-icon {
    width: 40px;
    height: 26px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-stone);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter {
    background: var(--color-earth);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.newsletter-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: white;
    margin-bottom: var(--space-sm);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-family: var(--font-body);
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--color-terracotta);
}

.newsletter-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--color-terracotta);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.newsletter-btn:hover {
    background: var(--color-terracotta-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-earth);
    color: white;
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--color-terracotta);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-column h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-terracotta-light);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: white;
}

/* ============================================
   PAGE NAVIGATION TABS (Dual UX Flow)
   ============================================ */

.page-tabs {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-earth);
    border-radius: var(--radius-xl);
    padding: var(--space-xs);
    display: flex;
    gap: var(--space-xs);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.page-tab {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    cursor: pointer;
}

.page-tab:hover {
    color: white;
}

.page-tab.active {
    background: var(--color-terracotta);
    color: white;
}

/* Page visibility */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-visual {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-float-card.card-event {
        left: -10%;
    }
    
    .hero-float-card.card-community {
        right: -5%;
    }
    
    .new-here-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    
    .prayer-widget {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-float-card {
        display: none;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-amounts {
        flex-direction: column;
        width: 100%;
    }
    
    .amount-btn {
        width: 100%;
    }
    
    .custom-amount {
        width: 100%;
        justify-content: center;
    }
    
    .custom-amount input {
        flex: 1;
        max-width: 200px;
    }
    
    .donation-cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .page-tabs {
        bottom: var(--space-md);
        width: calc(100% - var(--space-2xl));
        max-width: 320px;
    }
    
    .page-tab {
        flex: 1;
        text-align: center;
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    body:not(.banner-dismissed) .header {
        top: 46px;
    }
    
    body:not(.banner-dismissed) .prayer-widget {
        top: 134px;
    }
    
    body:not(.banner-dismissed) .hero {
        padding-top: 118px;
    }
}
