:root {
    --cream: #F8F9FA;
    --light-blue: #E8F1F5;
    --steel-blue: #5B8A9E;
    --navy: #1A3A52;
    --deep-navy: #0D1F2D;
    --accent-blue: #3A7CA5;
    --bright-blue: #4A90E2;
    --charcoal: #2C2C2C;
    --light-gray: #E2E8ED;
    --silver: #B8C5D0;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--light-gray);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

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

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a::after {
    display: none; /* Remove underline effect in dropdown */
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: var(--navy);
}

.hero::before {
    display: none;
}

.nowrap {
    white-space: nowrap;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: heroFadeInUp 1s ease-out;
    padding-top: 3rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9),
                 2px 2px 3px rgba(0, 0, 0, 0.7),
                 3px 3px 6px rgba(0, 0, 0, 0.5),
                 0 0 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6),
                 0 0 15px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9),
                 2px 2px 3px rgba(0, 0, 0, 0.7),
                 3px 3px 6px rgba(0, 0, 0, 0.5),
                 0 0 25px rgba(0, 0, 0, 0.4);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-photo-credit {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8),
                 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* CTA Section */
.cta-section {
    background: var(--cream);
    padding: 2.5rem 2rem;
    text-align: center;
}

.cta-section .btn {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    background: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    color: #ffffff;
    margin-top: 0;
}

.cta-section .btn:hover {
    background: var(--bright-blue);
    border-color: var(--bright-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 124, 165, 0.3);
}

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

.cta-section .btn-secondary:hover {
    background: var(--navy);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.3);
}

/* About Section */
.about-section {
    background: white;
    padding: 6rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(26, 58, 82, 0.15);
}

.about-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--charcoal);
}

/* Book Section */
.book-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--cream) 100%);
    padding: 6rem 2rem;
}

.book-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    align-items: center;
}

.book-cover img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 25px 70px rgba(26, 58, 82, 0.2);
    transition: transform 0.3s ease;
}

.book-cover img:hover {
    transform: scale(1.02);
}

.book-content h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.book-subtitle {
    font-size: 1.2rem;
    color: var(--steel-blue);
    font-style: italic;
    margin-bottom: 2rem;
}

.book-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.book-highlights {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-icon {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Articles Section */
.articles-section {
    background: white;
    padding: 6rem 2rem;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.articles-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--charcoal);
    line-height: 1.8;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.article-card {
    background: var(--cream);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--light-gray);
    text-align: left;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 124, 165, 0.12);
}

.article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-blue);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.article-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.article-publication {
    color: var(--steel-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-link {
    margin-top: 1rem;
}

.articles-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light-blue);
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.articles-cta p {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

/* HolyWork Section */
.holywork-section {
    background: white;
    padding: 6rem 2rem;
}

.holywork-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.holywork-logo {
    margin-bottom: 2rem;
}

.holywork-logo img {
    width: 200px;
    height: auto;
}

.holywork-content h2 {
    margin-bottom: 1rem;
}

.holywork-tagline {
    font-size: 1.3rem;
    color: var(--steel-blue);
    font-style: italic;
    margin-bottom: 2rem;
}

.holywork-content p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.holywork-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.feature {
    background: var(--light-blue);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.feature h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.feature p {
    margin: 0;
    font-size: 0.95rem;
}

/* Section Styling */
section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -1px;
}

/* Services Section */
.services-section {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--bright-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(58, 124, 165, 0.15);
}

.service-logo {
    margin-bottom: 1.5rem;
}

.service-logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card .expanded-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.service-card ul {
    list-style: none;
    margin: 1rem 0;
}

.service-card ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--charcoal);
}

.service-card ul li::before {
    content: '~';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.service-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.specialty {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--navy);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-blue);
    margin-top: 1rem;
}

.btn:hover {
    background: var(--bright-blue);
    border-color: var(--bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 124, 165, 0.3);
}

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

.btn-secondary:hover {
    background: var(--navy);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3);
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-navy) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Crimson Pro', serif;
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.quote-section blockquote {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: white;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.quote-section cite {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    position: relative;
    z-index: 1;
}

/* Blog Section */
.blog-section {
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--cream);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-gray);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 124, 165, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--steel-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--charcoal);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background: var(--cream);
    text-align: center;
}

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

.contact-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    transition: box-shadow 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 10px 30px rgba(58, 124, 165, 0.1);
}

.contact-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--charcoal);
    margin-bottom: 2rem;
}

/* Newsletter */
.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.newsletter-form button:hover {
    background: var(--bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 124, 165, 0.3);
}

/* Footer */
footer {
    background: var(--deep-navy);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

@media (max-width: 968px) {
    .about-container,
    .book-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-cover img {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .about-content h2,
    .book-content h2 {
        text-align: center;
    }

    .holywork-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid var(--light-gray);
    }

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

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--light-blue);
        margin: 0.5rem 0 0 1rem;
        border-radius: 4px;
    }

    .dropdown:hover .dropdown-menu {
        display: none; /* Don't show on hover on mobile */
    }

    .dropdown.active .dropdown-menu {
        display: block; /* Show when active */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        margin-top: 70px;
        min-height: 60vh;
        overflow: visible;
    }

    .hero-content {
        position: absolute;
        padding: 1rem;
        padding-top: 0;
        max-width: 100%;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        margin-top: -0.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .hero .nowrap {
        white-space: normal;
    }

    .hero-description {
        font-size: 0.95rem;
        font-weight: 600;
        max-width: 100%;
        line-height: 1.5;
        margin-top: 0.25rem;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9),
                     2px 2px 3px rgba(0, 0, 0, 0.7),
                     3px 3px 6px rgba(0, 0, 0, 0.5),
                     0 0 20px rgba(0, 0, 0, 0.4);
    }

    .hero-photo-credit {
        font-size: 0.75rem;
        font-weight: 600;
        right: 1rem;
        bottom: 0.5rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8),
                     2px 2px 4px rgba(0, 0, 0, 0.5);
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .footer-logos {
        gap: 2rem;
    }

    .footer-logo {
        height: 50px;
    }

    .logo span {
        display: none;
    }

    .logo-img {
        height: 40px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Flying Bird Animation */
.flying-bird {
    position: fixed;
    width: 150px;
    height: auto;
    z-index: 999;
    pointer-events: none;
    transition: left 0.1s linear, top 0.1s linear;
    will-change: transform, left, top;
}

.flying-bird img {
    width: 100%;
    height: auto;
    transition: transform 0s; /* Instant flip when off-screen */
}

.flying-bird.flipped img {
    transform: scaleX(-1); /* Mirror the bird */
}