/* ==========================================================================
   Premium Custom Footer Styles for RassoiReet
   ========================================================================== */

/* Main Footer Container */
.custom-site-footer {
    background-color: var(--color-primary-green, #045c2f) !important;
    border-top: 4px solid var(--color-secondary-yellow, #f7b731);
    font-family: 'Inter', sans-serif, inherit; /* Modern typography fallback */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* 
   FORCE TEXT COLORS 
   (Astra global CSS overrides `<p>` and `<a>`, so we must use !important to guarantee readability against dark green) 
*/
.custom-site-footer p,
.custom-site-footer span,
.custom-site-footer div,
.custom-site-footer li,
.custom-site-footer address {
    color: rgba(255, 255, 255, 0.85) !important; 
    line-height: 1.7 !important;
    font-size: 0.95rem;
}

/* Ensure headings are pure white and crisp */
.custom-site-footer h2,
.custom-site-footer h3,
.custom-site-footer h4,
.custom-site-footer strong {
    color: #ffffff !important;
    margin-top: 0;
    font-weight: 700;
}

.footer-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.footer-newsletter {
    background: rgba(0, 0, 0, 0.15); /* Subtle glassmorphism base */
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .footer-newsletter .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.newsletter-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.newsletter-subtitle {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.75) !important;
}

.newsletter-form-wrapper {
    width: 100%;
    max-width: 480px;
}

.newsletter-form {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--color-secondary-yellow, #f7b731);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    background: transparent !important;
    outline: none;
    font-size: 1rem;
    color: #ffffff !important;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.btn-subscribe {
    background-color: var(--color-secondary-yellow, #f7b731);
    color: var(--color-text-dark, #1a1a1a) !important;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-subscribe:hover {
    background-color: #ffffff;
    color: var(--color-primary-green, #045c2f) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Main Footer Grid
   ========================================================================== */
.footer-main {
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* Widget General Styles */
.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-secondary-yellow, #f7b731);
    border-radius: 2px;
}

/* Links */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 0.3rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.footer-widget a:hover {
    color: var(--color-secondary-yellow, #f7b731) !important;
    transform: translateX(6px);
}

/* Brand Story Column */
.footer-brand-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Ensure logo is white if it's dark by default */
}

.brand-description {
    line-height: 1.8 !important;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    padding-right: 1rem;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0 !important; /* Override standard link padding */
}

.social-links a svg {
    stroke: #ffffff;
    width: 20px;
    height: 20px;
    transition: all 0.4s ease;
}

.social-links a:hover {
    background: var(--color-secondary-yellow, #f7b731) !important;
    border-color: var(--color-secondary-yellow, #f7b731);
    transform: translateY(-5px) scale(1.05);
}

.social-links a:hover svg {
    stroke: var(--color-primary-green, #045c2f) !important;
}

/* Contact Details */
.contact-details p {
    margin-bottom: 0.8rem;
    line-height: 1.4 !important;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details strong {
    color: #ffffff !important;
    display: inline;
    font-size: 1rem;
}

.contact-details a {
    color: var(--color-secondary-yellow, #f7b731) !important;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details a:hover {
    color: #ffffff !important;
    transform: none; /* Keep phone number static on hover */
}

/* ==========================================================================
   Bottom Copyright Bar
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.1); /* Slightly darker bottom */
}

.copyright-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .copyright-bar {
        flex-direction: row;
        justify-content: space-between;
    }
}

.agency-credit a {
    color: var(--color-secondary-yellow, #f7b731) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
    padding: 0 !important;
}

.agency-credit a:hover {
    color: #ffffff !important;
    transform: none;
}

/* Hide default Astra footer wrapper if needed */
.ast-footer-wrapper, .site-footer:not(.custom-site-footer) {
    display: none !important;
}
.custom-site-footer {
    display: flex !important;
}
