/* ============================================================
   footer.css — all footer component styles
   Includes: ratings section, map, contact, social, copyright
   ============================================================ */

/* ---- Shared footer wrapper ------------------------------- */

.site-footer {
    margin-top: 0;
}

.custom-footer-wrapper {
    background: #1a1a1a;
    color: #f5f5f5;
}

.custom-footer-wrapper h3,
.custom-footer-wrapper h4 {
    color: #fff;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ---- Ratings Section -------------------------------------- */

.footer-ratings-section {
    background-color: #1a1a1a;
    background-image: url('../../../uploads/2021/04/DSC_01681-1024x681-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 100px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    position: relative;
}

/* Restore side padding stripped by .entry-content > .alignfull rule */
.entry-content > .footer-ratings-section {
    padding-left: 60px;
    padding-right: 60px;
}

.footer-ratings-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.ratings-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ratings-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 80px;
    color: #fff;
    font-weight: 700;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

.ratings-container p {
    font-size: 24px;
    line-height: 2;
    color: #f5f5f5;
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    align-items: center;
}

.rating-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    transition: all 1s ease;
    position: relative;
    z-index: 3;
}

.rating-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
}

.rating-item a {
    text-decoration: none;
    color: #fff;
    display: block;
    transition: color 1s ease;
}

.rating-item:hover a {
    color: #333;
}

.rating-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.rating-logo svg,
.rating-logo img {
    max-width: 100%;
    max-height: 78px;
    height: auto;
    width: auto;
    transform: scale(1.3);
}

.rating-stars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.rating-stars .stars {
    position: relative;
    display: inline-block;
    max-width: 206px;
}

.rating-stars .stars .stars-background {
    display: inline-flex;
    gap: 4px;
    color: #ddd;
}

.rating-stars .stars .stars-filled {
    display: flex;
    gap: 4px;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #FFD700;
}

.star-icon {
    width: 2rem;
    height: 2rem;
}

.stars-filled .star-icon {
    flex-shrink: 0;
}

.rating-stars .rating-value {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.rating-item:hover .rating-value {
    color: #333;
}

.ratings-date {
    text-align: right;
    margin-top: 60px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ---- Map Section ------------------------------------------ */

.footer-map-container {
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ---- Contact + Social Section ----------------------------- */

.custom-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 100px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 19px;
}

.footer-contact-info h3,
.footer-social-links h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    color: #fff;
}

.footer-contact-info h4 {
    font-size: 1.15em;
    color: #fff;
}

.footer-navigation-section,
.footer-communication-section {
    margin-bottom: 35px;
}

.footer-navigation-section:last-child,
.footer-communication-section:last-child {
    margin-bottom: 0;
}

.footer-contact-info p,
.footer-social-links p,
.footer-paragraph {
    margin: var(--paragraph-margin) 0;
    line-height: var(--paragraph-line-height);
    color: #f5f5f5;
}

.footer-contact-info a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-contact-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Working hours list */
.rudzons-weekly-hours > .hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rudzons-weekly-hours > .hours-list li {
    list-style: none;
}

.footer-contact-info .hours-list p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    line-height: 1.8;
}

.footer-contact-info .hours-list .day {
    font-weight: 500;
    flex-grow: 1;
    text-align: start;
}

.footer-contact-info .hours-list .time {
    color: #f5f5f5;
}

.hours-day.current-day {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    margin: 4px -12px;
    border-radius: 6px;
    border-left: 4px solid #fff;
}

.hours-day.current-day .day {
    font-weight: 700;
}

.hours-day.current-day .time {
    font-weight: 600;
}

/* Social icon circles */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon.facebook:hover  { background: #1877f2; }
.social-icon.whatsapp:hover  { background: #25d366; }
.social-icon.google-maps:hover { background: #4285f4; }
.social-icon.waze:hover      { background: #33ccff; }
.social-icon.email:hover     { background: #d4874f; }

.social-icon svg {
    width: 54px;
    height: 54px;
}

/* ---- Copyright bar --------------------------------------- */

.footer-copyright {
    padding: 16px 20px;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.875rem;
    color: #f5f5f5;
}

/* ---- Responsive ------------------------------------------ */

@media (max-width: 768px) {
    .footer-ratings-section {
        padding: 60px 20px;
    }

    .entry-content > .footer-ratings-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ratings-container h2 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .ratings-container p {
        font-size: inherit;
        line-height: 1.6;
    }

    .ratings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rating-item {
        padding: 15px;
    }

    .rating-logo {
        min-height: 60px;
    }

    .rating-logo svg,
    .rating-logo img {
        max-height: 45px;
    }

    .rating-stars .rating-value {
        font-size: 16px;
    }

    .ratings-date {
        font-size: 14px;
        margin-top: 40px;
    }

    .custom-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 20px 40px;
        text-align: center;
    }

    .footer-social-links {
        order: -1;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-contact-info .hours-list p {
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ratings-grid {
        grid-template-columns: 1fr;
    }

    .rating-logo {
        min-height: 50px;
    }

    .rating-logo svg,
    .rating-logo img {
        max-height: 40px;
    }

    .footer-ratings-section {
        padding: 40px 15px;
    }

    .entry-content > .footer-ratings-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}
