@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Work+Sans:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
    --primary-color: #FFFEF0;
    --secondary-color: #B3E5FC;
    --accent-color: #E1F5FE;
    --text-color: #333;
    --light-bg: #E1F5FE;
    --white: #ffffff;
    --shadow: 0 1px 6px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Navigation Logo */
.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    padding-left: 20px;
}

.nav-logo a:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    padding-right: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background:
    linear-gradient(rgba(255, 254, 240, 0.9), rgba(225, 245, 254, 0.75)),
    url("../images/main_background.jpeg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
    color: var(--text-color);
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-content img {
    max-width: 500px;       /* adjust this size as needed */
    width: 100%;
    height: auto;
    margin-top: 12px;
    margin-bottom: 1rem;  /* space between image and tagline */
    transition: var(--transition);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.hero-quote {
    max-width: 620px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(51, 51, 51, 0.78);
    background: rgba(255, 255, 255, 0.65);
    border-left: 3px solid rgba(179, 229, 252, 0.7);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.035);
}

.hero-quote__author {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(51, 51, 51, 0.82);
}

.hero-book-btn {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.hero-book-btn:hover {
    background: transparent;
    transform: none;
    color: var(--text-color);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.contact-form .cta-button {
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Sections */
.about {
    padding: 80px 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
        url("../images/gray_background1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content.reverse .about-image {
    order: 1;
}

.about-content.reverse .about-text {
    order: 2;
}

.about h2 {
    font-size: 2.5rem;
    margin: 0 0 0.35rem;
    letter-spacing: 0.01em;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    max-width: 640px;
    margin: 0 auto;
}

.about-text h2 {
    margin: 0 0 0.25rem;
    font-size: 2.4rem;
}

.about-text p {
    margin: 0.2rem 0 0;
}

.about-text p + p {
    margin-top: 0.4rem;
}

.beloved-btn {
    margin-top: 1rem;
    display: inline-block;
}

.about-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

.about-gallery {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

.about-gallery img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: block;
    transition: opacity 0.6s ease;
}

.topics {
    padding: 70px 0;
    background: linear-gradient(135deg, #FFFEF0, #E1F5FE);
    text-align: center;
}

.topics h2 {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
}

.topics-intro {
    margin: 0 auto 1.5rem;
    max-width: 600px;
    font-size: 1.05rem;
    color: rgba(51, 51, 51, 0.85);
}

.topics-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.topic-item {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    text-align: center;
}

.quotes {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFFEF0, #E1F5FE);
    text-align: center;
}

.quotes h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.quotes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

/* Give desktop quotes a bit more breathing room so lines don't orphan words */
@media (min-width: 1024px) {
    .quotes-grid {
        max-width: 1000px;
    }
}

.quote-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.quote-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(51, 51, 51, 0.85);
    margin-bottom: 0.75rem;
}

.quote-author {
    font-style: normal;
    font-weight: 600;
    color: rgba(51, 51, 51, 0.85);
    margin-bottom: 0;
}

.section-quotes {
    margin-top: 1.75rem;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFFEF0, #E1F5FE);
}

.section-quotes h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-quotes.alt {
    background: linear-gradient(315deg, #FFFEF0, #E1F5FE);
}

.beloved-intro {
    padding: 70px 0 40px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(225, 245, 254, 0.9)),
        url("../images/gray_background1.jpeg");
    background-size: cover;
    background-position: center;
    text-align: center;
}

.beloved-intro h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.beloved-intro p {
    max-width: 980px;
    margin: 0 auto 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: center;
}

.beloved-copy {
    margin-bottom: 1.25rem;
}

.beloved-copy p {
    text-align: center;
}

.beloved-topics-card {
    max-width: 760px;
    margin: 1.25rem auto 1.75rem;
    padding: 1.1rem 1.25rem;
    background: var(--accent-color);
    border: 1.5px solid rgba(179, 229, 252, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    display: inline-block;
    width: auto;
    text-align: left;
}

.beloved-topics-label {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    text-align: center;
}

.beloved-topics-list {
    list-style: disc;
    max-width: 620px;
    margin: 0.25rem auto 1.5rem;
    padding-left: 1.25rem;
    text-align: left;
    line-height: 1.7;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #FFFEF0, #E6E6FA);
    padding: 120px 0 60px;
    margin-top: 70px;
}

.beloved-header {
    background:
        linear-gradient(rgba(255, 254, 240, 0.75), rgba(225, 245, 254, 0.85)),
        url("../images/beloved_background3.JPG");
    background-size: cover;
    /* nudge image left using px for stronger effect */
    background-position: -12% 40%;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .beloved-header {
        background-position: 35% 42%;
    }
}

.videos-header {
    background:
        linear-gradient(rgba(255, 254, 240, 0.75), rgba(225, 245, 254, 0.85)),
        url("../images/videos_background.jpg");
    background-size: cover;
    background-position: center 43%;
    background-repeat: no-repeat;
}

.contact-header {
    background:
        linear-gradient(rgba(255, 254, 240, 0.75), rgba(225, 245, 254, 0.85)),
        url("../images/contact_background.jpeg");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.page-header h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: -0.2rem 0 0;
}

.page-header .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header .hero-quote {
    max-width: 520px;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 80px 0;
    background: 
        linear-gradient(rgba(255, 254, 240, 0.92), rgba(225, 245, 254, 0.92)), 
        url("../images/contact_background.jpeg");
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    background-attachment: fixed; /* optional for subtle parallax effect */
}

.contact-email {
    margin: 0.9rem auto 0;
    text-align: center;
}

.contact-direct {
    margin: 0.75rem 0 0.15rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.contact-email a {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.contact-email a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}


.contact-item {
    margin-bottom: 2rem;
}

.contact-blurb {
    margin: 0.5rem 0 1.5rem;
    font-size: 1.05rem;
    color: rgba(51, 51, 51, 0.85);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

.contact-form .form-group:first-of-type {
    margin-top: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input#dates {
    cursor: text;
}

.form-group textarea {
    resize: vertical;
}

/* Videos Section */
.videos-section {
    padding: 80px 0;
    background:
        linear-gradient(rgba(255, 254, 240, 0.9), rgba(225, 245, 254, 0.9)),
        url("../images/videos_background.jpeg");
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
}

.video-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.video-info {
    padding: 1.5rem;
}

.video-caption {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin: 0.25rem 0 0.35rem;
}

.watch-btn {
    display: inline-block;
    margin-top: 1rem;
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
        url("../images/gray_background1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.events-tabs {
    text-align: center;
    margin-bottom: 3rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 30px;
    margin: 0 10px;
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    border-bottom-color: var(--seconday-color);
    color: var(--secondary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.event-date {
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    min-width: 100px;
}

.month {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
}

.day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.year {
    display: block;
    font-size: 0.9rem;
}

.event-details {
    padding: 1.5rem;
    flex: 1;
}

.event-card.past .event-date {
    background: #666;
}

.event-rsvp {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
    opacity: 0.95;
}

.footer-logo:hover img {
    transform: translateY(-1px);
    opacity: 1;
}

.footer-cta {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.3rem 0.6rem;
    border: 1.25px solid rgba(51, 51, 51, 0.25);
    border-radius: 6px;
    transition: var(--transition);
}

.footer-cta:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-email {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.3rem 0.75rem;
    border: 1.25px solid rgba(51, 51, 51, 0.25);
    border-radius: 6px;
    background: transparent;
    transition: var(--transition);
}

.footer-email:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

.contact-section {
    background:
        linear-gradient(rgba(255, 254, 240, 0.9), rgba(225, 245, 254, 0.9)),
        url("../images/gray_background1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contact page: keep split layout but drop centered white card styling */
.contact-section .about-content {
    align-items: flex-start;
}

.contact-section .about-text {
    text-align: left;
    background: transparent;
    padding: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.contact-section .contact-form {
    width: 100%;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Mobile order: text first, then images for reverse layouts (Adults section) */
    .about-content.reverse .about-text {
        order: 1;
    }
    
    .about-content.reverse .about-image {
        order: 2;
    }

    /* Contact page order: show form/heading first, then direct email line */
    .contact-section .about-text {
        order: 1;
    }
    .contact-section .about-image {
        order: 2;
    }

    /* Contact page: hide portrait but keep direct email text visible on mobile */
    .contact-section .about-image img {
        display: none;
    }
    .contact-section .about-image {
        text-align: center;
    }

    /* Tighter hero/logo sizing on mobile */
    .hero {
        padding: 120px 0 80px;
    }
    .hero-content img {
        max-width: 380px;
        margin-top: 8px;
    }
    .hero-quote {
        max-width: 420px;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        margin-top: 1rem;
    }
    .nav-logo img {
        height: 50px;
        padding-left: 10px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        min-width: auto;
        padding: 1rem;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }
}
