/* =====================================================================
   assets/css/style.css — design ng PUBLIC pages (Landing page)
   Lahat ng CSS ng system ay nasa assets/css/ lang. Walang inline style.
   ===================================================================== */

/* (Fonts: nasa assets/css/fonts.css) */

/* ---------- 2. KULAY (galing sa approved prototype; huwag baguhin) ---------- */
:root {
    --primary: #8c1a2e;
    --primary-dark: #6b1322;
    --primary-50: #fdf2f4;
    --text-dark: #111827;
    --text-gray: #6b7280;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --footer-bg: #111827;
}

/* ---------- 3. BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: #fff;
}
h1, h2, h3, .brand-name { font-family: "DM Sans", Arial, sans-serif; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid #f4b6c1; outline-offset: 2px; }

/* Lalagyan na nakagitna, pare-parehong lapad sa lahat ng section */
.container { max-width: calc(1152px + 2rem); margin: 0 auto; padding: 0 1rem; }

/* Para hindi matakpan ng sticky navbar ang heading kapag nag-scroll */
section[id] { scroll-margin-top: 64px; }

/* ---------- 4. BUTTONS ---------- */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn-icon svg { width: 16px; height: 16px; }

.btn-white {
    background: #fff;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-white svg { width: 16px; height: 16px; }
.btn-white:hover { background: var(--bg-gray); }

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #fff;
    transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- 5. NAVBAR ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
}
.nav-container {
    max-width: 1152px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { color: var(--primary); font-size: 14px; font-weight: 700; line-height: 1.3; }
.brand-place { font-size: 10px; color: var(--text-gray); }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-gray); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-dark); }
.nav-links a.btn-primary { color: #fff; }

/* Hamburger: nakatago sa malapad na screen */
.nav-toggle { display: none; background: none; border: none; color: var(--text-dark); cursor: pointer; padding: 6px; }

/* ---------- 6. HERO ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 6rem 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 24px;
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 24px; max-width: 800px; }
.hero p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 32px; max-width: 672px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 7. STATS ---------- */
.stats { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat-value { font-family: "DM Sans", Arial, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--text-gray); margin-top: 4px; }

/* ---------- 8. SECTION HEADER (About + Donation) ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; margin-bottom: 12px; }
.section-header p { color: var(--text-gray); max-width: 672px; margin: 0 auto; }

/* ---------- 9. ABOUT ---------- */
.about { background: var(--bg-gray); padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card p { font-size: 0.875rem; color: var(--text-gray); margin-top: 8px; }

/* ---------- 10. DONATION ---------- */
.donation { padding: 4rem 0; background: #fff; }
.donation-box {
    background: var(--primary-50);
    border: 1px solid #fce4e8;
    border-radius: 16px;
    padding: 2.5rem;
}
.donation-box h3 { margin-bottom: 1.25rem; }
.tags-container { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }
.tag {
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.donation-card { background: #fff; border-radius: 12px; padding: 1.5rem; border: 1px solid var(--border); }
.donation-card p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 14px; }

/* ---------- 11. FOOTER ---------- */
.site-footer { background: var(--footer-bg); color: #fff; padding: 2.5rem 1rem; }
.footer-content {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: right;
}
.footer-brand .brand-logo { border-color: rgba(255, 255, 255, 0.2); }
.footer-brand .brand-text { text-align: left; }
.footer-brand .brand-name { color: #fff; font-size: 16px; }
.footer-brand .brand-place { color: #9ca3af; font-size: 12px; }
.footer-meta p { font-size: 12px; color: #9ca3af; }
.footer-meta .footer-copy { color: #6b7280; margin-top: 4px; }

/* ---------- 12. RESPONSIVE (tablet at phone) ---------- */
@media (max-width: 1023px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    /* Navbar: hamburger + dropdown menu */
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 8px 1rem 16px;
    }
    .nav-links.open { display: flex; }   /* idinadagdag ng main.js ang "open" */
    .nav-links a { padding: 12px 0; font-size: 15px; }
    .nav-links a.btn-primary { text-align: center; margin-top: 8px; padding: 10px 16px; }

    .hero { padding: 4rem 0; }
    .hero h1 { font-size: 2.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .donation-box { padding: 1.5rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-brand .brand-text { text-align: left; }
}

/* Para sa users na naka-off ang animation sa device nila */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-badge .dot { animation: none; }
}

/* ---------- ABOUT: hinati sa Announcements (kaliwa) + 5 cards (kanan) ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.news-column { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.news-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.news-head h3 { font-size: 1.125rem; }
.news-head a { font-size: 0.875rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.news-head a:hover { text-decoration: underline; }
.news-card { display: flex; flex-direction: column; gap: 4px; padding: 0.9rem 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.news-card:hover .news-title { color: var(--primary); text-decoration: underline; }
.news-tags { display: flex; gap: 6px; }
.news-tag { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: #f3f4f6; color: #374151; border-radius: 999px; padding: 2px 8px; }
.news-tag-event { background: var(--primary); color: #fff; }
.news-tag-pin { background: #fef3c7; color: #78350f; }
.news-title { font-family: "DM Sans", Arial, sans-serif; font-weight: 700; font-size: 1rem; }
.news-meta { font-size: 0.8125rem; color: var(--primary); font-weight: 500; }
.news-excerpt { font-size: 0.875rem; color: var(--text-gray); }
.news-empty { color: var(--text-gray); font-size: 0.875rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.features-list { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; }
.feature-row .feature-icon { margin-bottom: 0; flex-shrink: 0; }
.feature-row h3 { font-size: 1rem; }
.feature-row p { margin-top: 4px; }

/* ---------- Public na Announcements page ---------- */
.page-wrap { padding: 2.5rem 0 4rem; background: var(--bg-gray); min-height: 70vh; }
.narrow { max-width: 760px; }
.page-wrap h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.page-lead { color: var(--text-gray); margin-bottom: 1.5rem; }
.news-column.full { padding: 0.5rem 1.25rem; }
.news-column.full .news-card:first-child { border-top: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: 0.875rem; }
.pager a { color: var(--primary); font-weight: 600; text-decoration: none; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.post-card h1 { margin: 8px 0 4px; }
.post-facts { display: grid; gap: 6px; margin: 1rem 0; padding: 0.9rem 1rem; background: var(--primary-50); border-radius: 10px; font-size: 0.9375rem; }
.post-facts div { display: flex; gap: 10px; }
.post-facts dt { width: 60px; flex-shrink: 0; font-weight: 700; color: var(--primary); }
.post-text { line-height: 1.75; overflow-wrap: anywhere; }
.post-cancel { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 10px; padding: 0.75rem 1rem; margin: 1rem 0; }
.post-note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-gray); }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--primary); font-weight: 600; text-decoration: none; font-size: 0.875rem; }

@media (max-width: 900px) {
    .about-split { grid-template-columns: 1fr; }
}
