/*
 * Zion Chapel - Premium Design System
 * A modern, professional church website design
 */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Traditional Church Burgundy/Maroon */
    --primary-dark: #4a1c2c;
    --primary: #6b2c3e;
    --primary-light: #8b3d52;

    /* Accent Colors - Rich Gold/Champagne */
    --accent: #c9a035;
    --accent-light: #d4b85a;
    --accent-dark: #a88520;

    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #faf8f5;
    --gray-100: #f5f3f0;
    --gray-200: #e9e5e0;
    --gray-300: #d9d4cd;
    --gray-400: #c4bdb4;
    --gray-500: #9d958a;
    --gray-600: #6c6560;
    --gray-700: #4a4540;
    --gray-800: #332f2b;
    --gray-900: #1f1c1a;

    /* Semantic Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    --utility-bar-height: 40px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

ul,
ol {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-700);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray-600);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== UTILITY BAR ===== */
.utility-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
}

.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.utility-bar a {
    color: var(--white);
    opacity: 0.9;
}

.utility-bar a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.utility-info {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.utility-info span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.utility-info i {
    color: var(--accent-light);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-normal);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    min-height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-600);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo Image */
.logo-image {
    height: 60px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo:hover .logo-image {
    transform: scale(1.02);
}

/* Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

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

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

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

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/480821263_1046808037489304_7036414871353966652_n.jpg') center/cover no-repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

.section-alt {
    background: var(--off-white);
}

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

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

/* ===== FEATURES ===== */
.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding-top: var(--space-3xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-logo a {
    display: inline-block;
}

.footer-logo-image {
    height: 80px;
    width: auto;
    transition: transform var(--transition-fast);
}

.footer-logo-image:hover {
    transform: scale(1.02);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
    padding: var(--space-xs) 0;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: var(--space-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--accent);
    width: 20px;
    text-align: center;
    margin-top: 3px;
}

.footer-contact-item span {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-contact-item span a {
    color: var(--gray-400);
}

.footer-contact-item span a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 0.875rem;
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/480821263_1046808037489304_7036414871353966652_n.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--accent-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== INFO BOX ===== */
.info-box {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border-left: 4px solid var(--accent);
}

.info-box h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

.info-box p {
    margin-bottom: var(--space-sm);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ===== TESTIMONIAL ===== */
.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

/* ===== IMAGE GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-2xl) - 6px);
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--accent);
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.timeline-item h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
}

.timeline-item p {
    color: var(--gray-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .utility-bar .container {
        justify-content: center;
        text-align: center;
    }

    .utility-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-3xl) var(--space-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        padding: var(--space-md);
        border-bottom: 1px solid var(--gray-200);
    }

    .mobile-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-item {
        justify-content: center;
    }

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

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

    .section {
        padding: var(--space-2xl) 0;
    }

    h1 {
        font-size: 2rem;
    }

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

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease infinite;
}