/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* رنگ‌های اصلی سایت الحاوی */
    --first: rgb(43, 127, 138);        /* آبی-سبز اصلی */
    --second: rgb(37, 206, 108);       /* سبز */
    --third: rgb(17, 75, 95);          /* آبی تیره */
    --fourth: rgb(45, 60, 92);         /* آبی-خاکستری */
    --primary-color: rgb(43, 127, 138);
    --secondary-color: rgb(37, 206, 108);
    --accent-color: rgb(17, 75, 95);
    --text-color: #212936;
    --light-bg: #f8f7fb;
    --white: #ffffff;
    --body-color: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 127, 138, 0.8) 0%, rgba(17, 75, 95, 0.8) 100%);
}

@media (max-width: 768px) {
    .hero-background {
        background-image: url('images/hero-mobile.png');
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Migraine Section */
.migraine-section {
    padding: 5rem 0;
    background: #f8f7fb;
    color: var(--text-color);
    position: relative;
}

.migraine-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/dots-pattern.svg');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}

.migraine-section .container {
    position: relative;
    z-index: 1;
}

.migraine-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.migraine-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.migraine-content .migraine-image {
    flex: 1;
    max-width: 400px;
}

.migraine-content .migraine-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.migraine-content .migraine-text {
    flex: 1;
}

.migraine-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: right;
}

.migraine-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
}

.migraine-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Children Section */
.children-section {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
}

.children-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('images/children-illustration.svg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.3;
    z-index: 0;
}

.children-section .container {
    position: relative;
    z-index: 1;
}

.children-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.children-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.children-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #1e4262;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: #fbfffc;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern.svg');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-image: url('images/lamp.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.2;
    z-index: 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s;
}

.otp-modal {
    max-width: 400px;
}

.close-modal {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-color);
}

.status-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.status-icon.success {
    background-image: url('images/success-icon.svg');
    background-color: transparent;
}

.status-icon.error {
    background-image: url('images/failure-icon.svg');
    background-color: transparent;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

/* OTP Form */
.otp-form {
    margin-top: 1.5rem;
}

.otp-form input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.otp-timer {
    color: var(--text-color);
    margin: 1rem 0;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .migraine-content {
        flex-direction: column;
        text-align: center;
    }

    .migraine-content .migraine-image {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .migraine-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .children-content h2 {
        font-size: 1.8rem;
    }

    .migraine-buttons {
        flex-direction: column;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

