/*
Theme Name: Zaverok
Description: A clean, responsive WordPress theme for booking prayer appointments.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: pastor-prayer-theme
*/

/* =========================================
   1. VARIABLES & GLOBAL RESETS
   ========================================= */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #c59d5f;
    --accent-hover: #b08a4e;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}
.heromob {
	display: none;
}
/* =========================================
   2. LAYOUT & UTILITIES
   ========================================= */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 20px;
}

.divider.left {
    margin: 0 0 25px 0;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 157, 95, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

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

.btn-block {
    width: 100%;
    display: block;
    border: none;
    font-family: inherit;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.site-title a {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-dark);
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* =========================================
   5. HERO SECTION (Desktop & Base)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 85vh;
 
    align-items: center;
    background-color: var(--primary-color); /* Fallback color */
}
.hero-content {
	width: 630px;
	position: absolute;
	top: 50%;
	transform: translate(0, -50%);
	max-width: 100%;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Left for text, 50% Right for image */
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* Force the left column to align left */
.hero-content {
    text-align: left !important; /* !important ensures no plugin overrides this */
    padding: 40px 0;
}

/* Force text elements inside the left column to align left */
.hero-content h1, 
.hero-content p,
.hero-title,
.hero-subtitle {
    text-align: left !important;
    color: #fff;
}

/* Keep the button left-aligned, but center the text inside the button */
.hero-content a.btn {
    display: inline-block;
    width: auto;
    text-align: center; 
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Right column: Keep image on the right */
.hero-image {
    text-align: right;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    max-height: 650px;
}

/* =========================================
   6. WELCOME SECTION
   ========================================= */
.welcome-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* =========================================
   7. ABOUT US SECTION (Home)
   ========================================= */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.about-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* =========================================
   8. WHY PRAYERS SECTION
   ========================================= */
.why-prayers-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

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

.prayer-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.prayer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.prayer-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.prayer-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================================
   9. HOW TO BOOK SECTION
   ========================================= */
.booking-steps-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 25px;
    font-family: 'Georgia', serif;
}

.step-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

.final-cta {
    text-align: center;
    background: var(--primary-color);
    padding: 50px 30px;
    border-radius: 12px;
    color: #fff;
}

.final-cta h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

/* =========================================
   10. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
}

.site-footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* =========================================
   11. PAGE HEADER (Global for inner pages)
   ========================================= */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 0 60px;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* =========================================
   12. ABOUT PAGE STYLES
   ========================================= */
.mission-section, .pastor-bio-section, .values-section {
    padding: 80px 0;
}

.mission-section, .values-section { background-color: var(--bg-white); }
.pastor-bio-section { background-color: var(--bg-light); }

.mission-grid, .bio-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}

.mission-grid { grid-template-columns: 1fr 1fr; }
.bio-grid { grid-template-columns: 1fr 1.5fr; }

.mission-content h2, .bio-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.mission-content p, .bio-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.mission-image img, .bio-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.bio-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.value-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.value-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: #fff;
}

.about-cta-section h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.about-cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* =========================================
   13. CONTACT PAGE STYLES
   ========================================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2, .contact-form-wrapper h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-text p, .info-text a {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-text a:hover {
    color: var(--accent-color);
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

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

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fff;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.confidentiality-section {
    padding: 0 0 80px;
    background-color: var(--bg-white);
}

.confidentiality-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: #fff;
}

.conf-icon {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conf-text h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.conf-text p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   14. TESTIMONIES PAGE STYLES
   ========================================= */
.testimonies-intro {
    padding: 60px 0 20px;
    background-color: var(--bg-white);
    text-align: center;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.testimonies-grid-section {
    padding: 40px 0 80px;
    background-color: var(--bg-light);
}

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

.testimony-card {
    background: var(--bg-white);
    padding: 40px 30px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    border-top: 4px solid var(--accent-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimony-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    position: absolute;
    top: 15px;
    right: 25px;
    font-family: 'Georgia', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--bg-light);
    pointer-events: none;
}

.testimony-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.testimony-author {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.testimony-author h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.testimony-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonies-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: #fff;
}

.testimonies-cta h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.testimonies-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin: 0 auto 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonies-cta .btn-secondary {
    color: #fff;
    border-color: #fff;
}

.testimonies-cta .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* =========================================
   15. GALLERY PAGE STYLES
   ========================================= */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.95) 0%, rgba(26, 54, 93, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 25px;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.overlay-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
}

.overlay-content p {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

/* =========================================
   16. RESPONSIVE DESIGN (Consolidated)
   ========================================= */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .mission-grid, .bio-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-subtitle {
        margin: 0 auto 35px;
    }
    
    .hero-image, .about-image, .mission-image, .bio-image {
        max-width: 400px;
        margin: 0 auto;
        order: -1;
    }

    .prayers-grid, .steps-grid, .values-grid, .testimonies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (max-width: 768px) */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-header h2 { font-size: 2rem; }
    .page-header { padding: 60px 0 40px; }
    .page-header h1 { font-size: 2.2rem; }

    .hero-section { min-height: auto; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }

    .welcome-section, .about-section, .why-prayers-section, 
    .booking-steps-section, .mission-section, .pastor-bio-section, 
    .values-section, .about-cta-section, .contact-section, 
    .confidentiality-section, .testimonies-intro, .testimonies-grid-section, 
    .testimonies-cta, .gallery-section {
        padding: 60px 0;
    }

    .prayers-grid, .steps-grid, .values-grid, .testimonies-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .confidentiality-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .about-cta-section h2, .testimonies-cta h2 { font-size: 1.8rem; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(26, 54, 93, 0.9) 0%, transparent 60%);
    }
    
    .overlay-content {
        transform: translateY(0);
    }
}
@media (max-width: 767px) {
.hero-content {
	width: 630px;
	position: relative;
	top: unset;
	transform: unset;
	max-width: 100%;
}
	.heromob {
	display: block;
}
}
/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .btn-large { padding: 14px 30px; }
}