/* =========================================================
   ROOT VARIABLES & BASE
========================================================= */
:root {
    --brand-green-dark: #075e00;
    --brand-green-light: #39c12a;
    --accent-lime: #d4ff5e;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --btn-green: #075e00;
    --btn-green-hover: #054100;
    --light-bg: #f9f9f9;
}

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

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================================
   NEW: ANIMATIONS KEYFRAMES
========================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 0; transform: translateY(0);}
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Class para sa Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   TOP BAR
========================================================= */
.top-bar {
    background: grey;
    color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-right a {
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar-right a:hover {
    opacity: 0.7;
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */
/* --- Desktop Styles (Header Fix) --- */
.site-header {
    background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green-light));
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Ginawang sticky para laging nasa taas */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-logo {
    height: 70px;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
}

.menu-toggle {
    display: none; /* Tago muna sa desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #c4d600; /* Lime green na ginagamit mo */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;  
}

.site-logo:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    cursor: pointer;
    /* Optional: Mag-glow nang konti pag hinover */
    filter: drop-shadow(0px 0px 8px #85aa14);
}

.main-nav ul { display: flex; gap: 25px; list-style: none; }
.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
}
.nav-link:hover { color: var(--accent-lime); transform: translateY(-2px); }

.search-icon {
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
}

/* --- Testimonials Section Base --- */
.testimonials-section {
    padding: 100px 5%;
    background-color: #167e24; /* Dark background base sa screenshot */
    text-align: center;
}

.testimonials-header {
    margin-bottom: 60px;
}

.testimonials-header .subtitle {
    color: #a0aab0;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.testimonials-header .title {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
}

.highlight-green {
    color: #c4d600; /* Lime Green */
}

/* --- Container & Cards --- */
.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: #f4f7f6; /* Off-white card background */
    flex: 1;
    min-width: 350px;
    max-width: 400px;
    padding: 50px 40px;
    text-align: left;
    position: relative;
    border-radius: 4px;
    overflow: hidden; /* Para sa background decoration */
}

.stars {
    color: #f1c40f; /* Gold stars */
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.testimonial-text {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 40px;
    min-height: 100px; /* Pantay na height ng text */
}

/* --- Client Info --- */
.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h4 {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 2px;
}

.client-details span {
    color: #777;
    font-size: 0.9rem;
}

/* --- Decoration (Circular lines in the corner) --- */
.testimonial-card::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, transparent 40%, #e0e6e4 41%, transparent 42%, transparent 50%, #e0e6e4 51%, transparent 52%);
    background-size: 20px 20px; /* Ginagaya ang concentric circles effect */
    opacity: 0.5;
}

/* --- Global Footer Styles --- */
.main-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 60px 5% 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    z-index: 10; /* Sinisiguro na laging nasa itaas */
    transition: background 0.5s;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Branding --- */
.footer-branding {
    margin-bottom: 40px;
    text-align: left;
}

.footer-logo {
    width: 130px;
    height: auto;
    margin-bottom: 20px;
}

.footer-description {
    color: #cccccc;
    max-width: 600px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Grid Section --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 40px 0;
}

.highlight-green {
    color: #c4d600; /* Signature Lime Green */
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: #c4d600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #aaaaaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #c4d600;
    padding-left: 5px;
}

/* --- Contact Button --- */
.btn-contact {
    display: inline-block;
    background-color: #c4d600;
    color: #111111;
    padding: 12px 25px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.btn-contact:hover {
    transform: scale(1.05);
    background-color: #ffffff;
}

/* --- Info Row --- */
.footer-info-row {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: #ffffff;
    font-size: 1.2rem;
}

/* --- Bottom Bar --- */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    color: #888888;
    font-size: 0.9rem;
}

.social-links-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-label {
    color: #ffffff;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #c4d600;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 20px 0;
}

