:root {
    --primary: #004D6D;
    --primary-light: #006D9A;
    --secondary: #1A1A1A;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F9F9F9;
    --bg-dark: #111111;
    --white: #FFFFFF;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-white {
    color: var(--white);
}

.text-muted {
    color: #AAA;
}

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

.font-light {
    font-weight: 300;
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 5rem; }
.pt-3 { padding-top: 3rem; }

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--bg-dark);
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.brand-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: var(--primary-light);
}

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

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

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

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

.btn-large.btn-outline:hover {
    background: var(--white);
    color: var(--bg-dark);
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    backdrop-filter: blur(8px);
}

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

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Info Tiles */
#info-tiles {
    display: flex;
    justify-content: space-between;
    margin-top: -60px;
    position: relative;
    z-index: 20;
    gap: 20px;
}

.tile {
    background: var(--white);
    flex: 1;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
}

.tile h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Components */
.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

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

/* Daily Scripture */
#daily-scripture {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.scripture-card {
    max-width: 800px;
    margin: 0 auto;
}

.italic-quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.scripture-ref {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.py-4 { padding: 4rem 0; }

#about {
    display: none;
}

.about-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper {
    max-width: 400px; /* Keeping a consistent size */
    width: 100%;
}

.main-img {
    transition: var(--transition);
}

.img-wrapper:hover {
    transform: scale(1.05);
}

.rounded-img {
    border-radius: 12px;
}

.shadow {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Map Container */
.map-container {
    height: 450px;
    background: #EEE;
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Footer Items */
footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background: transparent;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
}

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

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

.fade-in {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    #hero h1 { font-size: 3rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    #hero h1 { font-size: 2.5rem; }
    #info-tiles {
        flex-direction: column;
        margin-top: 0;
        padding: 40px 2rem;
    }
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        cursor: pointer;
        position: relative;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--white);
        margin-bottom: 6px;
        transition: var(--transition);
    }

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

/* Social Popup */
.social-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    z-index: 2000;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 50px;
    background: var(--white);
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
    overflow: hidden;
    max-width: 50px;
}

.social-btn span {
    opacity: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-btn:hover {
    max-width: 300px;
    padding-right: 20px;
}

.social-btn:hover span {
    opacity: 1;
}

.social-btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

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

.social-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .social-popup {
        bottom: 20px;
        right: 20px;
    }
}

/* Root Hover Effect */
.root-hover {
    position: relative;
    display: inline-block;
}

.root-hover::after {
    content: '';
    position: absolute;
    left: 10%;
    bottom: -5px;
    width: 2px;
    height: 0;
    background: var(--primary);
    transition: all 0.4s ease;
    opacity: 0;
    transform: rotate(-15deg);
    transform-origin: top;
}

.root-hover::before {
    content: '';
    position: absolute;
    right: 20%;
    bottom: -5px;
    width: 1.5px;
    height: 0;
    background: var(--primary);
    transition: all 0.5s ease 0.1s;
    opacity: 0;
    transform: rotate(10deg);
    transform-origin: top;
}

/* Center root */
.root-hover span::after {
    content: '';
    position: absolute;
    left: 45%;
    bottom: -5px;
    width: 1.5px;
    height: 0;
    background: var(--primary);
    transition: all 0.6s ease 0.05s;
    opacity: 0;
    transform: rotate(5deg);
    transform-origin: top;
}


/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    max-width: var(--container-width);
    margin: 0 auto;
}

.about-divider, .prayer-divider {
    display: none;
}

/* Prayer Request Section */
#prayer-requests {
    display: none;
    background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
}

#prayer-form-container {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.prayer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.form-group.full-width,
.form-actions.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    width: 100%;
    text-align: center;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 77, 109, 0.1);
}

.form-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {
    .prayer-form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width,
    .form-actions.full-width {
        grid-column: span 1;
    }
}


/* Books Section */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.book-card {
    text-align: center;
    transition: var(--transition);
}

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

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: #EEE;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 5px 15px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-left: 5px solid rgba(0,0,0,0.1);
}

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

.book-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.book-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

