/* ============================================ */
/* LAYOUT - Hero, Sections, Footer */
/* ============================================ */

/* Hero Section Background - Parallax effect with overlay gradient */
/* background-attachment: fixed creates parallax scrolling effect */
.hero-video-container {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 56vh;
    max-height: 72vh;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    filter: sepia(10%) saturate(0.9) brightness(0.85);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(7, 16, 24, 0.88) 0%, rgba(7, 16, 24, 0.58) 40%, rgba(7, 16, 24, 0.22) 68%, rgba(7, 16, 24, 0.38) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-sme-carousel {
    position: absolute;
    inset: 0;
}

.hero-sme-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.65s ease;
    z-index: 0;
}

.hero-sme-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-sme-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: sepia(8%) saturate(1.05) brightness(0.88);
}

.hero-sme-slide figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hero-sme-ui {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 14;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    pointer-events: auto;
}

.hero-sme-label {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(232, 230, 227, 0.9);
}

.hero-sme-dots {
    display: flex;
    gap: 0.4rem;
}

.hero-sme-dots button {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(232, 230, 227, 0.35);
    cursor: pointer;
}

@media (max-width: 640px) {
    .hero-sme-dots button {
        position: relative;
        width: 2.75rem;
        height: 2.75rem;
        background: transparent;
    }

    .hero-sme-dots button::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 999px;
        transform: translate(-50%, -50%);
        background: rgba(232, 230, 227, 0.35);
    }

    .hero-sme-dots button.is-active::after {
        width: 1.1rem;
        background: #af7a00;
    }
}

.hero-sme-dots button.is-active {
    background: #af7a00;
    width: 1.1rem;
}

@media (min-width: 1024px) {
    .hero-sme-ui {
        left: auto;
        right: 2.5rem;
        bottom: 8.5rem;
        transform: none;
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-video {
        display: none;
    }
    .hero-video-bg {
        background: url('../ASSETS/video/bus-driver-poster.jpg') center right / cover no-repeat;
    }
    .consultancy-home .hero-video-bg {
        background: url('../ASSETS/consultancy-ireland/rural-sme/timber-stacks.jpg') center / cover no-repeat;
    }
}

.hero-split {
    display: flex;
    align-items: center;
    min-height: 58vh;
    max-height: 72vh;
}

/* Hero — SARSFIELD crest anchored bottom-right of video panel */
.hero-brand-corner {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 12;
    pointer-events: auto;
}

.hero-brand-link {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.hero-logo-aura {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 76% 72% at 50% 48%,
        rgba(175, 122, 0, 0.36) 0%,
        rgba(175, 122, 0, 0.14) 38%,
        rgba(175, 122, 0, 0.04) 58%,
        transparent 76%
    );
    box-shadow: 0 0 56px rgba(175, 122, 0, 0.24);
    animation: hero-logo-aura 5s ease-in-out infinite;
}

.hero-intro-logo {
    position: relative;
    z-index: 1;
    display: block;
    height: clamp(4.75rem, 16vw, 7.25rem);
    width: auto;
    max-width: min(36vw, 11rem);
    object-fit: contain;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.hero-brand-link:hover .hero-intro-logo {
    transform: scale(1.03);
    filter: drop-shadow(0 0 48px rgba(175, 122, 0, 0.4)) drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

.hero-brand-link:hover .hero-logo-aura {
    animation-play-state: paused;
    opacity: 1;
}

@keyframes hero-logo-aura {
    0%, 100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.94);
        box-shadow: 0 0 36px rgba(175, 122, 0, 0.18);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.14);
        box-shadow: 0 0 72px rgba(175, 122, 0, 0.42);
    }
}

@media (min-width: 640px) {
    .hero-brand-corner {
        right: 1.5rem;
        bottom: 1.25rem;
    }
    .hero-intro-logo {
        height: clamp(5.75rem, 13vw, 8.5rem);
        max-width: min(32vw, 12.5rem);
    }
}

@media (min-width: 1024px) {
    .hero-brand-corner {
        right: 2.5rem;
        bottom: 1.75rem;
    }
    .hero-intro-logo {
        height: clamp(7rem, 11vw, 9.5rem);
        max-width: 13.5rem;
    }
}

/* Ensure hero content container scales properly on mobile */
@media (max-width: 640px) {
    /* Calculate header height on mobile - approximately 120px total */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }
    
    .hero-video-container {
        min-height: auto !important;
        max-height: none !important;
        padding-top: 4.25rem !important;
        padding-bottom: 3.5rem !important;
    }

    .hero-brand-corner {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .hero-split {
        min-height: auto;
        max-height: none;
    }
    
    .hero-video-container > div {
        max-width: 100%;
        padding: 0;
    }
}

/* Warm gold vignette on hero video */
.hero-video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 30% 50%, rgba(175, 122, 0, 0.08) 0%, transparent 50%);
    animation: none;
    pointer-events: none;
}

/* Central driver video band */
.driver-video-band {
    position: relative;
    overflow: hidden;
}

.driver-video-band video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scanline — disabled in theme-hybrid; kept for reference */
.scanline {
    display: none;
}
