:root {
    --primary-dark: #1f4e2d;
    --primary: #2d7a3e;
    --primary-light: #4ea25f;
    --accent: #87c057;
    --bg: #ffffff;
    --bg-soft: #f4f8f2;
    --bg-tinted: #eaf2e6;
    --text: #1a201a;
    --text-muted: #5a6b5a;
    --border: #d8e4d6;
    --shadow-sm: 0 1px 2px rgba(31, 78, 45, 0.05), 0 1px 3px rgba(31, 78, 45, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(31, 78, 45, 0.08), 0 2px 4px -1px rgba(31, 78, 45, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(31, 78, 45, 0.12), 0 8px 10px -6px rgba(31, 78, 45, 0.08);
    --max-w: 1140px;
    --radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===== Header / Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-dark);
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    display: inline-block;
    padding: 9px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.93rem;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-menu a:hover {
    background: var(--bg-tinted);
    color: var(--primary-dark);
}

.nav-menu a.active {
    background: var(--primary-dark);
    color: white;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background: #1a3320;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/banner.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 50, 28, 0.35) 0%, rgba(20, 50, 28, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 96px 24px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.35rem, 3.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero .hero-sub {
    margin-top: 22px;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.hero-cta {
    margin-top: 36px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ===== Page header (non-home pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 70px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
}

.page-header-inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
}

.page-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
}

.page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.page-header p {
    margin-top: 14px;
    max-width: 720px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

/* ===== Main content ===== */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 70px 24px;
}

.section h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
    line-height: 1.3;
    letter-spacing: -0.15px;
}

.section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 28px 0 10px;
}

.section p {
    margin-bottom: 16px;
    color: var(--text);
}

.section p.lead {
    font-size: 1.08rem;
    color: var(--text);
}

.section .muted {
    color: var(--text-muted);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}

.text-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 24px;
}

.objective {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.objective-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-tinted);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.objective-body h3 {
    margin: 0 0 6px;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.objective-body p {
    margin: 0;
    color: var(--text);
}

/* ===== Key facts grid ===== */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 32px 0 8px;
}

.fact {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fact-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.fact-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Document list ===== */
.docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.doc {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: var(--shadow-sm);
}

.doc:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.doc.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.doc-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-tinted);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon svg {
    width: 22px;
    height: 22px;
}

.doc-body {
    flex: 1;
    min-width: 0;
}

.doc-title {
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1.35;
    margin-bottom: 3px;
}

.doc-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.doc-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.18s ease;
}

.doc-arrow svg {
    width: 20px;
    height: 20px;
}

.doc:not(.disabled):hover .doc-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(1px);
}

.btn.ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
}

.btn.outline {
    background: transparent;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
}

.btn.outline:hover {
    background: var(--primary);
    color: white;
}

.btn.disabled,
.btn:disabled {
    background: var(--bg-tinted);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn.disabled:hover,
.btn:disabled:hover {
    background: var(--bg-tinted);
    color: var(--text-muted);
}

/* ===== Contact ===== */
.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
    max-width: 760px;
    margin: 0 auto;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 18px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-tinted);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-body {
    flex: 1;
    min-width: 0;
}

.contact-item-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.contact-item-value a {
    color: var(--text);
}

.contact-item-value a:hover {
    color: var(--primary);
}

.company-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.company-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* ===== Comunicat placeholder ===== */
.placeholder-state {
    text-align: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px 32px;
    margin-top: 24px;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--bg-tinted);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon svg {
    width: 30px;
    height: 30px;
}

.placeholder-state h3 {
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.placeholder-state p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 22px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 24px 28px;
    margin-top: 60px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-brand {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.footer-brand small {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 24px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 12px;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 2px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 70px 20px;
    }

    .section {
        padding: 50px 22px;
    }

    .page-header {
        padding: 56px 22px 48px;
    }

    .contact-card {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 18px;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .objective {
        padding: 18px;
    }
}
