/* Kinner Manufacturing — mobile-first styles */

:root {
    --navy: #003366;
    --navy-dark: #00213f;
    --red: #8b1a1a;
    --steel: #eef1f4;
    --line: #d5dbe1;
    --text: #1d2935;
    --muted: #5a6875;
    --radius: 6px;
    --max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* keep #anchor targets clear of the sticky header */
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: 'Barlow', system-ui, -apple-system, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.section {
    padding: 64px 0;
}

.section--alt {
    background: var(--steel);
}

.section-intro {
    max-width: 680px;
    margin-bottom: 36px;
    color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
    background: var(--red);
    color: #fff;
}

.btn--primary:hover {
    background: #6e1414;
}

.btn--outline {
    border-color: #fff;
    color: #fff;
}

.btn--outline:hover {
    background: #fff;
    color: var(--navy);
}

.btn--navy {
    background: var(--navy);
    color: #fff;
}

.btn--navy:hover {
    background: var(--navy-dark);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 3px solid var(--navy);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-logo img {
    width: 180px;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid var(--navy);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.site-nav.open {
    display: block;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.site-nav a {
    display: block;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    color: var(--red);
}

.site-nav a.nav-cta {
    margin: 8px 20px 12px;
    padding: 12px 20px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius);
    text-align: center;
}

.site-nav a.nav-cta[aria-current="page"] {
    /* white gap, then a navy ring, so it reads against the white header */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    color: #fff;
    background: var(--navy-dark) url(assets/impeller-900.jpg) center 35% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(0, 25, 50, 0.92) 0%, rgba(0, 33, 63, 0.75) 55%, rgba(0, 33, 63, 0.35) 100%);
}

.hero .container {
    position: relative;
    padding-top: 80px;
    padding-bottom: 88px;
}

.hero h1 {
    color: #fff;
    max-width: 14ch;
}

.hero .eyebrow {
    color: #f3b5b5;
}

.hero p {
    max-width: 560px;
    font-size: 1.15rem;
    color: #dde6ee;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-actions .btn {
    flex: 1 1 200px;
}

.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 48px 0;
}

.page-hero h1 {
    color: #fff;
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 3.25rem);
}

.page-hero p {
    margin: 0.5em 0 0;
    color: #dde6ee;
}

/* ---------- Cards / grids ---------- */

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 22px;
}

.card h3 {
    margin-bottom: 0.35em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.industries {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}

.industries li {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
}

.materials h3 {
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
}

.materials ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.materials li {
    padding: 4px 0;
}

/* ---------- Feature (image + text) ---------- */

.feature {
    display: grid;
    gap: 32px;
    align-items: center;
}

.feature img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}

.checklist li {
    position: relative;
    padding: 6px 0 6px 30px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 12px;
    height: 7px;
    border-left: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    transform: rotate(-45deg);
}

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--navy);
    color: #fff;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: #dde6ee;
    max-width: 560px;
    margin: 0 auto 24px;
}

/* ---------- Projects ---------- */

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project + .project {
    margin-top: 48px;
}

/* ---------- Contact ---------- */

.contact-layout {
    display: grid;
    gap: 40px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: var(--navy);
}

.contact-form input:not([type="submit"]),
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    /* 16px+ keeps iOS Safari from zooming in on focus */
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.contact-form input:not([type="submit"]):focus,
.contact-form textarea:focus {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
    border-color: var(--navy);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form .btn {
    justify-self: start;
    min-width: 180px;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info {
    background: var(--steel);
    border-radius: var(--radius);
    padding: 24px;
}

.contact-info dt {
    font-weight: 700;
    color: var(--navy);
}

.contact-info dd {
    margin: 0 0 1em;
}

#formMessage {
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Careers ---------- */

#careerLinks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.careerLink {
    border-radius: var(--radius);
    padding: 18px 20px;
    color: #fff;
}

.careerLink h2 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.careerLink p {
    margin: 4px 0 0;
}

.available { background: var(--navy); }
.disabled { background: #5f6b76; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-dark);
    color: #c4d0db;
    padding: 40px 0 24px;
    font-size: 0.95rem;
}

.site-footer .container {
    display: grid;
    gap: 24px;
}

.site-footer strong {
    display: block;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.site-footer a {
    color: #fff;
}

/* Bigger tap areas for phone and address links */
.site-footer a,
.contact-info a {
    display: inline-block;
    padding: 10px 0;
}

.site-footer p {
    margin: 0 0 4px;
}

.site-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    font-size: 0.85rem;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .industries { grid-template-columns: repeat(3, 1fr); }
    .hero-actions .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
    .section { padding: 88px 0; }

    .site-logo img { width: 230px; }

    .nav-toggle { display: none; }

    .site-nav,
    .site-nav.open {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
    }

    .site-nav ul {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0;
    }

    .site-nav a {
        padding: 10px 14px;
    }

    .site-nav a:hover {
        color: var(--red);
    }

    .site-nav a.nav-cta {
        margin: 0 0 0 10px;
    }

    .site-nav a.nav-cta:hover {
        color: #fff;
        background: #6e1414;
    }

    .hero {
        background-image: url(assets/impeller.jpg);
        background-position: right 30%;
    }

    .hero .container {
        padding-top: 130px;
        padding-bottom: 140px;
    }

    .grid { grid-template-columns: repeat(3, 1fr); }

    .feature { grid-template-columns: 1fr 1fr; gap: 56px; }

    .contact-layout { grid-template-columns: 3fr 2fr; gap: 56px; }

    .site-footer .container { grid-template-columns: 2fr 1fr 1fr; }
    .site-footer .copyright { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
