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

:root {
    --primary-blue: #07A8F3;
    --primary-green: #00A86B;
    --dark-text: #1F2933;
    --light-gray: #F5F7FA;
    --border-gray: #D4D9E2;
    --white: #FFFFFF;
}

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

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    left: 0;
    height: 2px;
    background-color: var(--primary-blue);
}

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

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

.btn-primary:hover {
    background-color: #0590d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 168, 243, 0.3);
}

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

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

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

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

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-features {
    list-style: none;
    margin-bottom: 2rem;
}

.hero-features li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
}

.hero-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

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

/* Strengths Section */
.strengths {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.strengths h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
}

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

.strength-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.strength-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.strength-icon svg {
    width: 40px;
    height: 40px;
}

.strength-card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.strength-card p {
    color: var(--dark-text);
    opacity: 0.8;
}

/* Products Teaser Section */
.products-teaser {
    padding: 4rem 0;
}

.products-teaser h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
}

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

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-content p {
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-features li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--dark-text);
    opacity: 0.9;
}

.product-features li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Why Us Section */
.why-us {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.why-us h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
}

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

.feature-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-item h3 {
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--dark-text);
    opacity: 0.8;
}

/* About Teaser Section */
.about-teaser {
    padding: 4rem 0;
    text-align: center;
}

.about-teaser h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.about-teaser p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--dark-text);
    opacity: 0.9;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

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

.contact > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--dark-text);
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    padding: 0.75rem 0;
    color: var(--dark-text);
    border-bottom: 1px solid var(--border-gray);
}

.contact-info li:last-child {
    border-bottom: none;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 20px;
}

.success-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-legal {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
    color: var(--dark-text);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Page Sections (About & Products) */
.main-content {
    padding: 3rem 0;
}

.page-section {
    margin-bottom: 3rem;
}

.page-section h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

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

.page-section p {
    color: var(--dark-text);
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.mission-vision-item {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
}

.mission-vision-item h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    margin-top: 0;
}

.story-image {
    margin-top: 2rem;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Products Page */
.product-section {
    margin-bottom: 4rem;
}

.product-section h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--dark-text);
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.product-model {
    margin-bottom: 4rem;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
}

.product-model-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.product-model-image {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-model-image img {
    width: 100%;
    height: auto;
}

.product-model-text h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    margin-top: 0;
}

.product-specs {
    list-style: none;
    margin: 1.5rem 0;
}

.product-specs li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--dark-text);
}

.product-specs li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.suitable-for {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-gray);
}

.suitable-for h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.suitable-for ul {
    list-style: none;
}

.suitable-for li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--dark-text);
}

.suitable-for li::before {
    content: '→';
    position: absolute;
    right: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.cpap-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cpap-features,
.cpap-suitable {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
}

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

.cpap-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-section {
    margin-top: 4rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-box p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.cta-box .btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

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

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        display: none;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-gray);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

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

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

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

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .product-model-content {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .strengths h2,
    .products-teaser h2,
    .why-us h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

