/**
 * חברותא - Joomla Template Stylesheet
 * RTL-first design for Hebrew content
 */

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    --maroon: #8C1D26;
    --maroon-dark: #6B1520;
    --maroon-light: #A52332;
    --azure: #4A90E2;
    --azure-dark: #2E6DB8;
    --navy: #1A2B4C;
    --cream: #F4F7F9;
    --cream-warm: #FAF7F2;
    --cream-deep: #EDE8E0;
    --text-dark: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #7a7a7a;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-maroon: 0 12px 40px rgba(140,29,38,0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Frank Ruhl Libre', Georgia, serif;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream-warm);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 16px;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
}

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

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

ul, ol {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-warm); }
::-webkit-scrollbar-thumb { background: var(--maroon); border-radius: 3px; }

/* Selection */
::selection {
    background-color: var(--maroon);
    color: var(--white);
}

/* ===========================
   LAYOUT
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===========================
   TYPOGRAPHY
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--navy);
    line-height: 1.3;
}

.text-maroon { color: var(--maroon); }
.text-azure  { color: var(--azure); }
.text-navy   { color: var(--navy); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.badge-maroon {
    background: rgba(140,29,38,0.08);
    color: var(--maroon);
    border: 1px solid rgba(140,29,38,0.12);
}

.badge-navy {
    background: rgba(26,43,76,0.07);
    color: var(--navy);
    border: 1px solid rgba(26,43,76,0.12);
}

.badge-azure {
    background: rgba(74,144,226,0.08);
    color: var(--azure);
    border: 1px solid rgba(74,144,226,0.12);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-maroon);
}

.btn-primary:hover {
    box-shadow: 0 16px 50px rgba(140,29,38,0.35);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

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

.btn-white:hover {
    color: var(--maroon-dark);
}

.btn-outline-white {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    color: var(--maroon);
    font-size: 1.2rem;
}

.logo-icon-svg {
    flex-shrink: 0;
}

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

.footer-logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a,
.navbar-menu a {
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.navbar-menu a:hover {
    color: var(--maroon);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--maroon);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--white) !important;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(140,29,38,0.2);
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140,29,38,0.3);
    color: var(--white);
}

/* Navbar CTA group */
.navbar-ctas {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-cta--donate {
    background: transparent !important;
    color: var(--maroon) !important;
    border: 2px solid var(--maroon);
    box-shadow: none !important;
}

.navbar-cta--donate:hover {
    background: var(--maroon) !important;
    color: var(--white) !important;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
    border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--white);
    padding: 32px 24px 40px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
    opacity: 0;
    overflow-y: auto;
    transform: translateY(-16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-links a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-cta {
    display: block;
    text-align: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--white) !important;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-maroon);
}

.mobile-cta--donate {
    background: transparent;
    color: var(--maroon) !important;
    border: 2px solid var(--maroon);
    box-shadow: none;
    margin-top: -8px;
}

.mobile-cta--donate:hover {
    background: var(--maroon);
    color: var(--white) !important;
}

/* ===========================
   HERO
   =========================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream-warm) 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(140,29,38,0.06) 0%, transparent 70%);
}

.hero-shape-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(74,144,226,0.06) 0%, transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream-deep), var(--cream));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(140,29,38,0.15);
}

.hero-placeholder-inner {
    color: var(--maroon);
}

/* ===========================
   STATS BAR
   =========================== */
.stats-bar {
    background: var(--white);
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stats-bar .container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 40px;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140,29,38,0.08);
    color: var(--maroon);
    margin-bottom: 8px;
}

.stat-icon--azure {
    background: rgba(74,144,226,0.08);
    color: var(--azure);
}

.stat-icon--navy {
    background: rgba(26,43,76,0.08);
    color: var(--navy);
}

.stat-number {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(0,0,0,0.08);
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
    background: var(--cream-warm);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition);
}

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

.about-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: var(--cream-warm);
}

.about-card-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.about-card-text {
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how-section {
    background: var(--white);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.step-card {
    flex: 1;
    max-width: 320px;
    background: var(--cream-warm);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all var(--transition);
}

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

.step-number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 3rem;
    color: rgba(140,29,38,0.06);
    line-height: 1;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: rgba(140,29,38,0.08);
    color: var(--maroon);
}

.step-icon--azure {
    background: rgba(74,144,226,0.08);
    color: var(--azure);
}

.step-icon--navy {
    background: rgba(26,43,76,0.08);
    color: var(--navy);
}

.step-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.step-text {
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.95rem;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream-deep) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: flex-start;
}

