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

:root {
    --navy: #0b0f1a;
    --navy2: #111728;
    --gold: #c9973a;
    --gold2: #e8b84b;
    --cream: #f0ede6;
    --cream2: #d4cfca;
    --slate: #6b7a99;
    --burgundy: #7b2d3f;
    --white: #ffffff;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}
body {
    background: var(--navy);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 300;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--navy);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4rem;
    transition:
        background 0.4s,
        backdrop-filter 0.4s,
        padding 0.4s;
}
#navbar.scrolled {
    background: rgba(11, 15, 26, 0.92);
    backdrop-filter: blur(16px);
    padding: 0.8rem 4rem;
    border-bottom: 1px solid rgba(201, 151, 58, 0.15);
}
.nav-logo {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--gold);
    letter-spacing: 0.04em;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    color: var(--cream2);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.nav-links a:hover {
    color: var(--gold);
}
.nav-links a:hover::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.3s;
}

#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.hero-portrait {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 92%;
    max-height: 92vh;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(11, 15, 26, 0.35) 0%,
        rgba(11, 15, 26, 0.55) 60%,
        rgba(11, 15, 26, 1) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 820px;
}
.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: fadeUp 1s 0.55s forwards;
}
.hero-title em {
    font-style: italic;
    color: var(--gold2);
}
.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--cream2);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 2.4rem;
    opacity: 0;
    animation: fadeUp 1s 0.8s forwards;
}
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s 1.05s forwards;
}
.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background 0.25s,
        transform 0.2s;
}
.btn-primary:hover {
    background: var(--gold2);
    transform: translateY(-2px);
}
.btn-small {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background 0.25s,
        color 0.25s,
        transform 0.2s;
}
.btn-small:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}
.btn-ghost {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border: 1px solid rgba(240, 237, 230, 0.35);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        border-color 0.25s,
        color 0.25s,
        transform 0.2s;
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s 1.4s forwards;
}
.hero-scroll-hint span {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate);
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        var(--gold),
        transparent
    );
    animation: scrollPulse 2s ease-in-out infinite;
}

section {
    padding: 7rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 2rem;
}
.section-title em {
    font-style: italic;
    color: var(--gold2);
}
.divider {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 2.5rem;
}

#about {
    max-width: 1200px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 6rem;
    align-items: center;
}
.about-img-wrap {
    position: relative;
}
.about-img-wrap::before {
    content: "";
    position: absolute;
    inset: -14px -14px 14px 14px;
    border: 1px solid rgba(201, 151, 58, 0.3);
    z-index: 0;
}
.about-img-wrap::after {
    content: "";
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 140px;
    height: 140px;
    background: radial-gradient(
        circle,
        rgba(201, 151, 58, 0.18) 0%,
        transparent 70%
    );
    z-index: 0;
}
.about-img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: grayscale(20%) contrast(1.05);
    border-radius: 2px;
    background: var(--navy2);
}
.about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--cream2);
    margin-bottom: 1.4rem;
}
.about-text p:first-of-type {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1.6;
}
.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(107, 122, 153, 0.2);
}
.stat-num {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    display: block;
    margin-top: 0.4rem;
}

#social {
    background: var(--navy2);
    padding: 4rem;
    margin: 0;
    max-width: 100%;
}
.social-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.social-label {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cream);
}
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(107, 122, 153, 0.25);
    color: var(--cream2);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    transition:
        border-color 0.25s,
        color 0.25s,
        transform 0.2s;
}
.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#books {
    max-width: 1200px;
}
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.book-card {
    background: var(--navy2);
    border: 1px solid rgba(107, 122, 153, 0.12);
    transition:
        border-color 0.3s,
        transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.book-card:hover {
    border-color: rgba(201, 151, 58, 0.35);
    transform: translateY(-6px);
}
.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.book-card:hover .book-cover-img {
    transform: scale(1.04);
}
.book-info {
    padding: 1.4rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.book-tag {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}
.book-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.book-desc {
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}
.book-price {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 300;
    display: block;
    margin-top: auto;
    margin-bottom: 1rem;
}
.btn-buy {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.25s,
        color 0.25s;
}
.btn-buy:hover {
    background: var(--gold);
    color: var(--navy);
}

#sermons {
    max-width: 1200px;
}
.sermon-featured {
    background: linear-gradient(
        135deg,
        rgba(123, 45, 63, 0.2) 0%,
        rgba(17, 23, 40, 0.8) 100%
    );
    border: 1px solid rgba(123, 45, 63, 0.25);
    padding: 3rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.3s;
}
.sermon-featured:hover {
    border-color: var(--gold);
}
.play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s;
}
.play-btn:hover {
    background: var(--gold);
}
.play-btn:hover svg {
    fill: var(--navy);
}
.play-btn svg {
    fill: var(--gold);
    margin-left: 4px;
}
.sermon-featured-meta {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.sermon-featured-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}
.sermon-featured-desc {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.7;
}
.sermon-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sermon-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(107, 122, 153, 0.12);
    cursor: pointer;
    transition: background 0.2s;
}
.sermon-item:hover .sermon-item-title {
    color: var(--gold);
}
.sermon-item-series {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.3rem;
}
.sermon-item-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--cream);
    transition: color 0.25s;
}
.sermon-item-date {
    font-size: 0.78rem;
    color: var(--slate);
    text-align: right;
    white-space: nowrap;
}
.sermon-duration {
    font-size: 0.72rem;
    color: var(--gold);
    margin-top: 0.2rem;
    text-align: right;
}

