/* =============================================================================
   HOCHLIFT — Homepage Stylesheet
   Loaded only on Index.cshtml via @section Styles
   All colors use CSS vars from site.css to support both dark + light themes.
   =============================================================================

   1.  Scroll Animations (progressive enhancement)
   2.  Hero Section
   3.  About Teaser
   4.  Statistics Strip
   5.  Solutions Grid
   6.  Why Hochlift
   7.  Featured Projects
   8.  Safety / Certifications
   9.  Contact Section & Form
   ============================================================================= */

/* =============================================================================
   1. SCROLL ANIMATIONS
   Elements start invisible only when JS has loaded (.js-loaded class on <body>).
   Without JS the page renders normally — pure progressive enhancement.
   ============================================================================= */

.js-loaded [data-hl-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.js-loaded [data-hl-animate].hl-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays 0-3 */
.js-loaded [data-hl-animate-delay="1"] { transition-delay: 0.12s; }
.js-loaded [data-hl-animate-delay="2"] { transition-delay: 0.24s; }
.js-loaded [data-hl-animate-delay="3"] { transition-delay: 0.36s; }


/* =============================================================================
   2. HERO SECTION
   ============================================================================= */

.hl-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;          /* modern browsers — excludes mobile address bar */
    background-color: #001F3B;  /* intentionally fixed — hero is always dark navy */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Hero background slider */
.hl-hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hl-hero-slider-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.hl-hero-slider-viewport.is-dragging {
    cursor: grabbing;
}

.hl-hero-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hl-hero-slider-track.no-transition {
    transition: none;
}

.hl-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.hl-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.hl-hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 31, 59, 0.88) 0%,
        rgba(0, 31, 59, 0.62) 45%,
        rgba(0, 20, 45, 0.35) 100%
    );
    pointer-events: none;
}

/* Layered background: building-window grid + radial glow */
.hl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0, transparent 29px,
            rgba(201, 162, 39, 0.035) 29px, rgba(201, 162, 39, 0.035) 30px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0, transparent 59px,
            rgba(201, 162, 39, 0.03)  59px, rgba(201, 162, 39, 0.03)  60px
        );
    pointer-events: none;
}

/* Radial gold glow on the right half */
.hl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
        ellipse 65% 70% at 75% 45%,
        rgba(201, 162, 39, 0.07) 0%,
        transparent 65%
    );
    pointer-events: none;
}

/* Tall left fade to fully black */
.hl-hero-fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        100deg,
        #001F3B 0%,
        rgba(0, 31, 59, 0.88) 35%,
        rgba(0, 31, 59, 0.4) 65%,
        transparent 100%
    );
    pointer-events: none;
}

/* ── Hero inner layout ─────────────────────────── */
.hl-hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-top: var(--hl-navbar-height);
    padding-bottom: 120px;
    min-height: 100vh;
    min-height: 100svh;
}

.hl-hero-content {
    max-width: 680px;
}

/* Eyebrow */
.hl-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--hl-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hl-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: var(--hl-primary);
    flex-shrink: 0;
}

/* Main headline */
.hl-hero-title {
    font-family: var(--hl-font-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    color: #FFFFFF;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

/* Subtitle */
.hl-hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin-bottom: 40px;
}

/* Action buttons row */
.hl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Gold outline button */
.hl-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border: 1.5px solid var(--hl-primary);
    color: var(--hl-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--hl-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.hl-btn-outline:hover {
    background: rgba(201, 162, 39, 0.12);
    color: var(--hl-gold-hover);
    transform: translateY(-1px);
}

/* Override CTA size on hero */
.hl-hero-actions .hl-cta-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
}

/* ── Trust badges ──────────────────────────────── */
.hl-hero-badges {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 3;
}

.hl-hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    border-right: 1px solid rgba(201, 162, 39, 0.25);
}

.hl-hero-badge:first-child { padding-left: 0; }
.hl-hero-badge:last-child  { border-right: none; }

