/* 
  Grace & Glory - Premium Church Design System
  Theme: White & Gold (Luxury Spiritual)
*/

:root {
    /* Colors */
    --primary: #D4AF37;       /* Luxury Gold */
    --primary-dark: #B8860B;
    --primary-light: #F4EBD0;
    --white: #FFFFFF;
    --off-white: #F9F9F9;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --border: rgba(212, 175, 55, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(212, 175, 55, 0.12);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius: 12px;
    --radius-full: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    background-color: #F4EBD0; /* Soft gold placeholder */
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
}

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

.btn-gold:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-text {
    padding: 0;
    color: var(--primary);
    background: transparent;
    font-size: 1rem;
}

.btn-text:hover {
    color: var(--primary-dark);
    gap: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.logo span {
    color: var(--text-dark);
    margin: 0 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary);
}

.nav-btn a {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-full);
}

.nav-btn a:hover {
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

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

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Section Common */
section {
    padding: 10rem 0;
}

.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 1rem auto;
}

/* About Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.split-image {
    position: relative;
}

.split-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.split-image .image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary);
    border-left: 5px solid var(--primary);
    z-index: -1;
}

.subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.split-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.split-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Prayer Section */
.prayer {
    background-color: var(--off-white);
}

.prayer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.prayer-form-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.prayer-form-box h3 { margin-bottom: 2rem; }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.prayer-wall h3 { margin-bottom: 2rem; }

.prayer-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 1rem;
}

.prayer-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.prayer-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.prayer-card .meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.prayer-card .meta b { color: var(--primary); }

.prayer-card .meta span {
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.prayer-card p {
    font-style: italic;
    color: var(--text-muted);
}

.prayed-btn {
    margin-top: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prayed-btn.active {
    color: var(--primary);
    font-weight: 600;
}

/* Matrimony Section */
.matrimony-filters {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
    background: var(--off-white);
    padding: 2rem;
    border-radius: var(--radius);
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.filter-group select {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 200px;
}

.matrimony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.profile-card:hover { transform: translateY(-10px); }

.profile-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lock-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(26,26,26,0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(5px);
}

.profile-info {
    padding: 1.5rem;
}

.profile-info h4 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.profile-info .loc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.profile-info p { font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.5; color: var(--text-muted); }

/* Announcements */
.announcements { background-color: var(--off-white); }
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ann-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ann-img { height: 220px; }
.ann-img img { width: 100%; height: 100%; object-fit: cover; }
.ann-info { padding: 2rem; }
.ann-info .date { color: var(--primary); font-weight: 600; font-size: 0.8rem; margin-bottom: 0.5rem; display: block; }
.ann-info h4 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.ann-info p { font-size: 0.9rem; color: var(--text-muted); }

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item ion-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.map-placeholder {
    height: 250px;
    background: #EEE;
    border-radius: var(--radius);
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); }
.map-content ion-icon { font-size: 3rem; margin-bottom: 1rem; }

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.tab-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #EEE;
}

.tab-header h3 {
    padding-bottom: 0.8rem;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.4;
    transition: var(--transition);
}

.tab-header h3.active {
    opacity: 1;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

#form-contact, #form-login { display: none; }
#form-contact.active, #form-login.active { display: block; }

.form-footer { margin-top: 1.5rem; text-align: center; font-size: 0.85rem; }
.form-footer a { color: var(--primary); font-weight: 600; }

/* Footer */
.footer {
    background: #111;
    color: #CCC;
    padding: 6rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.social-links a:hover { background: var(--primary); color: var(--white); transform: translateY(-5px); }

.footer-links h4, .footer-newsletter h4 { color: var(--white); margin-bottom: 2rem; position: relative; }
.footer-links h4::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 30px; height: 2px; background: var(--primary); }
.footer-links li { margin-bottom: 1rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 1rem;
    color: white;
    border-radius: 8px 0 0 8px;
    width: 100%;
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Animations */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.reveal-fade, .reveal-up, .reveal-left, .reveal-right, .reveal-slide {
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade.active { opacity: 1; }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-left.active, .reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-slide { transform: translateY(30px); }
.reveal-slide.active { opacity: 1; transform: translateY(0); }


/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 3rem; }
    .hero h1 { font-size: 3.5rem; }
    .split-layout, .prayer-content, .contact-wrapper { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    section { padding: 6rem 0; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.8rem; }
    .announcements-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-links h4::after { left: 50%; transform: translateX(-50%); }
    .newsletter-form { max-width: 400px; margin: 1.5rem auto; }
}
