/* Base Styles */
:root {
    --primary-color: #367547;
    --secondary-color: #E63D67;
    --dark-color: #121212;
    --light-color: #FFFFFF;
    --background-color: #F8F9FA;
    --text-color: #333333;
    --heading-font: 'Rufina', serif;
    --body-font: 'PT Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--background-color);
}

section:nth-child(odd) {
    background-color: var(--light-color);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:before, .btn-secondary:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover:before, .btn-secondary:hover:before {
    width: 300px;
    height: 300px;
}

/* Wave Dividers */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider path {
    fill: var(--background-color);
}

section:nth-child(even) .wave-divider path {
    fill: var(--light-color);
}

section:nth-child(odd) .wave-divider path {
    fill: var(--background-color);
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: bold;
}

.logo svg {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.btn-primary):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn-primary):hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 0 150px;
    background-color: var(--light-color);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-text {
    font-size: 14px;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.about-features svg {
    margin-right: 10px;
    flex-shrink: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card .btn-secondary {
    align-self: flex-start;
}

/* Diets Section */
.diet-comparison {
    margin-bottom: 50px;
    overflow-x: auto;
}

.diet-comparison table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.diet-comparison th, .diet-comparison td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.diet-comparison th {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.diet-comparison tr:nth-child(even) {
    background-color: rgba(54, 117, 71, 0.05);
}

.diet-comparison tr:hover {
    background-color: rgba(54, 117, 71, 0.1);
}

.portion-guide h3 {
    text-align: center;
    margin-bottom: 30px;
}

.portion-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portion-item {
    text-align: center;
}

.portion-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.portion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Food Swaps Section */
.swaps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.swap-item {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.swap-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.swap-from, .swap-to {
    flex: 1;
}

.swap-from img, .swap-to img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.swap-arrow {
    margin: 0 15px;
}

.swap-benefit {
    font-style: italic;
    color: var(--primary-color);
}

/* Ingredient Day Section */
.ingredient-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.ingredient-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.ingredient-facts {
    margin-bottom: 30px;
}

.ingredient-facts li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.ingredient-facts svg {
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 5px;
}

.ingredient-recipe {
    background-color: rgba(54, 117, 71, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.ingredient-recipe h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background-color: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.review-image {
    height: 200px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    padding: 30px;
}

.review-rating {
    display: flex;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.contact-form button {
    width: 100%;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
}

.newsletter h2, .newsletter p {
    color: var(--light-color);
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 30px auto 0;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: var(--body-font);
    font-size: 16px;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    color: var(--light-color);
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer-nav h3, .footer-policies h3, .footer-signup h3 {
    font-size: 18px;
    color: var(--light-color);
    margin-bottom: 20px;
}

.footer-nav ul, .footer-policies ul {
    display: grid;
    gap: 10px;
}

.footer-nav a, .footer-policies a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-nav a:hover, .footer-policies a:hover {
    color: var(--secondary-color);
}

.footer-signup p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-form {
    display: flex;
}

.footer-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-family: var(--body-font);
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.footer-form button {
    border-radius: 0 8px 8px 0;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero-grid,
    .about-grid,
    .ingredient-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portion-items,
    .swaps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0 130px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .reviews-grid,
    .portion-items,
    .swaps-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 15px;
    }
    
    .newsletter-form button {
        border-radius: 30px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--light-color);
        padding: 100px 30px;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Custom animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.service-icon:hover svg,
.review-rating svg:hover,
.ingredient-facts svg:hover {
    animation: pulse 1s infinite;
}

/* Enhanced mobile navigation without JavaScript */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        position: static;
        width: 100%;
        height: auto;
        padding: 0;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        background-color: transparent;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .main-nav a.btn-primary {
        display: inline-block;
        margin-top: 10px;
    }
}