/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a2a3e;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== CURSOR FIXES ===== */
label, p, h1, h2, h3, h4, li, span, div:not(.logo-icon):not(.image-container) {
    cursor: default;
}
p, .hero-text, .mission-box p, .card p, .inspiration-box p {
    user-select: text;
}
a, button, .btn, .btn-small, input[type="submit"],
.btn-primary, .btn-secondary, .btn-outline-light,
nav a, .logo-area, .card a {
    cursor: pointer;
}
input, textarea, select {
    cursor: text;
}
input[type="checkbox"], input[type="radio"] {
    cursor: pointer;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FADE-IN ANIMATION ON PAGE LOAD ===== */
body {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a2a3e;
    cursor: default;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

/* ===== SECTION SPACING FIXES ===== */
section {
    padding: 2.5rem 0;
}

section:first-of-type {
    padding-top: 2rem;
}

section:last-of-type {
    padding-bottom: 2rem;
}

section.bg-light {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FF8C00, #FFB347);
    border-radius: 2px;
}

.mission-box, .inspiration-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-box p, .inspiration-box p {
    margin-bottom: 0;
}

/* ===== HEADER & NAV ===== */
header {
    background: #1a2a3e;
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== LOGO AREA ===== */
.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: 72px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.05);
    padding: 3px;
    position: relative;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.logo-text .foundation-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF8C00;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.6rem;
    color: #ccc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF8C00, #FFB347);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #FF8C00;
}

nav a:hover::after {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.5rem 0.5rem 0.5rem 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #FF8C00;
    color: #ffffff;
    border: 2px solid #FF8C00;
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.2);
}

.btn-primary:hover {
    background: #e67a00;
    border-color: #e67a00;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.35);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #FF8C00;
    color: #FF8C00;
}

.btn-secondary:hover {
    background: rgba(255, 140, 0, 0.08);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.15);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-small {
    display: inline-block;
    margin-top: 0.75rem;
    color: #FF8C00;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.btn-small::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF8C00;
    transition: width 0.3s ease;
}

.btn-small:hover {
    color: #e67a00;
}

.btn-small:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    background:
            radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
            linear-gradient(rgba(245, 246, 248, 0.92), rgba(245, 246, 248, 0.95)),
            url('/images/hero-placeholder.jpg') center/cover no-repeat;
    color: #1a2a3e;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    color: #1a2a3e;
    font-size: 2.8rem;
}

.hero h2 .highlight {
    color: #FF8C00;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 1rem auto 2rem;
    color: #2a3a4e;
    line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero h2 .highlight {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

/* ===== CARDS ===== */
.grid-3 {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid transparent;
    cursor: default;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF8C00, #FFB347);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::after {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.95);
}

.card h4 {
    color: #FF8C00;
    margin-bottom: 0.5rem;
}

.card .image-container {
    overflow: hidden;
    border-radius: 12px;
}

.card .image-container img {
    transition: transform 0.5s ease;
}

.card:hover .image-container img {
    transform: scale(1.05);
}

/* ===== SECTION BACKGROUNDS ===== */
.bg-light {
    background: linear-gradient(180deg, #f5f6f8 0%, #ffffff 100%);
}

section:nth-child(even) {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

section:nth-child(odd) {
    background: linear-gradient(180deg, #f5f6f8 0%, #ffffff 100%);
}

/* ===== PRAYER WALL ===== */
.prayer-submit {
    background: #f0f2f5;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.prayer-card {
    background: white;
    border-left: 5px solid #FF8C00;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: default;
    transition: all 0.3s ease;
}

.prayer-card:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.prayer-name {
    font-weight: bold;
    color: #1a2a3e;
}

.prayer-date {
    font-size: 0.8rem;
    color: #777;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: default;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    cursor: text;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
}

button[type="submit"] {
    background: #FF8C00;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.2);
}

button[type="submit"]:hover {
    background: #e67a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

/* ===== FOOTER WITH SHIMMER RIBBON ===== */
footer {
    background: #1a2a3e;
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    position: relative;
    padding-top: 3rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8C00, #FFB347, #FFD700, #FFB347, #FF8C00);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

footer a {
    color: #FF8C00;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFB347;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a2a3e;
        padding: 1rem 0;
        gap: 0.8rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    nav ul.show {
        display: flex;
    }

    .header-flex {
        flex-wrap: wrap;
    }

    .logo-icon {
        width: 48px;
        height: 58px;
        padding: 2px;
    }

    .logo-text .foundation-name {
        font-size: 1.1rem;
    }

    .logo-text .tagline {
        font-size: 0.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero h2 .highlight {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    section {
        padding: 1.5rem 0;
    }

    section:first-of-type {
        padding-top: 1.5rem;
    }

    section:last-of-type {
        padding-bottom: 1.5rem;
    }

    section.bg-light {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}