#booking > p,
#partner > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cream2);
    max-width: 760px;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.booking-card {
    background: var(--navy2);
    padding: 2.5rem;
    border: 1px solid rgba(107, 122, 153, 0.15);
    border-radius: 8px;
    transition:
        border-color 0.3s,
        transform 0.3s;
}
.booking-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}
.booking-card-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}
.booking-card-desc {
    font-size: 0.9rem;
    color: var(--cream2);
    line-height: 1.6;
}

#contact {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}
.contact-info p {
    font-size: 1rem;
    color: var(--cream2);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--cream2);
}
.contact-detail svg {
    color: var(--gold);
    flex-shrink: 0;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
}
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(17, 23, 40, 0.8);
    border: 1px solid rgba(107, 122, 153, 0.2);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
    outline: none;
    transition: border-color 0.25s;
    resize: none;
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
}
.form-group textarea {
    min-height: 130px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.btn-submit {
    padding: 1rem 2.5rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.25s,
        transform 0.2s;
    align-self: flex-start;
}

footer {
    background: #080b14;
    padding: 3rem 4rem;
    margin-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid rgba(107, 122, 153, 0.1);
}
.footer-logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
}
footer p {
    font-size: 0.78rem;
    color: var(--slate);
}
.footer-nav {
    display: flex;
    gap: 2rem;
}
footer a {
    font-size: 0.78rem;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--gold);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: var(--gold);
    color: var(--navy);
    padding: 1rem 1.8rem;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition:
        transform 0.4s,
        opacity 0.4s;
    pointer-events: none;
}
#toast.show {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(0.7);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@media (max-width: 800px) {
    #navbar {
        padding: 1rem 1.5rem;
    }
    #navbar.scrolled {
        padding: 0.7rem 1.5rem;
    }

    .nav-links {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: rgba(8, 11, 20, 0.98);
        border-bottom: 1px solid rgba(201, 151, 58, 0.15);
        max-height: 0;
        overflow: hidden;
        transition:
            max-height 0.35s ease,
            padding 0.3s ease;
        backdrop-filter: blur(20px);
    }
    .nav-links.open {
        max-height: 400px;
        padding: 0.4rem 0 0.8rem;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.9rem 1.8rem;
        font-family: var(--sans) !important;
        font-size: 0.82rem !important;
        font-style: normal !important;
        font-weight: 400 !important;
        letter-spacing: 0.16em;
        color: var(--cream2);
        border-bottom: 1px solid rgba(107, 122, 153, 0.1);
    }
    .nav-links a::after {
        display: none;
    }
    .nav-links a:hover {
        color: var(--gold);
        background: rgba(201, 151, 58, 0.05);
    }
    .hamburger {
        display: flex;
    }
    .nav-links.open .hamburger span {
        opacity: 0;
    }
    .nav-links.open .hamburger span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }
    .nav-links.open .hamburger span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    section {
        padding: 5rem 1.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    #contact {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sermon-featured {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }
    .play-btn {
        margin: 0 auto;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    #social {
        padding: 3rem 1.5rem;
    }
    .social-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 1.5rem;
    }
    .about-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .hero-title {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }
    .hero-portrait {
        height: 78%;
    }
    .books-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(160px, 1fr)
        );
        gap: 1.2rem;
    }
    .social-links {
        gap: 0.6rem;
    }
    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary,
    .btn-ghost {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
