/* 
   TRISPHERE INDUSTRIAL SOLUTIONS
   Theme: Heavy Industry / Institutional / Engineering
   Visual Ref: Hoerbiger, Blue Fuel Energy
*/

:root {
    /* Industrial Palette */
    --color-petrol: #000000;
    /* Pure Black */
    --color-petrol-light: #1A1A1A;
    /* Dark Gray */
    --color-mineral: #B08D55;
    /* Muted Bronze/Gold - Accent */
    --color-steel: #666666;
    /* Technical Grey */
    --color-concrete: #FFFFFF;
    /* Changed to White to match home page */
    --color-border: #EEEEEE;
    /* Structural Lines */
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    /* Geometric, Engineering feel */
    --font-body: 'Inter', sans-serif;
    /* Legible, Technical */

    /* Spacing & Structure */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
    --container-width: 1280px;

    /* Animation */
    --transition-standard: all 0.2s ease-out;
}

/* ---------------------------------------------------------
   RESET & BASE
--------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for sticky/fixed headers */
    background-color: var(--color-petrol);
}

/* Fallback for element-level scroll margin */
section[id],
.service-block,
.service-column-card {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-petrol);
    background-color: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--color-petrol);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: #333333;
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------------------------------------------------------
   UTILITIES
--------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Layout content blocks (Hoerbiger-style) */
.max-w-content-full {
    max-width: var(--container-width);
}

.max-w-small-text {
    max-width: 42rem;
}

/* narrow centered box for mission text */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-md {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-contentcontainer {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.bg-light {
    background-color: var(--color-concrete);
}

.w-full {
    width: 100%;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.bg-concrete {
    background-color: var(--color-concrete);
}

.bg-petrol {
    background-color: var(--color-petrol);
    color: var(--color-white);
}

.text-white {
    color: var(--color-white);
}

.text-steel {
    color: var(--color-steel);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

/* Horizontal Services Grid */
.services-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-column-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease, border-color 0.5s ease;
    /* Ensure smooth transition on hover and un-highlight */
    height: 100%;
    position: relative;
    z-index: 1;
}

.service-column-card:hover:not(.highlight-target) {
    border-color: var(--color-petrol-light);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

/* Folder tab effect for column card */
.service-column-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.4s ease;
    z-index: 10;
}

.service-column-card:hover:not(.highlight-target)::before {
    background-color: var(--color-mineral);
}

.service-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-column-card:hover:not(.highlight-target) .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .services-horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Services page: shorter section (reduced vertical spacing) */
.page-services .container.section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.page-services .services-horizontal-grid {
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.page-services .service-card-content {
    padding: 1.25rem 1.5rem;
}

.page-services .service-card-content .tech-line {
    margin-bottom: 1rem;
}

.page-services .service-card-content ul {
    margin-bottom: 1rem !important;
}

.page-services .services-cta {
    margin-top: 2.5rem;
    text-align: center;
}

/* Region page: tighter vertical spacing */
.region-page .container.section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.region-page .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.region-page .region-card {
    padding: 2rem;
}

.region-page .region-cta-wrap {
    margin-top: 3rem;
}

/* Leadership page: tighter vertical spacing */
.leadership-page .section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Technical Line Separator */
.tech-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-mineral);
    margin-bottom: 2rem;
    display: block;
}

/* ---------------------------------------------------------
   TARGET HIGHLIGHT ANIMATION (MODAL / SPOTLIGHT EFFECT)
--------------------------------------------------------- */
.highlight-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.highlight-overlay.active {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.service-column-card.highlight-target {
    z-index: 1000 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6) !important;
    border-color: var(--color-mineral) !important;
    background: var(--color-white) !important;
    animation: none !important;
    /* override old animation */
}

@media (max-width: 768px) {
    .service-column-card.highlight-target {
        transform: scale(1.02) !important;
        /* less scale on mobile to avoid horizontal overflow */
    }
}

.service-column-card.highlight-target::before {
    background-color: var(--color-mineral) !important;
    animation: none !important;
}

/* ---------------------------------------------------------
   COMPONENTS
--------------------------------------------------------- */

/* Buttons - Boxy, Technical */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-standard);
    border-radius: 0;
    /* Strict square corners */
}

