*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c5f2d;
    --color-primary-dark: #1a3d1b;
    --color-accent: #97bc62;
    --color-accent-light: #c5d89a;
    --color-warm: #d4a373;
    --color-warm-dark: #a67c52;
    --color-bg-main: #f5f0e8;
    --color-bg-card: #fffdf7;
    --color-bg-dark: #1b2a1b;
    --color-bg-section: #eae4d9;
    --color-text: #2d2d2d;
    --color-text-light: #5a5a5a;
    --color-text-muted: #8a8a7a;
    --color-border: #d4ccba;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
    --font-alt: 'Source Sans 3', 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(44, 95, 45, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 95, 45, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 95, 45, 0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #253825 100%);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.main-nav .nav-list a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #fff;
    background: rgba(151, 188, 98, 0.2);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--color-bg-dark) 0%, #2a4a2a 40%, #3d5c3d 100%);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    color: #fff;
}

.hero-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(151, 188, 98, 0.2);
    border: 1px solid rgba(151, 188, 98, 0.4);
    border-radius: 20px;
    font-family: var(--font-alt);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 540px;
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.85rem 2rem;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.hero-cta:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-image-wrap {
    position: relative;
}

.hero-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.hero-image-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(27, 42, 27, 0.85);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-family: var(--font-alt);
    font-style: italic;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0.75rem 0 1.5rem;
    border-radius: 2px;
}

.content-section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-divider {
    margin: 0.75rem auto 1rem;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.species-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.species-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.species-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.species-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.species-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.species-card:hover .species-card-image img {
    transform: scale(1.05);
}

.species-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-alt);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-transform: uppercase;
}

.species-card-body {
    padding: 1.5rem;
}

.species-card-body h3 {
    margin-bottom: 0.5rem;
}

.species-card-body h3 a {
    color: var(--color-primary-dark);
}

.species-card-body h3 a:hover {
    color: var(--color-primary);
}

.species-card-latin {
    display: block;
    font-family: var(--font-alt);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.species-card-body p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.species-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.alt-section {
    background: var(--color-bg-section);
    padding: 5rem 0;
}

.alt-section .content-section {
    padding-top: 0;
    padding-bottom: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-alt);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.info-grid.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.info-text h2 {
    margin-bottom: 0.5rem;
}

.info-text p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.info-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.article-page {
    margin-top: 70px;
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-header h1 {
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-alt);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.article-image-credit {
    font-family: var(--font-alt);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--color-text);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.85;
    color: var(--color-text);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-section);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.article-image-inline {
    margin: 2rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-image-inline img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.article-image-inline figcaption {
    padding: 0.75rem 1rem;
    background: var(--color-bg-section);
    font-family: var(--font-alt);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}

.species-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: var(--font-alt);
    font-size: 0.95rem;
}

.species-table th,
.species-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.species-table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.species-table tr:nth-child(even) {
    background: var(--color-bg-section);
}

.species-table tr:hover {
    background: rgba(151, 188, 98, 0.1);
}

.related-articles {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--color-border);
}

.related-articles h3 {
    margin-bottom: 1.5rem;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.related-item {
    display: block;
    padding: 1.25rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.related-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-primary);
}

.related-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.related-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.about-page,
.contact-page,
.policy-page {
    margin-top: 70px;
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-page h1,
.contact-page h1,
.policy-page h1 {
    margin-bottom: 0.75rem;
}

.about-page p,
.contact-page p,
.policy-page p {
    color: var(--color-text-light);
    line-height: 1.85;
}

.contact-details {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-details h3 {
    margin-bottom: 1rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
}

.contact-info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-alt);
    display: flex;
    gap: 0.5rem;
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list strong {
    min-width: 100px;
    color: var(--color-primary-dark);
}

.policy-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.policy-page ul {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.85;
    color: var(--color-text-light);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--color-bg-dark);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--color-accent-light);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.cookie-accept {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.cookie-accept:hover {
    background: var(--color-accent-light);
}

.cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-reject:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 1.5rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-alt);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-section ul a:hover {
    color: var(--color-accent-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--color-accent-light);
}

.update-date {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--color-bg-section);
    border-radius: var(--radius-sm);
    font-family: var(--font-alt);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .hero-image-wrap {
        max-width: 500px;
        margin: 0 auto;
    }

    .info-grid,
    .info-grid.reverse {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg-dark);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 1050;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0.25rem;
    }

    .main-nav .nav-list a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .species-showcase {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .article-featured-image {
        height: 250px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-list li {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 60px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .article-page,
    .about-page,
    .contact-page,
    .policy-page {
        padding: 2rem 1rem;
    }
}