/**
 * Restaurant Manager - Footer Styles
 * Matches the design with dark background and golden/orange headings
 */

/* Main Footer Container */
.restaurant-footer {
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
}

.restaurant-footer-main {
    padding: 60px 0 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 35px;
    align-items: start;
}

/* Logo and Contact Section */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-logo-image {
    max-width: 200px;
    height: auto;
    filter: brightness(1.1);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    color: #d4af37;
    font-weight: 600;
    font-size: 14px;
}

.phone-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #d4af37;
}

.phone-separator {
    color: #666666;
}

.footer-address {
    font-style: normal;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

/* Social Media Icons */
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8b4513;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    background: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.social-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-column-title,
h2.footer-column-title {
    color: #d4af37;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b4513;
}

/* Main Menu Column */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-list li {
    margin: 0;
}

.footer-menu-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Arrow icons now replaced with FontAwesome icons in HTML */

.footer-menu-list a:hover {
    color: #d4af37;
}

/* Business Hours Column */
.footer-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444;
    font-size: 15px;
    list-style: none;
}

.footer-hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    color: #ffffff;
    font-weight: 600;
    min-width: 80px;
}

.hours-time {
    color: #cccccc;
    text-align: right;
    flex: 1;
}

.footer-hours-item.closed .hours-time {
    color: #ff6b6b;
    font-weight: 600;
}

/* Promotions Column */
.footer-promotions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-promotion-item {
    background: #3a2b1a;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
}

.footer-promotion-item:hover {
    background: #4a3b2a;
    transform: translateX(5px);
}

.promotion-link {
    text-decoration: none;
    color: inherit;
}

.promotion-title {
    color: #d4af37;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-desc {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.footer-promotion-item.no-promotions {
    background: #333333;
    text-align: center;
    opacity: 0.8;
    padding: 20px 15px;
}

.footer-promotion-item.no-promotions .promotion-desc {
    color: #FFFFFF;
    font-style: italic;
    margin: 0;
}

/* Footer Bottom/Copyright */
.restaurant-footer-bottom {
    background: #111111;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.restaurant-footer-bottom .footer-container {
    display: block;
    text-align: center;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    flex: 1;
}

.designed-by {
    flex: 1;
    text-align: right;
}

/* When designer section is not present, center the copyright text */
.footer-copyright .copyright-text:only-child {
    text-align: center;
}

.designed-by a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.designed-by a:hover {
    color: #ffffff;
}

/* Accessibility Statement Link */
.accessibility-separator {
    color: #666666;
    margin: 0 8px;
    font-weight: normal;
}

.accessibility-link {
    color: #d4af37;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: inherit;
}

