/* ============================================
   Grace Community Church - Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --primary-bg: rgba(13, 148, 136, 0.1);
    --secondary-color: #f59e0b;
    --accent-color: #fbbf24;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --off-white: #f0fdfa;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --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 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

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

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--text-color);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 118, 110, 0.85) 0%,
        rgba(13, 148, 136, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ============================================
   Welcome Section
   ============================================ */
.welcome-section {
    padding: 80px 0;
    background: var(--off-white);
}

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

.welcome-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
    padding: 100px 0;
    background: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

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

.video-title {
    text-align: center;
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.2rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-header.light h2 {
    color: var(--white);
}

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

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

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

.about-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--off-white);
    border-radius: 12px;
    transition: var(--transition);
}

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

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-icon i {
    display: inline-block;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Parish Priests Section
   ============================================ */
.priests-section {
    padding: 100px 0;
    background: var(--off-white);
}

.priests-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.priest-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

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

.priest-card.current {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-left: 4px solid var(--accent-color);
}

.priest-card.current .priest-years {
    color: var(--white);
    opacity: 0.9;
}

.priest-card.current h3 {
    color: var(--white);
}

.priest-card.current p {
    color: rgba(255, 255, 255, 0.9);
}

.priest-years {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.priest-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
}

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

@media (max-width: 1024px) {
    .priests-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .priests-timeline {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

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

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-icon i {
    display: inline-block;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card .time {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

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

/* ============================================
   Feast Days Section
   ============================================ */
.feast-days-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.feast-days-header {
    text-align: center;
    margin-bottom: 30px;
}

.feast-days-header h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.feast-days-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.feast-day-card {
    background: var(--white) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
    transition: var(--transition);
    box-shadow: var(--shadow-sm) !important;
}

.feast-day-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feast-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 10px;
    background: var(--primary-bg);
    border-radius: 8px;
}

.feast-date i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.feast-date span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.feast-content {
    flex: 1;
}

.feast-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.feast-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.loading-text,
.error-text {
    text-align: center;
    color: var(--white);
    font-style: italic;
    padding: 20px;
    grid-column: 1 / -1;
}

.error-text {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .feast-days-list {
        grid-template-columns: 1fr;
    }

    .feast-days-section {
        margin-top: 40px;
        padding-top: 30px;
    }
}

/* ============================================
   Activities Section
   ============================================ */
.activities-section {
    padding: 100px 0;
    background: var(--white);
}

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

.activity-card {
    background: var(--off-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

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

.activity-image {
    height: 180px;
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-placeholder {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.5;
}

.activity-placeholder i {
    display: inline-block;
}

.activity-content {
    padding: 25px;
}

.activity-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f766e 0%, var(--primary-light) 100%);
}

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

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

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: inline-block;
}

.gallery-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
    font-style: italic;
}

/* ============================================
   Events Section
   ============================================ */
.events-section {
    padding: 100px 0;
    background: var(--off-white);
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.event-details {
    padding: 20px 25px;
}

.event-details h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

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

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    color: var(--white);
}

.contact-icon {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    display: inline-block;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.contact-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.contact-map {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.map-link {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.map-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.map-placeholder small {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-logo i {
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

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

.footer-bottom .verse {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.7;
}

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }

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

    .nav-links a {
        color: var(--text-color) !important;
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        gap: 10px;
        padding: 15px;
    }

    .event-date .day {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