.testimonial-main {
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card.animating {
    opacity: 0;
    transform: translateY(10px);
}

.testimonial-quote-mark {
    position: absolute;
    top: 24px;
    left: 32px;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    pointer-events: none;
    opacity: 0.07;
}

.testimonial-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.testimonial-author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-author-role {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-stars {
    position: absolute;
    bottom: 32px;
    left: 32px;
    display: flex;
    gap: 2px;
}

/* Sidebar cards */
.testimonial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-side-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.testimonial-side-card:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.testimonial-side-quote {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-side-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-side-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-side-name {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Navigation */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(140,29,38,0.2);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.testimonial-dot.active {
    width: 32px;
    background: var(--maroon);
}

.testimonial-arrows {
    display: flex;
    gap: 8px;
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(140,29,38,0.2);
    background: var(--white);
    color: var(--maroon);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.testimonial-arrow:hover {
    transform: scale(1.1);
}

.testimonial-arrow--active {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
    box-shadow: 0 4px 15px rgba(140,29,38,0.3);
}

/* ===========================
   FAQ
   =========================== */
.faq-section {
    background: var(--cream-warm);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(140,29,38,0.1);
    transition: all var(--transition);
}

.faq-item.open {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
    transition: color var(--transition);
}

.faq-item.open .faq-question {
    color: var(--maroon);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--maroon);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* FAQ CTA */
.faq-cta {
    margin-top: 48px;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    text-align: center;
    box-shadow: var(--shadow-maroon);
}

.faq-cta-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
}

.faq-cta-subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.faq-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ===========================
   REGISTER CTA
   =========================== */
.register-section {
    background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream-deep) 100%);
}

.register-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.register-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn-donate {
    background: linear-gradient(135deg, var(--azure), var(--azure-dark));
    color: var(--white);
    box-shadow: 0 12px 40px rgba(74,144,226,0.25);
}

.btn-donate:hover {
    box-shadow: 0 16px 50px rgba(74,144,226,0.35);
    color: var(--white);
}

.register-title {
    font-weight: 900;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 16px;
}

.register-subtitle {
    color: var(--text-mid);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ===========================
   INNER PAGES
   =========================== */
.inner-content {
    padding: 120px 0 60px;
    min-height: 60vh;
}

.breadcrumbs-wrapper {
    margin-bottom: 32px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs-wrapper a {
    color: var(--maroon);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.content-grid.has-sidebar {
    grid-template-columns: 1fr 300px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Joomla content styling */
.main-content h1 {
    font-weight: 900;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.main-content h2 {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
    margin: 32px 0 16px;
}

.main-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-mid);
}

.main-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    position: relative;
}

.footer-wave {
    height: 120px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-main {
    background: var(--navy);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 48px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-main,
.footer-main * {
    color: rgba(255,255,255,0.8);
}

.footer-heading {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white) !important;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.footer-heading--spaced {
    margin-top: 24px;
}

.footer-col p,
.footer-col li,
.footer-col span {
    color: rgba(255,255,255,0.8);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white) !important;
}

.footer-address {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact-label {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.footer-links--spaced {
    margin-top: 14px;
}

/* Ensure Joomla modules in footer inherit light colors */
.footer-main .moduletable,
.footer-main .moduletable h3,
.footer-main .moduletable a,
.footer-main .moduletable p,
.footer-main .moduletable li,
.footer-main ul,
.footer-main nav a {
    color: rgba(255,255,255,0.8) !important;
}

.footer-main .moduletable a:hover,
.footer-main nav a:hover {
    color: var(--white) !important;
}

.footer-donate-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    color: var(--white) !important;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.footer-donate-btn:hover {
    background: var(--white);
    color: var(--maroon) !important;
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--maroon);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link--whatsapp:hover {
    background: #25D366;
}

.footer-bottom {
    background: rgba(0,0,0,0.15);
    padding: 18px 0;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    background-color: #111d33;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-sep {
    color: rgba(255,255,255,0.25);
}

/* ===========================
   JOOMLA MODULE STYLES
   =========================== */
.moduletable {
    margin-bottom: 24px;
}

.moduletable h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(140,29,38,0.1);
}

/* Joomla system messages */
#system-message-container {
    max-width: 1200px;
    margin: 90px auto 0;
    padding: 0 24px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #166534;
}

.alert-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    color: #92400e;
}

.alert-danger, .alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #991b1b;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 140px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .testimonial-side-card {
        min-width: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 40px;
    }

    .content-grid.has-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .navbar-inner {
        height: 64px;
    }

    .navbar-menu,
    .navbar-ctas {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
        top: 64px;
        height: calc(100vh - 64px);
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats-bar .container {
        padding: 24px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .register-card {
        padding: 40px 24px;
    }

    .faq-cta {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .stats-grid {
        flex-direction: column;
    }

    .testimonial-sidebar {
        display: none;
    }
}

/* ===========================
   REGISTRATION MODAL
   =========================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26,43,76,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 100px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--text-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background: var(--maroon);
    color: var(--white);
    transform: rotate(90deg);
}

/* Progress bar */
.modal-progress {
    height: 4px;
    background: var(--cream);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}

.modal-progress-bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-body {
    padding: 40px 40px 32px;
}

/* Steps */
.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: modalStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-step-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-step-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(140,29,38,0.08);
    color: var(--maroon);
}

.modal-step-icon--azure {
    background: rgba(74,144,226,0.08);
    color: var(--azure);
}

.modal-step-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal-step-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Form Fields */
.modal-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.field-required {
    color: var(--maroon);
}

.field-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}

.field-input:focus {
    border-color: var(--maroon);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(140,29,38,0.08);
}

.field-input::placeholder {
    color: var(--text-light);
}

.field-input.field-error {
    border-color: #ef4444;
    background: rgba(239,68,68,0.04);
}

.field-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
    cursor: pointer;
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio Groups */
.field-radio-group {
    display: flex;
    gap: 12px;
}

.field-radio-group--wrap {
    flex-wrap: wrap;
}

.field-radio {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}

.field-radio input {
    display: none;
}

.field-radio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--cream);
    transition: all var(--transition);
    text-align: center;
}

.field-radio input:checked + .field-radio-box {
    border-color: var(--maroon);
    background: rgba(140,29,38,0.06);
    color: var(--maroon);
}

.field-radio-box:hover {
    border-color: rgba(140,29,38,0.3);
}

/* Chip/Tag Selection */
.field-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.field-chip {
    cursor: pointer;
}

.field-chip input {
    display: none;
}

.field-chip-box {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--cream);
    transition: all var(--transition);
}