.hl-hero-badge i {
    color: var(--hl-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hl-hero-badge span {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
}

/* Hero responsive */
@media (max-width: 767.98px) {
    .hl-hero-inner   { padding-bottom: 160px; }
    .hl-hero-badges  { flex-direction: column; align-items: flex-start; gap: 12px; bottom: 60px; }
    .hl-hero-badge   { padding: 0 0; border-right: none; }
}


/* =============================================================================
   3. ABOUT TEASER
   ============================================================================= */

.hl-about-img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.hl-about-img {
    width: 100%;
    aspect-ratio: 4/3;
    background:
        radial-gradient(ellipse 60% 60% at 30% 40%, rgba(254,175,3,0.12) 0%, transparent 60%),
        linear-gradient(145deg, #001F3B 0%, #002244 35%, #002855 65%, #0A2A4A 100%);
    border-radius: var(--hl-radius-lg);
    border: 1px solid var(--hl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Simulate a factory/elevator interior grid pattern */
.hl-about-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            90deg, transparent 0, transparent 24px,
            rgba(201,162,39,0.06) 24px, rgba(201,162,39,0.06) 25px
        ),
        repeating-linear-gradient(
            0deg, transparent 0, transparent 24px,
            rgba(201,162,39,0.04) 24px, rgba(201,162,39,0.04) 25px
        );
}

.hl-about-img i {
    position: relative;
    z-index: 1;
    font-size: 5rem;
    color: var(--hl-primary);
    opacity: 0.5;
}

/* Gold year badge */
.hl-about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 96px;
    height: 96px;
    background: var(--hl-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 2;
}

.hl-about-badge span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #001F3B;
    line-height: 1;
    font-family: var(--hl-font-display);
}

.hl-about-badge small {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #001F3B;
}

/* About responsive */
@media (max-width: 991.98px) {
    .hl-about-img-wrap { max-width: 480px; margin: 0 auto; }
    .hl-about-badge    { bottom: -10px; right: 10px; width: 80px; height: 80px; }
    .hl-about-badge span { font-size: 1rem; }
}


/* =============================================================================
   4. STATISTICS STRIP
   ============================================================================= */

.hl-stats {
    padding: 60px 0;
}

.hl-stat {
    text-align: center;
    padding: 20px 10px;
}

.hl-stat-icon {
    display: block;
    font-size: 1.75rem;
    color: var(--hl-primary);
    margin-bottom: 16px;
}

.hl-stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.hl-stat-number {
    font-family: var(--hl-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--hl-text);
    line-height: 1;
}

.hl-stat-suffix {
    font-family: var(--hl-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--hl-primary);
    line-height: 1;
}

.hl-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--hl-text-muted);
}

/* Dividers between stats on desktop */
@media (min-width: 992px) {
    .hl-stat + .hl-stat {
        border-left: 1px solid var(--hl-border);
    }
}


/* =============================================================================
   5. SOLUTIONS GRID
   ============================================================================= */

.hl-solution-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--hl-bg-card);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    text-decoration: none;
    height: 100%;
    transition:
        border-color   0.25s ease,
        transform      0.25s ease,
        background     0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Top gold accent line — revealed on hover */
.hl-solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--hl-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hl-solution-card:hover {
    border-color: var(--hl-border-hover);
    transform: translateY(-4px);
    background: var(--hl-bg-secondary);
}

.hl-solution-card:hover::before {
    transform: scaleX(1);
}

/* Icon */
.hl-solution-icon {
    width: 52px;
    height: 52px;
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--hl-primary);
    margin-bottom: 20px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    flex-shrink: 0;
}

.hl-solution-card:hover .hl-solution-icon {
    border-color: var(--hl-primary);
    background: rgba(201, 162, 39, 0.08);
}

.hl-solution-title {
    font-family: var(--hl-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--hl-text);
    margin-bottom: 10px;
}

.hl-solution-desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--hl-text-muted);
    flex: 1;
    margin-bottom: 20px;
}

