@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,800;0,900;1,800&family=Open+Sans:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

:root {
    --primary-dark: #202b1c;
    --primary-green: #375228;
    --accent-green: #71a033;
    --accent-gold: #cba052;
    --bg-light: #f7f6f2;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --border-color: #d1cfc4;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.dancing-cursive {
    font-family: 'Dancing Script', cursive;
    text-transform: none;
    font-size: 4rem;
    color: var(--accent-green);
    display: inline-block;
    animation: dance 2s infinite ease-in-out;
}

.sarif-sans, .sans-sarif {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 4rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes dance {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

nav {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 50px;
    text-decoration: none;
}

.logo-icon { font-size: 2.5rem; color: var(--accent-green); }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-title { font-size: 2rem; font-weight: 900; letter-spacing: 1px; color: white; }

.logo-subtitle { font-size: 0.85rem; color: var(--accent-green); font-weight: 800; letter-spacing: 2px; }

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-green); }

.cta-btn {
    background-color: var(--accent-green);
    color: var(--primary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}

.cta-btn:hover { background-color: #88bd41; }

.hero {
    background: linear-gradient(rgba(32, 43, 28, 0.4), rgba(32, 43, 28, 0.4)), url('images/hero-bg.png') center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 0 5vw;
    border-bottom: 8px solid var(--accent-green);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; margin-bottom: 1vh; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

.hero h2 { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--accent-green); margin-bottom: 3vh; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

.hero p { font-size: clamp(0.9rem, 1.5vw, 1.2rem); max-width: 800px; font-weight: 800; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); margin-bottom: 4vh; }

.features-bar {
    background-color: var(--primary-green);
    color: white;
    padding: 2vh 5vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.feature-item { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: clamp(0.7rem, 1.2vw, 1.1rem); }

.feature-item i { color: var(--accent-green); font-size: 1.8rem; }

section {
    padding: 2vh 5vw;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-header { text-align: center; margin-bottom: 3vh; }

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-dark);
    display: inline-block;
    border-bottom: 4px solid var(--accent-green);
    padding-bottom: 5px;
}

.plans-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2vw;
    width: 100%;
    max-width: 1200px;
}

.plan-card {
    cursor: pointer;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-card:hover { transform: scale(1.02); }

.plan-header { background-color: var(--primary-green); color: white; text-align: center; padding: 1.5vh 1vw; }

.plan-header h3 { font-size: 1.5rem; margin-bottom: 10px; }

.plan-price { font-size: clamp(2rem, 3vw, 3rem); font-weight: 900; font-family: 'Montserrat', sans-serif; color: var(--accent-green); line-height: 1; }

.plan-price span { font-size: 1rem; color: white; font-weight: 600; }

.plan-subtitle { background-color: var(--primary-dark); color: white; text-align: center; padding: 1vh; font-size: clamp(0.7rem, 1vw, 0.9rem); font-weight: 600; }

.plan-features { padding: 2vh 2vw; list-style: none; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.plan-features li { margin-bottom: 1vh; display: flex; align-items: flex-start; gap: 10px; font-size: clamp(0.75rem, 1.1vw, 0.95rem); }

.plan-features li i { color: var(--accent-green); margin-top: 4px; }

.plan-card.premium { border: 4px solid var(--accent-gold); transform: none; }

.plan-card.premium:hover { transform: none; }

.plan-card.premium .plan-header { background-color: var(--primary-green); color: white; text-align: center; padding: 1.5vh 1vw; }

.plan-card.premium .plan-price, .plan-card.premium .plan-price span { color: var(--primary-dark); }

.most-popular-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: var(--primary-dark);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.kit-section {
    padding: 2vh 5vw;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; max-width: 1200px; width: 100%; align-items: center; height: 100%; }

.kit-content h3 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 20px; }

.kit-items { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5vw; margin-top: 2vh; }

.kit-item { text-align: center; padding: 2vh 1vw; background: var(--bg-light); border-radius: 8px; border: 1px solid var(--border-color); }

.kit-item i { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--primary-green); margin-bottom: 1vh; }

.image-placeholder {
    width: 100%;
    height: 40vh;
    background-color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 8px solid var(--primary-green);
    background-image: repeating-linear-gradient(45deg, #202b1c 25%, transparent 25%, transparent 75%, #202b1c 75%, #202b1c), repeating-linear-gradient(45deg, #202b1c 25%, #253321 25%, #253321 75%, #202b1c 75%, #202b1c);
    background-size: 40px 40px;
    text-align: center;
    padding: 20px;
}

.tips-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2vw; max-width: 1400px; width: 100%; flex: 1; max-height: 55vh; align-items: center; }

.tips-list { display: flex; flex-direction: column; justify-content: center; gap: 2vh; }

.tips-list h3 { margin-bottom: 25px; color: var(--primary-dark); }

.tip-item { display: flex; gap: 15px; margin-bottom: 2vh; align-items: center; }

.tip-icon { background-color: var(--primary-green); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }

.plants-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1vw; height: 100%; max-height: 55vh; }

