/* style.css - Final, Definitive, and Fully Corrected Version */

/* --- Global Styles & Accessibility --- */
:root {
    --primary-blue-hero-bg: #B0D5EF; --text-color-dark: #022E71;
    --primary-pink: #F379AA; --light-pink-card-border: #F379AA;
    --promo-ticker-background: #022E71; --promo-ticker-text-color: #FFC0CB;
    --whatsapp-green: #25D366; --dark-blue-sections: #003366;
    --background-light: #f8f9fa; --white: #fff;
    --focus-outline-color: #007bff; --font-main: 'Assistant', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --light-pink-specialty-num: #FFC0CB; --link-text-pink: #C7447C;
    --link-hover-pink: #A33E68;
    --ticker-duration: 10s;
}

html { scroll-padding-top: 60px; direction: rtl; scroll-behavior: smooth; }
body {
    direction: rtl;
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.65;
    color: var(--text-color-dark);
    font-size: 16px;
}
.skip-link { position: absolute; top: -100px; left: 0; background: var(--dark-blue-sections); color: var(--white); padding: 10px 15px; z-index: 10000; text-decoration: none; transition: top 0.3s ease-in-out; }
.skip-link:focus { top: 45px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 3px solid var(--focus-outline-color); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }
h1, h2, h3, p { margin-top: 0; margin-bottom: 1em; }
h1 { font-size: clamp(2.2em, 5vw, 3.2em); font-weight: 800; }
h2 { font-size: clamp(1.8em, 4vw, 2.5em); color: var(--text-color-dark); margin-bottom: 30px; text-align: center; font-weight: 700;}
h3 { font-size: clamp(1.3em, 3vw, 1.7em); color: var(--text-color-dark); font-weight: 700;}
a { color: var(--link-text-pink); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover, a:focus { color: var(--link-hover-pink); text-decoration: underline; }
.container { width: 90%; max-width: 1140px; padding: 0 15px; margin: 0 auto; }
img { max-width: 100%; height: auto; display: block; }
#greeting-banner {
    background-color: var(--text-color-dark);
    color: var(--white);
    text-align: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9em;
    display: none;
    width: fit-content;
    max-width: 400px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid var(--primary-pink);
    position: fixed;
    top: 53px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    animation: greeting-slide-in 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.5s ease;
}

#greeting-banner.fade-out {
    animation: greeting-fade-out 0.6s ease-in-out forwards;
}

@keyframes greeting-slide-in {
    0% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
        scale: 0.8;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        scale: 1.05;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        scale: 1;
    }
}

@keyframes greeting-fade-out {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-50px) scale(0.9);
        opacity: 0;
    }
}

/* --- Promo Ticker --- */
.ticker-container { 
    background: var(--promo-ticker-background); 
    height: 50px; 
    overflow: hidden; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    display: flex;
    align-items: center;
}

.ticker-content { 
    display: flex; 
    align-items: center; 
    height: 100%; 
    white-space: nowrap; 
    animation: scroll-left-seamless var(--ticker-duration) linear infinite; 
}

.ticker-item { 
    color: var(--promo-ticker-text-color); 
    font-weight: 600; 
    font-size: 16px; 
    padding: 0 50px; 
    display: inline-flex; 
    align-items: center; 
}

@keyframes scroll-left-seamless { 
    0% { 
        transform: translateX(0%); 
    } 
    100% { 
        transform: translateX(-100%); 
    } 
}



