.hero-section {
    position: relative;
    min-height: 540px;
    background-color: var(--color-brand);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(92, 40, 10, 0.72);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 90%;
    max-width: 820px;
    text-align: center;
    padding: 48px 24px;
}

.hero-eyebrow-text {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.timeline-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 64px;
}

.timeline-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 14px;
}

.timeline-intro {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ddd;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 0 0 56px;
    position: relative;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.timeline-item--right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    top: 0;
    flex-shrink: 0;
}

.timeline-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 28px;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-width: 0;
}

.timeline-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.timeline-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-step-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.timeline-link {
    color: var(--color-brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--color-brand);
    transition: opacity 0.2s;
}

.timeline-link:hover,
.timeline-link:focus {
    opacity: 0.75;
}

.progress-section {
    padding: 80px 0;
    background-color: #fff;
}

.progress-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.progress-section-header {
    text-align: center;
    margin-bottom: 52px;
}

.progress-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 12px;
}

.progress-section-sub {
    color: var(--text-muted);
    font-size: 16px;
}

.progress-circles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.progress-circle-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.progress-circle-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle-wrap svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
}

.progress-circle-pct {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.6;
}

.progress-circle-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
}

.articles-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.articles-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.articles-header {
    margin-bottom: 40px;
}

.articles-section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 10px;
}

.articles-section-sub {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

.card-featured {
    display: flex;
    gap: 40px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-featured-img {
    flex: 0 0 46%;
    min-width: 0;
}

.card-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-featured-body {
    flex: 1;
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.card-featured-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}

.card-featured-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.6;
}

.card-featured-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.card-featured-title a:hover,
.card-featured-title a:focus {
    color: var(--color-brand);
    text-decoration: none;
}

.card-featured-excerpt {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.card-featured-meta {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.card-meta-sep {
    margin: 0 6px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-article {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.card-article:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card-article-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-article-body {
    padding: 20px 20px 24px;
}

.card-article-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
}

.card-article-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.6;
}

.card-article-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.card-article-title a:hover,
.card-article-title a:focus {
    color: var(--color-brand);
}

.card-article-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-article-meta {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.calculator-section {
    padding: 80px 0;
    background-color: #fff;
}

.calculator-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.calculator-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: start;
}

.calculator-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 16px;
    line-height: 1.6;
}

.calculator-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.calc-tip-head {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 10px;
}

.calc-tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calc-tip-list li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.calc-tip-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-brand);
    border-radius: 50%;
}

.calculator-widget {
    background-color: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px 28px;
}

.calc-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.calc-input,
.calc-select {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.calc-input:focus,
.calc-select:focus {
    border-color: var(--color-brand);
    outline: 2px solid var(--color-brand);
    outline-offset: 1px;
}

.calc-btn {
    background-color: var(--color-cta);
    color: #fff;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color 0.2s;
}

.calc-btn:hover,
.calc-btn:focus {
    background-color: #15803d;
    outline: 2px solid #15803d;
    outline-offset: 2px;
}

.calc-result {
    background-color: var(--color-brand);
    color: #fff;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    display: none;
    line-height: 1.6;
}

.calc-result p {
    color: #fff;
    margin: 0 0 6px;
}

.calc-result p:last-child {
    margin: 0;
}

.dashboard-section {
    padding: 80px 0;
    background-color: var(--color-brand);
}

.dashboard-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
}

.dashboard-sub {
    color: rgba(255,255,255,0.8);
    text-align: center;
    font-size: 16px;
    margin-bottom: 48px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.kpi-card {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    transition: background-color 0.2s;
}

.kpi-card:hover {
    background-color: rgba(255,255,255,0.17);
}

.kpi-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.kpi-icon svg path,
.kpi-icon svg rect,
.kpi-icon svg circle {
    stroke: #fff;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0;
}

.heatmap-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.heatmap-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.heatmap-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 12px;
    text-align: center;
}

