/* 
 * Footer Styles 
 */

 :root {
    --footer-bg: #FDFBF7;
    --footer-text: #4A4A4A;
    --footer-dark: #1A1A1A;
    --footer-accent: #3D5045; /* Dark Green */
    --footer-line: #E8E5DF; /* Separator lines */
}

.zemyna-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
    position: relative;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--footer-line);
    overflow: hidden; /* For botanical elements */
}

/* Base Utilities */
.zemyna-footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Botanicals */
.zemyna-footer__botanical-left,
.zemyna-footer__botanical-right {
    position: absolute;
    top: 0;
    width: 25%;
    max-width: 350px;
    z-index: 0;
    color: var(--footer-accent);
    pointer-events: none;
}

.zemyna-footer__botanical-left {
    left: -5%;
}

.zemyna-footer__botanical-right {
    right: -5%;
    transform: rotateY(180deg);
}

/* New Botanical Leaf Enhancements */
.zemyna-footer__leaf-left,
.zemyna-footer__leaf-right {
    position: absolute;
    bottom: -15%;
    width: 350px;
    max-width: 40vw;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15; /* subtle normal state */
    transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zemyna-footer__leaf-left img,
.zemyna-footer__leaf-right img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.zemyna-footer__leaf-left {
    left: -5%;
    transform: rotate(15deg);
}

.zemyna-footer__leaf-right {
    right: -5%;
    transform: scaleX(-1) rotate(15deg); /* Flip horizontally to branch inward */
}

@media (min-width: 1025px) {
    /* Hover state for desktop */
    .zemyna-footer:hover .zemyna-footer__leaf-left,
    .zemyna-footer:hover .zemyna-footer__leaf-right {
        opacity: 0.85; /* Fully visible and clear on hover */
    }
}

@media (max-width: 1024px) {
    /* Mobile state: no hover, keep it subtle but visible */
    .zemyna-footer__leaf-left,
    .zemyna-footer__leaf-right {
        opacity: 0.2; /* slightly reduced opacity for mobile to prevent clutter */
        width: 250px;
        bottom: -5%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .zemyna-footer__leaf-left,
    .zemyna-footer__leaf-right {
        transition: none !important;
    }
}

/* Layout */
.zemyna-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .zemyna-footer__top {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Vertical Dividers between columns (Desktop only) */
@media (min-width: 768px) {
    .zemyna-footer__brand {
        padding-right: 2rem;
        border-right: 1px solid var(--footer-line);
    }
    .zemyna-footer__contact {
        padding-left: 1rem;
        padding-right: 2rem;
        border-right: 1px solid var(--footer-line);
    }
    .zemyna-footer__connect {
        padding-left: 1rem;
    }
}


/* Headings */
.zemyna-footer__heading {
    font-family: Georgia, serif;
    font-size: 1.75rem;
    color: var(--footer-dark);
    font-weight: 400;
    margin-bottom: 2rem;
}


/* Brand Column */
.zemyna-footer__brand-logo-wrapper {
    margin-bottom: 1.5rem;
}

.zemyna-footer__logo {
    max-width: 160px;
    height: auto;
}

.zemyna-footer__logo-placeholder {
    width: 120px;
    height: 120px;
    background: var(--footer-line);
    border-radius: 50%;
}

.zemyna-footer__brand-name {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    color: var(--footer-dark);
    font-weight: 400;
    margin-bottom: 1rem;
}

.zemyna-footer__brand-divider {
    width: 40px;
    height: 1px;
    background-color: var(--footer-accent);
    margin-bottom: 1.5rem;
}

.zemyna-footer__brand-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--footer-text);
    font-style: italic;
}


/* Lists Common */
.zemyna-footer__contact-list,
.zemyna-footer__connect-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.zemyna-footer__contact-list li,
.zemyna-footer__connect-list li {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--footer-line);
}

