/* Timber Bureau - Sustainable Forestry Certification
   Color Palette: Pine Green #01796f, Bark Brown #8b4513, Sky White #f0f8ff */

:root {
    --pine-green: #01796f;
    --pine-green-dark: #015a53;
    --pine-green-light: #028a7e;
    --bark-brown: #8b4513;
    --bark-brown-dark: #6d360f;
    --bark-brown-light: #a5521a;
    --sky-white: #f0f8ff;
    --forest-shadow: #1a3c34;
    --leaf-accent: #2d8659;
    --cream: #faf8f5;
    --charcoal: #2c3e35;
}

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

body {
    font-family: 'Crimson Text', Georgia, serif;
    background-color: var(--sky-white);
    color: var(--charcoal);
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--forest-shadow);
    line-height: 1.3;
}

/* Header & Navigation */
.top-bar {
    background: var(--pine-green-dark);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.top-bar a:hover {
    color: #fff;
}

header {
    background: linear-gradient(180deg, var(--pine-green) 0%, var(--pine-green-dark) 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    text-decoration: none;
}

.logo-icon {
    width: 55px;
    height: 55px;
}

.logo-text {
    color: #fff;
}

.logo-text h1 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'Inter', -apple-system, sans-serif;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(1,89,83,0.92) 0%, rgba(26,60,52,0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="trees" patternUnits="userSpaceOnUse" width="50" height="50"><path d="M25 50 L15 30 L25 35 L20 20 L25 25 L25 10 L25 25 L30 20 L25 35 L35 30 Z" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23trees)" width="100" height="100"/></svg>');
    padding: 100px 40px;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--sky-white), transparent);
}

.hero h1 {
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--bark-brown);
    color: #fff;
    border: 2px solid var(--bark-brown);
}

.btn-primary:hover {
    background: var(--bark-brown-dark);
    border-color: var(--bark-brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,69,19,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--pine-green);
}

.section-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 650px;
    margin: 20px auto 0;
}

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

.card {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--pine-green);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--pine-green-dark);
}

.card p {
    color: #555;
    margin-bottom: 20px;
}

.card-link {
    color: var(--bark-brown);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

/* Stats Section */
.stats-bar {
    background: var(--pine-green);
    padding: 50px 40px;
    margin-top: -1px;
}

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

.stat-item {
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Certification Badges */
.badge-showcase {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.cert-badge {
    text-align: center;
}

.cert-badge svg {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.cert-badge h4 {
    font-size: 1.1rem;
    color: var(--pine-green-dark);
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--pine-green);
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--pine-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: 'Playfair Display', Georgia, serif;
}

.step h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--forest-shadow);
}

.step p {
    font-size: 0.95rem;
    color: #666;
}

/* Member Logos */
.member-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
}

.member-logo {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.member-logo:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.member-logo svg {
    width: 100%;
    max-width: 150px;
    height: 60px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    color: #555;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail svg {
    width: 24px;
    height: 24px;
    color: var(--pine-green);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-detail p {
    margin: 0;
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--forest-shadow);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pine-green);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--forest-shadow);
    color: rgba(255,255,255,0.85);
    padding: 70px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--pine-green) 0%, var(--forest-shadow) 100%);
    padding: 80px 40px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.content-text p {
    margin-bottom: 15px;
    color: #555;
}

.content-text ul {
    margin: 20px 0;
    padding-left: 25px;
}

.content-text li {
    margin-bottom: 10px;
    color: #555;
}

.content-image {
    background: var(--cream);
    border-radius: 8px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.content-image svg {
    width: 60%;
    height: 60%;
    opacity: 0.6;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--forest-shadow);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--cream);
}

.accordion-content {
    padding: 0 25px 20px;
    color: #555;
}

/* Resources List */
.resources-list {
    display: grid;
    gap: 20px;
}

.resource-item {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.resource-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: var(--pine-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.resource-info h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--forest-shadow);
}

.resource-info p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.resource-download {
    margin-left: auto;
    color: var(--bark-brown);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .step::after {
        display: none;
    }

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

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        padding: 15px 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .contact-grid,
    .content-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-block.reverse {
        direction: ltr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .page-header {
        padding: 50px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
