/* ========================================
   PREMIUM CUSTOM FOOTER - Lorne & Lyle
   Add this to: astra-child/style.css OR create footer.css
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Inter:wght@300;400;500;600&display=swap');

/* ========================================
   FOOTER WRAPPER
   ======================================== */
.premium-footer {
    margin-top: 0;
    background: #f5f0e8;
    width: 100%;
}

/* ========================================
   TOP SECTION - BRONZE BACKGROUND
   ======================================== */
.premium-footer-top {
    background: #b8936d;
    color: #ffffff;
    padding: 80px 0 60px 0;
}

.premium-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.premium-footer-newsletter {
    margin-bottom: 60px;
    max-width: 600px;
}

.premium-footer-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.premium-footer-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* ========================================
   NEWSLETTER FORM
   ======================================== */
.premium-newsletter-form {
    margin-bottom: 20px;
}

/* WP Forms Integration */
.premium-newsletter-form .wpforms-container,
.premium-newsletter-form form,
.premium-newsletter-fallback {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin: 0;
}

.premium-newsletter-form .wpforms-container .wpforms-form {
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
}

.premium-newsletter-form .wpforms-field-container {
    display: flex;
    width: 100%;
    gap: 0;
    margin: 0;
}

.premium-newsletter-form .wpforms-field {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
}

/* CRITICAL: Fix WP Forms submit container */
.premium-newsletter-form .wpforms-submit-container {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}

.premium-newsletter-form .wpforms-field-submit {
    margin: 0 !important;
    padding: 0 !important;
}

/* Email Input Styling */
.premium-newsletter-form input[type="email"],
.premium-newsletter-form input[type="text"],
.premium-newsletter-fallback input[type="email"] {
    flex: 1;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-right: none;
    border-radius: 0;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    transition: all 0.3s ease;
    outline: none;
    margin: 0;
    height: 52px;
}

.premium-newsletter-form input[type="email"]::placeholder,
.premium-newsletter-form input[type="text"]::placeholder,
.premium-newsletter-fallback input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.premium-newsletter-form input[type="email"]:focus,
.premium-newsletter-form input[type="text"]:focus,
.premium-newsletter-fallback input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Submit Button Styling */
.premium-newsletter-btn,
.premium-newsletter-form button[type="submit"],
.premium-newsletter-form .wpforms-submit,
.premium-newsletter-fallback button[type="submit"] {
    padding: 0 32px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    min-width: 120px !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    line-height: 52px !important;
    box-sizing: border-box !important;
}

/* Hide "Submit" text, show only icon */
.premium-newsletter-form button[type="submit"]:not(.premium-newsletter-btn),
.premium-newsletter-form .wpforms-submit {
    font-size: 0;
    position: relative;
}

.premium-newsletter-form button[type="submit"]:not(.premium-newsletter-btn)::after,
.premium-newsletter-form .wpforms-submit::after {
    content: '→';
    font-size: 20px;
    font-weight: 300;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.premium-newsletter-btn i,
.premium-newsletter-form button[type="submit"] i {
    font-size: 18px;
}

.premium-newsletter-btn:hover,
.premium-newsletter-form button[type="submit"]:hover,
.premium-newsletter-form .wpforms-submit:hover,
.premium-newsletter-fallback button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Hide WP Forms Labels in Footer */
.premium-newsletter-form .wpforms-field-label {
    display: none;
}

.premium-newsletter-form .wpforms-field-label-inline {
    display: none;
}

/* Remove WP Forms default styling */
.premium-newsletter-form .wpforms-container {
    background: transparent;
    padding: 0;
    border: none;
}

.premium-newsletter-form .wpforms-form {
    background: transparent;
    padding: 0;
}

/* ========================================
   DISCLAIMER TEXT
   ======================================== */
.premium-footer-disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.premium-footer-disclaimer a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.3s ease;
}

.premium-footer-disclaimer a:hover {
    opacity: 0.8;
}

/* ========================================
   FOOTER LINKS WRAPPER
   ======================================== */
.premium-footer-links-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.premium-footer-section {
    /* Each column */
}

.premium-footer-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: 0.5px;
}

.premium-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-footer-list li {
    margin-bottom: 12px;
}

.premium-footer-list li:last-child {
    margin-bottom: 0;
}

