/* ============================================================
   style.css  (separate CSS file)
   ROSHAA Hair Clinic – White & Green Theme
   ============================================================ */

/* ----- variables ----- */
:root {
    --primary: #1e7b4c;
    --primary-light: #e5f2eb;
    --primary-glow: rgba(30, 123, 76, 0.12);
    --bg-white: #fcfcfc;
    --text-dark: #1f2a24;
    --text-muted: #3f4c45;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(30, 123, 76, 0.12);
    --radius: 24px;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    --transition: 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

/* ----- reset & base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

/* ----- scrollbar ----- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e9edea;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

/* ----- container ----- */
.container {
    width: min(1200px, 92%);
    margin: auto;
}

/* ----- background gradient (white + green touches) ----- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 15% 20%, rgba(30, 123, 76, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(30, 123, 76, 0.03) 0%, transparent 50%),
        #fcfcfc;
}
.noise {
    display: none;
}
/* soft green floating glow */
body::before {
    content: "";
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(30, 123, 76, 0.05), transparent 70%);
    top: -200px;
    left: -200px;
    filter: blur(40px);
    z-index: -1;
    animation: floatGlow 18s infinite alternate;
}
@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 60px) scale(1.2);
    }
}

/* ----- loader ----- */
#loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: 0.8s;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid rgba(30, 123, 76, 0.1);
    border-top: 4px solid var(--primary);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ----- typography ----- */
h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
}
h2 {
    font-size: 40px;
    font-weight: 700;
}
h3 {
    font-size: 24px;
    font-weight: 700;
}
p {
    color: var(--text-muted);
    font-size: 17px;
}

/* ----- buttons (green / white) ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.btn-gold {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(30, 123, 76, 0.2);
}
.btn-gold:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 123, 76, 0.3);
    background: #166a3f;
}
.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ----- navbar (glass white) ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 999;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 123, 76, 0.06);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 60px;
    transition: 0.3s;
}
.logo img:hover {
    transform: scale(1.04);
}
.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
    color: var(--text-dark);
}
.nav-menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    transition: 0.3s;
}
.nav-menu a:hover {
    color: var(--primary);
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a.active {
    color: var(--primary);
}
.nav-menu a.active::after {
    width: 100%;
}
.menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ----- hero ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.subtitle {
    display: inline-block;
    padding: 8px 22px;
    background: var(--primary-light);
    border-radius: 40px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.hero h1 span {
    color: var(--primary);
}
.hero p {
    margin: 24px 0 32px;
    max-width: 520px;
    font-size: 18px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    width: 380px;
    position: relative;
    z-index: 3;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(30, 123, 76, 0.08));
}
.hero-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(30, 123, 76, 0.12), transparent 70%);
    filter: blur(30px);
    animation: pulseGlow 6s infinite;
}
@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}
@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.hero-stats > div {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 123, 76, 0.08);
    border-radius: 20px;
    padding: 18px 28px;
    min-width: 120px;
    backdrop-filter: blur(4px);
}
.hero-stats h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 2px;
}
.hero-stats p {
    font-size: 14px;
    color: var(--text-muted);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--primary);
    animation: bounceDown 2.4s infinite;
}
@keyframes bounceDown {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ----- sections ----- */
section {
    padding: 100px 0;
    position: relative;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: 40px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.section-title h2 {
    font-size: 42px;
    font-weight: 800;
    margin-top: 10px;
}

/* ----- glass card ----- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 123, 76, 0.1);
    border-radius: var(--radius);
    padding: 40px 30px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(30, 123, 76, 0.08);
}
.glass-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}
.glass-card h3 {
    margin-bottom: 12px;
}
.glass-card p {
    font-size: 16px;
}

/* ----- about ----- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.about-grid .glass-card {
    text-align: center;
}

/* ----- services ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.service-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 123, 76, 0.08);
    border-radius: var(--radius);
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(30, 123, 76, 0.08);
}
.service-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}
.service-card h3 {
    margin-bottom: 12px;
}
.service-card p {
    font-size: 15px;
}

/* ----- gallery ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(30, 123, 76, 0.08);
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 123, 76, 0.06);
}
.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.5s;
}
.gallery-item:hover img {
    transform: scale(1.04);
}
.gallery-item::after {
    content: "مشاهده";
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: 0.3s;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* ----- doctors ----- */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.doctor-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 123, 76, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.doctor-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(30, 123, 76, 0.08);
}
.doctor-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}
.doctor-content {
    padding: 25px;
}
.doctor-content h3 {
    margin-bottom: 4px;
}
.doctor-content span {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}
.doctor-content p {
    margin-top: 12px;
    font-size: 15px;
}