.btn-primary {
    background-color: var(--color-mineral);
    color: var(--color-petrol);
}

.btn-primary:hover {
    background-color: #9A7B4A;
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-petrol);
    color: var(--color-petrol);
}

.btn-outline:hover {
    background-color: var(--color-petrol);
    color: var(--color-white);
}

.btn-outline-light {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-petrol);
    border-color: var(--color-white);
}

/* ---------------------------------------------------------
   HEADER & NAV
--------------------------------------------------------- */
header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-petrol);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
}

.logo span {
    color: var(--color-mineral) !important;
    font-weight: 800;
}

.logo-icon {
    flex-shrink: 0;
    margin-top: -2px;
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-petrol);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-mineral);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Services dropdown: trigger + chevron, panel on hover */
.nav-item-dropdown {
    position: relative;
}

.nav-link-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-link-trigger::after {
    display: none;
    /* optional: keep underline on trigger only when not hovering dropdown */
}

.nav-chevron {
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.nav-item-dropdown:hover .nav-chevron {
    transform: rotate(-180deg);
    /* point up when hovered (rotate the other way) */
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    min-width: 12rem;
    padding: 0.5rem 0;
    background: var(--color-white);
    border: 1px solid var(--color-border, #EEEEEE);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-petrol);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-mineral);
}

/* Mobile Nav Toggle */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-petrol);
    margin: 5px 0;
}

/* ---------------------------------------------------------
   HERO SECTION
--------------------------------------------------------- */
.hero {
    background-color: var(--color-petrol);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for depth */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, #111111 0%, transparent 40%);
    opacity: 0.5;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 2rem;
}

.hero h2 {
    color: var(--color-concrete);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.4rem;
    max-width: 800px;
    border-left: 3px solid var(--color-mineral);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero p {
    color: #999999;
    font-size: 1.1rem;
}

/* ---------------------------------------------------------
   CARDS & SECTIONS
--------------------------------------------------------- */
/* Technical Cards (Services/Region) */
.service-block,
.region-card {
    border: 1px solid var(--color-border);
    padding: 3rem;
    background: var(--color-white);
    transition: var(--transition-standard);
    height: 100%;
    position: relative;
}

/* Top border "file folder" effect */
.service-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-standard);
}

.service-block:hover {
    border-color: var(--color-petrol-light);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.service-block:hover::before {
    background-color: var(--color-mineral);
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-petrol);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1.25rem;
    background-color: #F5F5F5;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-petrol);
    transition: var(--transition-standard);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-petrol);
    background-color: var(--color-white);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
footer {
    background-color: var(--color-petrol);
    color: #999999;
    padding: 6rem 0;
    border-top: 4px solid var(--color-mineral);
}

.footer-links a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-right: 2rem;
}

.footer-links a:hover {
    color: var(--color-mineral);
}

/* ---------------------------------------------------------
   ANIMATION UTILITIES
--------------------------------------------------------- */
@keyframes hero-fade-in-text {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Same as hero: enter from left, slow; reverses when scrolling back up */
.fade-in-from-left {
    transform: translateX(-5rem);
    transition: opacity 4.5s ease-out, transform 4.5s ease-out;
}

.fade-in-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .region-page .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        height: calc(100vh - 90px);
        padding: 4rem 2rem;
        gap: 2rem;
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    /* Mobile: Services dropdown as stacked links */
    .nav-item-dropdown .nav-dropdown {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0.5rem 0;
        min-width: 0;
    }

    .nav-item-dropdown .nav-dropdown-link {
        padding: 0.35rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h2 {
        font-size: 1.25rem;
        padding-left: 1rem;
    }
}

/* Active state for Contact button in nav */
.nav-menu a.btn.active {
    outline: 2px solid var(--color-mineral);
    outline-offset: 4px;
}

/* Prevent underline pseudo-element on button-styled nav items */
.nav-menu a.btn.nav-link::after {
    display: none;
}

/* ============================================================
   HOERBIGER-STYLE HOME PAGE
   Full-viewport hero, overlay nav, mission, focus cards, footer
============================================================ */

/* Body: allow overlay header and full-height hero */
.home-hoerbiger-style {
    position: relative;
}

/* Header: Hoerbiger-style – tall bar (127px), logo left, nav centered */
.home-hoerbiger-style .header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    /* Max z-index to stay above everything */
    height: 127px;
    min-height: 127px;
    background-color: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    transition: background-color 0.4s ease;
}

