/* --- CSS Custom Properties (Variables) --- */
:root {
    --warm-orange: #F2762E;
    --soft-amber: #F2AF5C;
    --golden-yellow: #F2CA50;
    --leaf-green: #74A65D;
    --calm-teal: #4BBFBF;
    --cream-bg: #FFF9F1;
    --dark-text: #333333;
    
    --font-heading: 'Pacifico', cursive;
    --font-body: 'Poppins', sans-serif;
    
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* --- General Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* --- Layout Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

section {
    padding: 60px 0;
}

/* --- Navbar --- */
.main-header {
    background: var(--cream-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease-in-out;
}

.main-header.scrolled {
    box-shadow: var(--shadow);
}

.navbar {
    height: 80px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--warm-orange);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--leaf-green);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--warm-orange);
}

.nav-cta {
    background-color: var(--warm-orange);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.nav-cta:hover {
    background-color: var(--golden-yellow);
    color: var(--dark-text) !important;
}


/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--soft-amber), var(--calm-teal));
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.cta-button {
    background-color: var(--warm-orange);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--golden-yellow);
    color: var(--dark-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: #fff;
    overflow: hidden; /* Hide overflowing track */
}

.testimonial-carousel {
    display: flex;
    width: 100%;
    position: relative;
}

.testimonial-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: calc(350px * 8); /* Card width * number of cards */
}

.testimonial-card {
    background: var(--cream-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 1rem;
    min-width: 320px;
    text-align: center;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--leaf-green);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 4)); } /* Width * half of cards */
}

/* --- Affiliate Section --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
    font-size: 1.25rem;
}

.buy-button {
    margin-bottom: 1.5rem;
    padding: 10px 25px;
}

/* --- CTA Banner --- */
.cta-banner-section {
    background-color: var(--leaf-green);
    text-align: center;
    color: white;
}

.cta-banner-section h2 {
    color: white;
    font-size: 2.2rem;
}

.large-button {
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* --- Footer --- */
.main-footer {
    background: var(--calm-teal);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

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

.sponsor, .footer-links {
    flex: 1;
    text-align: left;
}
.sponsor a {
    color: var(--golden-yellow);
    text-decoration: none;
    font-weight: bold;
}
.footer-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .nav-menu {
        /* Basic mobile menu handler - could be enhanced with JS for a hamburger menu */
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sponsor, .footer-links {
        text-align: center;
        width: 100%;
    }
    .footer-links {
        justify-content: center;
    }
}
