/* =========================================
   CLINIC WEB - V1.0
   MAIN STYLESHEET
========================================= */


/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    line-height: 1.8;

    color: #334155;
    background-color: #ffffff;

    direction: rtl;
    text-align: right;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    font: inherit;
}

[lang="en"] {
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #ccfbf1;

    --accent: #14b8a6;

    --text-dark: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;

    --white: #ffffff;

    --background: #ffffff;
    --background-soft: #f8fafc;
    --background-medical: #f0fdfa;

    --border: #e2e8f0;

    --shadow-small:
        0 4px 18px rgba(15, 23, 42, 0.06);

    --shadow-medium:
        0 15px 40px rgba(15, 23, 42, 0.10);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 28px;

    --transition: 0.3s ease;

    --container: 1180px;
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom:
        1px solid rgba(226, 232, 240, 0.85);
}

.navbar {
    min-height: 78px;

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

    gap: 30px;
}


/* =========================================
   LOGO
========================================= */

.logo {
    font-size: 1.65rem;
    font-weight: 800;

    letter-spacing: 0.5px;

    color: var(--primary);

    direction: ltr;
}


/* =========================================
   NAVIGATION
========================================= */

.nav-list {
    display: flex;
    align-items: center;

    gap: 28px;
}

.nav-list a {
    position: relative;

    padding: 8px 0;

    font-size: 0.95rem;
    font-weight: 650;

    color: var(--text-main);

    transition:
        color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
}

.nav-list a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 20px;

    background-color: var(--primary);

    transition:
        width var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}


/* =========================================
   MOBILE MENU
========================================= */

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    color: var(--text-dark);

    font-size: 1.8rem;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: calc(100vh - 78px);

    display: flex;
    align-items: center;

    padding: 95px 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(20, 184, 166, 0.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fffe 48%,
            #ecfdf5 100%
        );
}

.hero-content {
    display: grid;

    grid-template-columns:
        1.35fr 0.65fr;

    align-items: center;

    gap: 70px;
}

.hero-text {
    max-width: 780px;
}

.hero-label {
    display: inline-block;

    margin-bottom: 18px;

    padding: 7px 14px;

    border-radius: 999px;

    background-color: var(--primary-light);

    color: var(--primary-dark);

    font-size: 0.85rem;
    font-weight: 700;
}

.hero-text h1 {
    margin-bottom: 16px;

    font-size:
        clamp(2.6rem, 5vw, 4.7rem);

    line-height: 1.18;

    color: var(--text-dark);
}

.hero-text h2 {
    margin-bottom: 22px;

    font-size:
        clamp(1.35rem, 2.6vw, 2rem);

    line-height: 1.55;

    color: var(--primary);
}

.hero-text p:not(.hero-label) {
    max-width: 720px;

    margin-bottom: 14px;

    color: var(--text-main);

    font-size: 1.06rem;
}

.hero-text [lang="en"] {
    text-align: left;

    color: var(--text-muted);
}


/* =========================================
   BUTTONS
========================================= */

.hero-actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    border-radius: var(--radius-small);

    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}

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

.btn-primary {
    color: var(--white);
    background-color: var(--primary);

    box-shadow:
        0 10px 22px rgba(15, 118, 110, 0.20);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    color: var(--primary);

    background-color: rgba(255, 255, 255, 0.7);

    border:
        1px solid rgba(15, 118, 110, 0.35);
}

.btn-secondary:hover {
    background-color: var(--primary-light);

    border-color: var(--primary);
}


/* =========================================
   EXPERIENCE CARD
========================================= */

.experience-card {
    min-height: 290px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 42px;

    text-align: center;

    border-radius: var(--radius-large);

    color: var(--white);

    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 25px 55px rgba(15, 118, 110, 0.24);
}

.experience-number {
    display: block;

    font-size: clamp(4rem, 8vw, 6.5rem);

    font-weight: 850;

    line-height: 1;
}

.experience-text {
    margin-top: 16px;

    font-size: 1.05rem;
    font-weight: 650;

    line-height: 1.8;
}


/* =========================================
   SECTIONS
========================================= */

.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--background-soft);
}

.section-heading {
    max-width: 760px;

    margin-bottom: 48px;
}

.section-label {
    margin-bottom: 8px;

    color: var(--primary);

    font-size: 0.86rem;
    font-weight: 800;

    letter-spacing: 0.4px;
}

