/* =============================================================
   Holzgarage nach Maß — Page Template Styles
   Template: page-holzgarage-mass.php
   ============================================================= */

/* ---- Hero Banner ---- */
.hgm-hero-banner {
    background-color: #3a4824;
    /* Updated green to match user request */
    color: #ffffff;
    padding: 65px 0;
    /* Increased padding */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;

    /* Force full width if inside a boxed container */
    width: 100%;
    background-size: contain;
    background-position: 100% 100%;
    background-attachment: scroll;
    background-repeat: no-repeat;
}

.hgm-hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1440px;
    /* Ensure content is constrained */
    margin: 0 auto;
    padding: 0 15px;
}

.hgm-hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    /* Let the line grow to fill space between title and phone */
}

.hgm-hero-content h1 {
    font-size: 48px;
    /* Slightly larger */
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    padding-right: 30px;
}

.hgm-hero-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    flex-grow: 1;
    /* Stretch across remaining space */
}

.hgm-hero-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    /* Larger text */
    font-weight: 400;
    /* Lighter weight like reference */
    white-space: nowrap;
    padding-left: 30px;
}

.hgm-phone-icon {
    width: 55px;
    height: 55px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hgm-phone-icon img {
    width: 100%;
    height: 100%;
    filter: none;
}

.hgm-hero-graphic {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    /* Behind the content */
}

.hgm-hero-graphic img {
    height: 350px;
    /* Much larger to cover the right side like the reference */
    width: auto;
    display: block;
}

/* ---- Page wrapper ---- */
.hgm-page {
    padding: 50px 0;
    background-image: url('/wp-content/uploads/2025/08/Group-630.svg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: var(--color-light-grey);
    position: relative;
}

.hgm-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(66.66vw - 10px);
    background-color: #fff;
    z-index: 0;
}

.hgm-page .container {
    display: flex;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* ---- Columns ---- */
.hgm-content {
    flex: 2;
    min-width: 0;
}

.hgm-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ---- Section headings ---- */
.intro-sub {
    font-weight: 600;
    color: #d3d3d3;
    font-size: 15px;
    margin-bottom: 15px;
    display: block;
}

.hgm-intro-heading,
.hgm-section-heading {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hgm-intro-heading {
    font-size: 36px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
    margin-bottom: 30px;
}


/* ---- Intro images (2-up row) ---- */
.hgm-intro-images {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
}

.hgm-intro-image {
    flex: 2;
    overflow: hidden;
    border-radius: 8px;
}

.hgm-intro-images .hgm-intro-image:nth-of-type(2) {
    flex: 1.5;
}

.hgm-intro-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* ---- Feature blocks (3-column) ---- */
.hgm-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.hgm-feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.hgm-feature-text {
    font-size: 15px;
    line-height: 1.2;
    color: var(--color-text);
}

.hgm-feature-text p:last-child {
    margin-bottom: 0;
}

/* ---- USP badges ---- */
.hgm-usps {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.hgm-usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(33.333% - 20px);
    font-size: 13px;
    font-weight: 500;
}

.hgm-usp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hgm-usp-icon img {
    width: 60px;
    height: 60px;
}

.hgm-usp-icon--placeholder {
    background-color: var(--color-primary);
}

/* ---- Gallery & Projects Sliders ---- */
.hgm-gallery-section,
.hgm-projects-section {
    margin-bottom: 50px;
}

.hgm-gallery-slider,
.hgm-projects-slider {
    position: relative;
    padding-bottom: 40px;
    /* Space for pagination or just bottom margin */
    overflow: hidden;
}

.hgm-gallery-slider .swiper-wrapper {
    display: flex;
}

.hgm-gallery-item {
    width: 280px;
    /* Fixed width matching the reference screenshot size */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hgm-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.hgm-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}
.hgm-projects-section .hgm-gallery-item img {
    height:unset;
}
.hgm-gallery-item:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Swiper Nav Arrows Customization */
.hgm-gallery-slider .swiper-button-prev,
.hgm-gallery-slider .swiper-button-next,
.hgm-projects-slider .swiper-button-prev,
.hgm-projects-slider .swiper-button-next {
    background-color: rgba(60, 60, 60, 0.9);
    color: #ffffff;
    width: 44px;
    height: 54px;
    border-radius: 4px;
    top: calc(50% - 10px);
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    z-index: 10;
    /* Ensure they are above the images and clickable */
}

.hgm-gallery-slider .swiper-button-prev,
.hgm-projects-slider .swiper-button-prev {
    left: 20px;
}

.hgm-gallery-slider .swiper-button-next,
.hgm-projects-slider .swiper-button-next {
    right: 20px;
}

.hgm-gallery-slider:hover .swiper-button-prev,
.hgm-gallery-slider:hover .swiper-button-next,
.hgm-projects-slider:hover .swiper-button-prev,
.hgm-projects-slider:hover .swiper-button-next {
    opacity: 0.9;
}

.hgm-gallery-slider .swiper-button-prev:hover,
.hgm-gallery-slider .swiper-button-next:hover,
.hgm-projects-slider .swiper-button-prev:hover,
.hgm-projects-slider .swiper-button-next:hover {
    background-color: rgba(40, 40, 40, 1);
    opacity: 1;
}

.hgm-gallery-slider .swiper-button-prev::after,
.hgm-gallery-slider .swiper-button-next::after,
.hgm-projects-slider .swiper-button-prev::after,
.hgm-projects-slider .swiper-button-next::after {
    font-size: 20px;
    color: #FFF;
    /* Smaller icon size inside the arrow box */
}

/* ---- Projects text ---- */
.hgm-projects-text {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ---- Alternate image/text rows ---- */
.hgm-alt-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.hgm-alt-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.hgm-alt-row--image-right {
    flex-direction: row-reverse;
}

.hgm-alt-row-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.hgm-alt-row-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.hgm-alt-row-content {
    flex: 1;
}

.hgm-alt-row-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.hgm-alt-row-text {
    font-size: 14px;
    line-height: 1.2;
}

.hgm-alt-row-text p:last-child {
    margin-bottom: 0;
}

/* ---- Sidebar blocks ---- */
.hgm-sidebar-block {
    background-color: var(--color-light-grey, #f5f5f5);
    border-radius: 10px;
    padding: 24px;
}

.hgm-sidebar .footer-form {
    background-color: transparent;
    padding: 0;
    position: sticky;
    top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hgm-sidebar .footer-form .form {
    width: 100%;
}

/* Konfigurator CTA block */
.hgm-cfg-block {
    background-color: var(--color-light-grey, #f2f5ee);
    border: 1px solid var(--color-border);
}

.hgm-cfg-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.hgm-cfg-sub {
    font-size: 13px;
    margin-bottom: 16px;
    color: var(--color-text-muted, #666);
}

.hgm-cfg-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: center;
}

.hgm-cfg-btn:hover {
    background-color: var(--color-primary-dark, #556838);
    color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
    .hgm-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .hgm-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hgm-usp-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 900px) {
    .hgm-page .container {
        flex-direction: column;
        gap: 40px;
    }

    .hgm-page::before {
        display: none;
    }

    .hgm-sidebar {
        max-width: 100%;
        width: 100%;
    }

    .hgm-sidebar .footer-form {
        position: static;
    }
}

@media (max-width: 768px) {
    .hgm-page {
        background: #fff;
        padding-bottom: 0;
    }

    .hgm-intro-images {
        flex-direction: column;
    }

    .hgm-intro-image img {
        height: 200px;
    }

    .hgm-features {
        grid-template-columns: 1fr;
    }

    .hgm-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hgm-alt-row,
    .hgm-alt-row--image-right {
        flex-direction: column;
    }

    .hgm-alt-row-image img {
        height: 200px;
    }

    .hgm-usp-item {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .hgm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}