/* ========================================
   COASTAL FOOTER STYLES - Easy Maintenance
   ======================================== */

/* Coastal Color Variables */
:root {
    --coastal-navy: #07225d;
    --coastal-light: #f0f8ff;
    --ocean-text: #2c5f7c;
    --coastal-sand: #f5f1eb;
    --lighthouse-white: #ffffff;
}

/* ========================================
   FOOTER MAIN STYLES
   ======================================== */

/* Footer Background - Override dark theme */
.footer-area {
    background: linear-gradient(135deg, var(--coastal-light) 0%, var(--lighthouse-white) 50%, var(--coastal-sand) 100%) !important;
    border-top: 3px solid var(--coastal-navy) !important;
    margin-top: auto !important;
}

/* Footer Section Spacing - Bootstrap Best Practices */
.footer__section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
    .footer__section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

.footer__section .single__footer {
    margin-bottom: 2.5rem !important;
}

@media (min-width: 768px) {
    .footer__section .single__footer {
        margin-bottom: 0 !important;
    }
}

/* Footer Titles - Consistent spacing */
.footer__title {
    margin-bottom: 1.25rem !important;
}

.footer__title h5 {
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
}

/* Footer Menu Spacing */
.footer__menu {
    line-height: 1.8 !important;
}

.footer__menu ul {
    padding-left: 0 !important;
}

/* All footer text - coastal navy */
.footer-area,
.footer-area p,
.footer-area span,
.footer-area strong,
.footer-area div,
.footer-area h1,
.footer-area h2,
.footer-area h3,
.footer-area h4,
.footer-area h5,
.footer-area h6 {
    color: var(--coastal-navy) !important;
}

/* Footer Section Titles */
.footer__title h5,
.footer-item__title {
    color: var(--coastal-navy) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* ========================================
   FOOTER LINKS
   ======================================== */

/* Footer Menu Lists */
.footer-menu__list,
.footer__menu ul,
.term-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu__item,
.footer__menu ul li {
    padding-bottom: 8px !important;
    margin: 0 !important;
}

.footer-menu__item:last-child,
.footer__menu ul li:last-child {
    padding-bottom: 0 !important;
}

/* All footer links - Consistent styling */
.footer-area a,
.footer-menu__link,
.footer-contact-menu__item {
    color: var(--ocean-text) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: inline !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.footer-area a:hover,
.footer-menu__link:hover {
    color: var(--coastal-navy) !important;
    text-decoration: underline !important;
    background: none !important;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.footer-contact p {
    margin-bottom: 0.5rem !important;
}

.footer-contact p:last-child {
    margin-bottom: 0 !important;
}

.footer-contact p,
.footer-contact strong {
    color: var(--coastal-navy) !important;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--ocean-text) !important;
    font-weight: 600 !important;
}

.footer-contact a:hover {
    color: var(--coastal-navy) !important;
}

.footer-contact .whitelink {
    color: var(--ocean-text) !important;
    text-decoration: none !important;
}

.footer-contact .whitelink:hover {
    color: var(--coastal-navy) !important;
    text-decoration: underline !important;
}

/* ========================================
   BUSINESS HOURS - MODERN DESIGN
   ======================================== */

.business-hours-modern {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.business-hours-modern * {
    box-sizing: border-box;
}

.hours-title {
    color: var(--coastal-navy) !important;
    font-size: 1rem;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    background: transparent;
    border: none;
    padding: 0;
}

.hours-title i {
    color: var(--ocean-text) !important;
    font-size: 1.1rem;
}

.hours-list {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 24, 61, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 24, 61, 0.08);
    width: 100%;
    max-width: 300px; /* Increased from 280px to accommodate wider day column */
    overflow: visible;
}

.hours-row {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 24, 61, 0.08);
    position: relative;
    margin: 0;
    min-height: 26px;
    width: 100%;
}

.hours-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-row:first-child {
    padding-top: 0;
}

.hours-day {
    color: var(--coastal-navy) !important;
    font-weight: 600 !important;
    font-size: 0.8rem;
    flex: 0 0 auto;
    width: 75px; /* Increased from 60px to accommodate "Mon – Sat" */
    text-align: left;
}

.hours-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(0, 24, 61, 0.3);
    margin: 0 5px;
    height: 1px;
    min-width: 6px;
}

.hours-time {
    color: var(--ocean-text) !important;
    font-weight: 500 !important;
    font-size: 0.8rem;
    text-align: right;
    white-space: nowrap;
    flex: 0 0 auto;
    background: transparent;
    padding: 0;
    border: none;
    width: auto;
    min-width: 90px;
}

.hours-row.closed .hours-day,
.hours-row.closed .hours-time {
    opacity: 0.6;
    background: transparent;
}

.hours-row.closed .hours-time {
    color: #999 !important;
    font-style: italic;
    background: transparent;
    border: none;
    padding: 0;
}

/* Social Title */
.social-title {
    color: var(--coastal-navy) !important;
    font-size: 1rem;
    font-weight: 700 !important;
    margin-bottom: 0.75rem;
}

/* Social Icons List */
.footer__social .socials-list {
    margin-top: 0.5rem;
}

/* Old pf-hours - Keep for backwards compatibility */
.pf-hours {
    border: 2px solid rgba(0, 24, 61, 0.15) !important;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.5);
}

.pf-hours .row-line {
    color: var(--coastal-navy) !important;
    border-bottom: 1px solid rgba(0, 24, 61, 0.15) !important;
}