.hl-solution-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hl-primary);
    letter-spacing: 0.3px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.hl-solution-card:hover .hl-solution-link {
    color: var(--hl-gold-hover);
}


/* =============================================================================
   6. WHY HOCHLIFT
   ============================================================================= */

/* Elevator graphic */
.hl-elevator-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hl-ev-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2/3;
    background: var(--hl-bg-card);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-lg);
    position: relative;
    overflow: hidden;
}

.hl-ev-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gold header stripe */
.hl-ev-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--hl-primary);
    z-index: 2;
}

/* Subtle bottom vignette */
.hl-ev-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.35) 0%,
        transparent 45%
    );
    pointer-events: none;
    z-index: 1;
}

/* Benefits list */
.hl-why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hl-why-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--hl-text);
}

.hl-why-list li i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid var(--hl-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: var(--hl-primary);
    flex-shrink: 0;
}


/* =============================================================================
   7. FEATURED PROJECTS
   ============================================================================= */

.hl-project-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--hl-radius);
    overflow: hidden;
    cursor: pointer;
    display: block;
}

/* Project gradient backgrounds */
.hl-project-card--1 {
    background: linear-gradient(145deg, #080820 0%, #10103A 40%, #1A1A50 80%, #0D0D28 100%);
}

.hl-project-card--2 {
    background: linear-gradient(145deg, #001F3B 0%, #002855 40%, #003370 80%, #001830 100%);
}

.hl-project-card--3 {
    background: linear-gradient(145deg, #110800 0%, #1E1200 40%, #2A1900 80%, #151000 100%);
}

/* Window pattern overlay */
.hl-project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            90deg, transparent 0, transparent 19px,
            rgba(201,162,39,0.04) 19px, rgba(201,162,39,0.04) 20px
        ),
        repeating-linear-gradient(
            0deg, transparent 0, transparent 29px,
            rgba(201,162,39,0.04) 29px, rgba(201,162,39,0.04) 30px
        );
    z-index: 1;
}

/* Bottom overlay gradient */
.hl-project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.90) 0%,
        rgba(0,0,0,0.30) 50%,
        transparent 100%
    );
    z-index: 2;
}

.hl-project-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px;
    z-index: 3;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hl-project-type {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hl-primary);
    margin-bottom: 8px;
}

.hl-project-title {
    font-family: var(--hl-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
    line-height: 1.2;
}

.hl-project-city {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.hl-project-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hl-primary);
    text-decoration: none;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}

.hl-project-card:hover .hl-project-link {
    opacity: 1;
    transform: translateY(0);
}

.hl-project-card:hover .hl-project-overlay {
    transform: translateY(-6px);
}

.hl-project-card--clickable .hl-project-link {
    opacity: 1;
    transform: translateY(0);
}

.hl-project-card--clickable:focus-visible {
    outline: 2px solid var(--hl-primary);
    outline-offset: 3px;
}

/* Compact project cards (Projects page + homepage grid) */
.hl-project-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hl-project-item--clickable {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    transition: transform 0.2s ease;
}

.hl-project-item--clickable:focus-visible {
    outline: 2px solid var(--hl-primary);
    outline-offset: 4px;
    border-radius: var(--hl-radius);
}