.section-heading h2 {
    color: var(--text-dark);

    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height: 1.35;
}


/* =========================================
   ABOUT
========================================= */

.about-content {
    display: grid;

    grid-template-columns:
        1.45fr 0.55fr;

    align-items: center;

    gap: 55px;
}

.about-text {
    color: var(--text-main);

    font-size: 1.05rem;
}

.about-text [lang="en"] {
    text-align: left;

    color: var(--text-muted);
}


/* =========================================
   CARDS
========================================= */

.cards-grid,
.clinic-grid,
.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.info-card,
.clinic-card,
.contact-card {
    position: relative;

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-medium);

    background-color:
        var(--white);

    box-shadow:
        var(--shadow-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.info-card::before,
.clinic-card::before,
.contact-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 24px;

    width: 52px;
    height: 4px;

    border-radius:
        0 0 10px 10px;

    background-color:
        var(--primary);
}

.info-card:hover,
.clinic-card:hover,
.contact-card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(15, 118, 110, 0.35);

    box-shadow:
        var(--shadow-medium);
}

.info-card h3,
.clinic-card h3,
.contact-card h3 {
    margin-bottom: 12px;

    color: var(--text-dark);

    font-size: 1.2rem;
}

.info-card p,
.clinic-card p,
.contact-card p {
    margin-top: 5px;

    color: var(--text-muted);
}

.info-card [lang="en"],
.clinic-card [lang="en"],
.contact-card [lang="en"] {
    text-align: left;
}


/* =========================================
   CONTACT LINKS
========================================= */

.contact-card a {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 1.05rem;
    font-weight: 750;

    transition:
        color var(--transition);
}

.contact-card a:hover {
    color: var(--primary-dark);
}


/* =========================================
   MAP / LOCATION
========================================= */

.map-container {
    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 30px;

    text-align: center;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-large);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #ecfdf5
        );

    box-shadow:
        var(--shadow-small);
}

.map-container > div {
    max-width: 600px;
}

.map-container h3 {
    margin-bottom: 10px;

    color: var(--text-dark);

    font-size: 1.55rem;
}

.map-container p {
    margin-top: 4px;

    color: var(--text-muted);
}

.map-container iframe {
    width: 100%;
    height: 450px;

    border: 0;
}


/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
    background:
        linear-gradient(
            135deg,
            #f0fdfa,
            #ffffff
        );
}


/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 34px 0;

    background-color: #0f172a;

    color: #cbd5e1;
}

.footer-content {
    text-align: center;

    font-size: 0.92rem;
}


/* =========================================
   ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
    outline:
        3px solid var(--accent);

    outline-offset:
        4px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .experience-card {
        width: min(100%, 480px);

        justify-self: center;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-content .experience-card {
        justify-self: stretch;

        width: 100%;
    }

    .cards-grid,
    .clinic-grid,
    .contact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================
   MOBILE NAVIGATION
========================================= */

@media (max-width: 768px) {

    .navbar {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;

        top: 72px;
        right: 0;

        width: 100%;

        max-height: 0;

        overflow: hidden;

        background-color:
            rgba(255, 255, 255, 0.98);

        border-bottom:
            1px solid var(--border);

        box-shadow:
            0 12px 20px rgba(15, 23, 42, 0.05);

        transition:
            max-height 0.35s ease;
    }

    .nav.active {
        max-height: 520px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 16px 5% 22px;
    }

    .nav-list a {
        display: block;

        padding: 13px 4px;

        border-bottom:
            1px solid var(--border);
    }

    .nav-list a::after {
        display: none;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .container {
        width: 91%;
    }

    .hero {
        padding: 65px 0;
    }

    .hero-text h1 {
        font-size: 2.45rem;
    }

    .hero-text h2 {
        font-size: 1.35rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .experience-card {
        min-height: 235px;

        padding: 30px;
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .cards-grid,
    .clinic-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-card,
    .clinic-card,
    .contact-card {
        padding: 25px;
    }

    .map-container {
        min-height: 330px;

        padding: 35px 22px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .logo {
        font-size: 1.4rem;
    }

    .hero-text h1 {
        font-size: 2.05rem;
    }

    .hero-label {
        font-size: 0.76rem;
    }

    .experience-number {
        font-size: 4rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

}