@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary: #E07A5F;
    --primary-hover: #D0674B;
    --secondary: #81B29A;
    --accent: #F2CC8F;
    --text: #3D405B;
    --text-light: #5A5D7A;
    --bg: #F4F1DE;
    --bg-alt: #EAE6CE;
    --white: #FFFFFF;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-blob: 40% 60% 70% 30% / 40% 50% 60% 50%;
    --shadow: 0 12px 24px rgba(61, 64, 91, 0.08);
    --shadow-hover: 0 20px 32px rgba(61, 64, 91, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body { 
    font-family: 'Nunito', sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.7; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Fredoka', sans-serif; 
    color: var(--text); 
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(224, 122, 95, 0.3);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(224, 122, 95, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(129, 178, 154, 0.3);
}
.btn-secondary:hover {
    background-color: #6C9A82;
    box-shadow: 0 6px 15px rgba(129, 178, 154, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul { display: flex; gap: 1.5rem; }
nav a { font-weight: 700; color: var(--text-light); font-size: 1.05rem; }
nav a:hover, nav a.active { color: var(--primary); }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--text); border: none; background: none;}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(244, 241, 222, 0.95) 0%, rgba(244, 241, 222, 0.7) 50%, rgba(244, 241, 222, 0.2) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.hero-content h1 span { color: var(--primary); }

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Wavy Divider */
.wavy-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -5px;
}
.wavy-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.wavy-divider .shape-fill { fill: var(--bg); }

/* Layouts */
.section { padding: 5rem 5%; }
.section-bg-white { background: var(--white); border-radius: var(--radius-lg); margin: 0 1rem; box-shadow: var(--shadow); }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 1rem; color: var(--text); }
.section-subtitle { text-align: center; font-size: 1.2rem; color: var(--text-light); margin-bottom: 3.5rem; max-width: 700px; margin-inline: auto;}

.grid { display: grid; gap: 2.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center;}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--accent);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}
.card-img-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
}

.card-content { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card-price { font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--primary); font-size: 1.4rem; margin-bottom: 1rem; }
.card-desc { margin-bottom: 1.5rem; flex-grow: 1; color: var(--text-light); }
.card-actions { margin-top: auto; }

/* Category Cards (Circle) */
.cat-card {
    text-align: center;
    transition: var(--transition);
}
.cat-card:hover { transform: translateY(-5px); }
.cat-img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-blob);
    background: var(--secondary);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.cat-card:hover .cat-img { border-radius: 50%; background: var(--accent); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-title { font-size: 1.4rem; font-weight: 700; color: var(--text); }

/* Feature Box */
.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.feature-box:hover { background: var(--white); box-shadow: var(--shadow); }
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Form Groups and Textarea */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text); }
.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--bg-alt);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(129, 178, 154, 0.2); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Footer */
footer {
    background: var(--text);
    color: var(--white);
    padding: 5rem 5% 2rem;
    margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--accent); font-size: 1.3rem; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: #A0A4C5; }
.footer-col ul li a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #A0A4C5;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 5%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }
    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .hero { padding-top: 4rem; padding-bottom: 4rem; min-height: 60vh; }
    .hero-overlay { background: rgba(244, 241, 222, 0.85); }
    .hero-content h1 { font-size: 2.5rem; }
    .section { padding: 4rem 5%; }
    .section-title { font-size: 2.3rem; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-actions .btn { padding: 0.5rem 1rem; font-size: 1rem; }
    .brand { font-size: 1.5rem; }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

/* Popup */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(61, 64, 91, 0.8); display: none; justify-content: center; align-items: center; z-index: 2000; backdrop-filter: blur(5px); }
.popup-box { background: var(--bg); padding: 3rem; border-radius: var(--radius-md); max-width: 450px; width: 90%; text-align: center; position: relative; box-shadow: var(--shadow-hover); transform: scale(0.9); transition: var(--transition); }
.popup-overlay.active .popup-box { transform: scale(1); }
.popup-close { position: absolute; top: 15px; right: 20px; cursor: pointer; font-size: 2rem; color: var(--text-light); transition: var(--transition); line-height: 1;}
.popup-close:hover { color: var(--primary); }
.popup-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }

/* Helpers */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Thematic Touches */
::selection {
    background-color: var(--accent);
    color: var(--text);
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
}

.hero-content h1 span {
    position: relative;
    display: inline-block;
}
.hero-content h1 span::after {
    content: '🐾';
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 2rem;
    transform: rotate(15deg);
    opacity: 0.8;
}

/* Organic card styling */
.card-img-wrapper {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