.hl-project-card--compact {
    aspect-ratio: 5/4;
    overflow: hidden;
    border: 1px solid var(--hl-border);
    background: var(--hl-bg-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hl-project-card--compact::before,
.hl-project-card--compact::after {
    display: none;
}

.hl-project-card--compact .hl-project-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.hl-project-meta {
    padding: 12px 2px 0;
    flex: 1;
}

.hl-project-item--clickable .hl-project-type {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--hl-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hl-project-item--clickable .hl-project-title {
    font-family: var(--hl-font-display);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--hl-text);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.hl-project-item--clickable .hl-project-city {
    font-size: 0.74rem;
    color: var(--hl-text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hl-project-item--clickable:hover .hl-project-card--compact,
.hl-project-item--clickable:focus-visible .hl-project-card--compact {
    border-color: var(--hl-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hl-project-item--clickable:hover .hl-project-card__img,
.hl-project-item--clickable:focus-visible .hl-project-card__img {
    transform: scale(1.04);
}

.hl-project-item--clickable:hover .hl-project-title,
.hl-project-item--clickable:focus-visible .hl-project-title {
    color: var(--hl-primary);
}

.hl-project-group-title {
    font-family: var(--hl-font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--hl-text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hl-border);
}

.hl-project-group-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--hl-primary);
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 2px;
}

/* Project detail modal */
.hl-project-modal .modal-content {
    background: linear-gradient(160deg, #001830 0%, #001F3B 55%, #002855 100%);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: var(--hl-radius);
    color: #FFFFFF;
}

.hl-project-modal .modal-header {
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    padding: 24px 28px;
}

.hl-project-modal .modal-body {
    padding: 8px 28px 28px;
}

.hl-project-modal-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hl-primary);
}

.hl-project-modal .modal-title {
    font-family: var(--hl-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
}

.hl-project-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hl-project-modal-item {
    padding: 16px 18px;
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: var(--hl-radius-sm);
    background: rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hl-project-modal-item:hover {
    border-color: rgba(201, 162, 39, 0.35);
    background: rgba(0, 0, 0, 0.32);
}

.hl-project-modal-name {
    font-family: var(--hl-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px;
    line-height: 1.35;
}

.hl-project-modal-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.hl-project-modal-location i {
    color: var(--hl-primary);
    margin-right: 4px;
}

.hl-project-modal-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: center;
    border-radius: var(--hl-radius-sm);
    border: 1px solid rgba(201, 162, 39, 0.15);
}


/* =============================================================================
   8. SAFETY / CERTIFICATIONS
   ============================================================================= */

.hl-safety {
    padding: 72px 0;
    background: #080808;   /* deliberately fixed dark — safety section */
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.hl-safety-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--hl-primary);
    margin-bottom: 12px;
}

.hl-safety-title {
    font-family: var(--hl-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.hl-safety-text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    max-width: 400px;
}

/* Cert grid */
.hl-cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 576px) {
    .hl-cert-grid { grid-template-columns: repeat(4, 1fr); }
}

.hl-cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1px solid rgba(201, 162, 39, 0.20);
    border-radius: var(--hl-radius);
    background: rgba(201, 162, 39, 0.04);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hl-cert-card:hover {
    border-color: var(--hl-primary);
    background: rgba(201, 162, 39, 0.08);
}

.hl-cert-card i {
    font-size: 1.5rem;
    color: var(--hl-primary);
}

.hl-cert-card span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}


/* =============================================================================
   9. CONTACT SECTION & FORM
   ============================================================================= */

/* Contact info column */
.hl-contact-info-title {
    font-family: var(--hl-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hl-text);
    margin-bottom: 8px;
}

.hl-contact-info-sub {
    font-size: 0.875rem;
    color: var(--hl-text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
}

.hl-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hl-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hl-info-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hl-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hl-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hl-primary);
    margin-bottom: 3px;
}

.hl-info-value {
    font-size: 0.875rem;
    color: var(--hl-text);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

a.hl-info-value:hover { color: var(--hl-primary); }

/* ── Form ──────────────────────────────────────── */
.hl-form-card {
    background: var(--hl-bg-card);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-lg);
    padding: 36px 32px;
}

.hl-form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .hl-form-row--2col { grid-template-columns: 1fr 1fr; }
}

.hl-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hl-form-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--hl-text-muted);
}