/* Scrolled & Menu Open state: white bg, black text */
.home-hoerbiger-style .header-overlay.header-scrolled,
.home-hoerbiger-style .header-overlay.menu-open,
html.preload-header-scrolled .home-hoerbiger-style .header-overlay {
    background-color: #FFFFFF;
}

/* Nav container: logo | centered nav – centered block so fullscreen stays balanced */
.home-hoerbiger-style .header-overlay .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 127px;
    min-height: 127px;
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Logo: large, prominent */
.home-hoerbiger-style .header-overlay .logo {
    color: var(--color-white);
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: color 0.4s ease;
}

.home-hoerbiger-style .header-overlay.header-scrolled .logo,
.home-hoerbiger-style .header-overlay.menu-open .logo,
html.preload-header-scrolled .home-hoerbiger-style .header-overlay .logo {
    color: #000000;
}

/* Nav items: regular weight, more spacing between links */
.home-hoerbiger-style .header-overlay .nav-menu {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 0 3.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-hoerbiger-style .header-overlay .nav-link {
    color: var(--color-white);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    transition: color 0.4s ease;
}

.home-hoerbiger-style .header-overlay.header-scrolled .nav-link,
.home-hoerbiger-style .header-overlay.menu-open .nav-link,
html.preload-header-scrolled .home-hoerbiger-style .header-overlay .nav-link {
    color: #000000;
}

.home-hoerbiger-style .header-overlay .nav-link::after {
    background-color: var(--color-mineral);
}

/* Services dropdown in overlay header: panel stays white with dark text for readability */
.home-hoerbiger-style .header-overlay .nav-dropdown {
    background: var(--color-white);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.home-hoerbiger-style .header-overlay .nav-dropdown-link {
    color: #333333;
}

.home-hoerbiger-style .header-overlay .nav-dropdown-link:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-petrol);
}

/* Language dropdown: compact, right-aligned */
.nav-item-lang .nav-dropdown-lang {
    min-width: 5rem;
    right: 0;
    left: auto;
    transform: none;
}

.nav-item-lang .nav-link-trigger {
    cursor: pointer;
}

.lang-current {
    font-weight: 500;
    letter-spacing: 0.05em;
}

.home-hoerbiger-style .header-overlay .bar {
    background: var(--color-white);
    transition: background-color 0.4s ease;
}

.home-hoerbiger-style .header-overlay.header-scrolled .bar,
.home-hoerbiger-style .header-overlay.menu-open .bar,
html.preload-header-scrolled .home-hoerbiger-style .header-overlay .bar {
    background: #000000;
}

/* Nav: centered in header (Hoerbiger menuToggle style) */
.home-hoerbiger-style .header-overlay .nav-container>nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    height: 100%;
}

/* Home header: mobile breakpoint – slide-out menu aligned to 127px header */
@media (max-width: 768px) {
    .home-hoerbiger-style .header-overlay .nav-menu {
        position: fixed;
        left: -100%;
        top: 127px;
        display: flex;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        height: calc(100vh - 127px);
        padding: 2rem;
        gap: 2rem;
        border-top: 1px solid var(--color-border);
        z-index: 999;
        transition: left 0.3s ease;
    }

    .home-hoerbiger-style .header-overlay .nav-menu.active {
        left: 0;
    }

    .home-hoerbiger-style .header-overlay .nav-menu .nav-link {
        color: var(--color-petrol);
    }

    .home-hoerbiger-style .header-overlay.header-scrolled .nav-menu .nav-link {
        color: var(--color-petrol);
    }

    /* Mobile: show Services dropdown as stacked links (no hover needed) */
    .home-hoerbiger-style .header-overlay .nav-item-dropdown .nav-dropdown {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0.5rem 0;
    }

    .home-hoerbiger-style .header-overlay .nav-dropdown-link {
        color: var(--color-petrol);
        padding: 0.35rem 0;
    }
}