.plant-card { background: white; border-radius: 8px; overflow: hidden; text-align: center; border: 1px solid var(--border-color); display: flex; flex-direction: column; }

.plant-img { flex: 1; background-color: var(--primary-green); display: flex; align-items: center; justify-content: center; color: white; font-size: clamp(1rem, 2vw, 2rem); background-size: cover; background-position: center; min-height: 8vh; }

.plant-card h4 { padding: 10px; font-size: 0.9rem; background-color: var(--primary-dark); color: white; }

.professional-banner {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 60px 20px;
    transition: background-image 0.5s ease;
}

.professional-banner h2 { color: var(--accent-green); margin-bottom: 20px; }

footer {
    background-color: #111810;
    color: white;
    padding: 1vh 5vw;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-grid {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.footer-logo { margin-bottom: 20px; }

.footer-col h4 { color: var(--accent-green); margin-bottom: 20px; font-size: 1.2rem; }

.footer-col p, .footer-col ul { color: #ccc; list-style: none; }

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

.footer-col a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }

.footer-col a:hover { color: var(--accent-green); }

.contact-info li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }

.contact-info i { color: var(--accent-green); font-size: 1.2rem; width: 20px; text-align: center; }

.guarantee-badge {
    display: inline-block;
    border: 2px dashed var(--accent-green);
    padding: 0.5vh 2vw;
    border-radius: 8px;
    text-align: center;
}

.guarantee-badge h5 { color: var(--accent-green); font-size: clamp(0.9rem, 1.5vw, 1.2rem); margin-bottom: 0; }

.copyright { text-align: center; color: #888; font-size: clamp(0.6rem, 1vw, 0.8rem); margin-top: 1vh; }

@media (max-width: 992px) {
    .kit-grid, .tips-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2vw; max-width: 1400px; width: 100%; flex: 1; max-height: 55vh; align-items: center; }
    .plan-card.premium { transform: scale(1); }
    .plan-card.premium:hover { transform: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; margin-bottom: 1vh; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
    .features-bar {
    background-color: var(--primary-green);
    color: white;
    padding: 2vh 5vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
    .plants-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1vw; height: 100%; max-height: 55vh; }
}

/* Subpage Dark Theme Styles */
body.dark-page {
    background-color: var(--primary-dark);
    color: var(--text-light);
}
body.dark-page .section-header h2 {
    color: var(--text-light);
}
body.dark-page .section-header p {
    color: #c5cbbd !important;
}
body.dark-page .kit-section {
    background-color: var(--primary-dark);
    border-top: none;
    border-bottom: none;
}
body.dark-page .kit-content h2 {
    color: var(--text-light);
}
body.dark-page .kit-content h3 {
    color: var(--accent-green);
}
body.dark-page .kit-content p {
    color: #c5cbbd;
}
body.dark-page .kit-item {
    background-color: #273422;
    border-color: #3b4e34;
    color: var(--text-light);
}
body.dark-page .kit-item h4 {
    color: var(--text-light);
}
body.dark-page .kit-item p {
    color: #b1baa9;
}
body.dark-page .kit-image .image-placeholder {
    width: 100%;
    height: 40vh;
    background-color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 8px solid var(--primary-green);
    background-image: repeating-linear-gradient(45deg, #202b1c 25%, transparent 25%, transparent 75%, #202b1c 75%, #202b1c), repeating-linear-gradient(45deg, #202b1c 25%, #253321 25%, #253321 75%, #202b1c 75%, #202b1c);
    background-size: 40px 40px;
    text-align: center;
    padding: 20px;
}
body.dark-page .tips-list {
    background-color: transparent;
    border: none;
}
body.dark-page .tips-list h3 {
    color: var(--text-light);
}
body.dark-page .tip-item p {
    color: #b1baa9 !important;
}
body.dark-page .tip-item strong {
    color: var(--text-light);
}
body.dark-page .plant-card {
    background-color: #273422;
    border-color: #3b4e34;
    color: var(--text-light);
}
body.dark-page .plant-card h4 {
    background-color: #1a2216;
    color: var(--text-light);
}
body.dark-page .plan-card {
    background-color: #273422;
    border-color: #3b4e34;
    color: var(--text-light);
}
body.dark-page .plan-card.premium {
    border-color: var(--accent-gold);
}
body.dark-page .plan-subtitle { background-color: var(--primary-dark); color: white; text-align: center; padding: 1vh; font-size: clamp(0.7rem, 1vw, 0.9rem); font-weight: 600; }
body.dark-page .plan-features li { margin-bottom: 1vh; display: flex; align-items: flex-start; gap: 10px; font-size: clamp(0.75rem, 1.1vw, 0.95rem); }
body.dark-page .plan-features li span {
    color: #b1baa9;
}

/* Form Styles */
.form-container {
    width: 100%;
    max-width: 800px;
    background-color: #273422;
    padding: 1.5vh 3vw;
    border-radius: 8px;
    border: 1px solid #3b4e34;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.protection-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vw;
    margin-bottom: 1.5vh;
}

.protection-form .form-group { margin-bottom: 1vh; display: flex; flex-direction: column; }

.protection-form label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5vh;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
}

.protection-form input, 
.protection-form select, 
.protection-form textarea {
    padding: 1vh 1vw;
    border-radius: 4px;
    border: 1px solid #4a633a;
    background-color: #1a2216;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    outline: none;
    transition: border-color 0.3s ease;
}

.protection-form input::placeholder, 
.protection-form textarea::placeholder {
    color: #88967f;
}

.protection-form input:focus, 
.protection-form select:focus, 
.protection-form textarea:focus {
    border-color: var(--accent-green);
}

.submit-btn {
    background-color: var(--accent-green);
    color: var(--primary-dark);
    padding: 1vh 3vw;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    width: 100%;
    margin-top: 1vh;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #88bd41;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .protection-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vw;
    margin-bottom: 1.5vh;
}
}

.guarantee-badge i { font-size: clamp(1.2rem, 2vw, 2rem) !important; margin-bottom: 0 !important; }

.mascot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.mascot-img {
    max-height: 50vh;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.5));
}