.premium-footer-list a {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.premium-footer-list a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.premium-footer-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.premium-footer-list a:hover::after {
    width: 100%;
}

/* ========================================
   BOTTOM SECTION - CREAM BACKGROUND
   ======================================== */
.premium-footer-bottom {
    background: #f5f0e8;
    padding: 60px 0 40px 0;
    border-top: 1px solid #e8dcc4;
}

.premium-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

/* ========================================
   LOCALE SELECTOR (LEFT)
   ======================================== */
.premium-footer-locale {
    flex: 1;
}

.premium-footer-locale-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b5d52;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.premium-footer-locale-link i {
    font-size: 16px;
}

.premium-footer-locale-link:hover {
    color: #b8936d;
    background: rgba(184, 147, 109, 0.05);
    border-color: rgba(184, 147, 109, 0.2);
}

/* ========================================
   LOGO (CENTER)
   ======================================== */
.premium-footer-logo {
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-footer-logo .custom-logo-link,
.premium-footer-logo a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.premium-footer-logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

.premium-footer-logo a:hover {
    opacity: 0.8;
}

.premium-footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: #b8936d;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.premium-footer-brand:hover {
    opacity: 0.8;
}

/* ========================================
   SOCIAL ICONS (RIGHT)
   ======================================== */
.premium-footer-social {
    flex: 1;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.premium-footer-social a {
    font-size: 16px;
    color: #b8936d;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(184, 147, 109, 0.3);
    border-radius: 50%;
    background: transparent;
}

.premium-footer-social a:hover {
    background: #b8936d;
    color: #f5f0e8;
    border-color: #b8936d;
    box-shadow: 0 8px 16px rgba(184, 147, 109, 0.2);
}

/* ========================================
   COPYRIGHT
   ======================================== */
.premium-footer-copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e8dcc4;
}

.premium-footer-copyright p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #6b5d52;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .premium-footer-links-wrapper {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .premium-footer-links-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .premium-footer-newsletter {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .premium-footer-top {
        padding: 60px 0 50px 0;
    }
    
    .premium-footer-container {
        padding: 0 24px;
    }
    
    .premium-footer-newsletter {
        margin-bottom: 50px;
    }
    
    .premium-footer-section-title {
        font-size: 32px;
    }
    
    .premium-footer-subtitle {
        font-size: 15px;
    }
    
    .premium-footer-links-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .premium-footer-bottom {
        padding: 50px 0 30px 0;
    }
    
    .premium-footer-bottom-content {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 40px;
    }
    
    .premium-footer-locale,
    .premium-footer-logo,
    .premium-footer-social {
        flex: none;
        width: 100%;
    }
    
    .premium-footer-locale {
        display: flex;
        justify-content: center;
    }
    
    .premium-footer-social {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .premium-footer-top {
        padding: 50px 0 40px 0;
    }
    
    .premium-footer-container {
        padding: 0 24px;
    }
    
    .premium-footer-newsletter {
        margin-bottom: 50px;
    }
    
    .premium-footer-section-title {
        font-size: 30px;
        margin-bottom: 18px;
    }
    
    .premium-footer-subtitle {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 28px;
    }
    
    .premium-footer-links-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .premium-footer-heading {
        font-size: 19px;
        margin-bottom: 18px;
    }
    
    .premium-footer-list li {
        margin-bottom: 14px;
    }
    
    .premium-footer-list a {
        font-size: 15px;
    }
    
    /* Full width newsletter form on mobile */
    .premium-newsletter-form .wpforms-field-container,
    .premium-newsletter-form form,
    .premium-newsletter-fallback {
        flex-direction: column;
        gap: 0;
    }
    
    .premium-newsletter-form input[type="email"],
    .premium-newsletter-form input[type="text"],
    .premium-newsletter-fallback input[type="email"] {
        border-right: 1px solid rgba(255, 255, 255, 0.4);
        border-bottom: none;
        height: 50px;
        padding: 14px 20px;
    }
    
    .premium-newsletter-btn,
    .premium-newsletter-form button[type="submit"],
    .premium-newsletter-form .wpforms-submit,
    .premium-newsletter-fallback button[type="submit"] {
        width: 100% !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 50px !important;
    }
    
    .premium-footer-disclaimer {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .premium-footer-bottom {
        padding: 50px 0 30px 0;
    }
    
    .premium-footer-logo img {
        max-height: 60px;
    }
    
    .premium-footer-brand {
        font-size: 24px;
    }
    
    .premium-footer-social {
        gap: 14px;
    }
    
    .premium-footer-social a {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .premium-footer-copyright {
        padding-top: 35px;
    }
    
    .premium-footer-copyright p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .premium-footer-section-title {
        font-size: 24px;
    }
    
    .premium-newsletter-form input[type="email"],
    .premium-newsletter-form input[type="text"],
    .premium-newsletter-fallback input[type="email"] {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .premium-newsletter-btn,
    .premium-newsletter-form button[type="submit"],
    .premium-newsletter-form .wpforms-submit,
    .premium-newsletter-fallback button[type="submit"] {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ========================================
   ACCESSIBILITY & PRINT
   ======================================== */

/* Focus states for accessibility */
.premium-footer-list a:focus,
.premium-footer-social a:focus,
.premium-footer-locale-link:focus,
.premium-footer-brand:focus {
    outline: 2px solid #b8936d;
    outline-offset: 3px;
}

.premium-newsletter-form input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 0;
}

/* Print styles */
@media print {
    .premium-footer-newsletter,
    .premium-footer-social {
        display: none;
    }
    
    .premium-footer-top {
        background: #fff;
        color: #000;
    }
    
    .premium-footer-list a {
        color: #000;
    }
}