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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e3a8a;
    background-color: #ffffff;
    font-size: 16px;
}

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

/* Color Variables */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #84cc16;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-900: #111827;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

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

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

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

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

.brand-name a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--neutral-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image,
.image-content {
    text-align: center;
}

.hero-img,
.content-img,
.product-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.hero-img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.content-img {
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

/* Centered Sections */
.centered-section {
    text-align: center;
}

.centered-section .container {
    text-align: center;
}

.centered-section .content-split {
    text-align: left;
}

/* Placeholder Images */
.placeholder-image {
    background-color: var(--neutral-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-600);
    font-weight: 500;
    position: relative;
    min-height: 300px;
}

.placeholder-image::before {
    content: attr(data-text);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background-color: var(--neutral-50);
}

.how-it-works h2 {
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-icon {
    margin-bottom: 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Features */
.features {
    padding: 80px 0;
}

.features h2 {
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Content Split Sections */
.dietitian-section,
.meal-planning {
    padding: 80px 0;
}

.dietitian-section {
    background-color: var(--neutral-50);
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.text-content ul {
    margin-top: 2rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
    color: var(--neutral-600);
}

/* Products */
.products {
    padding: 80px 0;
    background-color: var(--neutral-50);
}

.products h2 {
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.product-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-card .placeholder-image {
    height: 200px;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-card p {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
}

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

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonials h2 {
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.testimonial {
    background: var(--neutral-50);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--neutral-700);
}

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

/* Contact */
.contact {
    padding: 80px 0;
    background-color: var(--neutral-50);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

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

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

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    white-space: nowrap;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

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

    .hero {
        padding: 60px 0;
    }

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

    .how-it-works,
    .features,
    .dietitian-section,
    .meal-planning,
    .products,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    .step,
    .product-card {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}