/* Header */
.main-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 900px) {
    .main-header {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.language-flag {
    display: flex;
    align-items: center;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.language-flag:hover {
    transform: scale(1.1);
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    object-fit: cover;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover:not(.social-icon-whatsapp):not(.social-icon-instagram):not(.social-icon-facebook):not(.social-icon-youtube) {
    background: #fc6056;
    color: white;
    transform: translateY(-2px);
}

.social-icon-instagram {
    background: #000000 !important;
    color: white !important;
}

.social-icon-instagram:hover {
    background: #000000 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* WhatsApp icon - must be green always */
a.social-icon.social-icon-whatsapp,
.social-icon.social-icon-whatsapp,
.social-icons .social-icon.social-icon-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
}

a.social-icon.social-icon-whatsapp:hover,
.social-icon.social-icon-whatsapp:hover,
.social-icons .social-icon.social-icon-whatsapp:hover,
a.social-icon.social-icon-whatsapp:focus,
.social-icon.social-icon-whatsapp:focus,
.social-icons .social-icon.social-icon-whatsapp:focus {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
    transform: translateY(-2px);
}

.social-icon-facebook {
    background: #0d5bd8 !important;
    color: white !important;
}

.social-icon-facebook:hover {
    background: #0d5bd8 !important;
    color: white !important;
    transform: translateY(-2px);
}

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

.phone-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f5f5f5;
    border: 1px solid #fc6056;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.phone-icon:hover {
    background: #fc6056;
    color: white;
    border: 1px solid #fc6056;
}

.phone-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.phone-number {
    font-size: 0.95rem;
}

.logo-link {
    display: inline-block;
    line-height: 0;
    margin: 0 30px;
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Service Buttons - Shared component */
.service-buttons-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: url('../img/red_bg.png') center center / cover no-repeat;
    border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 900px) {
    .service-buttons-wrapper {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

.service-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-btn:hover {
    transform: translateY(-2px);
}

.service-btn.active {
    background: rgba(255, 255, 255, 1);
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-btn .icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.service-btn .text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
footer.footer-wrapper {
    background: url('../img/red_bg.png') center center / cover no-repeat;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 900px) {
    footer.footer-wrapper {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 20px;
}

.footer-content .social-links .social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ensure WhatsApp icon is green in footer too */
.footer-content .social-links .social-icons .social-icon.social-icon-whatsapp,
.footer-content .social-links .social-icons a.social-icon.social-icon-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
}

.footer-content .social-links .social-icons .social-icon.social-icon-whatsapp:hover,
.footer-content .social-links .social-icons a.social-icon.social-icon-whatsapp:hover {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
    transform: translateY(-2px);
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

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

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-info a, .social-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.contact-info a:hover, .social-links a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 0.8rem;
    color: white;
    opacity: 0.9;
    margin-top: 15px;
}

/* Responsive Design for Header/Footer */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }

    .header-wrapper {
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-left {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .header-center {
        order: 2;
        width: 100%;
    }

    .header-right {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-title {
        font-size: 1.2rem;
        white-space: normal;
        line-height: 1.3;
    }

    .header-logo {
        height: 70px;
    }

    .logo-link {
        margin: 0 10px;
    }

    .social-icon, .phone-icon {
        font-size: 0.85rem;
    }

    .phone-number {
        font-size: 0.85rem;
    }

    .service-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        padding: 15px;
        padding-left: 15px;
        padding-right: 15px;
        gap: 8px;
    }

    .service-btn {
        padding: 12px 8px;
    }

    .service-btn .text {
        font-size: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 8px 0;
    }

    .header-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-title {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
    }

    .header-logo {
        height: 60px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    /* Ensure WhatsApp stays green on mobile */
    .social-icon.social-icon-whatsapp,
    a.social-icon.social-icon-whatsapp {
        background: #25D366 !important;
        color: white !important;
        border-radius: 50% !important;
    }

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

    .phone-icon {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .phone-icon svg {
        width: 16px;
        height: 16px;
    }

    .service-buttons {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        padding-left: 10px;
        padding-right: 10px;
        gap: 6px;
    }

    .service-btn {
        padding: 10px 6px;
    }

    .service-btn .text {
        font-size: 0.7rem;
    }

    .footer-container {
        padding: 15px 10px;
    }

    .footer-info p, .contact-info a, .social-links a {
        font-size: 0.85rem;
    }

    .copyright {
        font-size: 0.75rem;
    }
}