.heatmap-sub {
    color: var(--text-muted);
    text-align: center;
    font-size: 16px;
    margin-bottom: 36px;
}

.table-caption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 10px;
    caption-side: top;
}

.heatmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.heatmap-table thead tr {
    background-color: var(--color-brand);
}

.heatmap-table thead th {
    color: #fff;
    font-weight: 700;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
}

.heatmap-table thead th:first-child {
    text-align: left;
}

.heatmap-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.heatmap-table tbody tr:last-child {
    border-bottom: none;
}

.heatmap-table tbody td {
    padding: 11px 14px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dark);
}

.task-name {
    text-align: left !important;
    font-weight: 700;
    color: var(--text-dark);
}

.heat-high {
    background-color: rgba(146, 64, 14, 0.18);
    color: var(--color-brand);
    font-weight: 700;
    border-radius: 4px;
}

.heat-mid {
    background-color: rgba(146, 64, 14, 0.09);
    color: #7a3510;
    font-weight: 400;
}

.heat-none {
    color: #bbb;
}

.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 12px;
    text-align: center;
}

.gallery-sub {
    color: var(--text-muted);
    text-align: center;
    font-size: 16px;
    margin-bottom: 36px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-thumb:hover img,
.gallery-thumb:focus img {
    transform: translateY(-3px);
}

.gallery-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(92, 40, 10, 0.75);
    padding: 10px 14px;
}

.gallery-thumb-label {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.88);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay[hidden] { display: none !important; }

.modal-box {
    position: relative;
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-img-wrap {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.modal-img-wrap img {
    max-height: 80vh;
    width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.modal-caption {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 12px 0 0;
}

.modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav {
    background-color: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.modal-nav:hover {
    background-color: rgba(255,255,255,0.22);
}

.newsletter-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.newsletter-container {
    width: 90%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px;
}

.newsletter-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 14px;
}

.newsletter-sub {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 28px;
}

.newsletter-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.nl-input {
    flex: 1;
    min-width: 220px;
    padding: 13px 16px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.nl-input:focus {
    border-color: var(--color-brand);
    outline: 2px solid var(--color-brand);
    outline-offset: 1px;
}

.newsletter-legal {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    margin-bottom: 0;
}

.nl-feedback {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-brand);
    margin-top: 10px;
    min-height: 20px;
}

@media (max-width: 900px) {
    .timeline-track::before {
        left: 20px;
    }
    .timeline-item {
        padding-right: 0;
        padding-left: 64px;
        justify-content: flex-start;
        flex-direction: row;
    }
    .timeline-item--right {
        padding-left: 64px;
        padding-right: 0;
        flex-direction: row;
        justify-content: flex-start;
    }
    .timeline-marker {
        left: 0;
        transform: none;
    }
    .timeline-content {
        max-width: 100%;
    }
    .card-featured {
        flex-direction: column;
    }
    .card-featured-img {
        flex: none;
        width: 100%;
    }
    .card-featured-img img {
        height: 260px;
    }
    .card-featured-body {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .timeline-section,
    .progress-section,
    .articles-section,
    .calculator-section,
    .dashboard-section,
    .heatmap-section,
    .gallery-section,
    .newsletter-section {
        padding: 48px 0;
    }
    .timeline-title,
    .articles-section-title,
    .calculator-title,
    .dashboard-title,
    .heatmap-title,
    .gallery-title,
    .newsletter-title,
    .progress-section-title {
        font-size: 22px;
    }
    .calculator-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-fields {
        flex-direction: column;
    }
    .nl-input {
        min-width: 0;
    }
    .modal-box {
        flex-direction: column;
    }
    .modal-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 32px 16px;
    }
    .hero-title {
        font-size: 22px;
    }
    .progress-circles-grid {
        gap: 20px;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .calculator-widget {
        padding: 20px 16px;
    }
    .timeline-content {
        padding: 18px 16px;
    }
}