/* Add this to the end of assets/css/style.css */

.page-hero {
    min-height: 68vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 100px;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,13,8,0.88), rgba(8,13,8,0.54), rgba(8,13,8,0.25));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
    max-width: 900px;
    letter-spacing: -0.05em;
    margin-bottom: 1.2rem;
}

.page-hero-content p {
    max-width: 760px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    opacity: 0.92;
}

.page-hero-pellets {
    background-image: url('/assets/img/hero/hero-placeholder.jpg');
}

.page-hero-briquettes {
    background-image: url('/assets/img/products/briquettes-boiler.jpg'), url('/assets/img/hero/hero-placeholder.jpg');
}

.page-hero-stoves {
    background-image: url('/assets/img/stoves/pellet-stove.jpg'), url('/assets/img/hero/hero-placeholder.jpg');
}

.page-hero-institutional {
    background-image: url('/assets/img/factory/institutional-cooking.jpg'), url('/assets/img/hero/hero-placeholder.jpg');
}

.page-hero-impact {
    background-image: url('/assets/img/impact/forest-impact.jpg'), url('/assets/img/hero/hero-placeholder.jpg');
}

.page-hero-about {
    background-image: url('/assets/img/factory/factory01.jpg'), url('/assets/img/hero/hero-placeholder.jpg');
}

.page-hero-contact {
    background-image: url('/assets/img/factory/contact-bg.jpg'), url('/assets/img/hero/hero-placeholder.jpg');
}

.light-section {
    background: var(--white);
}

.content-image {
    min-height: 430px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
    background-color: #d8d2c7;
}

.pellets-product-image {
    background-image: url('/assets/img/products/pellets-bags.jpg');
}

.briquettes-product-image {
    background-image: url('/assets/img/products/briquettes-stack.jpg');
}

.factory-team-image {
    background-image: url('/assets/img/factory/factory-team.jpg');
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}

.info-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.info-card {
    background: var(--white);
    padding: 1.7rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card-cream {
    background: var(--cream);
    padding: 1.7rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card-cream h3 {
    margin-bottom: 0.5rem;
    color: var(--orange);
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: var(--orange);
}

.info-card p {
    color: var(--muted);
}

.light-cards div {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--line);
}

.light-cards p {
    color: var(--muted);
}

.dark-list span {
    background: var(--green-dark);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.error-page {
    padding-top: 10rem;
    min-height: 70vh;
}

.error-page h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

@media (max-width: 900px) {
    .info-grid,
    .info-grid.four,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: 58vh;
    }

    .page-hero-overlay {
        background: rgba(8,13,8,0.76);
    }
}

.two-card-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.values-section {
    max-width: 1100px;
    margin: 0 auto;
}

.values-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.value-item h3 {
    margin-bottom: 0.6rem;
}

.value-subtitle {
    font-style: italic;
    color: #777;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {

    .two-card-grid,
    .values-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Homepage hero slideshow
========================================================= */

.slideshow-hero {
    position: relative;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center center;

    opacity: 0;

    animation: heroSlideshow 32s infinite;
}

.slide1 {
    background-image: url('/assets/img/hero/slides/slide1.jpg');
    animation-delay: 0s;
}

.slide2 {
    background-image: url('/assets/img/hero/slides/slide2.jpg');
    animation-delay: 8s;
}

.slide3 {
    background-image: url('/assets/img/hero/slides/slide3.jpg');
    animation-delay: 16s;
}

.slide4 {
    background-image: url('/assets/img/hero/slides/slide4.jpg');
    animation-delay: 24s;
}

@keyframes heroSlideshow {

    0% {
        opacity: 0;
    }

    6% {
        opacity: 1;
    }

    24% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.slideshow-hero .hero-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.70) 0%,
            rgba(0,0,0,0.52) 45%,
            rgba(0,0,0,0.35) 100%
        );

    z-index: 1;
}

.slideshow-hero .hero-content {
    position: relative;
    z-index: 2;
}

.sdg-section {
    background: var(--white);
}

.sdg-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

    gap: 1rem;

    max-width: 1200px;

    margin: 0 auto;
}

.sdg-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.sdg-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.sdg-card h3 {
    font-size: 0.88rem;
    line-height: 1.25;
}

/* =========================================================
   Back to top button
========================================================= */

.back-to-top {

    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: var(--orange);

    color: #fff;

    font-size: 1.4rem;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.22);

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease,
        background 0.25s ease;

    z-index: 999;
}

.back-to-top.visible {

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {

    background: #d97706;

    transform: translateY(-3px);
}

@media (max-width: 768px) {

    .back-to-top {

        width: 46px;
        height: 46px;

        right: 18px;
        bottom: 18px;

        font-size: 1.2rem;
    }
}