/* --- Hero Section --- */
.hero-section { background-color: var(--primary-blue-hero-bg); background-image: url('images/hero_main_image.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat; color: var(--text-color-dark); position: relative; overflow: hidden; min-height: 580px; display: flex; align-items: center; padding-top: 0; padding-bottom: 100px; margin-top: 0; }
.hero-absolute-logo { position: absolute; top: 150px; left: 50%; transform: translateX(-50%); width: clamp(150px, 18vw, 220px); z-index: 3; }
.hero-content-container { position: relative; z-index: 2; display: flex; justify-content: flex-start; width: 100%; }
.hero-inner-content { display: flex; flex-direction: column; align-items: flex-start; text-align: right; max-width: 52%; margin-right: 20px; }
.hero-text-content h1 { font-size: clamp(2.5em, 5vw, 3.5em); font-weight: 800; margin-bottom: 0.4em; }
.hero-text-content .hero-description { font-size: clamp(1em, 2.2vw, 1.1em); font-weight: 400; line-height: 1.7; margin-bottom: 2em; }
.hero-text-content .cta-button.whatsapp-button { background-color: var(--text-color-dark); color: var(--promo-ticker-text-color); padding: 12px 28px; border-radius: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: clamp(1em, 2.5vw, 1.15em); font-weight: 700; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.hero-text-content .cta-button.whatsapp-button:hover,
.hero-text-content .cta-button.whatsapp-button:focus { background-color: #001f3f; text-decoration: none; transform: translateY(-2px); }
.hero-text-content .cta-button.whatsapp-button img { margin-right: 8px; width: 24px; height: 24px; }


/* --- Pink Stripe Bar --- */


/* --- General Section Styles --- */
.why-us-section, .specialties-section, .branches-section, .faq-section, .always-here-section { padding: clamp(50px, 8vw, 70px) 0; }
.image-banner img { width: 100%; object-fit: cover; max-height: 450px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.feature-item { text-align: center; padding: 25px; background-color: var(--white); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; }
.feature-item img { margin-bottom: 15px; width: 60px; height: auto; }
.feature-item h3 { margin-bottom: 10px; font-size: 1.4em; }
.feature-item p { font-size: 0.95em; line-height: 1.5; margin-bottom: 0; }

/* Desktop Layout (Grid) */
.specialty-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 40px; margin-bottom: 60px; scroll-margin-top: 60px; }
.specialty-item .specialty-content, .specialty-item .specialty-number { text-align: right; }
.specialty-item:nth-child(odd) .specialty-image { grid-column: 1; grid-row: 1 / span 2; }
.specialty-item:nth-child(odd) .specialty-content { grid-column: 2; grid-row: 2; }
.specialty-item:nth-child(odd) .specialty-number { grid-column: 2; grid-row: 1; }
.specialty-item:nth-child(even) .specialty-image { grid-column: 2; grid-row: 1 / span 2; }
.specialty-item:nth-child(even) .specialty-content { grid-column: 1; grid-row: 2; }
.specialty-item:nth-child(even) .specialty-number { grid-column: 1; grid-row: 1; }
.specialty-item .specialty-number { font-size: 3.5em; color: var(--light-pink-specialty-num); font-weight: bold; }
.specialty-item .specialty-image { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,0.07); }

.contact-form-section { background-color: var(--dark-blue-sections); color: var(--white); padding: clamp(50px, 8vw, 70px) 0; text-align: center; }
.contact-form-section .container { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.contact-form-section h2 { color: var(--white); margin-bottom: 40px; }
.contact-form-section p { margin-bottom: 40px; }
#contact-form { display: flex; justify-content: center; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.form-group { position: relative; text-align: right; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9em; color: var(--white); }
.form-group input, .form-group textarea { background-color: transparent; border: none; border-bottom: 1px solid var(--white); color: var(--white); padding: 8px 0; font-size: 1.1em; width: 220px; font-family: var(--font-main); }
.form-group textarea { resize: none; overflow: hidden; line-height: 1.4; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--primary-pink); }

/* Checkbox styling */
.checkbox-group { width: 100%; max-width: 500px; margin: 20px 0; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; text-align: right; }
.checkbox-label input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--primary-pink); }
.checkbox-text { font-size: 0.9em; line-height: 1.4; color: var(--white); }
.checkbox-text .privacy-link { color: var(--primary-pink); text-decoration: underline; transition: color 0.3s ease; }
.checkbox-text .privacy-link:hover { color: var(--link-hover-pink); }

#contact-form .submit-button { background-color: var(--primary-pink); color: var(--white); border: none; border-radius: 50px; padding: 12px 40px; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease, opacity 0.3s ease; }
#contact-form .submit-button:hover:not(:disabled) { background-color: var(--link-hover-pink); }
#contact-form .submit-button:disabled { background-color: #666; cursor: not-allowed; opacity: 0.6; }
.form-status { margin-top: 20px; font-weight: bold; min-height: 1.5em; color: #ff6b6b; }
.thank-you-message { color: var(--white); font-size: clamp(1.5em, 4vw, 2em); font-weight: bold; }

.branches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 35px; justify-content: center; }
.branch-card { background-color: var(--white); border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); text-align: center; border: 3px solid var(--light-pink-card-border); display: flex; flex-direction: column; overflow: hidden; max-width: 320px; margin: 0 auto; }
.branch-card > *:not(.branch-image) { padding-left: 30px; padding-right: 30px; }
.branch-card .navigate-button { margin: 15px auto; background-color: var(--primary-pink); color: var(--text-color-dark); padding: 8px 16px; border-radius: 20px; font-size: 0.95em; display: inline-flex; align-items: center; font-weight: bold; }
.branch-card .navigate-button img { margin-left: 6px; width: 18px; height: 18px; }
.branch-card h3 { font-size: 1.6em; margin-top: 20px; }
.branch-card p { font-size: 1.1em; }
.branch-card .branch-hours { flex-grow: 1; }
.branch-card .branch-phone { font-weight: bold; }
.branch-card .branch-image { width: 100%; margin-top: auto; height: 190px; object-fit: cover; }

