/* styles.css - Updated with correct hamburger visibility */

/* ================ */
/*    RESET + BASE  */
/* ================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); }

.lead {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    max-width: 65ch;
}

/* Buttons / Links */
.cta-button,
.donate-btn,
.resource-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.25s ease;
    min-height: 48px;           /* better touch target on mobile */
}

.cta-button:hover,
.donate-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

.large {
    padding: 1.2rem 2.4rem;
    font-size: 1.2rem;
}

/* ================ */
/*      HEADER      */
/* ================ */
header {
    background: #0d1b2a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-weight: 700;
}

/* Hamburger - visible on mobile/tablet, hidden on desktop */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop nav - hidden on mobile, visible on large screens */
.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: #a8d0ff;
}

.nav-cta {
    background: #ff6b35;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
}

/* Mobile menu */
.nav-mobile {
    position: fixed;
    inset: 0 0 0 25%;
    background: #0d1b2a;
    color: white;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 5rem 1.8rem 2rem;
    overflow-y: auto;
}

.nav-mobile.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

#close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 2.8rem;
    cursor: pointer;
}

.mobile-nav-list {
    flex-direction: column;
    gap: 1.8rem;
    font-size: 1.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* No scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* Hide mobile menu completely on desktop */
@media (min-width: 940px) {
    .nav-mobile {
        display: none;
    }
}

/* ================ */
/*     SECTIONS     */
/* ================ */
section {
    padding: 4rem 0;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1503444151116-3470f1aa4d8d?auto=format&fit=crop&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 0 6rem;
}

.bible-passage {
    font-style: italic;
    font-size: 1.25rem;
    max-width: 70ch;
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.12);
    padding: 1.5rem;
    border-radius: 8px;
}

.bible-passage strong {
    color: #ffdd57;
}

.section-subtitle {
    display: block;
    text-align: center;
    color: #555;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Video section */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.8rem;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-width: 0;
}

.video-card h3 {
    padding: 1.2rem 1.4rem 0.6rem;
    background: #f0f4f8;
    font-size: 1.35rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* About - team */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.8rem;
}

.profile-card {
    background: white;
    padding: 1.8rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    text-align: center;
    min-width: 0;
}

.profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 1rem auto;
    border: 4px solid #e0e7ff;
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 1.8rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    min-width: 0;

    /* Centramos todo el contenido vertical y horizontalmente */
    display: flex;
    flex-direction: column;
    align-items: center;           /* centra horizontalmente todo */
    text-align: center;            /* refuerza el centrado del texto */
    justify-content: space-between; /* distribuye el espacio si hay alturas variables */
}

.resource-card.highlight {
    background: #fff8e1;
    border: 2px solid #ffb300;
}

/* El enlace también se beneficia del centrado del contenedor padre */
.resource-link {
    margin-top: 1rem;
    color: #0066cc;
    font-weight: 600;
    text-align: center;
}

.resource-link:hover {
    text-decoration: underline;
}

/* CTA section */
.cta-section {
    background: #0066cc;
    color: white;
    text-align: center;
}

.cta-section .small-notice {
    margin-top: 1.2rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #0d1b2a;
    color: #ccc;
    padding: 3rem 0 2rem;
    text-align: center;
}

footer a {
    color: #a8d0ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ================================================ */
/*   MEDIA QUERIES                                  */
/* ================================================ */

/* Mobile / small tablet: hamburger visible, desktop nav hidden */
@media (max-width: 939px) {
    /* already set in base: hamburger display: flex; nav-desktop display: none; */
}

/* Large tablet / desktop: hide hamburger, show desktop nav, single → multi column */
@media (min-width: 940px) {

    .hamburger {
        display: none;
    }

    .nav-desktop {
        display: block;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 3rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
        justify-content: center;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .section {
        padding: 5rem 0;
    }

    .hero {
        padding: 10rem 0 8rem;
    }
}

/* Extra large screens */
@media (min-width: 1200px) {

    .container {
        padding: 0 2rem;
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-grid {
        gap: 3rem 4rem;
    }

    .hero {
        background-attachment: fixed;
    }
}

/* Small screen comfort */
@media (max-width: 480px) {
    .bible-passage {
        font-size: 1.15rem;
        padding: 1.2rem;
    }

    .video-card h3 {
        font-size: 1.3rem;
    }
}