/* 
  Greenwise Lawn Academy - Main Stylesheet
  Colors:
  Primary: #2D6A4F
  Primary Light: #52B788
  Secondary: #D4A373
  Background: #FEFEE3
  Surface: #FFFFFF
  Text Primary: #1B4332
  Text Secondary: #6B705C
  Border: #DDD8C4
*/

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

:root {
    --primary: #2D6A4F;
    --primary-light: #52B788;
    --secondary: #D4A373;
    --background: #FEFEE3;
    --surface: #FFFFFF;
    --text-primary: #1B4332;
    --text-secondary: #6B705C;
    --border: #DDD8C4;
    --spacing-unit: 4px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 4);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

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

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

/* ================= Navbar ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

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

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* ================= Footer ================= */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: var(--secondary);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 15px;
    border: none;
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.newsletter-form button:hover {
    background-color: #b88a5d;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ================= Responsive ================= */
@media (min-width: 768px) {
    .nav-cta {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--surface);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 15px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }

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

/* ================= Specific Page Layouts ================= */
section {
    padding: 80px 0;
}

.bg-surface { background-color: var(--surface); }

/* Hero */
.hero {
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 67, 50, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

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

.feature-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

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

.course-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.course-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.course-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.course-content {
    padding: 24px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.course-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Newsletter CTA */
.newsletter-section {
    background-color: var(--primary-light);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.newsletter-section h2 {
    color: white;
}

.newsletter-section .newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
}

/* Page Headers */
.page-header {
    background-color: var(--primary);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

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

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
}

/* Accordion FAQ */
details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
}
summary {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary);
}
details[open] summary::after {
    content: '-';
}
details p {
    margin-top: 15px;
    color: var(--text-secondary);
}

/* Blog Post Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}
@media(max-width: 768px) {
    .blog-layout { grid-template-columns: 1fr; }
}
.sidebar-widget {
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}
.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}
.sidebar-list {
    list-style: none;
}
.sidebar-list li {
    margin-bottom: 10px;
}

.article-header {
    margin-bottom: 30px;
}
.article-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.article-tag {
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.article-content h2 { margin-top: 40px; }
.article-content p { margin-bottom: 20px; }
.article-content ul { margin-bottom: 20px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; }
