/* =============================================
   GREEN CARE — GLOBAL LAYOUT
   Header, Footer, WhatsApp Float, Nav
   ============================================= */

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background var(--transition-slow), box-shadow var(--transition-slow);
    padding: 1.25rem 0;
}

.header.scrolled {
    background: var(--green-800);
    box-shadow: 0 4px 24px rgba(20, 45, 39, 0.3);
    padding: 0.875rem 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--sage-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Header CTA */
.header__cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header__call {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.header__call:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.header__call svg {
    width: 16px;
    height: 16px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    gap: 5px;
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--green-900);
    z-index: 200;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition-slow);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav__close svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav__footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
    backdrop-filter: blur(2px);
}

.nav-overlay.open {
    display: block;
}

/* === FOOTER === */
.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* .footer__brand — no extra styles needed */

.footer__tagline {
    color: var(--sage-300);
    font-size: var(--text-sm);
    margin: 0.5rem 0 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 500;
}

.footer__desc {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
    max-width: 260px;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: rgba(255, 255, 255, 0.7);
}

.footer__social a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.footer__social svg {
    width: 16px;
    height: 16px;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__links a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--sage-300);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.footer__contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--sage-400);
}

.footer__contact-item a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
    color: var(--sage-300);
}

.footer__bottom {
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer__bottom-links a {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* === FLOATING WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.whatsapp-float__tooltip {
    background: var(--green-900);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float__btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    text-decoration: none;
    animation: wa-pulse 3.5s ease-in-out 2s infinite;
}

.whatsapp-float__btn:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-float__btn svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

@keyframes wa-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 32px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.08);
    }
}

/* === RESPONSIVE NAV === */
@media (max-width: 900px) {



    .header__nav {
        display: none;
    }

    .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .mobile-nav {
        display: flex;
    }

    .header__call {
        display: none;
    }

    /* Make logo tagline smaller on mobile to save space */
    .logo-tagline {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    /* Mobile nav footer buttons: make them full width */
    .mobile-nav__footer .btn {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .whatsapp-float__btn {
        width: 52px;
        height: 52px;
    }
}