/* --- Responsive Layout (Mobile) --- */
@media screen and (max-width: 768px) {
    /* 1. I-force ang Header na maging relative para basehan ng positioning */
    .site-header {
        position: relative;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #111; /* Siguradong may background */
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex !important; /* Lalabas na ang hamburger sa mobile */
        z-index: 1100;
        position: relative;
    }

    /* 3. Ang Main Nav Menu */
    .main-nav {
        display: flex !important; /* Dapat flex para gumana ang alignment */
        position: fixed;
        top: 0;
        right: -100%; /* Nakatago sa kanan */
        width: 100%; /* Occupy buong screen para sigurado */
        height: 100vh;
        background-color: #111111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1050; /* Mas mataas sa Hero section at top-bar */
    }

    /* 4. Kapag clinick (Active State) */
    .main-nav.active {
        right: 0; /* Papasok sa screen */
    }

    /* 5. Styling ng Links sa loob */
    .nav-list {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .nav-list li {
        margin: 15px 0;
    }

    .nav-link {
        color: #fff !important;
        font-size: 1.5rem;
        display: block;
        padding: 20px;
        font-size: 1.2rem;
        text-decoration: none;
    }

    /* Hamburger bars style para siguradong kita */
    .menu-toggle {
        display: flex;
        z-index: 1000; /* Dapat mas mataas sa main-nav */
    }

    /* Ang unang bar ay bababa at iikot */
    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    /* Ang gitnang bar ay mawawala */
    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

/* Ang huling bar ay tataas at iikot pabaliktad */
    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* =================================
   RESPONSIVE TESTIMONIALS SECTION
==================================== */

/* --- Tablet View (1024px pababa) --- */
@media screen and (max-width: 1024px) {
    .testimonials-section {
        padding: 60px 5%;
    }

    .testimonials-header .title {
        font-size: 2.2rem; /* Bahagyang paliitin ang title */
    }

    .testimonial-card {
        min-width: calc(50% - 30px); /* Magkatabi ang dalawang cards sa tablet */
        padding: 40px 30px;
    }
}

/* --- Mobile View (768px pababa) --- */
@media screen and (max-width: 768px) {
    .testimonials-header {
        margin-bottom: 40px;
    }

    .testimonials-header .title {
        font-size: 1.8rem; /* Fit sa phone screen */
    }

    .testimonials-container {
        flex-direction: column; /* Stack vertically lahat ng cards */
        align-items: center;
        gap: 20px;
    }

    .testimonial-card {
        min-width: 100%; /* Full width na sa mobile */
        max-width: 100%;
        padding: 35px 25px;
        text-align: center; /* Gitna ang layout para sa mobile */
    }

    .stars {
        justify-content: center; /* Kung naka-flex ang stars container */
        display: flex;
        margin-bottom: 15px;
    }

    .testimonial-text {
        font-size: 1rem;
        min-height: auto; /* Hayaan nating mag-adjust ang height base sa text */
        margin-bottom: 30px;
    }

    .client-info {
        flex-direction: column; /* Stack ang image at name sa mobile */
        text-align: center;
        gap: 10px;
    }

    .client-img {
        margin: 0 auto; /* Gitna ang picture */
    }
}

/* =================================
   RESPONSIVE FOOTER SECTION
==================================== */

/* --- Tablet View (1024px pababa) --- */
@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns sa tablet */
        gap: 30px;
    }

    .footer-branding {
        text-align: center;
    }

    .footer-description {
        margin: 0 auto; /* Gitna ang description */
    }
}

/* --- Mobile View (768px pababa) --- */
@media screen and (max-width: 768px) {
    .main-footer {
        padding: 40px 5% 20px;
        text-align: center; /* Lahat ng text sa gitna para sa mobile balance */
    }

    .footer-branding {
        margin-bottom: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Isang column na lang sa phone */
        gap: 40px;
    }

    .footer-col h3 {
        margin-bottom: 15px;
    }

    .footer-info-row {
        flex-direction: column; /* I-stack ang email, phone, at location */
        align-items: center;
        gap: 25px;
    }

    .info-item {
        flex-direction: column; /* Icon sa itaas ng text */
        gap: 5px;
    }

    .footer-bottom-bar {
        flex-direction: column-reverse; /* Socials sa itaas, Copyright sa baba */
        gap: 20px;
        text-align: center;
    }

    .social-links-container {
        flex-direction: column;
        gap: 10px;
    }

    .btn-contact {
        width: 100%; /* Gawing full-width ang button para madaling pindutin sa mobile */
        max-width: 300px;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-contact-info { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100%;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
    .planning-section,
    .hero-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* --- Footer Responsive Layout --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid sa tablets */
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacked sa mobile */
    }
    .footer-logo-img {
        width: 120px;
    }
}

/* =========================================================
   ANIMATIONS 
========================================================= */

/* Entrance Animation for Hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}