/* =========================================================
   PAGES COMMON - BRAND PAGE THEMES
========================================================= */

.valtra-page {
    --color-primary: #e4002b;
    --color-primary-hover: #bf0025;
    --bs-primary-rgb: 228, 0, 43;
}

.geringhoff-page {
    --color-primary: var(--color-geri);
    --color-primary-hover: #013d76;
    --bs-primary-rgb: 1, 77, 148;
}

/* =========================================================
   PAGES COMMON - VALUE CARD
========================================================= */

.value-card {
    height: 100%;
    padding: 1.5rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    border: 1px solid var(--color-border-soft);
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.value-card:hover {
    border-color: var(--color-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
    transform: translateY(-2px);
}

.valtra-page .value-card {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
}

.valtra-page .value-card:hover,
.valtra-page .value-card:focus-within {
    border-color: var(--color-primary);
}

.value-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.value-card-icon {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(0.1rem);
}

.value-card-title {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.value-card-text {
    margin: 0;
    color: var(--color-text-soft);
    font-size: var(--fs-body);
    line-height: 1.7;
}

/* =========================================================
   PAGES COMMON - CTA
========================================================= */

.contact-cta-section {
    padding: 0 0 var(--section-space-lg);
    background: #ffffff;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 2.4rem;
    background: linear-gradient(
        135deg,
        rgba(0, 55, 21, 0.96) 0%,
        rgba(0, 82, 28, 0.92) 48%,
        rgba(0, 94, 32, 0.88) 100%
    );
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.00) 38%,
        rgba(255, 255, 255, 0.04) 100%
    );
    pointer-events: none;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-title {
    margin: 0 0 0.85rem 0;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-title strong {
    font-weight: 700;
}

.ct-weight {
    font-weight: 700;
}

.cta-text {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--fs-body);
    line-height: 1.8;
}

.contact-cta-section .btn {
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.contact-cta-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.contact-cta-section .btn-outline-light:hover,
.contact-cta-section .btn-outline-light:focus,
.contact-cta-section .btn-outline-light:active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--color-primary) !important;
}

.contact-cta-section .btn-outline-success {
    border-color: rgba(255, 255, 255, 0.14);
    background: #ffffff;
    color: var(--color-primary);
}

.contact-cta-section .btn-outline-success:hover,
.contact-cta-section .btn-outline-success:focus,
.contact-cta-section .btn-outline-success:active {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.88) !important;
    color: var(--color-primary-hover) !important;
}

/* =========================================================
   PAGES COMMON - PAGE HERO SYSTEM
========================================================= */

.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-hero .page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        var(--hero-overlay-dark) 0%,
        var(--hero-overlay-mid) 35%,
        var(--hero-overlay-soft) 60%,
        var(--hero-overlay-fade) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-copy {
    max-width: 760px;
    padding-top: 180px;
    padding-bottom: 96px;
}

.page-hero-title {
    max-width: min(100%, 1100px);
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    white-space: normal;
    overflow-wrap: break-word;
}

.page-hero-text {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-body);
    line-height: 1.8;
}

.page-hero-brand {
    min-height: 380px;
}

/* =========================================================
   PAGES COMMON - BRAND PAGE SHARED
========================================================= */

.brand-intro-section,
.brand-story-section,
.brand-feature-section {
    padding-top: var(--section-space-md);
    padding-bottom: var(--section-space-md);
}

.brand-intro-section,
.brand-feature-section {
    background: var(--color-bg-soft);
}

.brand-story-section {
    background: #ffffff;
}


.brand-intro-content,
.brand-story-content {
    max-width: 100%;
}

.brand-intro-content p,
.brand-story-content p {
    margin-bottom: 1.35rem;
    color: var(--color-text-soft);
    font-size: var(--fs-body);
    line-height: 1.9;
}

.brand-intro-content p:last-child,
.brand-story-content p:last-child {
    margin-bottom: 0;
}

.brand-intro-content strong,
.brand-story-content strong {
    color: var(--color-text);
    font-weight: 700;
}

.brand-intro-media {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    background: var(--color-bg-soft);
}

.brand-intro-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.brand-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.brand-logo-card,
.brand-quick-card {
    padding: 1.5rem;
    border: 1px solid var(--color-border-soft);
    background: var(--color-bg-soft);
}

.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 120px;
}

.brand-logo-card img {
    display: block;
    max-width: 220px;
    width: auto;
    height: auto;
}

.brand-quick-label {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.brand-quick-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--color-text-soft);
}

.brand-quick-list li {
    margin-bottom: 0.45rem;
    line-height: 1.7;
}

.brand-quick-list li:last-child {
    margin-bottom: 0;
}

.brand-feature-section .section-title {
    margin-bottom: 1rem;
}