body.dark-page .tip-item.speech-bubble {
    background-color: #273422;
    border: 1px solid #3b4e34;
    border-radius: 12px;
    padding: 1.5vh 1.5vw;
    margin-bottom: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-items: center;
}

body.dark-page .tip-item.speech-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 15px 10px 0;
    border-style: solid;
    border-color: transparent #3b4e34 transparent transparent;
}

body.dark-page .tip-item.speech-bubble::after {
    content: '';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 9px 14px 9px 0;
    border-style: solid;
    border-color: transparent #273422 transparent transparent;
}

body.dark-page .kit-image img { max-height: 60vh; object-fit: contain; width: 100%; }



/* Footer Theme Styles - Forced Dark for ALL pages */
.site-footer { 
    background-color: #1a2316; /* Deep dark green matching dark-page body */
    border-top: 2px solid #2d3b26;
}

/* Force dark theme for guarantee badges INSIDE the footer */
.site-footer .guarantee-badge {
    background-color: #273422;
    border: 1px solid #3b4e34;
    border-top: 4px solid var(--accent-green);
}

/* Force text colors in footer */
.site-footer .footer-heading { color: var(--text-light); }
.site-footer .footer-text { color: #ccc; }
.site-footer .footer-icon { color: var(--accent-green); }
.site-footer .copyright { color: #888; margin-top: 15px; }


/* Desktop Layout Fixes (moved from inline styles) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    max-height: 70vh;
}

.footer-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2vw;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 0;
}

.footer-card {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 100%;
    box-sizing: border-box;
}

.footer-card-left {
    gap: 15px;
    text-align: left;
}

.footer-card-right {
    justify-content: space-evenly;
    gap: 10px;
    text-align: center;
}

/* ========================================= */
/* MOBILE RESPONSIVENESS OVERRIDES           */
/* ========================================= */
@media (max-width: 768px) {
    /* 1. Unlock strict height/overflow restrictions */
    body, main {
        height: auto !important;
        overflow: visible !important;
        overflow-x: hidden !important;
    }
    
    section {
        padding: 4vh 5vw !important;
        height: auto !important;
    }

    /* 2. Navigation */
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px 5%;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* 3. Grid to Stack Conversions */
    .about-grid {
        grid-template-columns: 1fr;
        max-height: none;
        gap: 5vw;
        text-align: center;
    }
    .about-grid .mascot-container {
        margin-bottom: 2vh;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .kit-grid {
        grid-template-columns: 1fr;
        max-height: none;
        gap: 6vw;
    }
    .kit-items {
        grid-template-columns: 1fr;
    }
    
    .plans-container {
        flex-direction: column;
        align-items: center;
        gap: 4vh;
    }
    .plan-card {
        width: 100%;
        max-width: 400px;
    }

    /* 4. Form */
    .protection-form .form-row {
        grid-template-columns: 1fr !important;
    }
    .form-container {
        padding: 3vh 5vw !important;
    }

    /* 5. Footer Stacking */
    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }
    .footer-card {
        flex-direction: column;
        text-align: center !important;
        padding: 20px !important;
    }
    .footer-card-left i {
        margin-bottom: 10px !important;
    }
    .footer-card-right {
        justify-content: center;
        gap: 15px;
    }
    .footer-card-right span {
        display: block;
    }

    /* 6. Fix image heights so they don't dominate */
    .mascot-img, .kit-image img, .about-grid img {
        max-height: 250px !important;
        width: auto !important;
    }
    
    /* 7. Typography */
    .sarif-sans, .sans-sarif {
        font-size: 2.5rem;
    }
    .dancing-cursive {
        font-size: 3rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .plant-img {
        min-height: 15vh;
    }
}

.kit-items-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
    width: 100%;
}
@media (max-width: 768px) {
    .kit-items-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 4vw;
    }
}
