/* style.css - به‌روزرسانی‌شده نهایی */
:root {
    --primary-color: #c5a691;
    --dark-text: #2c3e50;
    --light-text: #666;
    --background-light: #fdfaf7;
    --white: #fff;
    --border-color: #f0f0f0;
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    direction: rtl;
    text-align: right;
    background: var(--background-light);
}

.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    max-height: 50px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

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

.cta-nav-link {
    background: var(--primary-color);
    color: var(--white) !important;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: none !important;
}

.cta-nav-link:hover {
    background: #b19582;
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 100px 5%;
    color: var(--white);
    background: url('assets/images/hero.jpg') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background: #b19582;
    transform: translateY(-3px);
}

.services-teaser, .services, .about, .contact {
    padding: 100px 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.services h1, .services-teaser h2, .about h1, .contact h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.service-icon svg {
    width: 30px;
    height: 30px;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

.full-page {
    min-height: calc(100vh - 140px);
}

.service-detail {
    margin-bottom: 4rem;
    text-align: right;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    overflow: hidden; /* Fix for float issue */
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: center;
}
.service-detail:nth-child(odd) {
    direction: ltr;
    text-align: left;
}
.service-detail:nth-child(odd) img{
    order: 2;
}


.service-detail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.service-detail h2 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

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

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Contact Page Styles */
.contact-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.contact-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.contact-icon { color: var(--primary-color); }
.contact-icon svg { width: 40px; height: 40px; stroke-width: 1.5; }
.contact-text h4 { font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--dark-text); }
.contact-text p { font-size: 1.1rem; color: var(--light-text); direction: ltr; text-align: right; font-weight: 500; }
.location-container { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin: 4rem auto 0; align-items: center; }
.map { border-radius: 10px; overflow: hidden; height: 400px; border: 1px solid var(--border-color); }
.map iframe { width: 100%; height: 100%; border: 0; }
.clinic-photo img { width: 100%; border-radius: 10px; margin-bottom: 1rem; height: 265px; object-fit: cover; }
.clinic-photo h4 { margin-bottom: 0.5rem; }
.clinic-photo p { color: var(--light-text); font-size: 0.9rem; }

/* Portfolio Page Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-section {
    padding: 50px 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.video-section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
}
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.footer {
    background: var(--dark-text);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .service-detail {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--white);
        width: 100%;
        height: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 2.5rem;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .services h1, .services-teaser h2, .about h1, .contact h1 {
        font-size: 2rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        text-align: center !important;
        direction: rtl !important;
    }
    .service-detail img {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
        order: 1 !important;
    }
     .service-detail h2, .service-detail p {
        order: 2 !important;
     }

    .location-container {
        grid-template-columns: 1fr;
    }

    .video-container {
        grid-template-columns: 1fr;
    }

    .full-page {
        padding: 100px 5% 20px;
    }
}

