/* 
 * Snacktonia - Healthy Eating Studio
 * Main Stylesheet
 */

/* ============ Base Styles ============ */
:root {
    --color-light: #DAD7CD;
    --color-medium: #A3B18A;
    --color-dark: #588157;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --transition: all 0.3s ease-in-out;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-medium);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ============ Container ============ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ Section Padding ============ */
.section-padding {
    padding: 4rem 0;
}

/* ============ Section Headers ============ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-medium);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.secondary-btn {
    background-color: var(--color-light);
    color: var(--color-dark);
}

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

/* ============ Icons ============ */
.icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
}

.info-icon {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* ============ Header ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-background);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    max-width: 180px;
}

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

.main-nav .nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .nav-list li {
    margin-left: 1.5rem;
}

.main-nav .nav-list li a {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

.main-nav .nav-list li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============ Hero Section ============ */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/bg01.jpg);
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    color: var(--color-background);
    text-align: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-background);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============ About Section ============ */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: top;
    gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text {
    padding-top: 20px;
    flex: 1;
    min-width: 300px;
}

/* ============ Philosophy Section ============ */
.philosophy-section {
    background-color: var(--color-light);
    position: relative;
}

.philosophy-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.philosophy-text {
    flex: 1;
    min-width: 300px;
}

.philosophy-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.philosophy-principles {
    list-style: none;
    padding: 0;
}

.philosophy-principles li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.philosophy-principles li div {
    flex: 1;
}

.philosophy-principles h3 {
    margin-bottom: 0.5rem;
}

/* ============ Benefits Section ============ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card h3 {
    margin: 1rem 0;
}

/* ============ Recipes Section ============ */
.recipes-section {
    background-color: var(--color-light);
    position: relative;
}

.recipes-slider {
    position: relative;
    overflow: hidden;
}

.recipe-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.recipe-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-content {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.recipe-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.recipe-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recipe-time, .recipe-difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-light);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-dark);
}

.recipe-expand {
    margin-top: 1rem;
}

.expand-btn {
    display: inline-block;
    background-color: var(--color-medium);
    color: var(--color-background);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.expand-btn:hover {
    background-color: var(--color-dark);
}

.recipe-full-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-light);
}

.recipe-full-content h4 {
    margin-bottom: 0.5rem;
}

.recipe-full-content ul, .recipe-full-content ol {
    margin-bottom: 1.5rem;
}

.recipes-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.recipe-prev, .recipe-next {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    border-radius: 50%;
    background-color: var(--color-background);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.recipe-prev:hover, .recipe-next:hover {
    background-color: var(--color-medium);
}

.recipe-prev svg, .recipe-next svg {
    width: 24px;
    height: 24px;
}

.recipe-prev:hover svg path, .recipe-next:hover svg path {
    fill: var(--color-background);
}

/* ============ Tips Section ============ */
.tips-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.tips-text {
    flex: 1;
    min-width: 300px;
}

.tip-item {
    margin-bottom: 2rem;
    transition: var(--transition);
    cursor: pointer;
}

.tip-item:hover, .tip-item.active {
    transform: translateX(10px);
}

.tip-item h3 {
    display: flex;
    align-items: center;
}

.tip-item h3::before {
    content: attr(data-tipnum);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    background-color: var(--color-dark);
    color: var(--color-background);
    border-radius: 50%;
    font-size: 1rem;
}

.tips-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.tip-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--color-dark);
    color: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

/* ============ Testimonials Section ============ */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before, .testimonial-content::after {
    content: '"';
    font-size: 2rem;
    color: var(--color-medium);
    line-height: 0;
}

.testimonial-content::before {
    position: absolute;
    top: 0.5rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-light);
    margin: 0 0.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--color-dark);
}

/* ============ Contact Section ============ */
.contact-section {
    background-color: var(--color-light);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item div h3 {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    transition: var(--transition);
}

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

.form-consent {
    display: flex;
    align-items: flex-start;
}

.form-consent input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-consent label {
    flex: 1;
}

/* ============ Footer ============ */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-background);
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    filter: brightness(3);
    max-width: 180px;
    margin-bottom: 1rem;
}

.footer-links, .footer-legal {
    flex: 1;
    min-width: 150px;
}

.footer-links h3, .footer-legal h3 {
    color: var(--color-background);
    margin-bottom: 1.5rem;
}

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

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a, .footer-legal ul li a {
    color: var(--color-light);
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: var(--color-background);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============ Back to Top Button ============ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    color: var(--color-background);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============ Success Page ============ */
.success-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.success-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-message {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.success-info {
    margin-bottom: 2rem;
}

.success-actions {
    margin-top: 2rem;
}

.featured-recipes {
    background-color: var(--color-light);
}

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

.featured-recipe {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.featured-recipe-content {
    padding: 1.5rem;
    text-align: center;
}

/* ============ Page Content (for terms, privacy, cookies) ============ */
.page-content {
    padding-top: 120px;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    margin-top: 2rem;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

/* ============ Responsive Styles ============ */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .tagline {
        font-size: 1.25rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media screen and (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--color-background);
        padding: 1.5rem;
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav .nav-list.show {
        transform: translateX(0);
    }
    
    .main-nav .nav-list li {
        margin: 0 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .about-content, .philosophy-content, .tips-content {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .tagline {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .benefit-card, .testimonial, .contact-form {
        padding: 1.5rem;
    }
    
    .recipe-content {
        padding: 1.5rem;
    }
    
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    #back-to-top svg {
        width: 20px;
        height: 20px;
    }
}