.pf-hours .day,
.pf-hours .time {
    color: var(--coastal-navy) !important;
}

/* ========================================
   SOCIAL MEDIA ICONS
   ======================================== */

.footer__social {
    margin-top: 20px;
}

.footer__social .socials-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
}

.footer__social .social-item {
    margin: 0 !important;
}

.footer__social .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid var(--ocean-text) !important;
    color: var(--ocean-text) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.footer__social .social-link i {
    color: var(--ocean-text) !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
}

.footer__social .social-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 6px rgba(0, 24, 61, 0.2) !important;
}

/* Brand-specific hover colors */
.footer__social .social-link.facebook:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
}

.footer__social .social-link.facebook:hover i {
    color: white !important;
}

.footer__social .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #E4405F !important;
}

.footer__social .social-link.instagram:hover i {
    color: white !important;
}

.footer__social .social-link.pinterest:hover {
    background: #E60023 !important;
    border-color: #E60023 !important;
}

.footer__social .social-link.pinterest:hover i {
    color: white !important;
}

.footer__social .social-link.twitter:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}

.footer__social .social-link.twitter:hover i {
    color: white !important;
}

.footer__social .social-link.yelp:hover {
    background: #FF1A1A !important;
    border-color: #FF1A1A !important;
}

.footer__social .social-link.yelp:hover i {
    color: white !important;
}

.footer__social .social-link.youtube:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
}

.footer__social .social-link.youtube:hover i {
    color: white !important;
}

.footer__social .social-link.linkedin:hover {
    background: #0077B5 !important;
    border-color: #0077B5 !important;
}

.footer__social .social-link.linkedin:hover i {
    color: white !important;
}

/* ========================================
   PARTNER & CERTIFICATION LOGOS
   ======================================== */

.footer-partner-logos {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 24, 61, 0.15);
}

.partner-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
}

.partner-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none !important;
    flex: 0 0 auto;
    height: 60px;
    min-width: 90px;
}

.partner-logo-link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.3);
}

.partner-logo {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-logo-link:hover .partner-logo {
    transform: scale(1.05);
}

/* Responsive adjustments for partner logos */
@media (max-width: 576px) {
    .footer-partner-logos {
        text-align: center;
    }
    
    .partner-logos-grid {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .partner-logo-link {
        height: 55px;
        min-width: 80px;
    }
    
    .partner-logo {
        max-height: 45px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .partner-logo-link {
        height: 58px;
        min-width: 85px;
    }
    
    .partner-logo {
        max-height: 48px;
    }
}

/* ========================================
   BOTTOM FOOTER
   ======================================== */

.bottom-footer {
    background-color: var(--coastal-navy) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 0;
}

.bottom-footer,
.bottom-footer *,
.bottom-footer span,
.bottom-footer a {
    color: var(--lighthouse-white) !important;
}

.bottom-footer a {
    text-decoration: underline;
}

.bottom-footer a:hover {
    opacity: 0.8;
}

/* ========================================
   LOGO STYLING
   ======================================== */

.footer-logo img {
    max-width: 180px;
    height: auto;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 0.8;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 576px) {
    /* Center everything on mobile */
    .footer-area .text-start {
        text-align: center !important;
    }
    
    .footer__section .single__footer {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    .footer__menu ul,
    .footer__menu ul li,
    .footer__menu ul li a {
        text-align: center !important;
        padding-left: 0 !important;
    }
    
    /* Center business hours title and social title */
    .hours-title,
    .social-title {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Center business hours card */
    .business-hours-modern {
        text-align: center !important;
    }
    
    .hours-list {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 260px !important; /* Increased from 240px */
        width: 260px !important;
        padding: 0.6rem !important;
    }
    
    .hours-row {
        padding: 0.3rem 0 !important;
        min-height: 24px !important;
    }
    
    .hours-day {
        width: 55px !important; /* Increased from 45px for mobile */
        font-size: 0.75rem !important;
    }
    
    .hours-dots {
        margin: 0 4px !important;
    }
    
    .hours-time {
        min-width: 75px !important;
        font-size: 0.75rem !important;
    }
    
    .pf-hours {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 260px !important; /* Increased from 240px */
    }

    .footer__social .socials-list {
        justify-content: center !important;
        gap: 6px !important;
    }
    
    .footer__social .social-link {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .footer-logo {
        text-align: center !important;
    }
}

/* Medium screens - tablets */
@media (min-width: 577px) and (max-width: 768px) {
    .hours-list {
        max-width: 280px !important; /* Increased from 260px */
    }
    
    .hours-day {
        width: 65px !important; /* Increased from 55px for tablets */
        font-size: 0.78rem !important;
    }
    
    .hours-time {
        min-width: 85px !important;
        font-size: 0.78rem !important;
    }
    
    .footer__social .social-link {
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
    }
}

/* Large screens */
@media (min-width: 769px) {
    .hours-list {
        max-width: 300px !important; /* Increased from 280px */
    }
}

/* ========================================
   OVERRIDES FOR DESCRIPTION TEXT
   ======================================== */

.footer-item__desc {
    color: var(--ocean-text) !important;
}

/* ========================================
   PRINT STYLES (Optional)
   ======================================== */

@media print {
    .footer-area {
        background: white !important;
        border-top: 2px solid var(--coastal-navy) !important;
    }
}
