/* Explain: Styles for UI components including navigation, sections, cards, forms, and client logos. */
.site-header {
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.94), rgba(10, 10, 11, 0.66));
    backdrop-filter: blur(18px);
}

.header-accent-line::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color) 18%, var(--accent-color) 82%, transparent);
    box-shadow: 0 0 14px rgba(255, 122, 0, 0.55);
    content: "";
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-color);
    text-decoration: none;
    transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:focus-visible {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 144, 0, 0.28), rgba(255, 144, 0, 0.06));
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.55), 0 12px 30px rgba(255, 138, 0, 0.22);
    color: var(--primary-hover);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(22, 22, 24, 0.88), rgba(22, 22, 24, 0.58));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-frame {
    position: relative;
    overflow: hidden;
    height: min(70vh, 640px);
    min-height: 430px;
    border: 1px solid var(--glass-border);
    border-radius: 0.65rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.hero-frame video,
.hero-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    left: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1.5rem;
    padding: 0.95rem 1.15rem;
    color: var(--text-color);
}

.hero-badge-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--primary-color);
}

.media-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.9rem;
    padding: 1.85rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: rgba(255, 138, 0, 0.55);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.62);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.1rem;
    background: var(--sage-soft);
    color: var(--primary-color);
    font-size: 1.25rem;
}

.portfolio-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 0.95rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.portfolio-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.portfolio-card:hover img {
    transform: scale(1.06);
}

.portfolio-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
    color: #ffffff;
}

.portfolio-play {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(10, 10, 11, 0.88);
    color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.process-step {
    border-radius: 1.9rem;
    padding: 1.85rem;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--button-text-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(22, 22, 24, 0.62);
    padding: 1.25rem;
}

.feature-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--terracotta-soft);
}

.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(22, 22, 24, 0.66);
    padding: 1.25rem;
}

.inquiry-form {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.inquiry-form fieldset {
    min-width: 0;
}

.inquiry-form .select {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.form-status.success {
    color: #6FD79A;
}

.form-status.error {
    color: #FF9C8A;
}

.mobile-cta-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 11, 0.92);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.media-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem;
}

.media-modal.is-open {
    display: flex;
}

.media-modal-panel {
    width: min(100%, 960px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 1.75rem;
    background: var(--surface-color);
    padding: 1rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.estimator-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(22, 22, 24, 0.62);
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.estimator-option:hover {
    border-color: rgba(255, 138, 0, 0.5);
    transform: translateY(-3px);
}

.estimator-option:has(input:checked) {
    border-color: var(--accent-color);
    background: var(--surface-color);
    box-shadow: 0 18px 46px rgba(255, 138, 0, 0.18);
}

.estimator-option:has(input:focus-visible) {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.estimator-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    background: rgba(22, 22, 24, 0.58);
    padding: 0.9rem 1.05rem;
    cursor: pointer;
    transition: border-color 300ms ease, background-color 300ms ease;
}

.estimator-check:hover {
    border-color: rgba(255, 138, 0, 0.5);
}

.estimator-check:has(input:checked) {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.estimator-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    accent-color: var(--accent-color);
}

.consult-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.78);
    padding: 1.25rem;
    backdrop-filter: blur(6px);
}

.consult-modal.is-open {
    display: flex;
}

.inquiry-modal-panel {
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-footer {
    padding-bottom: 3.5rem;
}

body:has(.mobile-cta-bar) .site-footer {
    padding-bottom: 7rem;
}

.product-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0.675rem;
    background: var(--surface-color);
    aspect-ratio: 16 / 9;
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.service-card:hover .product-thumb img {
    transform: scale(1.05);
}

.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 60;
    transform: translate(-50%, 1rem);
    max-width: min(90vw, 26rem);
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: rgba(10, 10, 11, 0.95);
    padding: 0.85rem 1.25rem;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
    backdrop-filter: blur(12px);
}