/* Hero: full viewport, Hoerbiger-style – content lower-left, ~two-thirds down */
.hero-fullscreen {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background-color: #000000;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-background.is-loaded {
    opacity: 1;
}

.video-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-panel:last-child {
    border-right: none;
}

.video-panel:hover {
    flex: 2.5;
}

/* Poster image shown until first video can play */
.video-panel-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.6s ease-in-out;
}

.video-panel.is-video-ready .video-panel-poster {
    opacity: 0;
    pointer-events: none;
}

.video-panel video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.0s ease-in-out, filter 0.7s ease;
    filter: grayscale(80%);
}

.video-panel video.active {
    opacity: 0;
}

.video-panel.is-video-ready video.active {
    opacity: 0.2;
}

.video-panel.is-video-ready:hover video.active {
    opacity: 0.8;
    filter: grayscale(0%);
}

.panel-label {
    position: absolute;
    top: 9rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.video-panel:hover .panel-label {
    color: var(--color-white);
    transform: translateX(-50%) translateY(-3px) scale(1.05);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 65%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 35%);
    pointer-events: none;
    z-index: 1;
}

/* Hero content: Hoerbiger-style – absolute bottom, centered container */
.hero-content {
    position: absolute;
    bottom: 3.5rem;
    /* Lowered for small screens */
    left: 0;
    top: auto;
    z-index: 2;
    width: 100%;
    padding: 0 2rem 1.5rem 2rem;
    opacity: 0;
    animation: hero-fade-in-text 2.5s ease-out forwards;
}

    /* Inner: flex flex-col space-y-lg md:space-y-xs */
.hero-content-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* reduced gap */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-content-inner {
        gap: 0.25rem;
    }

    /* md:space-y-xs */
    .hero-content {
        padding-bottom: 0rem;
    }

    /* md:pb-lg */
}

@media (min-width: 1024px) {
    .hero-content {
        bottom: 5.5rem;
    }
}

/* On smaller laptops or screens with less vertical space, pull it down */
@media (max-width: 1440px),
(max-height: 900px) {
    .hero-content {
        bottom: 5rem !important;
    }
}

/* Headline: Hoerbiger font-sans-light / font-sans-bold – Inter, light + bold weights (slightly smaller) */
.hero-headline {
    font-family: var(--font-body);
    color: var(--color-white);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}

.hero-headline-line {
    display: block;
}

.hero-headline-bold {
    font-weight: 700;
}

/* font-sans-bold */
.hero-headline-light {
    font-weight: 300;
    font-size: 0.7em;
}

/* font-sans-light */
.hero-headline-regular {
    font-weight: 300;
}

/* font-sans-light */

.hero-cta {
    font-family: var(--font-body);
    margin: 0;
    margin-top: 0.5rem;
    /* push CTA link closer to headline */
    font-size: 0.85rem;
    font-weight: 300;
    max-width: none;
}

.hero-cta a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.hero-cta a:hover {
    color: var(--color-mineral);
}

/* Scroll indicator: bottom-center, ~50px from bottom (Hoerbiger) */
.hero-scroll-indicator {
    position: absolute;
    bottom: 1rem;
    /* Lowered for small screens */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

@media (min-width: 1024px) {
    .hero-scroll-indicator {
        bottom: 2rem;
    }
}

@media (max-width: 1440px),
(max-height: 900px) {
    .hero-scroll-indicator {
        bottom: 1.5rem !important;
    }
}

.hero-scroll-indicator:hover {
    color: rgba(255, 255, 255, 1);
}

.hero-scroll-indicator:focus {
    outline: none;
}

.hero-scroll-arrow {
    display: block;
    width: 31px;
    height: 17px;
    pointer-events: none;
}

/* Mission section container adjusting */
.mission-section-container {
    padding-top: 3rem !important;
    /* Move the headline a little lower */
    padding-bottom: 0 !important;
    /* reduce gap to the body text below */
    margin-top: 0;
}

/* Mission headline: light weight, uppercase */
.mission-headline {
    font-family: var(--font-body);
    /* Inter has 300 loaded for thin “font-sans-light” look */
    font-size: clamp(2rem, 3.5vw, 4rem);
    /* Increased font size */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-petrol);
    margin-bottom: 0;
    font-style: italic;
    padding-left: 0rem;
    /* Reset padding to move it back to the left */
    line-height: 1.1;
    /* Tighter line height to make it shorter vertically */
}

