/* ============================================
   KetoGarden.fi - Main Stylesheet
   Color palette from logo:
   - Dark Green:  #2D5A27
   - Medium Green: #4A7C3F
   - Light Green: #7CB342
   - Leaf Green:  #8BC34A
   - Dark Brown:  #4E2F1E
   - Medium Brown: #6B3A2A
   - Light Brown: #A67C52
   - Warm Sand:   #D4A96A
   - Cream:       #FFF8F0
   - Off White:   #FAFAF5
   ============================================ */

/* === CSS Variables === */
:root {
    --color-dark-green: #2D5A27;
    --color-medium-green: #4A7C3F;
    --color-light-green: #7CB342;
    --color-leaf-green: #8BC34A;
    --color-dark-brown: #4E2F1E;
    --color-medium-brown: #6B3A2A;
    --color-light-brown: #A67C52;
    --color-warm-sand: #D4A96A;
    --color-cream: #FFF8F0;
    --color-off-white: #FAFAF5;
    --color-white: #FFFFFF;
    --color-text: #3A3A3A;
    --color-text-light: #6B6B6B;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-off-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--color-dark-brown);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    transition: box-shadow var(--transition);
}

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

/* === Top Breadcrumb === */
.top-breadcrumb {
    margin-top: 110px;
    background: #f7faf2;
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
}

.top-breadcrumb-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.55rem 2rem;
}

.top-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.top-breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.top-breadcrumb-list li + li::before {
    content: '›';
    color: #8aa16f;
}

.top-breadcrumb-list a {
    color: #486333;
    text-decoration: none;
}

.top-breadcrumb-list a:hover {
    text-decoration: underline;
}

.top-breadcrumb-list [aria-current='page'] {
    color: #2f4b12;
    font-weight: 600;
}

.has-top-breadcrumbs .hero,
.has-top-breadcrumbs .page-header,
.has-top-breadcrumbs .garden-hero,
.has-top-breadcrumbs .plants-hero,
.has-top-breadcrumbs .compost-hero,
.has-top-breadcrumbs .plant-hero,
.has-top-breadcrumbs .coming-hero,
.has-top-breadcrumbs .tools-hero,
.has-top-breadcrumbs .keto-hero,
.has-top-breadcrumbs .bmi-hero,
.has-top-breadcrumbs .iw-hero,
.has-top-breadcrumbs .rb-hero {
    margin-top: 0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 88px;
}

.logo-link {
    position: absolute;
    left: 0.5rem;
    top: -26px;
    z-index: 3;
    display: block;
}

.logo {
    height: 164px;
    width: auto;
    max-width: none;
    transition: transform var(--transition), filter var(--transition);
    filter: drop-shadow(0 6px 14px rgba(45, 90, 39, 0.28));
}

.logo:hover {
    transform: scale(1.05);
}

/* === Navigation === */
.nav-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 280px;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark-brown);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-dark-green);
    background: rgba(45, 90, 39, 0.08);
}

.nav-link.active {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-dark-green), var(--color-medium-green));
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
}

/* === Mobile Menu === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--color-dark-brown);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === Hero Section === */
.hero {
    margin-top: 110px;
    padding: 5rem 2rem 4rem;
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(139, 195, 74, 0.08) 50%, rgba(45, 90, 39, 0.05) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 169, 106, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, var(--color-leaf-green), var(--color-light-green));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(139, 195, 74, 0.3);
}

.hero h1 {
    margin-bottom: 1.2rem;
    color: var(--color-dark-brown);
}

.hero h1 span {
    color: var(--color-dark-green);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-dark-green), var(--color-medium-green));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-dark-brown);
    border: 2px solid rgba(78, 47, 30, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--color-medium-green);
    color: var(--color-dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
}

/* === Section Styles === */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.section-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(45, 90, 39, 0.08);
    color: var(--color-dark-green);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
}

/* === Feature Cards === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-dark-green), var(--color-leaf-green));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.feature-icon.green {
    background: rgba(45, 90, 39, 0.1);
}

.feature-icon.brown {
    background: rgba(107, 58, 42, 0.1);
}

.feature-icon.sand {
    background: rgba(212, 169, 106, 0.15);
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.2rem;
    color: var(--color-dark-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.feature-link:hover {
    gap: 0.7rem;
}

.feature-link svg {
    transition: transform var(--transition);
}

.feature-link:hover svg {
    transform: translateX(3px);
}

/* === Info Section / About === */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.info-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.info-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-medium-green), var(--color-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-radius: var(--radius-lg);
}

.info-text h2 {
    margin-bottom: 1rem;
}

.info-text p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.info-list {
    margin: 1.5rem 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.info-list li .check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--color-dark-green), var(--color-medium-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.info-list li .check svg {
    width: 12px;
    height: 12px;
    stroke: white;
    fill: none;
    stroke-width: 3;
}

/* === Stats Banner === */
.stats-banner {
    background: linear-gradient(135deg, var(--color-dark-green) 0%, var(--color-medium-green) 100%);
    padding: 3.5rem 2rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--color-white);
    margin-bottom: 0.3rem;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* === CTA Section === */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-cream), rgba(139, 195, 74, 0.05));
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* === Footer === */
.site-footer {
    background: var(--color-dark-brown);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 4rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    margin-bottom: 1rem;
    filter: brightness(1.2);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-leaf-green);
    padding-left: 4px;
}

.footer-contact {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--color-medium-green);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 968px) {
    .logo-link {
        top: -18px;
    }

    .logo {
        height: 138px;
    }

    .nav-list {
        margin-left: 220px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        min-height: 72px;
    }

    .logo-link {
        position: static;
    }

    .logo {
        height: 64px;
        filter: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        padding: 6rem 2rem 2rem;
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.3rem;
        margin-left: 0;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 1.2rem;
        font-size: 1.05rem;
        width: 100%;
    }

    .hero {
        margin-top: 80px;
        padding: 4rem 1.5rem 3rem;
    }

    .top-breadcrumb {
        margin-top: 80px;
    }

    .top-breadcrumb-shell {
        padding: 0.5rem 1rem;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .page-header {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 58px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-item h3 {
        font-size: 1.6rem;
    }
}

/* === Overlay for mobile menu === */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Page header (for sub-pages) === */
.page-header {
    margin-top: 110px;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(139, 195, 74, 0.08) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

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

.text-green { color: var(--color-dark-green); }
.text-brown { color: var(--color-dark-brown); }
.bg-white { background: var(--color-white); }