.branch-page-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--whatsapp-green);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    margin: 8px auto;
    transition: all 0.3s ease;
}

.branch-page-link:hover {
    background-color: #1fb855;
    transform: translateY(-1px);
    text-decoration: none;
}

.branch-page-icon {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 3px;
}
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; max-width: 1200px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1.5px solid #ddd; border-radius: 12px; transition: box-shadow 0.3s, border-color 0.3s; }
.faq-item:hover, .faq-item:focus-within { border-color: var(--primary-pink); box-shadow: 0 4px 15px rgba(176,213,239,0.5); }
.faq-question { background-color: var(--text-color-dark); color: var(--white); border: none; width: 100%; text-align: right; padding: 18px 22px; font-size: 1.2em; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; border-radius: 10px 10px 0 0; }
.faq-icon { font-size: 1.7em; transition: transform 0.3s ease; color: var(--primary-pink); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 22px; background-color: var(--background-light); font-size: 1.05em; display: none; border-top: 1.5px solid #ddd; }
.always-here-section .container { display: flex; align-items: center; gap: 40px; text-align: right; }
.always-here-content { flex: 1.5; }
.always-here-image { flex: 1; width: clamp(200px, 50vw, 300px); }

/* --- Footer --- */
.site-footer { background: #fff; border-top: 2px solid #e3e6ea; margin-top: 32px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 50px; }
.footer-social-item img, .footer-contact-item img { width: 24px; }
.footer-link, .footer-social-link, .footer-phone { color: #444; font-weight: 600; }
.copyright { font-size: 0.9em; color: #666; margin-right: auto; }

/* --- Floating Buttons - Final Fix --- */
.floating-buttons-container { position: fixed; right: 20px; bottom: 20px; z-index: 1001; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.floating-whatsapp-button, .floating-phone-button { background: none; border: none; padding: 0; margin: 0; cursor: pointer; }
.floating-whatsapp-button img, .floating-phone-button svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); transition: transform 0.2s ease; }
.floating-whatsapp-button:hover, .floating-phone-button:hover { transform: scale(1.1); }
.floating-whatsapp-button { width: 120px; height: auto; transition: opacity 0.3s ease, transform 0.3s ease; }
.floating-whatsapp-button img { width: 100%; height: auto; }
.floating-phone-button { width: 60px; height: 60px; }
.floating-whatsapp-button.hidden-by-hero { opacity: 0; transform: scale(0.8); pointer-events: none; }

/* --- Promo Popup --- */
.promo-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); border: 3px solid var(--primary-pink); z-index: 2000; width: 90%; max-width: 450px; text-align: center; padding: 25px; display: none; animation: popup-spectacular-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); }

