/* Modern Redesign - Abune Teklehaymanot Fundraising */

:root {
    /* Core Palette - Preserving Brand Colors */
    --primary-blue: #0a6286;
    --primary-dark: #1e4d5c; /* From original index.php */
    --primary-gold: #e2ca18;
    --accent-gold: #ffd700; /* Brighter gold for highlights */
    
    /* Neutrals */
    --text-white: #ffffff;
    --text-light: #e8f4f8;
    --text-dark: #1a365d;
    --bg-light: #f8fafc;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, #2a6b7d 100%);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold), #ffed4e);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Ethiopic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gold {
    color: var(--accent-gold);
}

/* Hero Section - Immersive & Grand */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Subtle Grain Texture Overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* Quote Styling */
.amharic-quote {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

.amharic-quote::before,
.amharic-quote::after {
    content: '❖';
    font-size: 1rem;
    color: rgba(255, 215, 0, 0.5);
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* Main Title */
.church-name {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: var(--shadow-lg);
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.core-message {
    margin-bottom: 3rem;
}

.core-message .amharic {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.core-message .english {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Video Container - Glassmorphism */
.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Vision Section */
.vision-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem 2rem;
    border: var(--glass-border);
}

.amharic-heading {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-weight: 700;
}

.amharic-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Pledge Payment Reminder Card */
.pledge-reminder-card {
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.pledge-reminder-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.pledge-reminder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-dark);
    background: var(--gradient-gold);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(226, 202, 24, 0.2);
}

.pledge-reminder-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(226, 202, 24, 0.3);
    color: var(--primary-dark);
}

.cta-section .pledge-reminder-card {
    margin-bottom: 3rem;
}

/* Floor Plan Section */
.floor-plan {
    padding: 6rem 1rem;
    background: linear-gradient(to bottom, var(--primary-dark), #153844);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--accent-gold);
}

.floor-map-container {
    max-width: 1100px;
    margin: 0 auto 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2rem;
    border: var(--glass-border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .floor-map-container {
        grid-template-columns: 1.5fr 1fr;
        padding: 3rem;
    }
}

.floor-map-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.floor-map-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.floor-map-info {
    text-align: left;
}

.floor-map-title {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.floor-map-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Grid System Cards */
.grid-explanation {
    max-width: 1100px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.grid-item:hover::before {
    transform: scaleX(1);
}

.grid-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.grid-square {
    border: 2px solid var(--accent-gold);
    display: grid;
    gap: 2px;
    padding: 2px;
    background: rgba(0,0,0,0.2);
}

.large-square { width: 100px; height: 100px; grid-template-columns: 1fr 1fr; }
.medium-square { width: 100px; height: 50px; grid-template-columns: 1fr 1fr; }
.small-square { width: 50px; height: 50px; grid-template-columns: 1fr; }

.sub-square {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.sub-square.filled {
    background: var(--gradient-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.grid-label {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.grid-price {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 6rem 1rem;
    text-align: center;
    background: linear-gradient(to top, var(--primary-dark), #153844);
}

.cta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-dark);
    background: var(--gradient-gold);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(226, 202, 24, 0.2);
    min-width: 220px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(226, 202, 24, 0.3);
    color: var(--primary-dark);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    box-shadow: none;
}

.cta-button.secondary:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.cta-button i {
    margin-right: 0.8rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

/* Bank Details Drawer (slides in from the left, like a side-nav) */
.bank-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10040;
}

.bank-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bank-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(400px, 88vw);
    background: linear-gradient(180deg, var(--primary-dark) 0%, #153844 100%);
    border-right: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10050;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.bank-drawer.active {
    transform: translateX(0);
}

.bank-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bank-drawer-close:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
}

.bank-drawer-header {
    text-align: center;
    margin: 1rem 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-drawer-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.bank-drawer-title {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 0.4rem;
}

.bank-drawer-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.85;
}

.bank-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bank-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.bank-drawer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.bank-drawer-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
    word-break: break-word;
}

.bank-copy-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: var(--accent-gold);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bank-copy-btn:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.bank-copy-btn.copied {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #ffffff;
}

.bank-drawer-thanks {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero { padding-top: 4rem; }
    .church-name { font-size: 2rem; }
    .floor-map-container { padding: 1.5rem; }
    .grid-container { grid-template-columns: 1fr; }
    .cta-button { width: 100%; }
    .pledge-reminder-card { padding: 1.75rem 1.25rem; }
    .pledge-reminder-text { font-size: 1.1rem; }
    .pledge-reminder-btn { width: 100%; }
    .bank-drawer { width: 100%; padding: 1.5rem 1.25rem; }
}