.shop-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    min-height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--button-color);
    color: var(--button-text-color);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.cart-count.is-hidden {
    display: none;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.summary-row.is-hidden {
    display: none;
}

.cart-empty {
    display: block;
}

.cart-empty.is-hidden {
    display: none;
}

.tax-field {
    display: block;
}

.tax-field.is-hidden {
    display: none;
}

.estimate-contact-form {
    border-radius: 0;
    padding: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 1rem;
    content: "";
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 55;
    display: grid;
    gap: 0.25rem;
    min-width: 16rem;
    padding: 0.55rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.35rem;
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 0.5rem);
    transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.95rem;
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 240ms ease, color 240ms ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
    background: linear-gradient(135deg, rgba(255, 144, 0, 0.28), rgba(255, 144, 0, 0.06));
    color: var(--primary-hover);
    outline: none;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .hero-frame {
        height: 460px;
        min-height: 0;
    }

    .media-frame {
        border-radius: 1rem;
    }
}

.equipment-gallery {
    display: grid;
    gap: 0.9rem;
}

.equipment-gallery-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.equipment-gallery-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-gallery-img.is-active {
    display: block;
}

.equipment-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
    gap: 0.6rem;
}

.equipment-gallery-thumb {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    background: var(--surface-color);
    cursor: pointer;
    transition: border-color 300ms ease, transform 300ms ease;
}

.equipment-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.equipment-gallery-thumb.is-active,
.equipment-gallery-thumb:hover,
.equipment-gallery-thumb:focus-visible {
    border-color: var(--accent-color);
    outline: none;
}

.rich-list ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.rich-list ol {
    margin: 0;
    padding-left: 1.4rem;
    list-style: decimal;
}

.rich-list li {
    margin-top: 0.55rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.rich-list li:first-child {
    margin-top: 0;
}

.rich-list p {
    margin-top: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 767px) {
    .equipment-gallery-stage {
        border-radius: 0.8rem;
    }
}

.clients-marquee {
    position: relative;
    overflow: hidden;
    padding: 0.25rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.clients-track {
    display: flex;
    width: max-content;
    animation: clients-scroll 95s linear infinite;
}

.clients-marquee:hover .clients-track,
.clients-marquee:focus-within .clients-track {
    animation-play-state: paused;
}

.clients-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
}

.clients-marquee .client-logo-slot {
    flex: 0 0 auto;
    width: 11rem;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    min-height: 4.5rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.35rem;
    background: var(--glass-bg);
    transition: border-color 300ms ease, background-color 300ms ease, transform 300ms ease;
}

.client-logo:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
    transform: translateY(-3px);
}

.client-logo-mark {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.client-logo-img {
    max-height: 3rem;
    max-width: 9rem;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.6);
    opacity: 0.72;
    transition: filter 300ms ease, opacity 300ms ease;
}

.client-logo:hover .client-logo-img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

.client-logo:hover .client-logo-mark {
    color: var(--primary-color);
}

@keyframes clients-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients-track {
        animation: none;
    }

    .clients-marquee {
        overflow-x: auto;
    }
}

.client-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
    padding: 0.9rem 0.55rem;
    border: 1px dashed var(--glass-border);
    border-radius: 1.35rem;
    background: var(--glass-bg);
    transition: border-color 300ms ease, background-color 300ms ease;
}

.client-logo-slot:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.client-logo-slot-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 3.5rem;
    border-radius: 0.7rem;
    object-fit: contain;
}

.article-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.article-chip:hover,
.article-chip:focus-visible {
    border-color: var(--accent-color);
    color: var(--primary-hover);
    outline: none;
}

.article-chip.is-active {
    border-color: var(--accent-color);
    background: var(--button-color);
    color: var(--button-text-color);
    box-shadow: var(--shadow-button);
}

.article-card.is-hidden {
    display: none;
}

.article-pager {
    display: none;
}

.article-pager.has-pages {
    display: flex;
}

.article-page-btn.is-active {
    border-color: var(--accent-color);
    background: var(--button-color);
    color: var(--button-text-color);
    box-shadow: var(--shadow-button);
}

@media (max-width: 767px) {
    .client-logo-slot {
        min-height: 5.5rem;
        padding: 0.7rem 0.5rem;
        border-radius: 1rem;
    }

    .client-logo-slot-img {
        height: 3.25rem;
    }
}

.review-card.is-hidden {
    display: none;
}