/* ============================================================
   Green Futures Technologies — Dark Theme
   Brand colors: primary #82b72e, dark #4a7506
   Typography: Montserrat (headings), Inter (body)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
    --green-primary: #82b72e;
    --green-primary-hover: #9cd440;
    --green-dark: #4a7506;
    --green-light: #1a2410;
    --green-lighter: #1f2e12;
    --bg: #0a0f0d;
    --bg-surface: #111714;
    --bg-elevated: #161c18;
    --text-dark: #e8ece9;
    --text-body: #c5cbc7;
    --text-muted: #7d857f;
    --border: #1e2622;
    --border-light: #252e29;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1240px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg);
    padding-top: var(--nav-height);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--green-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-primary-hover); }

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width 0.2s;
}

.nav-links a:hover { color: var(--text-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green-primary); }
.nav-links a.active::after { width: 100%; }

/* Sister-site tab (Green Futures Farms) */
.nav-links a.nav-farm { color: var(--green-primary); font-weight: 600; }
.nav-links a.nav-farm:hover { color: var(--green-primary-hover); }
.nav-links a.nav-farm::after { background: var(--green-primary-hover); }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,10,8,0.6) 0%, rgba(5,10,8,0.85) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 48px 24px;
}

.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,0.8); font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 2rem; }
.hero .btn { margin: 0 6px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--green-primary);
    color: #0a0f0d;
    border-color: var(--green-primary);
}

.btn-primary:hover {
    background: var(--green-primary-hover);
    border-color: var(--green-primary-hover);
    color: #0a0f0d;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--green-primary);
    border-color: var(--green-primary);
}

.btn-outline-dark:hover {
    background: var(--green-primary);
    color: #0a0f0d;
}

/* --- Sections --- */
.section { padding: 100px 24px; }
.section-narrow { padding: 64px 24px; }
.section-alt { background: var(--bg-surface); }
.section-dark { background: #081205; color: var(--text-body); }
.section-dark h2, .section-dark h3 { color: var(--text-dark); }
.section-dark p { color: var(--text-body); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- Cards Grid --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-dark);
}

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

.card h3 { margin-bottom: 12px; }
.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--green-primary);
    font-size: 1.1rem;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--green-light);
    color: var(--green-primary);
    border-radius: 50px;
}

/* --- Product Card --- */
.product-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-dark);
}

.product-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--bg-surface);
}

.product-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 { margin-bottom: 8px; }
.product-card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Feature tags --- */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.feature-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 14px;
    background: var(--green-light);
    color: var(--green-primary);
    border-radius: 50px;
    border: 1px solid rgba(74,117,6,0.3);
}

/* --- Two-column layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.two-col-image {
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    min-height: 350px;
    object-fit: cover;
}

.two-col-content h2 { margin-bottom: 1rem; }

/* --- Stats row --- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, #142010, #1a2e12);
    color: var(--text-dark);
    text-align: center;
    padding: 80px 24px;
    border-radius: var(--radius-lg);
    margin: 0 24px;
    border: 1px solid rgba(74,117,6,0.3);
}

.cta-banner h2 { color: var(--text-dark); margin-bottom: 1rem; }
.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
.site-footer {
    background: #060a05;
    color: var(--text-muted);
    padding: 80px 24px 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto 48px;
}

.footer-col h5 {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col p { font-size: 0.9rem; line-height: 1.7; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

/* --- Page-specific hero (shorter) --- */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: var(--bg);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,10,8,0.5) 0%, rgba(5,10,8,0.8) 100%);
    z-index: 1;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 48px 24px;
}

.page-hero-content h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero-content p { color: rgba(255,255,255,0.75); font-size: 1.1rem; }

/* --- Page Content --- */
.page-content {
    padding: 80px 24px;
}

.page-content .container { max-width: 800px; }
.page-content h2 { margin: 2rem 0 1rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 1.25rem; }
.page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-body);
}
.page-content ul li { margin-bottom: 0.5rem; }

/* --- Responsive --- */
@media (max-width: 900px) {
    :root { --nav-height: 64px; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a { padding: 14px 24px; width: 100%; }
    .nav-links a::after { display: none; }
    .nav-toggle { display: flex; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .cards { grid-template-columns: 1fr; }

    .hero { min-height: 60vh; }
    .hero h1 { font-size: 1.75rem; }

    .product-card-image { height: 200px; }
    .product-card-body { padding: 24px; }
}

@media (max-width: 500px) {
    .section { padding: 64px 16px; }
    .cta-banner { margin: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-card-meta { flex-direction: column; align-items: flex-start; }
    .cards { grid-template-columns: 1fr; }
}
