:root {
    --primary-color: #2d6a4f; /* Emerald Green */
    --primary-light: #40916c;
    --secondary-color: #d8c3a5; /* Warm Sand */
    --accent-color: #e85d04; /* Sunset Orange */
    --accent-hover: #dc2f02;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #faf9f6; /* Off-white */
    --bg-card: #ffffff;
    --border-radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(45, 106, 79, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

/* --- HEADER (Slim, Unstuck, Responsive) --- */
.site-header {
    background-color: var(--bg-card);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Scrolls away */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

.brand-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo svg {
    width: 30px;
    height: 30px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-cta {
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* --- MAIN LAYOUT & HERO --- */
main {
    min-height: calc(100vh - 300px);
}

.hero {
    background: linear-gradient(rgba(45, 106, 79, 0.8), rgba(45, 106, 79, 0.9)), url('images/photo-1544161515-4ab6ce6db874.png') center/cover no-repeat;
    color: #000;
    text-align: center;
    padding: 100px 5%;
}

.hero h1 {
    color: #000;
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero p {
    color: #000;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* --- CARDS GRID (Tools/Articles) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.location-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-btn {
    display: inline-block;
    text-align: center;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.card-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- DETAIL PAGES --- */
.detail-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 50px 5%;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

.detail-hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.detail-hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.detail-body {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 5%;
    font-size: 1.1rem;
}

.detail-body p {
    margin-bottom: 20px;
}

.detail-body h2 {
    margin-top: 40px;
    font-size: 2rem;
}

.detail-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.detail-body li {
    margin-bottom: 10px;
}

.feature-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin: 40px 0;
    border-left: 5px solid var(--accent-color);
}

.external-link-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
}

.external-link-btn:hover {
    background-color: var(--primary-light);
    color: #fff;
}

/* --- LEGAL & CONTACT PAGES --- */
.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 5%;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

/* --- FOOTER (Mandatory Unified) --- */
.site-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 5% 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 10px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #888;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    flex: 1 1 300px;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        gap: 20px;
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

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