/* ===== Homepage — values measured from the old Elementor page (post 6) =====
   Elementor stacks widgets with a 20px gap and pads every column by 10px; both are folded
   into the margins/paddings below so positions line up with the old page. */

.home-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px;
}

.home-kicker {
    margin: 0 0 20px;
    color: rgba(1, 22, 39, .35);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}
.home-kicker-light { color: #fff; }
.home-kicker-15 { font-size: 15px; }

.home-title {
    margin: 0 0 20px;
    padding: 0 125px 25px;
    color: var(--navy);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
}
.home-title-light { color: #fff; }
/* the old heading started with an empty line (<br>) */
.home-title-iatf { padding-top: 34px; }
.home-title-creating { padding-bottom: 0; }

.home-btn-wrap { display: flex; }
.home-btn-center { justify-content: center; }
.home-btn-right { justify-content: flex-end; }
.home-pill {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background: var(--teal);
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    transition: color .3s, background-color .3s;
}
.home-pill:hover,
.home-pill:focus { background: #fff; color: #6dad39; }
.home-btn-justify .home-pill { flex: 1 1 auto; }

.home-quote-text {
    margin: 0 0 20px;
    color: var(--gray);
    font-size: 24px;
    line-height: 1.857;
}

.home-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- hero: YouTube background video under a 50% navy overlay ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    /* old: 250px top padding, pulled up 95px under the (then overlaying) header */
    padding: 155px 0 250px;
}
.home-hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    container-type: size;
    pointer-events: none;
}
.home-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    border: 0;
    transform: translate(-50%, -50%);
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: #011627;
    opacity: .5;
}
.home-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.home-hero-copy {
    flex: 0 0 50.5%;
    max-width: 50.5%;
    padding: 50px 0;
}
.home-hero-badge {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
}
.home-hero-kicker {
    margin: 0 0 20px;
    padding-bottom: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.home-hero-title {
    margin: 0 0 20px;
    padding-bottom: 25px;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-quote {
    flex: 0 0 auto;
    width: calc(49.5% - 200px);
    margin-left: 200px;
    padding: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .25);
    scroll-margin-top: 90px;
}
.home-quote h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}
.home-field { margin-bottom: 10px; }
.home-quote input,
.home-quote textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 0;
    background: #fff;
    color: #9e9e9e;
    font: 500 16px/1.4 "Roboto", sans-serif;
}
.home-quote textarea {
    height: 101.6px;
    padding: 5px 14px;
    resize: vertical;
}
.home-quote input::placeholder,
.home-quote textarea::placeholder { color: #9e9e9e; opacity: 1; }
.home-quote input:focus,
.home-quote textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.home-field.has-error input,
.home-field.has-error textarea { border-color: #d63638; }
.home-quote .form-error { margin: 0 0 10px; color: #fff; font-size: 14px; line-height: 1.4; }
.home-quote .field-error { margin: 4px 0 0; color: #fff; font-size: 13px; line-height: 1.4; }
.home-send {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 24px;
    border: 1px solid #000;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: 700 15px/1 "Roboto", sans-serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .3s, background-color .3s;
}
.home-send:hover,
.home-send:focus { background: transparent; color: #000; }

/* ---------- products ---------- */
.home-products { padding: 80px 0; }
.home-products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-product { margin: 0; padding: 15px; text-align: center; }
.home-product a { display: block; }
.home-product img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    transition: transform .3s;
}
.home-product a:hover img { transform: scale(1.1); }
.home-product figcaption {
    margin: 28px 0 19px;
    color: var(--gray);
    font-size: 24px;
    line-height: 1.857;
}

/* ---------- about (teal, stacked) ---------- */
.home-about {
    padding: 30px 10px;
    background: var(--teal);
    text-align: center;
}
.home-iatf {
    display: block;
    width: 39%;
    height: auto;
    margin: 0 auto 20px;
}
.home-duns {
    display: block;
    width: 382px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ---------- reliable manufacturing ---------- */
.home-reliable .home-container { padding: 0; }
/* old layout: a 94.359 % content column offset 2.735 % from the left (the side columns don't add up to 100 %) */
.home-reliable-col { margin: 0 2.906% 0 2.735%; padding: 80px 20px 20px; }
.home-reliable .home-title { margin-bottom: 30px; }
.home-video {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    background: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
.home-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.home-reliable-text {
    margin: 0 0 20px;
    color: #0c0c0c;
    font-size: 24px;
    line-height: 1.857;
}

.home-process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-process-item { padding: 10px; text-align: center; }
.home-process-item img { width: 100%; height: auto; margin-bottom: 20px; }
.home-process-item h5 {
    color: var(--gray);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

/* ---------- quality never quits / we creating ---------- */
.home-quality,
.home-creating { padding: 80px 0; }
.home-split { display: flex; }
.home-split-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}
.home-quality-split .home-screw { flex: 0 0 43.739%; }
.home-quality-split .home-split-copy { flex: 0 0 56.261%; }
.home-creating-split .home-split-copy { flex: 0 0 40%; }
.home-creating-media { flex: 0 0 60%; padding: 10px; }
.home-creating-media img { width: 100%; height: auto; }

/* The bit slides down into the screw head while the block scrolls by (old Elementor
   "motion effect"); home.js drives the transform, -36% of this 200%-tall layer is its start. */
.home-screw {
    position: relative;
    overflow: hidden;
    padding-top: 200px;
}
.home-screw-bit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: url("../../img/home/bigbit.73b181e4cce0.jpg") no-repeat 0 156px / 98% auto;
    transform: translateY(-36%);
    transition: transform 1s cubic-bezier(0, .33, .07, 1.03);
    will-change: transform;
}
.home-screw-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 88%, #fff 100%);
}
.home-screw img {
    position: relative;
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ---------- tablet (Elementor ≤1024) ---------- */
@media (max-width: 1024px) {
    .home-hero { padding: 80px 25px; }
    .home-hero-copy { padding: 0; }
    .home-hero-title { font-size: 40px; }
    .home-quote { width: 49.5%; margin-left: 0; }
    .home-title { padding: 0 0 25px; }
    .home-title-iatf { padding-top: 34px; }
    .home-title-creating { padding-bottom: 25px; }
    .home-products { padding: 50px 0; }
    .home-iatf { width: 60%; }
    .home-reliable-text { text-align: right; }
    .home-quality,
    .home-creating { padding: 50px 0; }
    .home-screw-bit { background-position: 0 0; }
    .home-screw img { width: calc(100% - 120px); max-width: 300px; }
}

/* The old theme (Astra) resized bare h2/h5 at ≤768 and ≤544px; Elementor's own per-widget sizes
   (titles 24px on phones, the 15px kicker, product captions…) still won over it. */
@media (max-width: 768px) {
    .home-title,
    .home-quote h2 { font-size: 40px; }
    .home-title-iatf { padding-top: 40px; }
    .home-kicker,
    .home-hero-kicker { font-size: 14.592px; }
    .home-kicker-15 { font-size: 15px; }
}
@media (max-width: 544px) {
    .home-quote h2 { font-size: 25px; }
    .home-kicker,
    .home-hero-kicker { font-size: 11.856px; }
    .home-kicker-15 { font-size: 15px; }
}

/* ---------- phone (Elementor ≤767): columns stack, no background video ---------- */
@media (max-width: 767px) {
    .home-hero { padding: 50px 20px 80px; }
    .home-hero-video { display: none; }
    .home-hero-inner { display: block; }
    .home-hero-copy { max-width: none; }
    .home-hero-kicker { padding-bottom: 5px; line-height: 1.4; }
    .home-hero-title { padding-bottom: 10px; font-size: 34px; }
    .home-quote { width: auto; padding: 10px; scroll-margin-top: 120px; }

    .home-title { font-size: 24px; line-height: 1.3; }
    .home-title-iatf { padding-top: 31.2px; }

    .home-products { padding: 40px 0; }
    .home-products .home-container { padding: 0; }
    .home-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .home-iatf { width: 100%; }

    .home-reliable-col { margin: 0; }
    .home-reliable-text { line-height: 1.5; text-align: left; }
    .home-reliable .home-btn-wrap { justify-content: center; }
    .home-process-grid { grid-template-columns: minmax(0, 1fr); }

    .home-quality,
    .home-creating { padding: 40px 0; }
    .home-split { display: block; }
    .home-quote-text { font-size: 20px; }
    .home-split-copy .home-btn-wrap { justify-content: center; }
    .home-btn-justify .home-pill { flex: 0 0 auto; }
}
