/* Prevent iOS auto-zoom by ensuring font-size is at least 16px */
@media screen and (max-width: 768px) {
    .subscribeForm input,
    .subscribeForm select,
    .subscribeForm textarea {
        font-size: 16px !important;
    }
}

.puppy-yoga-footer {
    background-color: var(--primary-theme-color);
    position: relative;
    /* Remove any top margin that might push the footer down */
    margin-top: var(--puppy-yoga-footer-margin-top);
    padding-bottom: 50px;
}

/* Wave Top */
.footer-wave {
    position: absolute;
    /* This anchors the bottom of the wave to the top of the footer */
    bottom: 100%;
    left: 0;
    width: 100%;
    line-height: 0;
    /* Adds a tiny overlap to prevent the 1px "ghost" line */
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    /* Let the height adjust naturally or set a specific height */
    height: auto;
    min-height: 40px;
    /* Ensures it doesn't disappear on tiny screens */
}

.footer-wave .shape-fill {
    fill: var(--footer-bg);
}

/* Layout Grid */
.footer-main-content {
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 60px 0;
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--secondary-theme-color);
}

.newsletter-left {
    flex: 0 0;
    text-align: left;
}

.cta-text {
    font-size: 14px;
    margin-bottom: 15px;
}

.social-wrapper {
    display: flex;
    align-items: center;
    /* Keeps text and icons on the same invisible center line */
    gap: 15px;
    /* Space between "Follow us!" and the first icon */
}

.follow-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col.logo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 180px;
    /* Adjust this based on your logo's proportions */
    height: auto;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #e3e3e3;
    /* Matches your other footer text color */
    margin: 0;
    max-width: 250px;
    /* Prevents text from stretching too wide */
}

/* This applies only to screens smaller than 768px (standard phone/tablet size) */
@media screen and (max-width: 768px) {
    .subscribe-form-inline {
        margin-top: 20px !important;
    }

    .footer-grid {
        justify-content: space-evenly;
    }

    /* Target the column containing the logo and description */
    .footer-col.logo-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centers everything */
        text-align: center;
        width: 100%;
        /* Takes up full width to ensure it stays on its own row */
        margin-bottom: 40px;
        /* Adds breathing room before the next section */
    }

    /* Make the logo link its own block to force the text underneath */
    .footer-logo-link {
        display: block;
        margin-bottom: 20px;
        /* Space between logo and the text below */
    }

    .footer-logo {
        max-width: 150px;
        /* Slightly smaller logo for mobile screens */
        height: auto;
    }

    /* The description text under the logo */
    .footer-description {
        max-width: 80%;
        /* Prevents the text from hitting the edges of the phone */
        margin: 0 auto;
        /* Centers the text block */
    }

}

.subscribe-form-inline {
    display: flex !important;
    /* Forces horizontal layout */
    flex-direction: row !important;
    /* Ensures items stay side-by-side */
    align-items: center;
    /* Centers them vertically */
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    /* This creates the space around the button */
    width: 100%;
    max-width: 450px;
    /* Adjust based on your preference */
    margin-left: auto;
    /* Keeps it aligned to the right */
    overflow: hidden;
    /* Keeps the pill shape clean */
}

.subscribe-form-inline input[type="email"] {
    flex: 1 !important;
    /* Takes up all remaining space */
    border: none !important;
    background: transparent !important;
    padding: 10px 20px !important;
    font-size: 14px;
    outline: none;
    color: #333;
    width: auto !important;
    /* Overrides theme defaults */
    min-width: 0;
    /* Prevents input from pushing button out */
    margin: 0 !important;
    /* Removes theme spacing */
}

.subscribe-form-inline button {
    background-color: var(--secondary-theme-color) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    /* Makes the button a pill too */
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap !important;
    /* CRITICAL: Prevents text from wrapping */
    flex-shrink: 0 !important;
    /* Prevents button from getting squashed */
    transition: transform 0.2s ease;
    margin: 0 !important;
    /* Removes theme spacing */
}

/* This targets the Font Awesome icons inside the specific social-icons container */
.social-icons a i[class*="fa-"] {
    font-size: 40px !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    padding: 10px;
}

/* This ensures the links themselves don't restrict the size */
.social-icons a {
    display: inline-block !important;
    text-decoration: none !important;
}

.subscribe-form-inline button:hover {
    filter: brightness(1.1);
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.legal-links a {
    margin-left: 20px;
    color: inherit;
    text-decoration: none;
}