body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #fafafa;
    overflow-x: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0px) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px) scale(1); opacity: 0; }
}

.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.container { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    background: url('https://www.witnessfieldtheory.com/images/a2.jpeg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px) brightness(1.05);
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 8px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #2e2a28;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #444444;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background: #8b4513;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.cta-button:hover { background: #6d3410; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3); }

.section { padding: 5rem 0; }
.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #1a202c;
    text-align: center;
  }
.section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problem { background: #f7fafc; }
.promise { background: white; }
.invitation { background: #f7fafc; text-align: center; }
.author { background: white; text-align: center; }

.footer {
    background: #2d3748;
    color: #a0aec0;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.email-form { max-width: 400px; margin: 2rem auto; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.email-input {
    flex: 1; min-width: 250px; padding: 1rem; border: 2px solid #e2e8f0; border-radius: 6px;
    font-size: 1rem; transition: border-color 0.3s ease;
}
.email-input:focus { outline: none; border-color: #8b4513; }

.loading { opacity: 0.7; pointer-events: none; }
.success-message { background: #c6f6d5; color: #22543d; padding: 1rem; border-radius: 6px; margin-top: 1rem; display: none; }
.error-message { background: #fed7d7; color: #742a2a; padding: 1rem; border-radius: 6px; margin-top: 1rem; display: none; }

/* ---------- DYNAMIC NAVIGATION BAR ---------- */
.site-header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Class that gets added when scrolled past hero */
.site-header.scrolled {
    top: 0;
}
    
.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    
.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a202c;
    text-decoration: none;
}
    
.logo span {
    color: #8b4513;
}
    
.main-nav {
    display: flex;
    gap: 2rem;
}
    
.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
    
.nav-link:hover {
    color: #8b4513;
}
    
.nav-link.active {
    color: #8b4513;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
        
    .main-nav {
        gap: 1.5rem;
    }
}

/* ---------- PROMISE SECTION: image + text layout ---------- */

/* wider container only for the promise section so the 2-col layout breathes */
.promise .container { max-width: 1100px; }

.promise-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.promise-image {
    flex: 1 1 45%;
    position: relative;
    min-width: 280px;
}

.promise-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: block;
}

/* gentle fade on the image's right edge to help text readability */
.promise-image::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 100%);
    pointer-events: none;
    border-radius: 12px;
}

.promise-text {
    flex: 1 1 50%;
    text-align: left;
    min-width: 280px;
}

/* override the default center heading inside this text column */
.promise-text h2 { text-align: left; }

/* utility: add .reverse to .promise-content if you want image on the right later */
.promise-content.reverse { flex-direction: row-reverse; }

/* responsive stacking */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section h2 { font-size: 2rem; }
    .container { padding: 0 1rem; }
    .email-form { flex-direction: column; align-items: center; }
    .email-input { min-width: auto; width: 100%; }
    .promise-content { flex-direction: column; }
    .promise-image::after { display: none; }
}