.hl-input,
.hl-select,
.hl-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--hl-bg);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    color: var(--hl-text);
    font-family: var(--hl-font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.hl-input::placeholder,
.hl-textarea::placeholder { color: var(--hl-text-muted); opacity: 0.6; }

.hl-input:focus,
.hl-select:focus,
.hl-textarea:focus {
    border-color: var(--hl-primary);
    background: var(--hl-bg-card);
}

/* Validation state */
.hl-input.is-invalid,
.hl-select.is-invalid,
.hl-textarea.is-invalid {
    border-color: #dc3545;
}

.hl-field-error {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 3px;
}

/* Select — custom arrow */
.hl-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23FEAF03' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.hl-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button — full width on form */
.hl-form-submit {
    width: 100%;
    padding: 14px;
    background: var(--hl-primary);
    border: none;
    border-radius: var(--hl-radius-sm);
    color: #001F3B;
    font-family: var(--hl-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    margin-top: 8px;
}

.hl-form-submit:hover { background: var(--hl-gold-hover); transform: translateY(-1px); }
.hl-form-submit:active { transform: translateY(0); }
.hl-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Success / error alerts */
.hl-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--hl-radius);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.hl-alert--success {
    background: rgba(40, 167, 69, 0.10);
    border: 1px solid rgba(40, 167, 69, 0.30);
    color: #28a745;
}

.hl-alert--danger {
    background: rgba(220, 53, 69, 0.10);
    border: 1px solid rgba(220, 53, 69, 0.30);
    color: #dc3545;
}

/* Form responsive */
@media (max-width: 575.98px) {
    .hl-form-card { padding: 24px 20px; }
}

/* ── Legal documents ───────────────────────────────────────────── */
.hl-legal-doc-intro {
    font-size: 0.9rem;
    color: var(--hl-text-muted);
    max-width: 640px;
    margin: 10px 0 0;
    line-height: 1.6;
}

.hl-legal-doc {
    max-width: 780px;
    margin: 0 auto;
}

.hl-legal-updated {
    font-size: 0.8rem;
    color: var(--hl-text-muted);
    margin-bottom: 28px;
}

.hl-legal-doc__heading {
    font-family: var(--hl-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hl-text);
    margin: 28px 0 10px;
}

.hl-legal-doc__heading:first-of-type {
    margin-top: 0;
}

.hl-legal-doc__body {
    font-size: 0.9rem;
    color: var(--hl-text-muted);
    line-height: 1.75;
}

.hl-legal-doc__body p {
    margin-bottom: 12px;
}

.hl-legal-doc__body ul {
    margin: 0 0 14px 1.1rem;
    padding: 0;
}

.hl-legal-doc__body li {
    margin-bottom: 6px;
}

.hl-legal-doc__body a {
    color: var(--hl-primary);
    text-decoration: none;
}

.hl-legal-doc__body a:hover {
    text-decoration: underline;
}

.hl-legal-doc__contact {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--hl-border);
    font-size: 0.875rem;
    color: var(--hl-text-muted);
}

.hl-legal-doc__contact a {
    color: var(--hl-primary);
    font-weight: 600;
    text-decoration: none;
}

/* =============================================================================
   ADDITIONAL MOBILE IMPROVEMENTS
   ============================================================================= */

/* Hero: prevent content from going under absolute badges on small screens */
@media (max-width: 575.98px) {
    .hl-hero-inner {
        padding-bottom: 200px; /* extra room for stacked badges */
    }

    .hl-hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .hl-hero-subtitle {
        font-size: 0.9rem;
    }

    .hl-hero-badges {
        bottom: 72px;
        gap: 10px;
    }

    .hl-hero-badge span {
        font-size: 0.75rem;
    }

    /* Solution cards: reduce padding */
    .hl-solution-card {
        padding: 22px 18px;
    }

    /* Stats: tighter spacing */
    .hl-stat {
        padding: 12px 4px;
    }

    /* Project cards: smaller aspect ratio on mobile */
    .hl-project-card {
        aspect-ratio: 4/3;
    }
}

/* Elevator visual frame: max-width on mobile */
@media (max-width: 991.98px) {
    .hl-ev-frame {
        max-width: 240px;
    }
}

/* Safety cert cards: always 2 columns on mobile */
@media (max-width: 575.98px) {
    .hl-cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Why list items: smaller gap on mobile */
@media (max-width: 575.98px) {
    .hl-why-list li {
        font-size: 0.875rem;
        gap: 10px;
    }
}