.accessibility-link:hover,
.accessibility-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.accessibility-link:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
    
    .footer-columns {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .restaurant-footer-main {
        padding: 40px 0 30px 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }
    
    .footer-logo-section {
        text-align: center;
        align-items: center;
    }
    
    .footer-contact-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-columns  {
        margin-top: 0;
    }
    
    .footer-hours-item {
        justify-content: center;
        gap: 20px;
    }
    
    .hours-time {
        text-align: center;
    }
    
    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .designed-by {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .restaurant-footer-main {
        padding: 30px 0 20px 0;
    }
    
    .footer-container {
        padding: 0 10px;
        gap: 30px;
    }
    
    .footer-logo-image {
        max-width: 150px;
    }
    
    .footer-columns {
        gap: 25px;
    }
    
    .footer-columns {
        margin-top: 0;
    }
    
    .footer-column-title,
    h2.footer-column-title {
        font-size: 16px;
    }
    
    .footer-menu-list a,
    .hours-day,
    .hours-time {
        font-size: 14px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .footer-promotion-item {
        padding: 12px;
    }
    
    .promotion-title {
        font-size: 14px;
    }
    
    .promotion-desc {
        font-size: 13px;
    }
}

/* Mobile and Small Screen Responsive Styles */
@media screen and (max-width: 768px) {
    /* Main container adjustments for mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .restaurant-footer-main {
        padding: 40px 0 30px 0;
    }
    
    /* Logo and Contact Section - Compact for mobile */
    .footer-logo-section {
        gap: 15px;
        text-align: center;
    }
    
    .footer-logo-image {
        max-width: 150px;
        margin: 0 auto;
    }
    
    /* .footer-contact-info {
        gap: 8px;
        background: rgba(255, 255, 255, 0.03);
        padding: 10px 8px;
        border-radius: 6px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    } */
    
    .footer-contact-item {
        gap: 0;
        text-align: left;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 8px;
        flex-direction: row;
        align-items: baseline;
    }
    
    .contact-label {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 0;
        margin-right: 8px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
    
    .contact-label i {
        color: #d4af37;
        margin-right: 4px;
        font-size: 12px;
    }
    
    .phone-numbers {
        font-size: 14px;
        flex-direction: row;
        gap: 6px;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 0;
        display: inline-flex;
    }
    
    .phone-link {
        color: #ffffff !important;
        text-decoration: none;
        font-weight: 500;
        padding: 4px 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        border: 1px solid rgba(212, 175, 55, 0.3);
        transition: all 0.3s ease;
        font-size: 14px;
        letter-spacing: 0.3px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .phone-link:hover,
    .phone-link:focus,
    .phone-link:active {
        background: rgba(212, 175, 55, 0.2);
        border-color: #d4af37;
        color: #ffffff !important;
        text-decoration: none;
    }
    

    
    .phone-separator {
        color: #666666;
        font-weight: bold;
        margin: 0 2px;
    }
    
    /* .footer-address {
        font-size: 14px;
        line-height: 1.4;
        font-style: normal;
        color: #ffffff;
        margin-top: 0;
        padding: 4px 6px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        border-left: 2px solid #d4af37;
        display: inline-block;
        flex: 1;
        min-width: 200px;
    } */
    
    /* Footer Columns - Stack vertically on mobile */
    .footer-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 0px;
    }
    
    .footer-columns .footer-column:first-child {
        margin-top: 0;
    }
    
    /* Add visual separation between sections */
    .footer-column {
        background: rgba(255, 255, 255, 0.02);
        padding: 20px 15px;
        border-radius: 8px;
        border: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .footer-column-title,
    h2.footer-column-title {
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    }
    
    /* Main Menu - 3 column grid layout for mobile */
    .footer-menu-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
        margin-top: 15px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-menu-list li {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
    }
    
    /* Vertical separators between columns (not after last column) */
    .footer-menu-list li:not(:nth-child(3n))::after {
        content: '';
        position: absolute;
        right: -4px;
        top: 50%;
        transform: translateY(-50%);
        height: 70%;
        width: 1px;
        background: rgba(212, 175, 55, 0.3);
    }
    
    /* Horizontal separators between rows (not after last row) */
    .footer-menu-list li:not(:nth-last-child(-n+3))::before {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 10%;
        right: 10%;
        height: 1px;
        background: rgba(212, 175, 55, 0.3);
    }
    
    .footer-menu-list a {
        font-size: 14px;
        padding: 8px 4px;
        border-radius: 4px;
        transition: all 0.3s ease;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }
    
    .footer-menu-list a:hover {
        background: rgba(212, 175, 55, 0.1);
        transform: translateY(-1px);
    }
    
    .footer-menu-list a i {
        font-size: 16px;
        margin-bottom: 2px;
        color: #d4af37;
    }
    
    /* Business Hours - More compact */
    .footer-hours-list {
        gap: 6px;
    }
    
    .footer-hours-item {
        padding: 6px 0;
        font-size: 14px;
    }
    
    .hours-day {
        min-width: 70px;
        font-size: 13px;
    }
    
    .hours-time {
        font-size: 13px;
    }
    
    /* Promotions - Smaller padding */
    .footer-promotion-item {
        padding: 12px;
    }
    
    .promotion-title {
        font-size: 14px;
    }
    
    .promotion-desc {
        font-size: 13px;
    }
    
    /* Footer bottom - Stack copyright elements */
    .footer-copyright {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .copyright-text {
        font-size: 13px;
    }
    
    .accessibility-separator {
        margin: 0 6px;
        font-size: 13px;
    }
    
    .accessibility-link {
        font-size: 13px;
        font-weight: 500;
    }
    
    .designed-by {
        font-size: 12px;
    }
    
    /* Social icons - Smaller and centered */
    .footer-social-icons {
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.3);
        transition: all 0.3s ease;
    }
    
    .social-icon:hover {
        background: rgba(212, 175, 55, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .social-icon-bg svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra small screens (phones in portrait) */
@media screen and (max-width: 480px) {
    .footer-container {
        padding: 0 10px;
    }
    
    .footer-logo-image {
        max-width: 120px;
    }
    
    .footer-menu-list {
        padding: 12px;
        gap: 10px 6px;
    }
    
    .footer-menu-list a {
        font-size: 13px;
        padding: 6px 2px;
    }
    
    .footer-menu-list a i {
        font-size: 14px;
    }
    
    .phone-numbers {
        font-size: 13px;
        gap: 4px;
        display: inline-flex;
        flex-wrap: wrap;
    }
    
    .phone-link {
        font-size: 13px;
        padding: 2px 5px;
        min-height: 26px;
    }
    
    .footer-address {
        font-size: 13px;
        padding: 3px 6px;
        min-width: 180px;
    }
    
    .contact-label {
        font-size: 11px;
        margin-bottom: 0;
        margin-right: 6px;
    }
    
    .contact-label i {
        font-size: 11px;
        margin-right: 3px;
    }
    
    .footer-contact-item {
        margin-bottom: 6px;
    }
    
    .footer-contact-info {
        padding: 2px 3px;
        gap : 5px;
    }
}

/* Print Styles */
@media print {
    .restaurant-footer {
        background: #ffffff !important;
        color: #000000 !important;
        page-break-inside: avoid;
    }
    
    .footer-social-icons,
    .footer-promotion-item {
        display: none;
    }
    
    .footer-column-title,
    h2.footer-column-title {
        color: #000000 !important;
    }
    
    .footer-menu-list a,
    .phone-link {
        color: #000000 !important;
    }
    
    .accessibility-link {
        color: #000000 !important;
    }
    
    .restaurant-footer-bottom {
        background: #f5f5f5 !important;
    }
    
    .contact-label {
        color: #000000 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .restaurant-footer {
        background: #000000;
        color: #ffffff;
    }
    
    .footer-column-title,
    h2.footer-column-title,
    .contact-label,
    .promotion-title {
        color: #ffff00;
    }
    
    .social-icon {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
    
    .footer-promotion-item {
        background: #333333;
        border-left-color: #ffff00;
    }
    
    .footer-promotion-item.no-promotions {
        background: #444444;
        border-left-color: #ffff00;
    }
    
    .restaurant-footer-bottom {
        background: #000000;
        border-top-color: #ffffff;
    }
    
    .accessibility-link {
        color: #ffff00;
    }
    
    .accessibility-link:hover,
    .accessibility-link:focus {
        color: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .social-icon,
    .footer-promotion-item,
    .phone-link,
    .footer-menu-list a,
    .designed-by a {
        transition: none;
    }
    
    .accessibility-link {
        transition: none;
    }
    
    .social-icon:hover,
    .footer-promotion-item:hover {
        transform: none;
    }
} 