/* Base Styles */
:root {
    --primary-color: #2d8659;
    --primary-hover: #1d6a44;
    --secondary-color: #f1c40f;
    --text-color: #333;
    --text-light: #666;
    --background-light: #ffffff;
    --background-alt: #f9f9f9;
    --border-color: #e8e8e8;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
}

.alt-bg {
    background-color: var(--background-alt);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 1rem;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo-container span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--background-light);
    position: relative;
    padding: 4rem 0 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    max-width: 550px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: perspective(800px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(800px) rotateY(0);
}

.wave-divider {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-divider.inverted svg {
    transform: rotate(180deg);
}

/* Ingredient of the Day */
.ingredient-day {
    padding: 4rem 0 0;
    position: relative;
}

.ingredient-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.ingredient-image {
    flex: 1;
    min-width: 40%;
}

.ingredient-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.ingredient-info {
    flex: 1.5;
    padding: 2rem;
}

.ingredient-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.benefits-list {
    margin-bottom: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.icon {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Meal Time Sections */
.meal-time {
    padding: 4rem 0 0;
    position: relative;
}

.recipe-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.recipe-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.recipe-image {
    position: relative;
}

.recipe-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.difficulty {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.easy {
    background-color: var(--success-color);
}

.medium {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.hard {
    background-color: var(--error-color);
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    gap: 1rem;
}

.recipe-meta li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.vegetable-divider {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

/* Portion Guide */
.portion-guide {
    padding: 4rem 0;
}

.portion-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.portion-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portion-image {
    margin-bottom: 1.5rem;
}

.portion-info h3 {
    margin-bottom: 0.75rem;
}

/* Nutrition Plans */
.nutrition-plans {
    padding: 4rem 0 0;
    position: relative;
}

.plan-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.plan-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.plan-header h3 {
    margin-bottom: 0;
}

.featured-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-content {
    padding: 1.5rem;
}

.plan-features {
    margin: 1.5rem 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-benefits {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(45, 134, 89, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.75rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-item h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.logo-item h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.logo-item span {
    color: var(--secondary-color);
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #ccc;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ingredient-card {
        flex-direction: column;
    }
    
    .ingredient-info h3 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.5rem;
    }
    
    .hero {
        padding: 2rem 0 0;
    }
    
    .wave-divider svg {
        height: 70px;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .footer-item h3:after {
        left: 0;
        transform: none;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .container {
        width: 95%;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .recipe-cards, 
    .portion-cards,
    .plan-cards {
        gap: 1.5rem;
    }
    
    .recipe-card,
    .portion-card,
    .plan-card {
        min-width: 100%;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 375px) {
    .logo-container h1 {
        font-size: 1.3rem;
    }
    
    .main-nav li {
        margin: 0.3rem;
    }
    
    .main-nav a {
        font-size: 0.85rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}