.promo-popup.fade-out {
    animation: popup-spectacular-out 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes popup-spectacular-in {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
        opacity: 0;
        filter: blur(10px);
    }
    30% {
        transform: translate(-50%, -50%) scale(0.8) rotate(5deg);
        opacity: 0.7;
        filter: blur(3px);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-2deg);
        opacity: 0.9;
        filter: blur(1px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes popup-spectacular-out {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.2) rotate(15deg);
        opacity: 0;
        filter: blur(15px);
    }
}
.popup-content { position: relative; }
.promo-popup h2 { color: var(--primary-pink); margin-bottom: 15px; }
.promo-popup p { color: var(--text-color-dark); margin-bottom: 10px; }
.popup-confirm-button { background-color: var(--primary-pink); color: var(--white); border: none; padding: 10px 25px; border-radius: 25px; font-weight: bold; font-size: 1.1em; cursor: pointer; margin-top: 15px; transition: background-color 0.2s; }
.popup-confirm-button:hover { background-color: var(--link-hover-pink); }

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .faq-list { grid-template-columns: 1fr; }
    .footer-content { justify-content: center; }
    .copyright { margin-right: 0; text-align: center; width: 100%; order: 10; padding-top: 15px; }
}


@media (max-width: 768px) {
    #contact-form { flex-direction: column; align-items: center; gap: 25px; }
    .form-group { width: 80%; max-width: 350px; }
    .form-group input, .form-group textarea { width: 100%; }
    
    /* CORRECTED HERO SECTION FOR MOBILE */
    .hero-section { min-height: auto; padding-top: 40px; padding-bottom: 160px; }
    .hero-absolute-logo { position: relative; top: auto; left: auto; transform: none; margin: 0 auto 20px; width: clamp(120px, 25vw, 150px); }
    .hero-content-container { justify-content: flex-start; }
    .hero-inner-content { align-items: flex-start; text-align: right; max-width: 100%; margin: 0; padding: 0 5%; }
    .hero-text-content .cta-button.whatsapp-button { align-self: flex-start; }



    /* Specialties section on Mobile */
    .specialty-item { display: flex; flex-direction: column; }
    .specialty-item .specialty-image, .specialty-item .specialty-number, .specialty-item .specialty-content { grid-column: auto; grid-row: auto; }
    .specialty-item .specialty-image { order: 1; margin: 0 auto 20px; }
    .specialty-item .specialty-number { order: 2; }
    .specialty-item .specialty-content { order: 3; }
    .specialty-item .specialty-content, .specialty-item .specialty-number { text-align: right; width: 100%; }

    .always-here-section .container { flex-direction: column; text-align: center; }
    .floating-whatsapp-button { width: 100px; }
    .floating-buttons-container { right: 15px; bottom: 15px; }
}



/* --- Advanced Cookie Management System --- */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--text-color-dark) 0%, #001f3f 100%);
    color: var(--white);
    padding: 25px;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    border-top: 3px solid var(--primary-pink);
    animation: slideUpBanner 0.6s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text-section {
    flex: 1;
}

.cookie-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-pink);
}

.cookie-text {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    text-align: right;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary-pink);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--link-hover-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 192, 203, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn-reject:hover {
    background: var(--white);
    color: var(--text-color-dark);
    transform: translateY(-2px);
}

.cookie-btn-customize {
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.cookie-btn-customize:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.4s ease-out;
}

.cookie-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    color: var(--text-color-dark);
    font-size: 1.5em;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.cookie-modal-close:hover {
    color: var(--primary-pink);
}

.cookie-modal-body {
    padding: 25px 30px;
}

.cookie-modal-description {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.6;
    text-align: right;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--primary-pink);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-category-info {
    flex: 1;
    text-align: right;
}

.cookie-category-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-color-dark);
    font-size: 1.1em;
}

.cookie-category-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--primary-pink);
}

input:checked + .cookie-slider:before {
    transform: translateX(30px);
}

.cookie-slider.essential {
    background-color: var(--primary-pink);
    opacity: 0.7;
}