.field-chip input:checked + .field-chip-box {
    border-color: var(--azure);
    background: rgba(74,144,226,0.08);
    color: var(--azure);
}

.field-chip-box:hover {
    border-color: rgba(74,144,226,0.3);
}

/* Actions */
.modal-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.modal-actions--split {
    justify-content: space-between;
}

.btn-modal-next,
.btn-modal-submit {
    min-width: 180px;
    justify-content: center;
}

.btn-back {
    background: transparent;
    color: var(--text-mid);
    border: 2px solid rgba(0,0,0,0.08);
    padding: 14px 28px;
}

.btn-back:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* Success State */
.modal-success {
    text-align: center;
    padding: 20px 0;
}

.modal-success-icon {
    margin-bottom: 24px;
    animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-success-title {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.modal-success-text {
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 28px;
}

.modal-success-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}

.modal-success-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* Loading state on submit button */
.btn-modal-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-modal-submit.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.field-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Modal Responsive */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        max-height: 95vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-width: 100%;
    }

    .modal-body {
        padding: 32px 20px 24px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .field-radio-group {
        flex-direction: column;
    }

    .field-radio {
        min-width: unset;
    }

    .modal-actions--split {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-back,
    .btn-modal-next,
    .btn-modal-submit {
        width: 100%;
        justify-content: center;
    }

    .modal-step-title {
        font-size: 1.3rem;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .navbar,
    .footer,
    .stats-bar,
    body::before {
        display: none !important;
    }

    .hero-section {
        padding-top: 0;
    }

    .section {
        padding: 30px 0;
    }

    body {
        background: white;
        color: black;
    }
}
