/* ==========================================================================
   Alpha Engineering - site.css
   Brand: red #E50914 | charcoal #17191D | dark #101114 | light #F5F6F8
   To swap the hero photo: put hero.jpg in /Content/images and change --hero-image.
   ========================================================================== */

:root {
    --red: #E50914;
    --red-dark: #BF0710;
    --charcoal: #17191D;
    --dark: #101114;
    --white: #FFFFFF;
    --light: #F5F6F8;
    --text: #555B65;
    --border: #E3E5E9;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(16,17,20,.06), 0 1px 3px rgba(16,17,20,.08);
    --shadow-md: 0 18px 40px -18px rgba(16,17,20,.28);
    --header-h: 76px;
    --hero-image: url('../images/hero.svg');
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--charcoal); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid rgba(229,9,20,.55); outline-offset: 3px; border-radius: 4px; }
.text-red { color: var(--red); }
.text-placeholder { color: inherit; opacity: .6; font-style: italic; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 10px 16px; z-index: 2000; border-radius: 8px; }
.skip-link:focus { left: 12px; color: #fff; }

.section-pad { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-pad-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-light-soft { background: var(--light); }
.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .75rem; }
.section-label-light { color: #ff5a63; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.section-sub { font-size: 1.1rem; margin-bottom: 0; }
.lead-sm { font-size: 1.1rem; color: var(--charcoal); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .65rem 1.3rem; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .45rem .9rem; font-size: .875rem; }
.btn-brand { background: var(--red); border: 2px solid var(--red); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(229,9,20,.7); }
.btn-outline-brand { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline-brand:hover { background: var(--red); color: #fff; }
.btn-dark-brand { background: var(--charcoal); border: 2px solid var(--charcoal); color: #fff; }
.btn-dark-brand:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost-light { background: transparent; border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--charcoal); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -14px rgba(16,17,20,.3); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.navbar-brand img { display: block; width: auto; height: 46px; }
.navbar .nav-link { color: var(--charcoal); font-weight: 600; font-size: .95rem; padding: .6rem .9rem; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--red); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 1px solid var(--border); padding: .45rem .65rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(229,9,20,.25); }

.nav-split { position: relative; }
.nav-caret { background: none; border: 0; padding: .6rem .5rem .6rem 0; margin-left: -.55rem; color: var(--charcoal); cursor: pointer; }
.nav-caret::after { margin-left: 0; }
.nav-caret:hover { color: var(--red); }
.dropdown-menu { border: 1px solid var(--border); border-radius: 12px; padding: .5rem; min-width: 250px; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-weight: 500; color: var(--charcoal); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--light); color: var(--red); }

@media (min-width: 992px) {
    .nav-products:hover .dropdown-menu { display: block; margin-top: 0; }
    .nav-products .dropdown-menu { top: 100%; right: 0; }
}
@media (max-width: 991.98px) {
    .navbar-collapse { padding: .75rem 0 1.25rem; border-top: 1px solid var(--border); margin-top: .35rem; }
    .navbar .nav-link::after { display: none; }
    .nav-split .dropdown-menu { position: static; width: 100%; box-shadow: none !important; margin-top: .25rem; }
    .nav-split { flex-wrap: wrap; }
    .nav-caret { margin-left: auto; padding-right: .9rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: 4.5rem 0; background: var(--dark) var(--hero-image) center / cover no-repeat; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,17,20,.94) 0%, rgba(16,17,20,.8) 48%, rgba(16,17,20,.5) 100%); }
.hero-gear { position: absolute; right: -8%; top: 50%; width: min(62vw, 720px); transform: translateY(-50%); color: rgba(255,255,255,.06); z-index: -1; pointer-events: none; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; border-left: 3px solid var(--red); padding-left: .75rem; margin-bottom: 1.4rem; }
.hero-eyebrow i { color: var(--red); }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 800; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 40rem; margin-bottom: 2rem; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding: 0; margin: 2.5rem 0 0; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.85); }
.hero-chips i { color: var(--red); margin-right: .4rem; }

.hero .anim { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .d1 { animation-delay: .05s; } .hero .d2 { animation-delay: .15s; } .hero .d3 { animation-delay: .27s; }
.hero .d4 { animation-delay: .39s; } .hero .d5 { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--charcoal); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 4px solid var(--red); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; border: 36px dashed rgba(255,255,255,.04); }
.page-hero-sm { padding: 1.1rem 0; border-bottom-width: 3px; }
.page-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: .5rem; }
.page-sub { color: rgba(255,255,255,.75); font-size: 1.1rem; margin: 0; max-width: 40rem; }
.breadcrumb { font-size: .85rem; margin-bottom: .9rem; }
.breadcrumb-light .breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-light .breadcrumb-item a:hover { color: #fff; }
.breadcrumb-light .breadcrumb-item.active { color: #fff; }
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---------- About ---------- */
.about-frame { position: relative; border-radius: 18px; }
.about-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); border-radius: 18px; z-index: 0; }
.about-frame img { position: relative; z-index: 1; width: 100%; border-radius: 18px; box-shadow: var(--shadow-md); background: var(--charcoal); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--charcoal); font-weight: 500; }
.check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--red); font-size: 1.15rem; }
.check-list-sm li { font-size: .95rem; margin-bottom: .5rem; }