.brand-feature-section .value-card {
    background: #ffffff;
    border: 1px solid var(--color-border-soft);
}

.brand-feature-section .value-card:hover {
    border-color: var(--color-primary);
    background: rgba(var(--bs-primary-rgb), 0.04);
    transform: translateY(-2px);
}

.brand-feature-section .value-card-icon {
    color: var(--color-primary);
}

.brand-cta-section {
    padding-top: 0;
    padding-bottom: var(--section-space-md);
}

.brand-cta-section .cta-box {
    border: 1px solid rgba(0, 94, 32, 0.10);
}

.brand-cta-section .btn {
    min-height: 40px;
}

.brand-cta-section .btn-light {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: var(--color-primary);
}

.brand-cta-section .btn-light:hover,
.brand-cta-section .btn-light:focus {
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-primary-hover);
}

.brand-cta-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff;
    background: transparent;
}

.brand-cta-section .btn-outline-light:hover,
.brand-cta-section .btn-outline-light:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--color-primary);
}

/* =========================================================
   PAGES COMMON - BROCHURE LIST
========================================================= */

.brochure-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.brochure-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--color-border-soft);
    background: #ffffff;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.brochure-row:hover {
    border-color: var(--color-primary);
    background: rgba(var(--bs-primary-rgb), 0.035);
}

.valtra-page .brochure-row {
    border-color: rgba(var(--bs-primary-rgb), 0.35);
}

.valtra-page .brochure-row:hover,
.valtra-page .brochure-row:focus-within {
    border-color: var(--color-primary);
}

.brochure-row-main {
    min-width: 0;
    flex: 1 1 auto;
}

.brochure-product-name {
    display: inline-block;
    margin: 0 0 0.2rem 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-decoration: none;
}

a.brochure-product-name:hover,
a.brochure-product-name:focus {
    color: var(--color-primary);
}

.brochure-product-category {
    color: var(--color-text-muted);
    font-size: 0.84rem;
    font-style: italic;
    line-height: 1.5;
}

.brochure-row-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brochure-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--color-border-soft);
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.brochure-download-link:hover,
.brochure-download-link:focus {
    border-color: var(--color-primary);
    background: rgba(var(--bs-primary-rgb), 0.04);
    color: var(--color-primary);
}

.brochure-download-link i {
    font-size: 0.95rem;
    line-height: 1;
}

/* =========================================================
   PAGES COMMON - RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .brand-intro-media {
        min-height: 460px;
    }
}

@media (max-width: 991.98px) {
    .contact-cta-section {
        padding-bottom: var(--section-space-md);
    }

    .cta-box {
        padding: 1.8rem;
    }

    .cta-title {
        font-size: 1.55rem;
    }

    .page-hero {
        min-height: 340px;
    }

    .page-hero-copy {
        padding-top: 140px;
        padding-bottom: 48px;
    }

    .page-hero-title {
        font-size: clamp(2rem, 8vw, 3.4rem);
    }

    .brand-intro-section,
    .brand-story-section,
    .brand-feature-section {
        padding-top: var(--section-space-sm);
        padding-bottom: var(--section-space-sm);
    }

    .brand-logo-card,
    .brand-quick-card {
        padding: 24px 22px;
    }

    .brand-cta-section {
        padding-bottom: var(--section-space-sm);
    }
}

@media (max-width: 767.98px) {
    .brochure-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .brochure-row-actions {
        width: 100%;
    }

    .brochure-download-link {
        width: 100%;
        justify-content: center;
    }

    .brochure-product-name {
        font-size: 0.98rem;
    }
}

@media (max-width: 575.98px) {
    .brand-intro-media {
        min-height: 280px;
    }

    .brand-logo-card,
    .brand-quick-card {
        padding: 1rem;
    }

    .brand-intro-content p,
    .brand-story-content p {
        font-size: var(--fs-body);
        line-height: 1.8;
    }

    .brochure-row {
        gap: 0.85rem;
        padding: 0.9rem;
    }

    .brochure-download-link {
        min-height: 34px;
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    .brochure-product-category {
        font-size: 0.8rem;
    }
}

/* Mobile quality pass for dynamic/static page heroes. */
@media (max-width: 767.98px) {
    .page-hero {
        min-height: max(420px, 64svh);
        background-position: center top;
    }

    .page-hero .page-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.34) 0%,
            rgba(0, 0, 0, 0.34) 36%,
            rgba(0, 0, 0, 0.72) 100%
        );
    }

    .page-hero-copy {
        max-width: 100%;
        padding-top: 116px;
        padding-bottom: 42px;
    }

    .page-hero-title {
        font-size: 2.1rem;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .page-hero-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-title,
    .cta-title {
        letter-spacing: 0;
    }
}

@media (max-width: 374.98px) {
    .page-hero-title {
        font-size: 1.9rem;
    }
}
