/**
 * Jeeva Earth Custom Responsive Footer Styles
 * Exact visual match to design specification
 */

:root {
    --jeeva-footer-bg: var(--jeeva-bg-stone, #f3f2eb);
    --jeeva-footer-orange: var(--jeeva-orange, #F47521);
    --jeeva-footer-orange-hover: var(--jeeva-orange-hover, #dd6212);
    --jeeva-footer-green: var(--jeeva-green, #045A31);
    --jeeva-footer-green-hover: var(--jeeva-green-hover, #034224);
    --jeeva-footer-title: var(--jeeva-title, #222623);
    --jeeva-footer-text: var(--jeeva-text, #666c68);
    --jeeva-footer-link-hover: var(--jeeva-orange, #F47521);
    --jeeva-footer-border: var(--jeeva-border, rgba(0, 0, 0, 0.07));
    --jeeva-footer-container: 1280px;
}

/* Ensure Astra default footers are completely hidden if any remain */
.site-footer:not(.jeeva-site-footer),
.ast-footer-builder,
#colophon:not(.jeeva-site-footer) {
    display: none !important;
}

/* Main Footer Container */
.jeeva-site-footer {
    background-color: var(--jeeva-footer-bg);
    color: var(--jeeva-footer-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    width: 100%;
    margin-top: 95px; /* Gives headroom so the 50% floating newsletter doesn't collide with content */
    overflow: visible; /* Required so half the newsletter box can hang outside into the section above */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.jeeva-site-footer * {
    box-sizing: border-box;
}

.jeeva-footer-container {
    max-width: var(--jeeva-footer-container);
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* ==========================================================================
   1. Newsletter Section ("Stay Connected")
   ========================================================================== */
.jeeva-footer-newsletter-wrap {
    position: relative;
    z-index: 10;
    margin-top: -65px; /* Pulls 50% of the newsletter box outside the top edge of the footer */
    padding-top: 0;
    padding-bottom: 20px;
}

.jeeva-newsletter-card {
    background-color: var(--jeeva-footer-orange);
    border-radius: 24px;
    padding: 34px 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(244, 117, 33, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jeeva-newsletter-card:hover {
    box-shadow: 0 14px 38px rgba(244, 117, 33, 0.28);
}

.jeeva-newsletter-content {
    flex: 1 1 50%;
    min-width: 280px;
}

.jeeva-newsletter-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.jeeva-newsletter-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.jeeva-newsletter-form-box {
    flex: 1 1 45%;
    max-width: 440px;
    min-width: 280px;
}

.jeeva-newsletter-form {
    position: relative;
    width: 100%;
}

.jeeva-newsletter-pill {
    background: #ffffff;
    border-radius: 9999px;
    padding: 5px 6px 5px 26px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 56px;
}

.jeeva-newsletter-pill:focus-within {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
}

.jeeva-site-footer .jeeva-newsletter-input,
.jeeva-site-footer input[type="email"].jeeva-newsletter-input,
#jeeva-newsletter-form input[type="email"],
#jeeva-newsletter-email {
    flex: 1 !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 15px !important;
    color: #2c322e !important;
    padding: 0 12px 0 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    line-height: normal !important;
    height: auto !important;
}

.jeeva-site-footer .jeeva-newsletter-input:focus,
.jeeva-site-footer input[type="email"].jeeva-newsletter-input:focus,
#jeeva-newsletter-form input[type="email"]:focus,
#jeeva-newsletter-email:focus,
.jeeva-site-footer .jeeva-newsletter-input:active,
#jeeva-newsletter-email:active {
    border: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

.jeeva-newsletter-input::placeholder {
    color: #72777c;
    font-size: 14.5px;
    opacity: 1;
}

.jeeva-newsletter-btn {
    background-color: var(--jeeva-footer-green);
    color: #ffffff;
    border: none;
    outline: none;
    border-radius: 9999px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.jeeva-newsletter-btn:hover {
    background-color: var(--jeeva-footer-green-hover);
    transform: translateY(-1px);
}

.jeeva-newsletter-btn:active {
    transform: translateY(0);
}

.jeeva-newsletter-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Spinner */
.jeeva-newsletter-btn .btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: jeeva-spin 0.7s linear infinite;
}

@keyframes jeeva-spin {
    to { transform: rotate(360deg); }
}

.jeeva-newsletter-msg {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    display: none;
}

.jeeva-newsletter-msg.is-success {
    display: block;
    color: #ffffff;
    background: rgba(46, 125, 50, 0.88);
}

.jeeva-newsletter-msg.is-error {
    display: block;
    color: #ffffff;
    background: rgba(198, 40, 40, 0.88);
}

/* ==========================================================================
   2. Main Footer Grid
   ========================================================================== */
.jeeva-footer-main {
    padding-top: 36px;
    padding-bottom: 24px;
    position: relative;
    z-index: 2;
}

.jeeva-footer-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr 1fr 1.2fr 1.6fr;
    column-gap: 42px;
    row-gap: 32px;
}

/* Brand Column */
.jeeva-footer-col-brand {
    padding-right: 12px;
}

.jeeva-footer-logo-wrap {
    margin-bottom: 14px;
}

.jeeva-footer-logo-link {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.jeeva-footer-tagline {
    color: var(--jeeva-footer-text);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 18px 0;
}

.jeeva-footer-address-block {
    margin-bottom: 22px;
}

.jeeva-footer-subheading {
    font-size: 14px;
    font-weight: 700;
    color: var(--jeeva-footer-title);
    margin: 0 0 6px 0;
    letter-spacing: -0.1px;
}

.jeeva-footer-address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.65;
    color: var(--jeeva-footer-text);
}

/* Social Buttons Row */
.jeeva-footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.jeeva-social-circle {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #2b302c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.jeeva-social-circle:hover {
    background-color: var(--jeeva-footer-orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 117, 33, 0.35);
}

.jeeva-social-circle:hover polygon {
    fill: var(--jeeva-footer-orange) !important;
}

/* Column Headings */
.jeeva-footer-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--jeeva-footer-title);
    margin: 0 0 18px 0;
    letter-spacing: -0.2px;
}

/* Navigation Links */
.jeeva-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jeeva-footer-links li a {
    color: var(--jeeva-footer-text);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.jeeva-footer-links li a:hover {
    color: var(--jeeva-footer-orange);
    padding-left: 2px;
}

/* Contact Column */
.jeeva-footer-col-contact .jeeva-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jeeva-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--jeeva-footer-text);
    font-size: 13.5px;
}

.jeeva-contact-icon {
    flex-shrink: 0;
    width: 20px;
    color: #3b423e;
    margin-top: 2px;
}

.jeeva-contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jeeva-contact-heading {
    font-weight: 700;
    color: var(--jeeva-footer-title);
    font-size: 13.5px;
    margin-bottom: 2px;
}

.jeeva-contact-link {
    color: var(--jeeva-footer-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.jeeva-contact-link:hover {
    color: var(--jeeva-footer-orange);
}

.jeeva-contact-time {
    color: var(--jeeva-footer-text);
    font-size: 13px;
    font-weight: 600;
}

/* Column Headings */
.jeeva-footer-bottom {
    border-top: 1px solid var(--jeeva-footer-border);
    padding: 22px 0 26px 0;
    background-color: var(--jeeva-footer-bg);
    position: relative;
    z-index: 2;
}

.jeeva-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.jeeva-copyright-text {
    margin: 0;
    font-size: 13px;
    color: #727874;
}

.jeeva-legal-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.jeeva-legal-link {
    color: #666c68;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.jeeva-legal-link:hover {
    color: var(--jeeva-footer-orange);
}

/* ==========================================================================
   5. Responsive Breakpoints
   ========================================================================== */

@media screen and (max-width: 1320px) {
    .jeeva-footer-container {
        padding: 0 20px;
    }
}

/* Large Tablets & Small Laptops (max-width: 1080px) */
@media screen and (max-width: 1080px) {
    .jeeva-site-footer {
        margin-top: 105px;
    }

    .jeeva-footer-newsletter-wrap {
        margin-top: -70px;
    }

    .jeeva-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.2fr 1.5fr;
        column-gap: 28px;
    }

    .jeeva-newsletter-card {
        padding: 28px 36px;
    }

    .jeeva-newsletter-title {
        font-size: 25px;
    }
}

/* Tablets (max-width: 880px and min-width: 769px) */
@media screen and (max-width: 880px) and (min-width: 769px) {
    .jeeva-site-footer {
        margin-top: 125px;
    }

    .jeeva-footer-newsletter-wrap {
        margin-top: -95px; /* Half outside for tablet stacked form */
        padding-top: 0;
        padding-bottom: 20px;
    }

    .jeeva-newsletter-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 30px;
        gap: 20px;
    }

    .jeeva-newsletter-content {
        width: 100%;
    }

    .jeeva-newsletter-form-box {
        width: 100%;
        max-width: 100%;
    }

    .jeeva-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 36px;
        column-gap: 30px;
    }

    .jeeva-footer-grid .jeeva-footer-col-brand {
        grid-column: span 3;
        max-width: 480px;
    }

    .jeeva-footer-grid .jeeva-footer-col-contact {
        grid-column: span 3;
    }

    .jeeva-footer-col-contact .jeeva-contact-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 28px;
    }
}

/* Mobile Screens (max-width: 768px) */
@media screen and (max-width: 768px) {
    .jeeva-site-footer {
        margin-top: 145px; /* Headroom for half the mobile card */
    }

    .jeeva-footer-container {
        padding: 0 20px;
    }

    .jeeva-footer-newsletter-wrap {
        margin-top: -125px; /* Exactly 50% outside and 50% inside on mobile */
        padding-top: 0;
        padding-bottom: 12px;
    }

    .jeeva-newsletter-card {
        border-radius: 24px;
        padding: 28px 22px;
        gap: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .jeeva-newsletter-title {
        font-size: 25px;
        margin-bottom: 6px;
    }

    .jeeva-newsletter-desc {
        font-size: 13.5px;
        line-height: 1.45;
        margin-bottom: 4px;
    }

    .jeeva-newsletter-form-box {
        width: 100%;
        max-width: 100%;
    }

    /* Mobile: Keep unified single pill matching screenshot */
    .jeeva-newsletter-pill {
        background: #ffffff;
        border-radius: 9999px;
        padding: 4px 5px 4px 18px;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        min-height: 50px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    }

    .jeeva-newsletter-input {
        background: transparent;
        border-radius: 0;
        padding: 0 8px 0 0;
        font-size: 13.5px;
        width: auto;
        flex: 1;
        min-width: 0;
        box-shadow: none;
        text-align: left;
    }

    .jeeva-newsletter-btn {
        width: auto;
        border-radius: 9999px;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 600;
        background-color: var(--jeeva-footer-green);
        box-shadow: none;
        flex-shrink: 0;
        height: 42px;
    }

    .jeeva-footer-main {
        padding-top: 24px;
        padding-bottom: 16px;
    }

    /* 2-Column Grid Layout for Mobile */
    .jeeva-footer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        row-gap: 32px;
        column-gap: 22px;
    }

    /* Full-width Brand section spanning across the top of both columns */
    .jeeva-footer-grid .jeeva-footer-col-brand {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 4px;
    }

    .jeeva-footer-tagline {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 18px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .jeeva-footer-tagline br {
        display: none;
    }

    .jeeva-footer-address-block {
        margin-bottom: 16px;
    }

    .jeeva-footer-socials {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 14px;
        margin-bottom: 8px;
    }

    /* All remaining columns take 1 column in the 2-column grid */
    .jeeva-footer-grid .jeeva-footer-col:not(.jeeva-footer-col-brand) {
        grid-column: span 1 !important;
        width: 100% !important;
    }

    .jeeva-footer-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 14px;
    }

    .jeeva-footer-links li {
        margin-bottom: 10px;
    }

    .jeeva-footer-links a {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .jeeva-footer-col-contact .jeeva-contact-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .jeeva-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .jeeva-contact-icon {
        flex-shrink: 0;
        width: 18px;
        margin-top: 2px;
    }

    .jeeva-contact-heading {
        font-size: 13.5px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .jeeva-contact-link,
    .jeeva-contact-time {
        font-size: 12.5px;
        line-height: 1.5;
        word-break: break-word;
    }

    .jeeva-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .jeeva-legal-nav {
        gap: 18px;
    }
}

/* Extra Small Screens (max-width: 400px) */
@media screen and (max-width: 400px) {
    .jeeva-footer-container {
        padding: 0 16px;
    }

    .jeeva-newsletter-card {
        padding: 24px 18px;
    }

    .jeeva-newsletter-title {
        font-size: 22px;
    }

    .jeeva-newsletter-desc {
        font-size: 13px;
    }

    .jeeva-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 16px;
        row-gap: 26px;
    }

    .jeeva-footer-grid .jeeva-footer-col-brand {
        grid-column: 1 / -1 !important;
    }

    .jeeva-footer-grid .jeeva-footer-col:not(.jeeva-footer-col-brand) {
        grid-column: span 1 !important;
    }

    .jeeva-legal-nav {
        gap: 14px;
    }
}

/* ==========================================================================
   Thank You Subscription Modal
   ========================================================================== */
.jeeva-nl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jeeva-nl-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.jeeva-nl-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.jeeva-nl-modal-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 28px;
    padding: 40px 32px 34px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.jeeva-nl-modal.is-open .jeeva-nl-modal-card {
    transform: scale(1);
}

.jeeva-nl-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.jeeva-nl-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}

.jeeva-nl-modal-icon-wrap {
    margin-bottom: 20px;
}

.jeeva-nl-modal-icon-circle {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #045A31 0%, #067842 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(4, 90, 49, 0.35);
}

.jeeva-nl-modal-title {
    font-size: 23px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.jeeva-nl-modal-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 24px 0;
}

.jeeva-nl-modal-subtitle strong {
    color: #045A31;
}

.jeeva-nl-modal-action-btn {
    width: 100%;
    background: #045A31;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(4, 90, 49, 0.25);
    outline: none;
}

.jeeva-nl-modal-action-btn:hover {
    background: #F47521;
    box-shadow: 0 6px 20px rgba(244, 117, 33, 0.4);
    transform: translateY(-2px);
}