/* ---------- Product cards ---------- */
.catalogue-toolbar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.search-box { position: relative; flex: 1 1 320px; max-width: 460px; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8a909b; pointer-events: none; }
.search-box .form-control { padding: .8rem 1rem .8rem 2.7rem; border-radius: 999px; border: 1px solid #d5d8de; }
.search-box .form-control:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,9,20,.12); }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip { border: 1px solid var(--border); background: #fff; color: var(--charcoal); font-weight: 600; font-size: .875rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.result-count { font-size: .9rem; color: #7a808a; margin: .5rem 0 1.5rem; }

.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3d6dc; }
.product-media { display: block; aspect-ratio: 1 / 1; background: var(--light); overflow: hidden; border-bottom: 1px solid var(--border); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; }
.product-code { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .45rem; }
.product-title { font-size: 1.2rem; margin-bottom: .5rem; }
.product-title a { color: var(--charcoal); }
.product-title a:hover { color: var(--red); }
.product-desc { font-size: .93rem; flex: 1; margin-bottom: 1.1rem; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.link-details { font-weight: 600; font-size: .92rem; }
.link-details i { transition: transform .2s; display: inline-block; }
.link-details:hover i { transform: translateX(4px); }

.no-results { text-align: center; padding: 3rem 1rem; }
.no-results i { font-size: 2.2rem; color: var(--red); }
.no-results[hidden] { display: none; }
.product-item[hidden] { display: none; }

/* ---------- Product details ---------- */
.gallery-main { background: var(--light); border: 1px solid var(--border); border-radius: 18px; aspect-ratio: 1 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-thumbs { display: flex; gap: .75rem; margin-top: .9rem; flex-wrap: wrap; }
.gallery-thumb { width: 84px; height: 84px; padding: 6px; background: var(--light); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--red); }
.product-h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.meta-list { margin: 2rem 0 0; border-top: 1px solid var(--border); }
.meta-list > div { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.meta-list dt { flex: 0 0 120px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a808a; padding-top: .15rem; }
.meta-list dd { margin: 0; color: var(--charcoal); font-weight: 600; }
.spec-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec-table th { width: 38%; background: var(--light); color: var(--charcoal); font-weight: 600; }
.note-box { display: flex; gap: .9rem; background: var(--light); border: 1px dashed #c9cdd4; border-radius: 12px; padding: 1.1rem 1.25rem; }
.note-box i { color: var(--red); font-size: 1.2rem; margin-top: .1rem; }

/* ---------- Highlights ---------- */
.feature-card, .action-card { display: block; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: transform .3s, box-shadow .3s, border-color .3s; color: var(--text); }
.feature-card:hover, .action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red); }
.feature-card h3, .action-card h3 { font-size: 1.15rem; margin: 1.1rem 0 .55rem; }
.feature-card p, .action-card p { font-size: .93rem; margin-bottom: 0; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; background: rgba(229,9,20,.08); color: var(--red); font-size: 1.5rem; flex-shrink: 0; }
.action-card .link-details { display: inline-block; margin-top: 1rem; }
.action-card-wide { display: flex; gap: 1.25rem; align-items: flex-start; }
.action-card-wide h3 { margin-top: 0; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; background: var(--charcoal); color: #fff; padding: clamp(3rem, 6vw, 4.75rem) 0; border-left: 8px solid var(--red); overflow: hidden; }
.cta-gear { position: absolute; right: -90px; top: 50%; width: 460px; transform: translateY(-50%); color: rgba(255,255,255,.05); pointer-events: none; }
.cta-title { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: .75rem; }
.cta-text { color: rgba(255,255,255,.75); font-size: 1.1rem; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--charcoal); margin-bottom: .4rem; }
.req { color: var(--red); }
.form-control, .form-select { border-radius: 10px; border: 1px solid #d5d8de; padding: .72rem .95rem; color: var(--charcoal); }
.form-control::placeholder { color: #9aa0aa; }
.form-control:focus, .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,9,20,.12); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc3545; background-image: none; padding-right: .95rem; }
.invalid-feedback { font-size: .84rem; }
.form-note { font-size: .85rem; color: #7a808a; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 500; border: 1px solid transparent; }
.form-alert[hidden] { display: none; }
.form-alert.is-success { background: #e8f6ee; border-color: #b7e2c8; color: #14693a; }
.form-alert.is-warning { background: #fff6e0; border-color: #f1d9a0; color: #7a5300; }
.form-alert.is-error { background: #fdecee; border-color: #f4b9bf; color: #9b1424; }
.side-card { background: var(--light); border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin-bottom: .65rem; }
.side-links a { font-weight: 600; color: var(--charcoal); }
.side-links a:hover { color: var(--red); }
.side-links i { color: var(--red); margin-right: .55rem; }

/* ---------- Contact page ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-list strong { display: block; color: var(--charcoal); }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--charcoal); color: #fff; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 4px solid var(--red); }
.footer-logo img { display: block; width: auto; height: 46px; }
.footer-text { font-size: .93rem; max-width: 24rem; }
.footer-heading { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .6rem; font-size: .93rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.72); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact i { color: var(--red); margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; transition: all .2s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer-top { color: rgba(255,255,255,.72); }
.footer-top:hover { color: #fff; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 575.98px) {
    .hero { padding: 3rem 0; }
    .product-actions { flex-wrap: wrap; }
    .meta-list dt { flex-basis: 96px; }
    .about-frame::before { inset: 12px -8px -12px 12px; }
    .cta-banner { border-left-width: 5px; }
}
@media (max-width: 991.98px) {
    .side-card { position: static; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero .anim, .js .reveal { opacity: 1 !important; transform: none !important; }
}
