/* a11y/layout safety (low specificity) */
img,video{height:auto}
/* Root Variables - Color Palette */
:root {
    --primary-color: #003366;
    /* Navy Blue */
    --secondary-color: #00CED1;
    /* Dark Turquoise/Cyan - tweaked for contrast */
    --accent-color: #FF8C00;
    /* Dark Orange */
    --background-light: #E0F7FA;
    /* Very Light Blue */
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Typography & Localization */
body.en-theme {
    font-family: var(--font-en);
    direction: ltr;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    /* Adjusted for good visibility */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.header-socials {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 15px;
    /* Add spacing between socials and lang button */
}

.header-socials a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.header-socials a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .header-socials {
        display: flex;
        gap: 8px;
        /* Compact spacing */
        margin-right: 5px;
    }

    .header-socials a {
        font-size: 0.9rem;
        /* Smaller icons for mobile */
    }
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    /* Reset or specific styles if needed */
    display: block;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.hero-quote {
    font-size: 1.4rem !important;
    font-weight: 600;
    color: var(--secondary-color) !important;
    font-style: italic;
    margin-bottom: 2.5rem !important;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--white);
    background: var(--secondary-color);
    /* Temporary colorful background */
}

/* Services */
.services {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

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

.card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About */
.about {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-img-real {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Contact */
.contact {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-card h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.map-embed {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-map {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-map:hover {
    background-color: #008b8b;
    /* Darker teal */
}

.social-links-centered {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links-centered a {
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-links-centered a:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #002244;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: white;
    padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu to be implemented via JS logic if needed, simplify for now */
        position: absolute;
        top: 70px;
        left: 0;
        right: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-image,
    .about-image {
        order: -1;
    }

    .hero-text {
        text-align: center;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.ar-theme .whatsapp-float {
    right: auto;
    left: 40px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form {
        grid-column: 1 / -1;
        max-width: 800px;
        margin: 0 auto 3rem;
    }
}


/* Google Reviews Badge */
.google-reviews-badge {
    text-align: center;
    margin: 0 auto 2rem;
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: table;
    /* Or fit-content to shrink wrap */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    /* Removed absolute positioning centering to avoid overflow */
}

.google-reviews-badge:hover {
    transform: translateY(-5px);
    /* Removed translateX from hover as well */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.g-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.2rem;
}

.g-svg-icon {
    width: 32px;
    height: 32px;
}

.g-brand-name {
    font-family: 'Product Sans', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #444;
    /* Dark Grey */
}

.g-blue {
    color: #4285F4;
}

.g-red {
    color: #EA4335;
}

.g-yellow {
    color: #FBBC05;
}

.g-green {
    color: #34A853;
}

.g-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.2rem;
}

.g-score {
    font-weight: bold;
    color: var(--text-dark);
}

.g-stars {
    color: #FBBC05;
}

.g-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: underline;
}

/* Reels Section */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.reel-container {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.reel-container:hover {
    transform: scale(1.02);
}

.reel-container video {
    height: 100%;
    object-fit: cover;
}

/* Article Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    /* Left for Arabic RTL */
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--secondary-color);
}

/* Modal Typography */
.modal-body-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.modal-body-content h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.modal-body-content ul {
    list-style-type: disc;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Card Interactability */
.card {
    cursor: pointer;
}

.read-more-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-family: inherit;
}

.read-more-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Insurance Partners */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Adjusted width */
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-logo {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 100px;
    font-size: 0.95rem;
    /* Slightly smaller font for longer names */
    line-height: 1.4;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
    background: #fdfdfd;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
        /* Increase padding for fixed header */
        text-align: center;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-image {
        order: 1;
        /* Ensure Image is on Top for better visual hierarchy */
        width: 100%;
        justify-content: center;
    }

    .hero-image img {
        max-width: 300px;
        /* Make image bigger (was probably constrained by grid) */
        width: 80%;
        height: auto;
    }

    .hero-content {
        order: 2;
        padding: 0 1rem;
        /* Add side padding to prevent text touching edges */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-quote {
        margin-bottom: 1.5rem !important;
    }
}

/* ─── Branch Badge (service card) ─── */
.branch-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 6px 0 8px;
}

.branch-badge i {
    font-size: 0.75rem;
    color: #e6a817;
}

/* ─── Modal Branch Notice ─── */
.modal-branch-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff8e1;
    border-right: 4px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #6d4c0f;
    font-weight: 500;
}

.modal-branch-notice i {
    color: #f0a500;
    font-size: 1rem;
    flex-shrink: 0;
}
/* ===== Phase 0: footer brand + sticky booking CTA + prices page ===== */
.footer-brand{font-size:.95rem;opacity:.92;margin-bottom:.35rem;color:var(--text-dark)}
.nc-cta{position:fixed;right:0;left:0;bottom:0;z-index:9990;display:none;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -6px 20px rgba(0,0,0,.14)}
.nc-cta-btn{width:100%;border:0;border-radius:50px;padding:14px 18px;font:inherit;font-size:1.05rem;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}
.nc-cta-btn .fab{font-size:1.25em}
.nc-sheet{position:fixed;inset:0;z-index:9991;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center}
.nc-sheet[hidden]{display:none}
.nc-sheet-panel{background:#fff;width:100%;max-width:560px;max-height:85vh;overflow-y:auto;border-radius:20px 20px 0 0;padding:18px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,.25)}
.nc-sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.nc-sheet-head strong{color:var(--primary-color);font-size:1.1rem}
.nc-sheet-x{border:0;background:var(--background-light);width:34px;height:34px;border-radius:50%;font-size:1rem;cursor:pointer;color:var(--text-light)}
.nc-sheet-note{color:var(--text-light);font-size:.92rem;margin:0 0 12px}
.nc-sheet-branch{border:1.5px solid #e4eef0;border-radius:14px;padding:12px;margin-bottom:10px}
.nc-sheet-branch p{margin:0 0 8px;font-weight:700;color:var(--primary-color)}
.nc-sheet-a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:50px;font-weight:700;text-decoration:none;margin-left:8px;font-size:.98rem}
.nc-sheet-a.wa{background:#25d366;color:#fff}
.nc-sheet-a.call{background:var(--background-light);color:var(--primary-color)}
.nc-sheet-all{display:block;text-align:center;margin-top:10px;color:var(--primary-color);font-weight:700}
@media (max-width: 768px){
    .nc-cta{display:block}
    body.nc-cta-on .whatsapp-float{display:none!important}
    body.nc-cta-on{padding-bottom:78px}
}
/* prices & hours page */
.pr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.4rem;margin:1.4rem 0}
.pr-card{background:#fff;border:1.5px solid #e4eef0;border-radius:16px;padding:1.4rem}
.pr-card h2{color:var(--primary-color);margin:0 0 .2rem;font-size:1.3rem}
.pr-card .pr-sub{color:var(--text-light);font-size:.95rem;margin:0 0 1rem}
.pr-row{display:flex;justify-content:space-between;gap:12px;padding:.65rem 0;border-bottom:1px dashed #e4eef0;font-size:1rem}
.pr-row:last-of-type{border-bottom:0}
.pr-row b{color:var(--primary-color);white-space:nowrap}
.pr-row span{color:var(--text-light);text-align:left}
.pr-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:1rem}
.pr-actions a{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:50px;font-weight:700;text-decoration:none;font-size:.98rem}
.pr-actions .wa{background:#25d366;color:#fff}
.pr-actions .call,.pr-actions .map{background:var(--background-light);color:var(--primary-color)}
@media (max-width: 768px){.pr-row{flex-direction:column;gap:2px}.pr-row span{text-align:right}}

/* accessibility additions */
.skip-link{position:absolute;top:-60px;inset-inline-start:8px;background:#fff;color:#000;padding:10px 16px;border-radius:6px;z-index:10000;font-weight:600;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.skip-link:focus{top:8px}
button.hamburger{background:none;border:0;padding:4px 6px;font-family:inherit}
button.close-modal{background:none;border:0;padding:0;font-family:inherit;cursor:pointer}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #1a73e8;outline-offset:2px}
.form-control:focus{outline:2px solid #1a73e8;outline-offset:2px}
[hidden]{display:none!important}
.g-count{font-size:.9em;opacity:.8}
.g-review-cta{text-align:center;margin-top:24px}

.footer-policy{text-align:center;margin:12px 0 0;font-size:.9rem}.footer-policy a{color:inherit;text-decoration:underline}
.review-badge{font-size:.9rem;opacity:.85;margin:8px 0 16px}

.reel-container video{width:100%;height:100%;object-fit:cover}
