:root {
    --color-bg: #f5f1e8;
    --color-gold: #f7b733;
    --color-orange: #fc4a1a;
    --color-green: #6dbf4b;
    --color-brown: #7a5230;
    --color-text: #333333;
    --color-white: #ffffff;
    --font-heading: 'Fredoka', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-sunset: linear-gradient(135deg, #f7b733, #fc4a1a, #fbd786);
    --shadow-soft: 0 8px 15px rgba(122, 82, 48, 0.1);
    --border-crate: 4px solid var(--color-brown);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-brown);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-orange);
    transition: color 0.3s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-spacing {
    padding: 50px 0;
}

@media (min-width: 768px) {
    .section-spacing {
        padding: 80px 0;
    }
}

.text-center { text-align: center; }

/* Legal Disclaimer Bar */
.legal-top-bar {
    background-color: var(--color-brown);
    color: var(--color-white);
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: url('images/photo-1606180860533-3112bd26ba19.png') center/cover;
    background-color: var(--color-brown);
    background-blend-mode: multiply;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand:hover {
    color: var(--color-white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(247, 183, 51, 0.2);
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-brown);
        padding: 20px 0;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('images/photo-1500382017468-9049fed747ef.png') center/cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(247, 183, 51, 0.7), rgba(252, 74, 26, 0.7));
    z-index: 1;
}

.leaves-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236dbf4b"><path d="M17 8C8 10 5 16 5 22c0 0 1-5 6-7s8-2 11-5c0 0-3-4-5-2z"/></svg>') no-repeat center/contain;
    animation: floatLeaf 10s linear infinite;
    opacity: 0.8;
}

@keyframes floatLeaf {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-white);
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-legal {
    background-color: rgba(0,0,0,0.6);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    border: 1px solid var(--color-gold);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--gradient-sunset);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(252, 74, 26, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    color: var(--color-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(252, 74, 26, 0.6);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* Page Header (for subpages) */
.page-header {
    background: url('images/photo-1464226184884-fa280b87c399.png') center/cover;
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
    color: var(--color-white);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(122, 82, 48, 0.8);
}

.page-header h1 {
    position: relative;
    color: var(--color-white);
    z-index: 1;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Crate Cards */
.farm-card {
    background-color: var(--color-white);
    border: var(--border-crate);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
}

.farm-card::after {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px dashed var(--color-brown);
    border-radius: 6px;
    pointer-events: none;
    opacity: 0.3;
}

.farm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(122, 82, 48, 0.2);
}

.farm-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Game Iframe */
.game-container {
    background-color: var(--color-brown);
    padding: 20px;
    border-radius: 16px;
    border: 6px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 40px auto;
    max-width: 1000px;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-brown);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #faf9f5;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 8px rgba(252, 74, 26, 0.2);
}

/* Content Blocks for Legal / SEO */
.content-block {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    border: 1px solid rgba(122, 82, 48, 0.1);
}

.content-block h2, .content-block h3 {
    margin-top: 20px;
}

.content-block ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--color-brown);
    color: #e0d8c8;
    padding: 60px 0 20px;
    margin-top: 50px;
    border-top: 5px solid var(--color-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-col h3 {
    color: var(--color-gold);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e0d8c8;
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-legal-box {
    background-color: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    font-size: 0.9rem;
    text-align: center;
}

.footer-legal-box strong {
    color: var(--color-gold);
    display: block;
    margin-bottom: 10px;
}

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

.badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.badge {
    background: var(--color-white);
    color: var(--color-brown);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: var(--font-heading);
}

/* Testimonials */
.testimonial {
    font-style: italic;
    background: #fff;
    padding: 20px;
    border-left: 4px solid var(--color-green);
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.testimonial strong {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: var(--color-brown);
}

/* FAQ */
.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid rgba(122, 82, 48, 0.2);
}
.faq-item h3 {
    margin-bottom: 10px;
    color: var(--color-orange);
}