/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Colors inspired by the logo */
    --clr-bg-darkest: #050705;
    /* Very dark almost black background */
    --clr-bg-dark: #0a0d0a;
    /* Slightly lighter dark for sections */
    --clr-bg-card: #121812;
    /* Card background */
    --clr-text-main: #f0f4f0;
    /* Off-white text */
    --clr-text-muted: #9fa69f;
    /* Muted text for paragraphs */

    /* Logo accents */
    --clr-accent-light: #52B756;
    /* Vivid green (Leaf/Subtitle) */
    --clr-accent-light-rgb: 82, 183, 86;
    --clr-accent-dark: #1F5128;
    /* Deep forest green (Main text) */

    --clr-border: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Global Resets
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-darkest);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
}

p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--clr-bg-dark);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled,
.header.bg-solid {
    background: rgba(5, 7, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    /* Reduced for better fit in header */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--clr-accent-light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-link:not(.btn-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent-light);
    transition: var(--transition-smooth);
}

.nav-link:not(.btn-outline):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--clr-accent-dark);
    color: white;
    border: 1px solid var(--clr-accent-dark);
}

.btn-primary:hover {
    background-color: var(--clr-accent-light);
    border-color: var(--clr-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(82, 183, 86, 0.2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
}

.btn-outline:hover {
    border-color: var(--clr-accent-light);
    color: var(--clr-text-main);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 7, 5, 0.4) 0%, var(--clr-bg-darkest) 100%), url('../images/hero.png') no-repeat center center / cover;
    z-index: -1;
}

/* Optional: Adding some subtle ambient glow mimicking the green */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 183, 86, 0.05) 0%, transparent 70%);
    transform: translateY(-50%);
    filter: blur(60px);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--clr-accent-light);
    margin: 0 auto 1.5rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--clr-bg-card);
    padding: 3rem 2rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-accent-light);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-img-wrapper {
    margin: -3rem -2rem 2rem;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--clr-accent-dark);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-accent-light);
    margin-bottom: 1.5rem;
    display: none;
    /* Hidden since we now use images */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   People Section
   ========================================================================== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.person-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

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

.person-img {
    height: 350px;
    background-color: #1a211a;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.person-card:hover .person-img {
    filter: grayscale(0%);
}

.placeholder-img {
    background-image: linear-gradient(to bottom, #1a211a, #0a0d0a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-img::after {
    content: '\f007';
    /* FontAwesome user icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
}

.person-info {
    padding: 2rem;
}

.person-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.person-info .role {
    color: var(--clr-accent-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.person-info p:not(.role) {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    padding: 4rem;
    background: linear-gradient(135deg, var(--clr-accent-dark) 0%, #0c1c10 100%);
    color: #fff;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--clr-accent-light);
    font-size: 1.2rem;
}

.contact-form-container {
    flex: 1.5;
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
}

.form-control,
input,
textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    padding: 0.8rem 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus,
input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--clr-accent-light);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-bg-darkest);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 0px;
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--clr-accent-light);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-muted);
    transition: var(--transition-smooth);
    cursor: default;
    /* No links attached */
}

.social-icon:hover {
    color: #fff;
    border-color: var(--clr-accent-light);
    background-color: rgba(82, 183, 86, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-link:hover {
    color: var(--clr-accent-light);
}

/* ==========================================================================
   Subpages
   ========================================================================== */
.pt-20 {
    padding-top: 120px;
}

.page-container {
    max-width: 800px;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--clr-accent-light);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) 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: 992px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 7, 5, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
    }

    .nav-list.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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