/*--------------------------------------------------------------
# Normalize & Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #2e7d32;
    /* Forest Green */
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #f57f17;
    /* Earthy Orange */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9fbf9;
    /* Very light green tint */
    --bg-dark: #1a251b;
    --white: #ffffff;
    --border-color: #e0e0e0;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*--------------------------------------------------------------
# Typography & Utilities
--------------------------------------------------------------*/
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.max-w-3xl {
    max-width: 800px;
}

.section-padding {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 120px 0;
    }
}

.sub-title {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
}

.sub-title-light {
    color: var(--primary-light);
}

.section-title-wrapper {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.site-branding img,
.custom-logo-link img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.main-navigation li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0;
    position: relative;
    padding-top: 80px;
    /* offset for fixed header */
}

.hero-content {
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/*--------------------------------------------------------------
# Pillars Section (Cards)
--------------------------------------------------------------*/
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.pillar-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.placeholder-img {
    width: 100%;
    padding-top: 120%;
    background-size: cover;
    background-position: center;
}

.stats-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Featured Service Section
--------------------------------------------------------------*/
.video-placeholder {
    margin: 40px auto 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.play-button {
    margin-bottom: 10px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #0d140e;
    color: rgba(255, 255, 255, 0.7);
}

.footer-widgets {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-widget .widget-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-menu li,
.footer-service-list li,
.footer-contact-info li {
    margin-bottom: 12px;
}

.footer-menu a,
.footer-service-list a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu a:hover,
.footer-service-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.site-info .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

/*--------------------------------------------------------------
# Forms and Contact Page
--------------------------------------------------------------*/
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text a,
.contact-text span {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.form-wrapper {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.form-wrapper h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Publications / Blog Grid
--------------------------------------------------------------*/
.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .publications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.publication-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumbnail img,
.placeholder-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.placeholder-fallback {
    background-size: cover;
    background-position: center;
}

.publication-card:hover .post-thumbnail img,
.publication-card:hover .placeholder-fallback {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.entry-header .entry-title {
    font-size: 1.05rem;
    margin-bottom: 5px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-header .entry-title a {
    color: var(--text-color);
}

.entry-header .entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.entry-summary {
    color: var(--text-light);
    margin-bottom: 10px;
    flex-grow: 1;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
    font-size: 0.85rem;
}

.read-more-link:hover {
    color: var(--primary-dark);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: block;
        padding: 5px;
    }

    .hamburger-box {
        width: 30px;
        height: 24px;
        display: inline-block;
        position: relative;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 30px;
        height: 2px;
        background-color: var(--text-color);
        position: absolute;
        transition: transform 0.15s ease;
    }

    .hamburger-inner {
        top: 50%;
        margin-top: -1px;
    }

    .hamburger-inner::before {
        content: "";
        top: -8px;
    }

    .hamburger-inner::after {
        content: "";
        bottom: -8px;
    }

    .main-navigation {
        position: static;
        display: block;
    }

    .menu-primary-container {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        display: none;
    }

    .main-navigation.toggled .menu-primary-container {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .main-navigation li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .header-actions {
        display: none;
    }

    .slider-controls {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .slider-dots {
        bottom: 20px;
    }
}