
/*
 * CSS Styles for DLL Farms (Pty) Ltd
 * Version: 1.0 (Phase 1)
 * Author: Gemini Web Design
 */

/* === 1. CSS Variables (Color Palette) === */
:root {
    /* Using green from the logo as the primary accent */
    --clr-primary-green: #2a7221; /* A slightly darker green for better contrast */
    --clr-primary-green-hover: #1e5018;
    
    /* Text & Backgrounds */
    --clr-dark-text: #333333;
    --clr-light-text: #f9f9f9;
    --clr-body-text: #555555;
    --clr-light-bg: #f8f9fa;
    --clr-white: #ffffff;
    
    /* Font */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === 2. Global Resets & Base Styles === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--clr-body-text);
    background-color: var(--clr-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--clr-primary-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--clr-dark-text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

ol {
    padding-left: 20px;
}

/* === 3. Layout & Utility Classes === */
.container {
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-padding-light {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: var(--clr-light-bg);
}

.section-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

h2.section-subtitle, .section-subtitle p {
    text-align: left;
}
section h2, .page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* === 4. Grid System === */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3-col {
    grid-template-columns: 1fr; /* Mobile-first: 1 column */
}

.grid-2-col-cta {
    grid-template-columns: 1fr;
    align-items: center;
}

/* === 5. Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--clr-primary-green);
    color: var(--clr-white);
    border: 1px solid var(--clr-primary-green);
}

.btn-primary:hover {
    background-color: var(--clr-primary-green-hover);
    border-color: var(--clr-primary-green-hover);
    color: var(--clr-white);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--clr-white);
    color: var(--clr-primary-green);
    border: 1px solid var(--clr-primary-green);
}

.btn-secondary:hover {
    background-color: var(--clr-primary-green);
    color: var(--clr-white);
    text-decoration: none;
}


/* === 6. Header & Navigation === */
.site-header {
    background: var(--clr-white);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px; /* Adjust as needed */
    width: auto;
}

/* Mobile Nav */
.nav-toggle {
    display: block; /* Show hamburger on mobile */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-dark-text);
}

.main-nav ul {
    display: none; /* Hide nav links by default */
    flex-direction: column;
    position: absolute;
    top: 79px; /* Height of header */
    left: 0;
    width: 100%;
    background: var(--clr-white);
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    list-style: none;
}

.main-nav.nav-active ul {
    display: flex; /* Show nav when active */
}

.main-nav li {
    text-align: center;
}

.main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--clr-dark-text);
    font-weight: 500;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--clr-primary-green);
    text-decoration: none;
}

/* === 7. Page: Home === */

/* Hero Section */
.hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--clr-white);
}

/* Overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    background-color: rgba(0, 0, 0, 0.3); /* Slight inner bg for pop */
    border-radius: 8px;
}

.hero-content h1 {
    color: var(--clr-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* Mission Section */
.mission-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Focus Areas */
.focus-card {
    background: var(--clr-white);
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.focus-card h3 {
    color: var(--clr-primary-green);
    margin-bottom: 1rem;
}

/* Founder CTA */
.founder-cta-img {
    border-radius: 8px;
    margin: 0 auto 1.5rem auto; /* Center on mobile */
    max-width: 350px;
}

/* === 8. Page: Vision === */
.page-content {
    min-height: 70vh;
}

.vision-block {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vision-block h2 {
    text-align: left;
    color: var(--clr-primary-green);
    border-bottom: 2px solid var(--clr-light-bg);
    padding-bottom: 0.5rem;
}

.vision-steps li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.vision-steps strong {
    color: var(--clr-dark-text);
}


/* === 9. Page: About === */
.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

.about-content h2 {
    text-align: left;
}

.about-content h3 {
    color: var(--clr-primary-green);
    margin-top: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.pull-quote {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--clr-dark-text);
    border-left: 4px solid var(--clr-primary-green);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

/* === 10. Page: Contact === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-details h3, .contact-form-container h3 {
    text-align: left;
    color: var(--clr-primary-green);
    margin-bottom: 1.5rem;
}

.contact-details p {
    font-size: 1.05rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--clr-dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* === 11. Footer === */
.site-footer {
    background-color: var(--clr-dark-text);
    color: #aaa;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--clr-white);
    text-decoration: none;
}
.footer-nav a:hover {
    text-decoration: underline;
.site-footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-credit {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
    font-size: 0.85rem;
    color: #888;
}

.footer-credit a {
    color: #aaa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--clr-white);
    text-decoration: none;
}

.footer-credit img {
    height: 18px !important;
    width: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block !important;
    vertical-align: middle;
    object-fit: contain;
}


/* === 12. Media Queries (Desktop & Tablet) === */

/* Tablet (and up) */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    
    /* Desktop Nav */
    .nav-toggle {
        display: none; /* Hide hamburger */
    }
    .main-nav ul {
        display: flex; /* Show nav links */
        flex-direction: row;
        position: static;
        width: auto;
        background: none;
        border: none;
        padding: 0;
    }
    .main-nav a {
        padding: 0.5rem 1rem;
    }
    .main-nav li:last-child a {
        padding-right: 0;
    }

    /* Grids */
    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-2-col-cta {
        grid-template-columns: 300px 1fr;
    }
    .founder-cta-img {
        margin: 0;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 3.5rem;
    }

    /* About Page */
    .about-layout {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
    .about-image {
        margin-top: 1rem;
    }
    .about-image img {
        max-width: 350px;
    }

    /* Contact Page */
    .contact-layout {
        grid-template-columns: 1fr 2fr;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero {
        min-height: 70vh;
    }
}