.zemyna-footer__contact-list li:last-child,
.zemyna-footer__connect-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zemyna-footer__contact-list a,
.zemyna-footer__connect-link {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.zemyna-footer__contact-list a:hover,
.zemyna-footer__connect-link:hover {
    color: var(--footer-accent);
}

/* Contact Column */
.zemyna-footer__contact-list svg {
    margin-right: 1rem;
    color: var(--footer-accent);
    flex-shrink: 0;
}

.zemyna-footer__btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--footer-accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.zemyna-footer__btn svg {
    margin-left: 0.75rem;
}

.zemyna-footer__btn:hover {
    background-color: #2c3a32;
    color: #ffffff !important;
}


/* Connect Column */
.zemyna-footer__social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--footer-line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--footer-accent);
    flex-shrink: 0;
}




/* Bottom Bar */
.zemyna-footer__divider {
    height: 1px;
    background-color: var(--footer-line);
    margin-bottom: 2rem;
}

.zemyna-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--footer-text);
}

@media (min-width: 768px) {
    .zemyna-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.zemyna-footer__bottom p {
    margin: 0;
}

.zemyna-footer__bottom-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zemyna-footer__bottom-center svg {
    color: var(--footer-accent);
}

.zemyna-footer__bottom-right a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.zemyna-footer__bottom-right a:hover {
    color: var(--footer-accent);
}

.zemyna-footer__sep {
    margin: 0 0.5rem;
    color: var(--footer-line);
}

/* ============================
 * Bottom bar — Privacy Policy link with icon
 * ============================ */
.zemyna-footer__bottom-policy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.zemyna-footer__bottom-policy-link:hover {
    color: var(--footer-accent);
}

.zemyna-footer__bottom-policy-icon {
    color: var(--footer-accent);
    flex-shrink: 0;
    opacity: 0.75;
}

/* ============================
 * Newsletter form in Connect column
 * ============================ */
.zemyna-footer__newsletter {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--footer-line);
}

.zemyna-footer__newsletter-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--footer-dark);
    margin: 0 0 0.35rem 0;
}

.zemyna-footer__newsletter-sub {
    font-size: 0.85rem;
    color: var(--footer-text);
    margin: 0 0 0.9rem 0;
    line-height: 1.5;
    opacity: 0.8;
}

.zemyna-footer__newsletter-form {
    width: 100%;
}

.zemyna-footer__newsletter-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--footer-line);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease;
}

.zemyna-footer__newsletter-row:focus-within {
    border-color: var(--footer-accent);
}

.zemyna-footer__newsletter-input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--footer-dark);
    min-width: 0; /* prevent overflow on mobile */
}

.zemyna-footer__newsletter-input::placeholder {
    color: #aaa;
}

.zemyna-footer__newsletter-btn {
    flex-shrink: 0;
    background: #3D5045 !important;
    background-color: #3D5045 !important;
    border: none !important;
    padding: 0 0.9rem;
    cursor: pointer;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.zemyna-footer__newsletter-btn:hover {
    background: #4A5C51 !important;
    background-color: #4A5C51 !important;
}

.zemyna-footer__newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.zemyna-footer__newsletter-msg {
    margin: 0.5rem 0 0 0;
    font-size: 0.82rem;
    min-height: 1.2em;
    line-height: 1.4;
}

.zemyna-footer__newsletter-msg--success {
    color: #3D7A4A;
}

.zemyna-footer__newsletter-msg--error {
    color: #b94a48;
}

/* -----------------------------
 * Popup Overlay & Modal Styles
 * ----------------------------- */
.zemyna-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.zemyna-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.zemyna-popup-container {
    background: var(--footer-bg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.zemyna-popup-overlay.is-active .zemyna-popup-container {
    transform: translateY(0);
}

/* Close Button */
.zemyna-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--footer-dark) !important;
    cursor: pointer;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.zemyna-popup-close svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.zemyna-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    transform: scale(1.05);
}

/* Content */
.zemyna-popup-content {
    text-align: center;
}

.zemyna-popup-heading {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--footer-dark);
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.zemyna-popup-subtext {
    font-size: 1rem;
    color: var(--footer-text);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Contact Form 7 inside popup will inherit from service-contact.css .zemyna-contact-form */

