/* === Font Face Local === */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #FFFFFF;
    color: #1d1d1f;
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

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

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

ul {
    list-style: none;
}

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

/* === Typography === */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

.section {
    padding: 6rem 0;
}

.section--light {
    background-color: #f5f5f7;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.section__sub {
    text-align: center;
    font-size: 1.1rem;
    color: #86868b;
    margin-bottom: 3rem;
}

.section__cta {
    text-align: center;
    margin-top: 3rem;
}

/* === Buttons (Apple style) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background-color: #0071E3;
    color: #fff;
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.25);
}
.btn--primary:hover {
    background-color: #0060c0;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.35);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: #0071E3;
    border: 1.5px solid #0071E3;
    padding: 0.8rem 2rem;
}
.btn--outline:hover {
    background: #0071E3;
    color: #fff;
}

.btn--sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}
.btn--lg {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}
.logo__sub {
    font-size: 0.7rem;
    color: #86868b;
    font-weight: 400;
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-size: 0.9rem;
    color: #1d1d1f;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav__link:hover,
.nav__link.active {
    color: #0071E3;
}
.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0071E3;
    border-radius: 2px;
}

.header__cta {
    margin-right: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    justify-content: center;
}
.mobile-toggle span {
    display: block;
    height: 2px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }
    .nav.active {
        transform: translateX(0);
    }
    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .mobile-toggle {
        display: flex;
        z-index: 101;
    }
    .header__cta {
        margin-right: auto;
        margin-left: 1rem;
    }
}

/* === Hero Section === */
.hero {
    padding: 4rem 0 6rem;
    background: #fff;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero__desc {
    font-size: 1.1rem;
    color: #86868b;
    max-width: 460px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__img {
    border-radius: 2.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    width: 100%;
    height: auto;
}

.hero__badge {
    position: absolute;
    bottom: 2rem;
    left: -1rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    color: #1d1d1f;
}

@media (max-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__desc {
        margin: 0 auto;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__media {
        order: -1;
    }
    .hero__badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -1rem;
    }
}

/* === Trust Strip === */
.trust-strip {
    background: #f5f5f7;
    padding: 3rem 0;
}

.trust-strip__grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}
.trust-item__num {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0071E3;
}
.trust-item__label {
    font-size: 0.9rem;
    color: #86868b;
    margin-top: 0.3rem;
}

/* === Benefits === */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: center;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.benefit-card__icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.benefit-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}
.benefit-card__desc {
    color: #86868b;
    line-height: 1.8;
}

/* === Services Preview Cards === */
.services-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    display: block;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.service-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.service-card__body {
    padding: 1.5rem;
    text-align: center;
}
.service-card__body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.service-card__body p {
    color: #86868b;
    font-size: 0.9rem;
}

/* === Doctors === */
.doctors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doctor-card {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}
.doctor-card:hover {
    transform: translateY(-4px);
}
.doctor-card__img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.doctor-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.doctor-card p {
    color: #0071E3;
    font-weight: 500;
}

/* === Gallery (Before/After) === */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.gallery-card {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.gallery-card:hover {
    transform: scale(1.02);
}
@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: 1fr;
    }
}

/* === Testimonials === */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.testimonial-card__text {
    font-style: italic;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}
.testimonial-card__author strong {
    display: block;
    font-weight: 600;
}
.testimonial-card__author span {
    color: #86868b;
    font-size: 0.9rem;
}

/* === CTA Section === */
.cta-section {
    text-align: center;
}
.cta-section__inner {
    background: linear-gradient(135deg, #f9f9fb 0%, #fff 100%);
    border-radius: 3rem;
    padding: 4rem 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}
.cta-section__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.cta-section__desc {
    color: #86868b;
    margin-bottom: 2rem;
}

/* === FAQ === */
.faq__list {
    max-width: 800px;
    margin: 3rem auto 0;
}
.faq-item {
    border-bottom: 1px solid #e5e5ea;
    padding: 1.2rem 0;
}
.faq-item__q {
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__q::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}
.faq-item.active .faq-item__q::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.active .faq-item__a {
    max-height: 200px;
    padding-top: 0.8rem;
}

/* === About Page === */
.page-hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: #f5f5f7;
}
.page-hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: #1d1d1f;
}
.page-hero__sub {
    color: #86868b;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.about-story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-story__text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.about-story__img img {
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .about-story__grid {
        grid-template-columns: 1fr;
    }
}

.about-mission__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.about-mission__grid > div {
    background: #fff;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.timeline {
    max-width: 600px;
    margin: 3rem auto 0;
    position: relative;
    padding-right: 2rem;
    border-right: 2px solid #0071E3;
}
.timeline__item {
    margin-bottom: 2.5rem;
    position: relative;
}
.timeline__item::before {
    content: '';
    position: absolute;
    right: -2.45rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background: #0071E3;
    border-radius: 50%;
}
.timeline__year {
    font-weight: 700;
    color: #0071E3;
    font-size: 1.2rem;
}

/* === Services Page === */
.services__list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.service-detail-card img {
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}
.service-detail-card > div {
    padding: 2rem;
}
.service-detail-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.service-detail-card p {
    color: #86868b;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .service-detail-card {
        grid-template-columns: 1fr;
    }
    .service-detail-card img {
        min-height: 220px;
    }
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.step-card {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}
.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #0071E3;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}
.step-card h3 {
    margin-bottom: 0.5rem;
}

/* === Blog Page === */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: none;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    padding: 0.5rem 1.5rem;
    border-radius: 980px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
    background: #0071E3;
    border-color: #0071E3;
    color: #fff;
}

.blog__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.blog-card {
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
}
.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-card__body {
    padding: 1.5rem;
}
.blog-card__cat {
    color: #0071E3;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}
.blog-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}
.blog-card p {
    color: #86868b;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.blog-card__link {
    font-weight: 600;
    color: #0071E3;
    transition: opacity 0.2s;
}
.blog-card__link:hover {
    opacity: 0.7;
}

/* === Contact Page === */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact__form-wrapper h2,
.contact__info h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1d1d1f;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #d2d2d7;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071E3;
    box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}
.contact__info-item {
    margin-bottom: 1.5rem;
}
.contact__info-item strong {
    display: block;
    margin-bottom: 0.3rem;
}
.map__embed {
    margin-top: 2rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* === Footer === */
.footer {
    background: #f5f5f7;
    padding: 4rem 0 2rem;
    color: #86868b;
    font-size: 0.95rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer__brand p {
    margin-top: 0.5rem;
}
.footer h4 {
    color: #1d1d1f;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer ul li {
    margin-bottom: 0.6rem;
}
.footer ul li a {
    transition: color 0.2s;
}
.footer ul li a:hover {
    color: #0071E3;
}
.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer__social a {
    color: #1d1d1f;
    transition: color 0.2s;
}
.footer__social a:hover {
    color: #0071E3;
}
.footer__bottom {
    border-top: 1px solid #e5e5ea;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}
.footer__bottom a {
    color: #0071E3;
    font-weight: 500;
}

/* === Animations (Reveal) === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up {
    transform: translateY(40px);
}
.fade-in {
    opacity: 0;
    transform: none;
}
.fade-in.visible {
    opacity: 1;
}

/* Glass Effect */
.glass {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}