:root {
    /* Brand Colors derived from Logo */
    --primary-color: #00703c;
    /* Forest Green */
    --secondary-color: #0076d6;
    /* Water Blue */
    --accent-color: #fdb913;
    /* Sun Orange/Yellow */
    --complete-color: #009ddc;
    /* DNR Logo Water Blue - used for "Complete" so it reads against the green card */

    --text-light: #ffffff;
    --text-dark: #1f2937;

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.85);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Glass Card Utility */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Header */
.site-header {
    background: rgba(0, 77, 64, 0.95);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 52px;
    width: auto;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branding-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.branding-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    font-family: var(--font-body);
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-header a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.site-header a:hover {
    color: var(--accent-color);
}

/* Hero */
.hero-section {
    height: 60vh;
    background: url('./assets/hero_bg.png?v=2') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.main-title {
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Intro Section */
.intro-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.overall-progress-card {
    text-align: center;
    background: var(--primary-color);
    color: white;
}

.progress-circle-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.progress-text #overall-percentage {
    font-size: 1.5rem;
    font-weight: bold;
}

.progress-text .label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Accordion / Focus Areas */
.accordion-item {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background: white;
}

.accordion-heading {
    margin: 0;
}

.accordion-header {
    width: 100%;
    background: white;
    border: none;
    font: inherit;
    text-align: left;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f9fafb;
}

.accordion-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.accordion-header .icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9fafb;
}

.accordion-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sector-charts,
.sector-story {
    padding: 1rem;
}

/* Charts */
.bar-chart-group {
    margin-bottom: 2rem;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.bar-bg {
    background: #e5e7eb;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1s ease-out;
}

.bar-complete {
    background: var(--complete-color);
}

.bar-inprogress {
    background: var(--accent-color);
}

.agency-badge {
    font-size: 0.7rem;
    background: #e0f2f1;
    color: #00695c;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.task-count {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.8rem;
}

.no-data-note {
    opacity: 0.7;
    font-style: italic;
    margin-top: 1rem;
}

/* Story */
.story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.story-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #ccc;
}

.story-content {
    padding: 1.5rem;
}

.story-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.story-content p {
    font-size: 0.92rem;
}

.story-links {
    margin: 0.75rem 0 0 1.1rem;
    font-size: 0.9rem;
}

.story-links li {
    margin-bottom: 0.4rem;
}

.story-links a {
    color: var(--primary-color);
}

.photo-credit {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

.story-card a .story-img:hover {
    opacity: 0.92;
}

/* Carousel */
.carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-item h3 {
    font-size: 1.05rem;
    line-height: 1.4;
}

.carousel-item .date {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.carousel-item .read-more {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.carousel-item .read-more:hover {
    text-decoration: underline;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-item {
    min-width: 300px;
    flex: 0 0 300px;
    /* Fixed width cards */
    scroll-snap-align: start;
    transition: transform 0.3s;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    /* Increased from 40px */
    height: 50px;
    /* Increased from 40px */
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    /* Increased from 1.2rem */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-controls button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: #004d40;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-sub {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .accordion-body {
        grid-template-columns: 1fr;
    }

    .intro-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height: 50vh;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .site-header nav ul {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Visible focus indicator for keyboard navigation */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Progress Legend */
.progress-text .label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.progress-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-complete {
    background-color: var(--complete-color);
}

.dot-inprogress {
    background-color: #fdb913;
}

.dot-notstarted {
    background-color: #e5e7eb;
}

.dot {
    box-shadow: 0 0 0 1px #111827;
}