/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-cream: #FCFAF7;
    --color-dark: #1a1a1a;
    --color-gray: #6b6b6b;
    --color-light-gray: #e8e6e2;
    --font-serif: 'Argent CF', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.3s, box-shadow 0.3s;
}

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

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link--primary {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-progress-circle {
    flex-shrink: 0;
}

.nav-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-progress-light {
    font-weight: 300;
}

a.nav-progress {
    text-decoration: none;
}

a.nav-progress:hover {
    transform: scale(1.05);
}

a.nav-progress {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-progress-circle circle {
    transition: stroke 0.3s;
}

/* Scrolled nav state */
.header--scrolled {
    background: linear-gradient(180deg, rgba(252,250,247,0.75) 0%, transparent 100%);
}

.header--scrolled .nav-progress-text {
    color: var(--color-dark);
}

.header--scrolled .nav-progress-circle circle:first-child {
    stroke: rgba(0,0,0,0.15);
}

.header--scrolled .nav-progress-circle circle:last-child {
    stroke: var(--color-dark);
}

.header--scrolled .btn--outline {
    background-color: var(--color-dark);
    color: white;
    box-shadow: inset 3px 6px 6px rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    line-height: 1.4;
}

.btn--primary {
    background-color: #000000;
    color: white;
    box-shadow: inset 4px 8px 8px rgba(255, 255, 255, 0.4);
}

.btn--primary:hover {
    background-color: #1a1a1a;
}

.btn--secondary {
    background-color: #EBEBEB;
    color: var(--color-dark);
    border: none;
}

.btn--secondary:hover {
    background-color: #E0E0E0;
}

.btn--outline {
    background-color: white;
    color: var(--color-dark);
    border: none;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    box-shadow: inset 3px 6px 6px rgba(0, 0, 0, 0.4);
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: radial-gradient(ellipse at 100% 100%, #A4A4A4 7%, #626262 32%, #000000 73%);
    z-index: 1;
    transition: background 0.3s ease;
}

.church-hill-wrapper {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 250%;
    min-width: 2200px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.church-silhouette {
    width: 200px;
    z-index: 2;
    margin-bottom: -0.2%;
}

.church-silhouette svg {
    width: 100%;
    height: auto;
    display: block;
}

.hill-silhouette {
    width: 100%;
    z-index: 3;
}

.hill-silhouette svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    margin-top: 18vh;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.1em;
    background: linear-gradient(180deg, #000000 0%, #3E3E3E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #858585;
    margin-bottom: 2rem;
    line-height: 1.5;
    letter-spacing: 0;
}

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

/* Mission Section */
.mission {
    text-align: center;
    padding: 2rem 2rem 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.mission-icon {
    width: 40px;
    height: auto;
    margin-bottom: 0.75rem;
}

.mission-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.mission-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #707070;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* History Section */
.history {
    text-align: center;
    padding: 6rem 2rem 8rem;
    max-width: 800px;
    margin: 0 auto;
}

.history-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.history-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #707070;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.history-image {
    display: flex;
    justify-content: center;
}

.photo-reveal {
    transform: translateY(60px) rotate(2deg);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-reveal.visible {
    transform: translateY(0) rotate(2deg);
}


.stack-image.photo-reveal.image-1 {
    transform: translate(-40px, 40px) rotate(-12deg);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-image.photo-reveal.image-1.visible {
    transform: rotate(-5deg);
}


.stack-image.photo-reveal.image-2 {
    transform: translate(40px, 40px) rotate(10deg);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-image.photo-reveal.image-2.visible {
    transform: rotate(3deg);
}


.image-placeholder {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    outline: 6px solid white;
    box-shadow: -5px 20px 20px rgba(0, 0, 0, 0.4);
}

/* Current Building Section */
.current-building {
    text-align: center;
    padding: 6rem 2rem 8rem;
    max-width: 900px;
    margin: 0 auto;
}

.current-building-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.current-building-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #707070;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.current-building-images {
    display: flex;
    justify-content: center;
}

.image-stack {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
}

.image-stack .stack-image {
    position: absolute;
    max-width: 450px;
    width: 100%;
    border-radius: 12px;
    outline: 6px solid white;
    box-shadow: -5px 20px 20px rgba(0, 0, 0, 0.4);
}

.image-stack .image-1 {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

.image-stack .image-2 {
    bottom: 0;
    right: 0;
    transform: rotate(3deg);
    z-index: 2;
}

/* New Building Section */
.new-building {
    text-align: center;
    padding: 6rem 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.new-building-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.new-building-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #707070;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.new-building-video {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.new-building-video video {
    width: 100%;
    display: block;
}

/* Progress Meter */
.progress-container {
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #E8E8E8;
    border-radius: 3px;
    overflow: visible;
    margin-bottom: 1.5rem;
    cursor: pointer;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    right: 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-dark);
    border-radius: 3px;
    position: relative;
}

.progress-tooltip {
    position: absolute;
    right: -8px;
    top: -2.5rem;
    background-color: var(--color-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    opacity: 0;
    transform: translateX(50%) translateY(4px);
    right: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    margin-left: -4px;
    width: 8px;
    height: 8px;
    background-color: var(--color-dark);
    transform: rotate(45deg);
}

.progress-marker {
    position: absolute;
    top: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-marker-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: #d5d5d5;
}

.progress-marker-label {
    display: none;
}

.progress-bar:hover .progress-marker {
    opacity: 1;
}

.progress-bar:hover .progress-tooltip {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.progress-stat {
    margin-bottom: 1.5rem;
}

.progress-stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.2;
}


.progress-stat-value--muted {
    color: #555;
    font-size: 1.75rem;
}

.progress-stat-label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-gray);
    margin-top: 0.2rem;
}

/* Contribute Section */
.contribute {
    text-align: center;
    padding: 8rem 2rem;
    background-color: #FCFAF7;
}

.contribute-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    padding-bottom: 0.1em;
    background: linear-gradient(180deg, #000000 0%, #3E3E3E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contribute-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #858585;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.contribute-columns {
    display: flex;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    align-items: stretch;
}

.details-card {
    flex: 1;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 2rem;
    background-color: #FCFAF7;
}

.details-heading {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.details-heading--fundraising {
    margin-top: 2rem;
}

.details-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 1rem;
    color: var(--color-dark);
}

.details-row span:first-child {
    font-weight: 300;
}

.details-row span:last-child {
    font-weight: 500;
}

.contribute-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contribute-right .progress-container {
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contribute-right .btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.contribute-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: auto;
}

.contribute-actions .btn--secondary {
    width: 100%;
}


.contribute-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Updates Section */
.updates {
    text-align: center;
    padding: 6rem 2rem;
    background-color: var(--color-cream);
}

.updates-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    color: var(--color-dark);
}

.updates-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #707070;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.updates-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 350px;
    margin: 0 auto;
    align-items: stretch;
}

.email-input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 12px;
    font-family: var(--font-sans);
    background: white;
}

.email-input:focus {
    outline: none;
    border-color: #ccc;
}

.updates-form .btn {
    border-radius: 12px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-cream);
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-left, .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

    .mission-title,
    .history-title,
    .contribute-title,
    .updates-title {
        font-size: 1.5rem;
    }

    .mission-title br,
    .mission-text br,
    .history-text br,
    .contribute-text br,
    .hero-subtitle br {
        display: none;
    }

    .contribute-columns {
        flex-direction: column;
    }

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

    .church-hill-wrapper {
        min-width: 1000px;
        top: 10%;
    }

    .church-silhouette {
        width: 120px;
    }
}
