/* =========================================================
   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);
}

/* ================= APPOINTMENT SECTION ================= */
.appointment-section {
    padding: 100px 5%;
    background-color: #ffffff;
}

.appointment-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

/* --- Left Content --- */
.appointment-content { flex: 1; }

.appointment-title {
    font-size: 3rem;
    font-weight: 800;
    color: #075e00;
    line-height: 1.1;
}

.appointment-title .black-text { color: #1a1a1a; }

.title-underline-short {
    width: 70px;
    height: 4px;
    background-color: #075e00;
    margin: 20px 0 30px;
}

.appointment-desc {
    color: #666;
    font-size: 1.05rem; /* Siguraduhing tama ang laki */
    line-height: 1.6;    /* IMPORTANTE: Nagbibigay ng sapat na space sa pagitan ng lines */
    margin-bottom: 40px;
    height: auto;        /* Siguraduhin na 'auto' ang height, HUWAG fixed px */
    display: block;      /* Para kusa itong bumaba */   
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.icon-box {
    background-color: #075e00;
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    color: #437a7a;
    margin-bottom: 2px;
}

.contact-info-item p { color: #666; font-size: 0.9rem; }

/* --- Right Form --- */
.appointment-form-box {
    flex: 1.2;
    background-color: #ffffff;
    padding: 50px;
    border: 1px solid #e1e1e1;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.form-group input, .form-group select {
    padding: 15px;
    background-color: #f4f7f6;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: 666;
}

.btn-submit {
    background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green-light));
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 1s;
    margin-top: 10px;
}

.btn-submit:hover { background: #34db37e4; }

/* --- 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 */
}

.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 SERVICES SECTION
==================================== */

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

    .services-container {
        /* Ginagawang 2 columns imbes na 3 */
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-title-card {
        padding: 40px;
    }

    .service-title-card h2 {
        font-size: 2rem;
    }
}

/* --- Mobile View (768px pababa) --- */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 40px 5%;
    }

    .services-container {
        /* Force 1 column para sa phone screens */
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-title-card {
        text-align: center; /* Gitna ang text sa mobile */
        align-items: center;
        padding: 40px 25px;
    }

    .title-underline {
        margin: 0 auto 30px; /* Gitna ang underline */
    }

    .service-card {
        padding: 40px 25px; /* Bawas padding sa loob para sa maliit na screen */
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-icon {
        font-size: 2.5rem; /* Bahagyang paliitin ang icon */
    }
}

/* --- Mobile View (768px pababa) --- */
@media screen and (max-width: 768px) {
    .appointment-section {
        padding: 40px 5%; /* Binawasan ang padding para sa maliit na screen */
    }

    .appointment-container {
        flex-direction: column; /* Pinapatong ang text at form */
        gap: 40px;
        text-align: center; /* Gitna ang text para sa mobile balance */
    }

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

    .title-underline-short {
        margin: 15px auto 25px; /* Gitna ang underline */
    }

    .appointment-desc {
        text-align: center;
        line-height: 1.6;
        height: auto; /* Sinisiguro na hindi magpapatong ang text */
    }

    /* Contact Info Grid - Gagawing 1 column */
    .contact-info-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        text-align: left; /* Panatilihing left-aligned ang info items para madaling basahin */
    }

    /* Form Adjustments */
    .appointment-form-box {
        padding: 30px 20px; /* Mas maliit na padding sa loob ng form */
        width: 100%;
    }

    .form-row {
        flex-direction: column; /* Ginagawang column ang input pairs (e.g., First Name & Last Name) */
        gap: 15px;
    }

    .btn-submit {
        width: 100%; /* Gawing full-width ang button para madaling i-tap */
        font-size: 1rem;
    }
}

/* =================================
   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;
    }
}

/* --- Mobile & Tablet Views --- */
@media screen and (max-width: 1024px) {
    .appointment-container { flex-direction: column; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .appointment-form-box { width: 100%; padding: 30px; }
}

@media screen and (max-width: 768px) {
    .appointment-title { font-size: 2.2rem; }
    .form-row { flex-direction: column; gap: 20px; }
}