/* ----- testimonial ----- */
.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
}
.testimonial-card {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 123, 76, 0.08);
    border-radius: var(--radius);
    padding: 35px 30px;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
}
.testimonial-card p {
    font-size: 18px;
    margin-bottom: 20px;
}
.testimonial-card h4 {
    color: var(--primary);
    font-weight: 700;
}

/* ----- consult ----- */
.consult-box {
    padding: 70px 50px;
    border-radius: var(--radius);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 123, 76, 0.08);
    box-shadow: var(--shadow);
}
.consult-box h2 {
    margin-bottom: 16px;
}
.consult-box p {
    max-width: 600px;
    margin: auto auto 30px;
}

/* ----- contact ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-grid h3 {
    margin-bottom: 20px;
    font-size: 26px;
}
.contact-grid p {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.contact-grid form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-grid input,
.contact-grid textarea {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 123, 76, 0.12);
    color: var(--text-dark);
    padding: 16px 20px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}
.contact-grid input:focus,
.contact-grid textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 123, 76, 0.06);
}
.contact-grid textarea {
    min-height: 160px;
    resize: vertical;
}

/* ----- footer ----- */
footer {
    margin-top: 80px;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(30, 123, 76, 0.08);
    text-align: center;
}
.footer-logo {
    width: 100px;
    margin: auto auto 20px;
}
footer p {
    margin: 20px 0;
    font-size: 15px;
}
.social {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 123, 76, 0.06);
    transition: var(--transition);
    font-size: 20px;
    color: var(--text-dark);
}
.social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
}

/* ----- back to top ----- */
#toTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(30, 123, 76, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 999;
}
#toTop.show {
    opacity: 1;
    visibility: visible;
}
#toTop:hover {
    transform: translateY(-4px);
}

/* ----- lightbox (gallery) ----- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 99999;
    backdrop-filter: blur(6px);
}
.lightbox.show {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.close-lightbox {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 42px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}
.close-lightbox:hover {
    transform: rotate(90deg);
}

/* ----- scroll progress ----- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--primary);
    z-index: 99999;
    box-shadow: 0 0 20px rgba(30, 123, 76, 0.3);
}

/* ----- mouse glow (desktop only) ----- */
.mouse-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(30, 123, 76, 0.06), transparent 70%);
    filter: blur(35px);
    z-index: 0;
    transition: left 0.08s linear, top 0.08s linear;
}

/* ===== RESPONSIVE ===== */

/* tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image {
        order: -1;
    }
    .hero-image img {
        width: 300px;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .doctor-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 25px;
        transition: 0.4s;
        border-left: 1px solid rgba(30, 123, 76, 0.06);
    }
    .nav-menu.active {
        display: flex;
        right: 0;
    }
    .menu-btn {
        display: block;
    }

    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 30px;
    }
    .section-title h2 {
        font-size: 30px;
    }

    .hero-stats {
        gap: 20px;
    }
    .hero-stats > div {
        padding: 14px 20px;
        min-width: 90px;
    }
    .hero-stats h2 {
        font-size: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 240px;
    }
    .doctor-grid {
        grid-template-columns: 1fr;
    }
    .doctor-card img {
        height: 300px;
    }
    .testimonial-card {
        min-width: 260px;
    }
    .consult-box {
        padding: 40px 20px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    section {
        padding: 60px 0;
    }
    .navbar {
        padding: 12px 0;
    }
    .logo img {
        height: 50px;
    }
}

/* small mobile */
@media (max-width: 480px) {
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-image img {
        width: 220px;
    }
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats > div {
        width: 100%;
        text-align: center;
    }
}