@media (min-width: 768px) {
    .mission-headline {
        padding-left: 1rem;
        /* push just slightly to the right on larger screens */
    }
}

@media (min-width: 1024px) {
    .mission-headline {
        padding-left: 3%;
        /* relative offset for wider screens, much smaller than before */
    }
}

/* Mission body: narrow centered block, even less wide */
.mission-body {
    max-width: 36rem;
    /* 576px */
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.mission-body .mission-label {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-petrol);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.mission-body .mission-block {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-steel);
    max-width: 100%;
    margin-bottom: 0;
}

/* Mini Services: compact preview */
.mini-services-section {
    padding-top: 0.75rem;
    padding-bottom: var(--spacing-md);
}

.mini-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.mini-service-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mini-service-card:hover {
    border-color: var(--color-petrol-light);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mini-service-card:hover .mini-service-link {
    color: var(--color-mineral);
}

.mini-service-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.mini-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mini-service-card:hover .mini-service-image img {
    transform: scale(1.05);
}

.mini-service-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-service-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-petrol);
}

.mini-service-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-steel);
    transition: color 0.3s ease;
}

@media (max-width: 1024px) {
    .mini-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Hero responsive: reduce padding on small viewports */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem 2rem 1.5rem;
    }

    .hero-headline {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }

    /* Ensure subpage hero headline isn't too close to header on mobile */
    .subpage-hero .hero-content {
        bottom: 2.5rem !important;
    }

    .subpage-hero .hero-cta {
        font-size: 1rem !important;
        line-height: 1.4;
    }
}

/* Focus cards: 3-column image + title + link */
.focus-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.focus-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: var(--transition-standard);
    overflow: hidden;
}

.focus-card:hover {
    border-color: var(--color-petrol-light);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.focus-card-image {
    aspect-ratio: 16 / 10;
    background-color: var(--color-petrol-light);
}

.focus-card-image-1 {
    background: linear-gradient(135deg, var(--color-petrol) 0%, var(--color-petrol-light) 100%);
}

.focus-card-image-2 {
    background: linear-gradient(135deg, #222222 0%, #333333 100%);
}

.focus-card-image-3 {
    background: linear-gradient(135deg, #333333 0%, #444444 100%);
}

.focus-card-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.focus-card-desc {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--color-steel);
    margin-bottom: 1rem;
}

.focus-card-link {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-mineral);
}

.focus-card:hover .focus-card-link {
    color: var(--color-petrol);
}

@media (max-width: 900px) {
    .focus-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Leadership home block: Split layout */
.leadership-home-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
    padding: 2rem 0;
}

.leadership-headline {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-petrol);
}

.leadership-home-summary {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-steel);
    max-width: 100%;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .leadership-home-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Home page: reduce section padding for tighter layout */
.home-hoerbiger-style .business-areas-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-hoerbiger-style .leadership-home-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-hoerbiger-style .leadership-home-split {
    padding: 1rem 0;
}

.home-hoerbiger-style .business-areas-section .section-label {
    margin-bottom: 1.25rem;
}

.home-hoerbiger-style .business-areas-grid {
    gap: 1.5rem;
}

.home-hoerbiger-style .business-area-card {
    padding: 1.5rem;
}

/* Business areas: under logo strip, cohesive with page */
.business-areas-section {
    border-top: 1px solid var(--color-border);
}

/* Business areas: 4 blocks */
.section-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-petrol);
    margin-bottom: 2rem;
}

.business-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.business-area-card {
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: var(--transition-standard);
}

.business-area-card:hover {
    border-color: var(--color-mineral);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.business-area-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.business-area-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .business-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .business-areas-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Hoerbiger-style */
.footer-hoerbiger {
    background-color: #000000;
    color: #999999;
    padding: 2rem 0;
    border-top: 1px solid var(--color-mineral);
    text-align: center;
}

.footer-hoerbiger .footer-copy {
    margin: 0 auto;
    max-width: 100%;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.logo-disclaimer {
    font-size: 0.75rem;
    margin-top: 1rem;
    color: #666666;
}
