/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #3a7d34;
    --secondary-green: #5a9c54;
    --light-green: #e8f5e9;
    --accent-brown: #8d6e63;
    --light-beige: #f5f5f1;
    --dark-text: #2d3436;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------
   GLOBAL BODY + HEADER SPACING FIX
-------------------------------------------------- */

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-beige);
}

/* Push page content BELOW the fixed header */
#header-placeholder {
    height: 80px;
}

/* --------------------------------------------------
   HEADER (GLOBAL)
-------------------------------------------------- */

header {
    background-color: var(--dark-text);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 90%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: white;
}

.logo span {
    color: white;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-green);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: white;
    z-index: 10000;
}

/* --------------------------------------------------
   FOOTER (GLOBAL)
-------------------------------------------------- */

footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-green);
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-green);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-green);
    margin-right: 10px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all .3s;
}

.social-links a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

copyright {
    text-align: center;
    padding-top: 30px;
    opacity: 0.7;
}

/* --------------------------------------------------
   WHATSAPP
-------------------------------------------------- */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 999;
}

/* --------------------------------------------------
   MOBILE MENU (FINAL, FIXED, CLEAN)
-------------------------------------------------- */

@media (max-width: 768px) {

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    /* Full-width mobile dropdown */
    #mainNav {
        position: fixed !important;
        top: 80px;
        left: 0;
        width: 100% !important;
        background-color: var(--dark-text);
        z-index: 9999;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        clip-path: polygon(0 0,100% 0,100% 0,0 0);
        transition: clip-path .35s ease;
        padding: 10px 0;
    }

    #mainNav.active {
        clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
    }

    /* Stack menu items */
    #mainNav ul {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    #mainNav ul li {
        padding: 12px 0;
        width: 100%;
    }

    #mainNav ul li a {
        font-size: 16px;
        padding: 12px 0;
        display: block;
    }

    /* Header styling fix */
    .header-content {
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 430px) {
    .logo h1 { font-size: 14px; }
}

@media (max-width: 410px) {
    .logo h1 { font-size: 13px; }
    .logo img { height: 35px; }
}
