/* 
  GreenNook.com - Illustrated Pro Theme
  Vibe: Vibrant, Playful, Premium, Organic
*/

:root {
    /* New Vibrant Palette based on Reference */
    --primary-green: #2d6a4f;
    --accent-orange: #ff924c;
    --accent-yellow: #ffca3a;
    --accent-coral: #ff595e;
    --accent-teal: #52b788;
    
    /* Background Gradients */
    --grad-yellow: linear-gradient(180deg, #ffcc33 0%, #ff9900 100%);
    --grad-green-warm: linear-gradient(180deg, #99cc33 0%, #669900 100%);
    --grad-blue-soft: linear-gradient(180deg, #66cccc 0%, #339999 100%);
    --grad-orange-soft: linear-gradient(180deg, #ff9966 0%, #ff6633 100%);
    
    /* Section Colors */
    --section-about: #eef7e8;
    --section-steps: #f9fdf2;
    --section-newsletter: #ffae42;
    
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --radius-lg: 40px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Wavy Dividers Logic */
.wavy-section {
    position: relative;
    padding: 4rem 0;
}

.wavy-section::before, .wavy-section::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    background-size: 100% 80px;
    z-index: 10;
}

.wave-top {
    top: -79px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 400,120 600,60 C800,0 1050,30 1200,120 L1200,120 L0,120 Z' fill='%23XXXXXX'/%3E%3C/svg%3E");
}

.wave-bottom {
    bottom: -79px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 C150,30 400,0 600,60 C800,120 1050,90 1200,0 L1200,0 L0,0 Z' fill='%23XXXXXX'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero {
    background: var(--grad-yellow);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    color: var(--primary-green);
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.btn-main {
    background: var(--primary-green);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* About Section */
.section-about {
    background: #eef7e8;
    padding: 4rem 0;
}

.about-box {
    background: rgba(255,255,255,0.6);
    padding: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

/* Card Styling - Soft White Boxes */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.soft-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
}

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

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

.soft-card .card-content {
    padding: 2rem;
}

.soft-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.btn-pill {
    display: inline-block;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 1rem;
    color: white;
}

/* Step Icons */
.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.step-card img {
    width: 100px;
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter-section {
    background: #ffae42;
    padding: 6rem 0;
    text-align: center;
    color: white;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section input {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    width: 70%;
    margin-right: -50px;
}

/* Responsive */
@media (max-width: 992px) {
    .card-grid, .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid, .step-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.5rem; }
}

/* --- ANIMATIONS --- */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.float-animation { animation: float 6s ease-in-out infinite; }

/* --- CARD ACCENTS --- */
.accent-green { border-bottom: 8px solid var(--primary-green); }
.accent-orange { border-bottom: 8px solid var(--accent-orange); }
.accent-coral { border-bottom: 8px solid var(--accent-coral); }
.accent-yellow { border-bottom: 8px solid var(--accent-yellow); }
.accent-blue { border-bottom: 8px solid #74c0fc; }

.soft-card {
    transition: all 0.3s ease;
}

.soft-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- CATEGORY BLOCKS --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.category-block {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
}

.category-block:hover {
    background: var(--primary-green);
    transform: scale(1.05);
}

.category-block:hover h4, .category-block:hover p { color: white; }
.category-block .icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* --- SLIDING TESTIMONIALS --- */
.testimonial-wrapper {
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial-track {
    display: flex;
    gap: 3rem;
    animation: slide 40s linear infinite;
    width: max-content;
}

.testimonial-track:hover { animation-play-state: paused; }

.testimonial-item {
    flex-shrink: 0;
    width: 400px;
}

/* Adjustments for existing elements */
.btn-main {
    transition: var(--transition);
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--accent-coral);
    box-shadow: 0 15px 30px rgba(255, 89, 94, 0.4);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .card-grid, .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* HEADER MOBILE FIX */
    header .container {
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    header nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem !important;
        margin-top: 0.5rem;
    }
    
    header nav a {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.6rem;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* About Section Mobile */
    .about-box {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .about-img {
        width: 150px;
        height: 150px;
    }
    
    .about-box h2 {
        font-size: 2rem;
    }
    
    /* Card Grids Mobile */
    .card-grid, .step-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Newsletter Mobile */
    .newsletter-section input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Testimonials Mobile */
    .testimonial-item {
        width: 300px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Header Small Mobile */
    header .container {
        padding: 0 0.75rem;
    }
    
    header nav {
        gap: 0.5rem !important;
    }
    
    header nav a {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.5rem;
    }
    
    /* Hero Small Mobile */
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-main {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Logo Small */
    header a span {
        font-size: 1.3rem !important;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch */
    header nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn-main, .btn-pill {
        min-height: 44px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 2rem;
    }
    
    header {
        position: relative;
    }
}
