/* ========================================
   FOOTER.CSS
   Styles for page footer component
======================================== */

/* Main footer container */
.footer {
    background: var(--footer-bg, linear-gradient(135deg, #2c1810 0%, #4a2c17 100%));
    padding: var(--spacing-lg, 30px) 0 var(--spacing-md, 15px) 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Centered content wrapper */
.footer-content {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------
   FOOTER MAIN SECTION
---------------------------------------- */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl, 35px);
    margin-bottom: var(--spacing-lg, 20px);
    padding-bottom: var(--spacing-lg, 20px);
    border-bottom: 1px solid rgba(245, 245, 220, 0.2);
}

/* ----------------------------------------
   FOOTER LOGO SECTION
---------------------------------------- */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.footer-logo-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    /* Change object-fit to preserve quality */
    object-fit: contain; /* Instead of cover */
    object-position: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
    border: 2px solid rgba(245, 245, 220, 0.3);
    
    /* Image quality improvements */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: auto;
    
    /* For modern browsers */
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    
    /* Anti-aliasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Ensure background in case of transparency */
    background-color: rgba(245, 245, 220, 0.1);
}

.footer-logo-link:hover .footer-logo-image {
    transform: scale(1.05);
    border-color: var(--footer-text-hover, #D2691E);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--footer-text, #f5f5dc);
    transition: color 0.3s ease;
}

.footer-logo-link:hover .footer-logo-text {
    color: var(--footer-text-hover, #D2691E);
}

.footer-description {
    color: var(--footer-text, #f5f5dc);
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 400px;
}

/* ----------------------------------------
   FOOTER NAVIGATION
---------------------------------------- */
.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav h3 {
    color: var(--footer-text, #f5f5dc);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.footer-nav h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--footer-text-hover, #D2691E);
    border-radius: 1px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-list a {
    color: var(--footer-text, #f5f5dc);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    padding: 2px 0;
}

.footer-nav-list a:hover {
    color: var(--footer-text-hover, #D2691E);
    opacity: 1;
    text-decoration: none;
    transform: translateX(5px);
}

/* ----------------------------------------
   FOOTER CONTACT INFO
---------------------------------------- */
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact h3 {
    color: var(--footer-text, #f5f5dc);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--footer-text-hover, #D2691E);
    border-radius: 1px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-text, #f5f5dc);
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-hover, #D2691E);
    font-size: 16px;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--footer-text-hover, #D2691E);
    text-decoration: none;
}

/* ----------------------------------------
   FOOTER BOTTOM
---------------------------------------- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md, 15px);
    color: var(--footer-text, #f5f5dc);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--footer-text, #f5f5dc);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--footer-text-hover, #D2691E);
    opacity: 1;
    text-decoration: none;
}

/* ----------------------------------------
   RESPONSIVE DESIGN
---------------------------------------- */

/* Large tablets and medium screens */
@media (max-width: 1024px) {
    .footer {
        padding: calc(var(--spacing-lg, 30px) * 0.8) 0 var(--spacing-md, 15px) 0;
    }
    
    .footer-content {
        padding: 0 30px;
    }
    
    .footer-main {
        gap: calc(var(--spacing-xl, 35px) * 0.8);
        margin-bottom: calc(var(--spacing-lg, 20px) * 0.8);
        padding-bottom: calc(var(--spacing-lg, 20px) * 0.8);
    }
    
    .footer-logo-image {
        width: 45px;
        height: 45px;
    }
    
    .footer-logo-text {
        font-size: 1.4rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-nav h3,
    .footer-contact h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .footer-nav-list a,
    .footer-contact-item {
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .footer {
        padding: calc(var(--spacing-lg, 30px) * 0.6) 0 var(--spacing-md, 15px) 0;
    }
    
    .footer-content {
        padding: 0 25px;
    }
    
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
        gap: calc(var(--spacing-xl, 35px) * 0.6);
        margin-bottom: calc(var(--spacing-lg, 20px) * 0.6);
        padding-bottom: calc(var(--spacing-lg, 20px) * 0.6);
        text-align: left;
    }
    
    .footer-logo-section {
        align-items: flex-start;
        grid-column: 1;
    }
    
    .footer-nav {
        align-items: flex-start;
        grid-column: 2;
    }
    
    .footer-contact {
        align-items: flex-start;
        grid-column: 3;
    }
    
    .footer-logo-image {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-text {
        font-size: 1.3rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
        text-align: left;
    }
    
    .footer-nav h3,
    .footer-contact h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .footer-nav h3::after,
    .footer-contact h3::after {
        left: 0;
        transform: none;
    }
    
    .footer-nav-list a {
        font-size: 0.85rem;
    }
    
    .footer-contact-item {
        font-size: 0.85rem;
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links {
        gap: 15px;
        justify-content: center;
    }
}

/* Small tablets and large phones */
@media (max-width: 600px) {
    .footer {
        padding: calc(var(--spacing-lg, 30px) * 0.5) 0 var(--spacing-md, 15px) 0;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-xl, 35px) * 0.5);
        margin-bottom: calc(var(--spacing-lg, 20px) * 0.5);
        padding-bottom: calc(var(--spacing-lg, 20px) * 0.5);
        text-align: center;
    }
    
    .footer-logo-section {
        align-items: center;
        grid-column: 1;
    }
    
    .footer-nav,
    .footer-contact {
        align-items: center;
        grid-column: 1;
    }
    
    .footer-nav h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-logo-link {
        gap: 10px;
    }
    
    .footer-logo-image {
        width: 36px;
        height: 36px;
    }
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .footer-nav h3,
    .footer-contact h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    
    .footer-nav-list a,
    .footer-contact-item {
        font-size: 0.8rem;
    }
    
    .footer-contact-icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .footer {
        padding: calc(var(--spacing-lg, 30px) * 0.4) 0 var(--spacing-md, 15px) 0;
    }
    
    .footer-content {
        padding: 0 16px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-xl, 35px) * 0.4);
        margin-bottom: calc(var(--spacing-lg, 20px) * 0.4);
        padding-bottom: calc(var(--spacing-lg, 20px) * 0.4);
        text-align: center;
    }
    
    .footer-logo-section {
        align-items: center;
    }
    
    .footer-nav,
    .footer-contact {
        align-items: center;
    }
    
    .footer-nav h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-logo-link {
        gap: 8px;
    }
    
    .footer-logo-image {
        width: 32px;
        height: 32px;
    }
    
    .footer-logo-text {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.75rem;
        line-height: 1.4;
        text-align: center;
    }
    
    .footer-nav h3,
    .footer-contact h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .footer-nav-list a,
    .footer-contact-item {
        font-size: 0.75rem;
    }
    
    .footer-contact-icon {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        gap: 8px;
    }
    
    .footer-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.7rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .footer {
        padding: calc(var(--spacing-lg, 30px) * 0.3) 0 var(--spacing-md, 15px) 0;
    }
    
    .footer-content {
        padding: 0 12px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-xl, 35px) * 0.3);
        margin-bottom: calc(var(--spacing-lg, 20px) * 0.3);
        padding-bottom: calc(var(--spacing-lg, 20px) * 0.3);
        text-align: center;
    }
    
    .footer-logo-section {
        align-items: center;
    }
    
    .footer-nav,
    .footer-contact {
        align-items: center;
    }
    
    .footer-nav h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-logo-link {
        gap: 6px;
    }
    
    .footer-logo-image {
        width: 28px;
        height: 28px;
    }
    
    .footer-logo-text {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .footer-nav h3,
    .footer-contact h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .footer-nav-list a,
    .footer-contact-item {
        font-size: 0.7rem;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .footer-links a {
        font-size: 0.65rem;
    }
}