/* Footer Styles */
.footer {
    background: #2F3B2F;
    padding: 4rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .footer {
        padding: 5rem 0 2.5rem;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(47, 59, 47, 0.95) 0%, 
        rgba(45, 55, 45, 0.98) 50%, 
        rgba(47, 59, 47, 0.95) 100%);
    pointer-events: none;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 3rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Footer Accordion for Mobile */
.footer-accordion-toggle {
    display: none;
}

.footer-accordion-header {
    display: none;
}

@media (max-width: 768px) {
    .footer-column {
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .footer-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 1rem 0;
        user-select: none;
    }
    
    .footer-accordion-header::after {
        content: '+';
        font-size: 1.5rem;
        color: #D4AF37;
        transition: transform 0.3s ease;
        font-weight: 300;
    }
    
    .footer-accordion-toggle:checked + .footer-accordion-header::after {
        transform: rotate(45deg);
    }
    
    .footer-column-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    
    .footer-accordion-toggle:checked ~ .footer-column-content {
        max-height: 1000px;
        padding: 0.5rem 0 1rem 0;
    }
    
    .footer-brand .footer-accordion-header {
        display: none;
    }
    
    .footer-brand .footer-column-content {
        max-height: none;
        padding: 0;
    }
    
    /* Always show contact and connect sections on mobile */
    .footer-contact-column .footer-column-content,
    .footer-connect .footer-column-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 0.5rem 0 1rem 0 !important;
    }
    
    .footer-contact-column .footer-accordion-header,
    .footer-connect .footer-accordion-header {
        display: none !important;
    }
}

.footer-brand-name {
    font-family: 'Lobster', cursive;
    font-size: 2.25rem;
    color: #D4AF37;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

@media (min-width: 1024px) {
    .footer-brand-name {
        font-size: 3rem;
    }
}

.footer-slogan {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.125rem;
    color: rgba(245, 245, 220, 0.9);
    margin: 0 0 1.5rem 0;
    line-height: 1.625;
    max-width: 28rem;
}

@media (min-width: 1024px) {
    .footer-slogan {
        margin-bottom: 1.5rem;
    }
}

.footer-quote-box {
    background: rgba(61, 81, 57, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-quote {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    color: #F5F5DC;
    margin: 0;
    line-height: 1.625;
    font-style: italic;
}

.footer-certification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.875rem;
    color: #D4AF37;
    letter-spacing: 0.05em;
}

.footer-leaf-svg {
    width: 20px;
    height: 20px;
    color: #D4AF37;
    flex-shrink: 0;
}

.footer-column-title {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #D4AF37;
    margin: 0 0 1rem 0;
}

@media (min-width: 769px) {
    .footer-accordion-toggle,
    .footer-accordion-header {
        display: none !important;
    }
    
    .footer-column-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    
    .footer-column > h3.footer-column-title {
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-column > h3.footer-column-title:not(.footer-accordion-header h3) {
        display: none;
    }
    
    .footer-column-title {
        margin: 0;
    }
    
    .footer-accordion-header .footer-column-title {
        margin: 0;
    }
}

.footer-contact-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-contact-title svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    color: rgba(245, 245, 220, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #D4AF37;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(74, 124, 62, 0.05) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
    font-family: 'Noto Sans', sans-serif;
}

.footer-contact-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(74, 124, 62, 0.08) 100%);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.footer-contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(74, 124, 62, 0.15) 100%);
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.footer-contact-icon-svg {
    width: 20px;
    height: 20px;
    color: #D4AF37;
}

.footer-contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-contact-main {
    font-size: 1rem;
    color: rgba(245, 245, 220, 0.95);
    font-weight: 500;
}

.footer-contact-sub {
    font-size: 0.875rem;
    color: rgba(245, 245, 220, 0.7);
    margin-top: 0.25rem;
}

.footer-contact-link {
    color: rgba(245, 245, 220, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.footer-contact-link:hover {
    color: #D4AF37;
    transform: translateX(2px);
}

.footer-connect {
    align-items: flex-start;
}

.footer-connect-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.footer-connect-title svg {
    width: 20px;
    height: 20px;
    color: #D4AF37;
}

.footer-connect-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0;
}

.footer-zalo-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    width: 100%;
    max-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.footer-zalo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.footer-zalo-card:hover::before {
    left: 100%;
}

.footer-zalo-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.35);
}

.footer-zalo-card:active {
    transform: translateY(-2px);
}

