/* Root Variables */
:root {
    --primary-color: #4F6B7A;
    --secondary-color: #8BB8A8;
    --accent-color: #F5F2E8;
    --text-dark: #2D3748;
    --text-light: #718096;
    --background-light: #FAFAFA;
    --white: #FFFFFF;
    --gradient-bg: linear-gradient(135deg, #F5F2E8 0%, #E2E8F0 50%, #CBD5E0 100%);
    --shadow-light: 0 2px 8px rgba(79, 107, 122, 0.1);
    --shadow-medium: 0 4px 16px rgba(79, 107, 122, 0.15);
    --border-radius: 12px;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.centered-content {
    text-align: center;
}

.centered-content h2 {
    text-align: center;
}

.centered-content > p {
    text-align: center;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--gradient-bg);
    padding: var(--spacing-lg) 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-xl);
    align-items: center;
    min-height: 500px;
}

.hero-content h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 2.75rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    max-width: 500px;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-image {
    justify-self: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    padding: var(--spacing-sm);
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.about p {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--accent-color);
    border-radius: var(--border-radius);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.step {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.step h3 {
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.service {
    text-align: center;
}

.service-image {
    margin-bottom: var(--spacing-sm);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.service h3 {
    color: var(--primary-color);
}

/* Products Section */
.products {
    padding: var(--spacing-xl) 0;
    background: var(--background-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.product {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.product.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: var(--spacing-sm) 0;
}

.product-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

.product-button:hover {
    background: #3A5158;
}

/* Benefits Section */
.benefits {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.benefits-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.benefits-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.benefit {
    margin-bottom: var(--spacing-md);
}

.benefit h3 {
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.testimonial p {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.contact-form {
    background: var(--accent-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    align-items: start;
}

.footer-brand .brand-name {
    color: var(--white);
}

.footer-brand p {
    color: #CBD5E0;
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-contact p {
    color: #CBD5E0;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid #4A5568;
    padding-top: var(--spacing-sm);
    text-align: center;
}

.footer-bottom p {
    color: #CBD5E0;
    margin: 0;
}

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

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: var(--spacing-sm);
    top: var(--spacing-sm);
}

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

.form-group {
    margin-bottom: var(--spacing-sm);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(139, 184, 168, 0.1);
}

.submit-button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background: #7AA899;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
    }

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

    h2 {
        font-size: 1.75rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin-top: var(--spacing-md);
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

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

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

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

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: var(--spacing-sm);
    }
    
    .hero-img,
    .benefits-img {
        height: 250px;
    }
    
    .service-img {
        height: 180px;
    }
}