/* ============================================
   CRONAH — STYLES
   Design system: forest green + warm earth tones
   ============================================ */

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand colors */
    --color-primary: #2d5f3f;        /* Forest green */
    --color-primary-dark: #1e4229;
    --color-primary-light: #4a8060;
    --color-accent: #d4915f;         /* Warm terracotta */
    --color-accent-dark: #b87245;
    
    /* Neutrals */
    --color-bg: #fafaf7;
    --color-bg-alt: #f0ede5;
    --color-text: #1a2620;
    --color-text-light: #5a6b62;
    --color-border: #d8d4ca;
    
    /* Placeholders (these are the colored blocks you'll replace with images) */
    --placeholder-bg: #c8d4cb;
    --placeholder-border: #8fa094;
    --placeholder-text: #4a5a4f;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ GLOBAL IMAGE HOVER EFFECT ============ */
/* All images get a subtle lift on hover */
.hero-image,
.problem-icon,
.flow-image,
.about-image,
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero-image:hover,
.flow-image:hover,
.about-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.problem-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ============ PLACEHOLDER BLOCKS ============ */
/* These are the colored blocks that will be replaced with images later */
.placeholder-image,
.placeholder-icon {
    background: var(--placeholder-bg);
    border: 2px dashed var(--placeholder-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--placeholder-text);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 16px;
    position: relative;
    border-radius: 8px;
}

.placeholder-image::after,
.placeholder-icon::after {
    content: attr(data-label);
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 10px;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.highlight {
    color: var(--color-primary);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* ============ NAVIGATION ============ */
.navbar {
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.logo-light {
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: var(--color-primary);
    color: white;
    padding: 60px 0;
}

.stats-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.stats-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.stats-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.stats-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat {
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
}

.stat:hover .stat-number {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* ============ SECTIONS ============ */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-top: 12px;
}

/* ============ ABOUT SECTION ============ */
.about-section .section-header {
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 500;
    padding-left: 16px;
    border-left: 3px solid var(--color-primary);
}

.about-text h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.about-values {
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid var(--color-border);
}

.value-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

.value-item:last-child {
    border-bottom: none;
}

.value-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    min-width: 32px;
}

.value-item h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.value-item p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* ============ PROBLEM GRID ============ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.problem-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

/* ============ SOLUTION FLOW ============ */
.solution-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

.flow-step {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.flow-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.flow-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px 0 20px;
    display: block;
}

.flow-image.small {
    height: 140px;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--color-primary);
    align-self: center;
    font-weight: 300;
}

/* ============ PACKAGES ============ */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.package-card.featured {
    border-color: var(--color-primary);
    border-width: 2px;
    transform: scale(1.02);
}

.package-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--color-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.package-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 8px;
}

.package-duration {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 4px;
}

.package-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.package-features li {
    padding: 8px 0;
    color: var(--color-text-light);
    position: relative;
    padding-left: 24px;
}

.package-features li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* ============ SDG GRID ============ */
.sdg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.sdg-card {
    background: white;
    padding: 28px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sdg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.sdg-number {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* ============ GALLERY ============ */
.gallery-preview h3 {
    text-align: center;
    margin-bottom: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    min-height: 200px;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: var(--color-primary);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: white;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section > .container > p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: var(--color-text);
}

.contact-form textarea {
    margin-bottom: 16px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    background: var(--color-accent);
    color: white;
}

.contact-form button:hover {
    background: var(--color-accent-dark);
}

.form-success {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
    text-align: center;
}

.form-success.show {
    display: block;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 4px 0;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero-content,
    .about-grid,
    .problem-grid,
    .packages-grid,
    .sdg-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .solution-flow {
        grid-template-columns: 1fr;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }
    
    .stats-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .package-card.featured {
        transform: none;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    :root {
        --section-padding: 60px 0;
    }
}