/* ==============================
   PPKO LIGNOMIA - Public Stylesheet
   ============================== */

/* ---- Global ---- */
:root {
    --primary: #2E7D32;
    --secondary: #66BB6A;
    --accent: #FBC02D;
    --bg: #F8F9FA;
    --text: #212529;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 15px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Loading Screen ---- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

/* ---- Navbar ---- */
#mainNav {
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(46, 125, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.15rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
}

#mainNav .navbar-toggler {
    border: none;
    padding: 0.4rem;
}

#mainNav .navbar-toggler:focus {
    box-shadow: none;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.92) 0%, rgba(102, 187, 106, 0.85) 100%),
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920') center/cover no-repeat;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-section .btn-hero {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 0.3rem;
    transition: var(--transition);
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--text);
    border: 2px solid var(--accent);
}

.btn-hero-primary:hover {
    background: #F9A825;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(251, 192, 45, 0.4);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ---- Section Styles ---- */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Stats Section ---- */
.stats-section {
    background: var(--primary);
    padding: 3rem 0;
    color: white;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 0.3rem;
}

/* ---- Cards ---- */
.card-modern {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-modern .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card-modern:hover .card-img-top {
    transform: scale(1.05);
}

.card-modern .card-img-wrapper {
    overflow: hidden;
}

.card-modern .card-body {
    padding: 1.5rem;
}

.card-modern .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.card-modern .card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Badges ---- */
.badge-status {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-upcoming { background: #E3F2FD; color: #1565C0; }
.badge-ongoing { background: #E8F5E9; color: #2E7D32; }
.badge-completed { background: #F3E5F5; color: #7B1FA2; }

.badge-category {
    background: var(--accent);
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: #1B5E20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: #F9A825;
    color: var(--text);
    transform: translateY(-2px);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: white;
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9) 0%, rgba(102, 187, 106, 0.8) 100%);
    color: white;
    padding: 8rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.page-header .breadcrumb {
    justify-content: center;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ---- Filter Tabs ---- */
.filter-tabs .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    margin: 0.2rem;
    transition: var(--transition);
}

.filter-tabs .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ---- Contact ---- */
.contact-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    background: white;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ---- WhatsApp Button ---- */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer {
    background: #1a1a2e !important;
}

.footer h5,
.footer h6 {
    color: white;
}

.footer a:hover {
    color: var(--secondary) !important;
}

/* ---- Back to Top ---- */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .page-header {
        padding: 6rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section .btn-hero {
        display: block;
        width: 100%;
        margin: 0.3rem 0;
    }
}

/* ---- Animation helpers ---- */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
