/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #194d2f;
}

.hero__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 77, 47, 0.4);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 48px;
    margin: 0 auto 48px;
    text-align: center;
    color: #fff;
}

.hero__tag {
    display: inline-block;
    background-color: #80cbc4;
    color: #194d2f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.hero__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #fff;
}

.hero__link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero__link:hover,
.hero__link:focus {
    color: #80cbc4;
    text-decoration: underline;
}

.hero__excerpt {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__separator {
    color: #80cbc4;
}

.hero__category {
    background-color: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #194d2f;
    text-align: center;
    margin: 0 0 12px 0;
}

.section-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    color: #8d8d8d;
    text-align: center;
    margin: 0 0 48px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.tool-card__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #194d2f;
    margin: 0 0 8px 0;
}

.tool-card__desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #8d8d8d;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Calculator Form */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-field label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.calc-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.calc-range {
    width: 100%;
    accent-color: #194d2f;
}

.calc-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #194d2f;
    font-weight: 600;
}

.calc-result {
    background-color: #194d2f;
    color: #fff;
    padding: 16px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.calc-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
}

.calc-number {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #80cbc4;
}

/* Savings Comparison */
.savings-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f0f0f0;
    border-radius: 6px;
}

.savings-item--diy {
    background-color: #e8f5e9;
}

.savings-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #666;
}

.savings-price {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.savings-price--diy {
    color: #194d2f;
}

.savings-total {
    background-color: #194d2f;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.savings-total__label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
}

.savings-total__amount {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #80cbc4;
    margin-bottom: 4px;
}

.savings-total__percent {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    background-color: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.heatmap-cell:hover {
    transform: scale(1.05);
}

.heatmap-cell--high {
    background-color: #194d2f;
    color: #fff;
}

.heatmap-cell--medium {
    background-color: #80cbc4;
    color: #194d2f;
}

.heatmap-cell--low {
    background-color: #e0e0e0;
    color: #8d8d8d;
}

.heatmap__name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.heatmap__season {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 10px;
    opacity: 0.8;
}

/* Color Transitions */
.color-transitions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #ddd;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.color-item:hover {
    background-color: var(--hover-color, #194d2f);
    border-left-color: var(--hover-color, #194d2f);
    color: #fff;
}

.color-item:hover .color-item__name,
.color-item:hover .color-item__prop {
    color: #fff;
}

.color-item__name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.color-item__prop {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 13px;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
    grid-auto-flow: dense;
}

.masonry-item {
    display: flex;
}

.masonry-item--tall {
    grid-row: span 2;
}

.masonry-item--wide {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .masonry-item--wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .masonry-item--tall,
    .masonry-item--wide {
        grid-row: span 1;
        grid-column: span 1;
    }
}

.masonry-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.masonry-card__image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.masonry-item--tall .masonry-card__image-wrapper {
    height: 400px;
}

.masonry-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.masonry-card:hover .masonry-card__image {
    transform: scale(1.05);
}

.masonry-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #80cbc4;
    color: #194d2f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
}

.masonry-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.masonry-card__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.masonry-card__link {
    color: #194d2f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.masonry-card__link:hover,
.masonry-card__link:focus {
    color: #80cbc4;
    text-decoration: underline;
}

.masonry-card__excerpt {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
    flex: 1;
}

.masonry-card__meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 13px;
    color: #8d8d8d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.masonry-card__separator {
    color: #ccc;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: #194d2f;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.newsletter__text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin: 0 0 32px 0;
}

.newsletter__form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .newsletter__form {
        flex-direction: column;
    }
}

.newsletter__field {
    flex: 1;
}

.newsletter__input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.newsletter__input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter__input:focus {
    outline: none;
    border-color: #80cbc4;
    background-color: rgba(255,255,255,0.15);
}

.newsletter__button {
    padding: 14px 32px;
    background-color: #80cbc4;
    color: #194d2f;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.newsletter__button:hover,
.newsletter__button:focus {
    background-color: #fff;
    transform: translateY(-1px);
}

.newsletter__disclaimer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }
    
    .hero__content {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .hero__excerpt {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .tools-section,
    .articles-section,
    .newsletter-section {
        padding: 48px 0;
    }
}

/* SR Only for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}