.footer-zalo-content {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-zalo-qr-image {
    width: 100%;
    max-width: 130px;
    height: auto;
    border-radius: 0.625rem;
    margin-bottom: 0.625rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-zalo-card:hover .footer-zalo-qr-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-zalo-icon-svg {
    width: 32px;
    height: 32px;
    color: #0068FF;
    margin: 0 auto 0.5rem;
    display: block;
}

.footer-zalo-text {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.8125rem;
    color: #4A7C3E;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-social-icons {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    margin-top: 0.25rem;
}

.footer-social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.footer-social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.footer-social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.footer-social-icon:active {
    transform: scale(0.95);
}

.footer-social-facebook {
    background: #1877F2;
    color: #FFFFFF;
}

.footer-social-facebook:hover {
    background: rgba(24, 119, 242, 0.8);
}

.footer-social-tiktok {
    background: #000000;
    color: #FFFFFF;
}

.footer-social-tiktok:hover {
    background: rgba(0, 0, 0, 0.8);
}

.footer-social-tiktok-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-social-zalo {
    background: #0068FF;
    color: #FFFFFF;
}

.footer-social-zalo:hover {
    background: rgba(0, 104, 255, 0.8);
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-social-icon:hover svg {
    transform: scale(1.15);
    position: relative;
    z-index: 1;
}

/* Mobile improvements for footer connect section */
@media (max-width: 768px) {
    .footer-contact-column,
    .footer-connect {
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-contact-column .footer-column-content,
    .footer-connect .footer-column-content {
        padding: 0.75rem 0 0 0 !important;
    }
    
    .footer-contact-item {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .footer-contact-icon-wrapper {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
    }
    
    .footer-contact-icon-svg {
        width: 18px;
        height: 18px;
    }
    
    .footer-contact-main {
        font-size: 0.95rem;
    }
    
    .footer-contact-sub {
        font-size: 0.8rem;
    }
    
    .footer-connect-wrapper {
        gap: 0.875rem;
    }
    
    .footer-connect .footer-column-content {
        padding: 0.5rem 0 0 0 !important;
    }
    
    .footer-zalo-card {
        max-width: 130px;
        padding: 1rem;
    }
    
    .footer-zalo-qr-image {
        max-width: 110px;
        margin-bottom: 0.5rem;
    }
    
    .footer-zalo-text {
        font-size: 0.75rem;
    }
    
    .footer-social-icons {
        gap: 0.875rem;
        justify-content: center;
        margin-top: 0;
    }
    
    .footer-social-icon {
        width: 3.25rem;
        height: 3.25rem;
        min-width: 3.25rem;
        min-height: 3.25rem;
    }
    
    .footer-social-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .footer-social-tiktok-svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-contact-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .footer-contact-icon-wrapper {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
    }
    
    .footer-contact-icon-svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-contact-main {
        font-size: 0.9rem;
    }
    
    .footer-contact-sub {
        font-size: 0.75rem;
    }
    
    .footer-connect-wrapper {
        gap: 0.75rem;
    }
    
    .footer-zalo-card {
        max-width: 120px;
        padding: 0.875rem;
    }
    
    .footer-zalo-qr-image {
        max-width: 100px;
        margin-bottom: 0.5rem;
    }
    
    .footer-zalo-text {
        font-size: 0.7rem;
    }
    
    .footer-social-icons {
        gap: 0.75rem;
    }
    
    .footer-social-icon {
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        min-height: 3rem;
    }
    
    .footer-social-icon svg {
        width: 1.375rem;
        height: 1.375rem;
    }
}

.footer-divider {
    margin: 3rem 0 2rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-copyright {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    color: rgba(245, 245, 220, 0.7);
    margin: 0;
}

.footer-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(245, 245, 220, 0.6);
}

.footer-tagline-leaf-svg {
    width: 16px;
    height: 16px;
    color: #D4AF37;
}

.footer-tagline-text {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.75rem;
    color: #D4AF37;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 1.5rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand-name {
        font-size: 2rem;
    }
}

@media (max-width: 390px) {
    .footer {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer-brand-name {
        font-size: 1.75rem;
    }
    
    .footer-slogan {
        font-size: 0.95rem;
    }
    
    .footer-column-title {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-contact li {
        font-size: 0.9rem;
    }
    
    .footer-zalo-card {
        min-width: 8rem;
        max-width: 9rem;
        padding: 1rem;
    }
    
    .footer-zalo-qr-image {
        max-width: 100px;
    }
    
    .footer-social-icon {
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        min-height: 3rem;
    }
}

@media (max-width: 350px) {
    .footer {
        padding: 2.5rem 0.75rem 1.25rem;
    }
    
    .footer-brand-name {
        font-size: 1.5rem;
    }
    
    .footer-slogan {
        font-size: 0.875rem;
    }
    
    .footer-column-title {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact li {
        font-size: 0.85rem;
    }
    
    .footer-zalo-card {
        min-width: 7rem;
        max-width: 8rem;
        padding: 0.875rem;
    }
    
    .footer-zalo-qr-image {
        max-width: 90px;
    }
    
    .footer-social-icon {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
    
    .footer-social-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 300px) {
    .footer {
        padding: 2rem 0.5rem 1rem;
    }
    
    .footer-brand-name {
        font-size: 1.35rem;
    }
    
    .footer-slogan {
        font-size: 0.8rem;
    }
    
    .footer-column-title {
        font-size: 0.95rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-contact li {
        font-size: 0.8rem;
    }
    
    .footer-zalo-card {
        min-width: 6.5rem;
        max-width: 7rem;
        padding: 0.75rem;
    }
    
    .footer-zalo-qr-image {
        max-width: 80px;
    }
    
    .footer-social-icon {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
    
    .footer-social-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

@media (max-width: 290px) {
    .footer {
        padding: 1.75rem 0.375rem 0.875rem;
    }
    
    .footer-brand-name {
        font-size: 1.25rem;
    }
    
    .footer-slogan {
        font-size: 0.75rem;
    }
    
    .footer-column-title {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-contact li {
        font-size: 0.75rem;
    }
    
    .footer-zalo-card {
        min-width: 6rem;
        max-width: 6.5rem;
        padding: 0.625rem;
    }
    
    .footer-zalo-qr-image {
        max-width: 70px;
    }
    
    .footer-social-icon {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
    }
    
    .footer-social-icon svg {
        width: 1rem;
        height: 1rem;
    }
}