/*
Theme Name: Safa Polyclinic
Theme URI: https://safaapolyclinic.ae/
Author: Safa Polyclinic
Description: Custom bilingual one-page clinic theme for Safa Polyclinic.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: safa-polyclinic
*/

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #17324d;
    background: #fff;
    line-height: 1.7;
}

body.rtl {
    direction: rtl;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* =========================
   GENERAL
========================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #17324d;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 26px;
    font-weight: 800;
    color: #008f95;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 12px;
    color: #17324d;
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: #17324d;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #008f95;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-btn,
.appointment-btn {
    border: none;
    cursor: pointer;
    padding: 10px 17px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.language-btn {
    background: transparent;
    color: #008f95;
    border: 1px solid #008f95;
}

.language-btn:hover {
    background: #008f95;
    color: #fff;
}

.appointment-btn {
    background: #008f95;
    color: #fff;
}

.appointment-btn:hover {
    background: #17324d;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #17324d;
    cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
    height: 650px;
    background-image:
        linear-gradient(
            rgba(23, 50, 77, 0.65),
            rgba(23, 50, 77, 0.65)
        ),
        url("images/home.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    max-width: 650px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: #008f95;
    color: #fff;
    padding: 13px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #fff;
    color: #008f95;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 12px 25px;
    border: 1px solid #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #fff;
    color: #17324d;
}

/* =========================
   ABOUT
========================= */

.about {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

.about-content h3 {
    font-size: 32px;
    color: #17324d;
    margin-bottom: 20px;
}

.about-content p {
    color: #666;
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #17324d;
}

.about-features i {
    color: #008f95;
    font-size: 20px;
}

/* =========================
   SERVICES
========================= */

.services {
    background: #f7fafb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 30px 22px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-7px);
}

.service-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(0, 143, 149, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008f95;
    font-size: 28px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #17324d;
}

.service-card p {
    color: #666;
    font-size: 14px;
}

/* =========================
   DOCTORS
========================= */

.doctors {
    background: #fff;
    overflow: hidden;
}

.doctors-slider {
    width: 100%;
    overflow: hidden;
}

.doctors-track {
    display: flex;
    width: max-content;
    animation: doctorScroll 35s linear infinite;
    direction: ltr;
}

.doctor-card {
    width: 250px;
    margin: 0 12px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.doctor-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.doctor-info {
    padding: 18px;
    text-align: center;
}

.doctor-info h3 {
    color: #17324d;
    font-size: 19px;
    margin-bottom: 5px;
}

.doctor-info p {
    color: #008f95;
    font-size: 14px;
}

@keyframes doctorScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Keep doctors slider working correctly in Arabic */
body.rtl .doctors-slider {
    direction: ltr;
}

body.rtl .doctors-track {
    direction: ltr;
}

/* =========================
   CTA
========================= */

.cta {
    background: #17324d;
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.cta p {
    margin-bottom: 25px;
    color: #e5e5e5;
}

/* =========================
   CONTACT
========================= */

.contact {
    background: #f7fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 30px;
    margin-bottom: 25px;
    color: #17324d;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: #008f95;
    font-size: 22px;
    margin-top: 4px;
}

.contact-item h4 {
    color: #17324d;
    margin-bottom: 3px;
}

.contact-item p {
    color: #666;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: #10263a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #c8d1d8;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #c8d1d8;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #008f95;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #c8d1d8;
    font-size: 14px;
}

/* =========================
   RTL
========================= */

body.rtl .hero-content {
    text-align: right;
}

body.rtl .about-features li {
    flex-direction: row;
}

body.rtl .contact-item {
    flex-direction: row;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .nav-menu {
        gap: 18px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {

    .header-inner {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 5%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .header-actions {
        margin-left: auto;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 600px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {

    section {
        padding: 60px 0;
    }

    .logo-main {
        font-size: 22px;
    }

    .logo-sub {
        font-size: 10px;
    }

    .appointment-btn {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .doctor-card {
        width: 220px;
    }

    .doctor-card img {
        height: 250px;
    }
}