.cookie-modal-footer {
    padding: 20px 30px 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-btn-save {
    background: var(--primary-pink);
    color: var(--white);
}

.cookie-btn-save:hover {
    background: var(--link-hover-pink);
    transform: translateY(-2px);
}

/* Cookie Settings Footer */
.cookie-settings-footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.cookie-settings-link {
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cookie-settings-link:hover {
    background: var(--link-hover-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownBanner {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.privacy-link {
    color: var(--primary-pink);
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover,
.privacy-link:focus {
    color: var(--link-hover-pink);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-text {
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: row;
        width: 100%;
        gap: 6px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 70px;
        max-width: 100px;
        padding: 6px 8px;
        font-size: 0.65em;
        white-space: nowrap;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-toggle {
        align-self: flex-start;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 70%;
        max-width: 250px;
    }
    
    .cookie-settings-footer {
        bottom: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-modal-header h2 {
        font-size: 1.3em;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-btn {
        font-size: 0.6em;
        min-width: 60px;
        max-width: 85px;
        padding: 5px 6px;
    }
    
    .cookie-buttons {
        gap: 4px;
    }
}

/* --- Branch Page Styles --- */

.branch-hero-section {
    background-color: var(--primary-blue-hero-bg);
    background-image: url('images/hero_main_image.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-dark);
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 80px;
    margin-top: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-buttons .cta-button {
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.hero-buttons .cta-button img {
    margin-right: 6px;
    width: 20px;
    height: 20px;
}

.phone-button {
    background-color: var(--whatsapp-green);
    color: var(--white);
}

.phone-button:hover,
.phone-button:focus {
    background-color: #1fb855;
    transform: translateY(-2px);
    text-decoration: none;
}

.branch-info-section {
    padding: clamp(40px, 6vw, 60px) 0;
    background-color: var(--background-light);
}

.branch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.branch-main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.branch-info-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--light-pink-card-border);
}

.branch-info-card h2 {
    color: var(--text-color-dark);
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: right;
}

.info-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h3 {
    color: var(--primary-pink);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.day {
    font-weight: 600;
    color: var(--text-color-dark);
}

.hours {
    font-weight: 500;
    color: var(--text-color-dark);
}

.phone-link {
    color: var(--primary-pink);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover,
.phone-link:focus {
    color: var(--link-hover-pink);
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.action-button img {
    margin-left: 8px;
    width: 18px;
    height: 18px;
}

.waze-button {
    background-color: var(--text-color-dark);
    color: var(--promo-ticker-text-color);
}

.waze-button:hover,
.waze-button:focus {
    background-color: #001f3f;
    transform: translateY(-2px);
    text-decoration: none;
}

.whatsapp-branch-button {
    background-color: var(--whatsapp-green);
    color: var(--white);
}

.whatsapp-branch-button:hover,
.whatsapp-branch-button:focus {
    background-color: #1fb855;
    transform: translateY(-2px);
    text-decoration: none;
}

.services-section {
    padding: clamp(50px, 8vw, 70px) 0;
    background-color: var(--white);
}

.services-section h2 {
    color: var(--text-color-dark);
    margin-bottom: 40px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-item {
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--light-pink-card-border);
}

.service-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-item h3 {
    color: var(--text-color-dark);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.service-item p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 0;
}

.branches-nav-section {
    padding: clamp(50px, 8vw, 70px) 0;
    background-color: var(--background-light);
    text-align: center;
}

.branches-nav-section h2 {
    color: var(--text-color-dark);
    margin-bottom: 40px;
}

.branches-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.branch-nav-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--light-pink-card-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
}

.branch-nav-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.branch-nav-card h3 {
    color: var(--text-color-dark);
    margin-bottom: 8px;
    font-size: 1.3em;
}

.branch-nav-card p {
    color: var(--primary-pink);
    font-weight: 600;
    margin-bottom: 0;
}

.back-to-main {
    margin-top: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-pink);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: var(--link-hover-pink);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Mobile Responsive for Branch Pages */
@media (max-width: 768px) {
    .branch-hero-section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 120px;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-buttons .cta-button {
        font-size: 0.9em;
        padding: 8px 16px;
    }
    
    .branch-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .branch-main-image {
        height: 250px;
    }
    
    .branch-info-card {
        padding: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-item img {
        height: 120px;
    }
    
    .branches-nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .branch-nav-card img {
        height: 150px;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .action-button {
        padding: 10px 16px;
        font-size: 0.9em;
    }
}