/* ============================================
   MIDWEST SURPLUS INC. — SITE REDESIGN v2
   css/style-v2.css
   ============================================ */

:root {
    --navy-deep: #0c1520;
    --navy: #162233;
    --navy-mid: #1e3048;
    --green-primary: #1a8c1a;
    --green-dark: #116e11;
    --green-light: #24b024;
    --text: #333;
    --text-white: #ffffff;
    --text-light: #c8d4e0;
    --text-muted: #8899aa;
    --white-bg: #ffffff;
    --body-bg: #0f1a28;
}

/* ---- RESET / BASE ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
    font-size: 1rem;
}

a { transition: color 0.2s; }
img { max-width: 100%; }

/* ---- SHARED BUTTON ---- */
.btn-green {
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 40%, var(--green-dark) 100%);
    color: var(--text-white);
    border: none;
    transition: filter 0.2s, transform 0.15s;
}
.btn-green:hover {
    filter: brightness(1.12);
    color: var(--text-white);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 960px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 36px;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-link img {
    height: 48px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.06);
}
.nav-links-mobile-only,
.nav-links-mobile-call {
    display: none;
}
.nav-links-mobile-call a {
    color: var(--green-light) !important;
    font-weight: 700;
}
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    text-decoration: none;
}
.header-cta svg { flex-shrink: 0; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ============================================
   WHITE PANEL (hero + intro on homepage,
   content panel on inner pages)
   ============================================ */
.white-panel {
    background: var(--white-bg);
    background: linear-gradient(180deg, rgba(22, 49, 84, 1) 25%, rgba(255, 255, 255, 1) 25%);
    padding: 32px 0 48px;
    overflow: hidden;
}
.content-panel {
    background: var(--white-bg);
    padding: 48px 0 56px;
    min-height: 50vh;
}
.content-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}
.content-inner h1,
.content-inner h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 20px;
}
.content-inner h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2233;
    margin: 28px 0 16px;
}
.content-inner p {
    font-size: 16px;
    line-height: 1.75;
    color: #3a4a5c;
    margin: 0 0 16px;
}
.content-inner a {
    color: #0e6b0e; /* 5.9:1 on white — passes AA */
}
.content-inner a:hover {
    color: #094c09;
}
.content-inner a.tel-link,
a.tel-link {
    color: #0b5fba; /* 5.5:1 on white — passes AA */
    font-weight: 700;
}
.content-inner a.tel-link:hover,
a.tel-link:hover {
    color: #084a93;
}

/* ============================================
   HERO SECTION (homepage)
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #2a3a50;
    border: 2px solid #fff;
}
.hero-section img.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-img-1 { animation: heroFade 10s ease-in-out infinite; }
.hero-img-2 { opacity: 0; animation: heroFade2 10s ease-in-out infinite; }
@keyframes heroFade {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes heroFade2 {
    0%, 40% { opacity: 0; }
    50%, 90% { opacity: 1; }
    100% { opacity: 0; }
}
.hero-address {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(12, 21, 32, 0.85);
    color: white;
    padding: 10px 18px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
    margin-left: -24px;
    padding-left: 24px;
    opacity: .9;
}
.hero-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #2a4060 0%, #1a3050 40%, #0f2040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   INTRO SECTION (homepage, inside white panel)
   ============================================ */
.intro-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 0;
}
.intro-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a2233;
}
.intro-tagline {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #667788;
    margin: 0 0 20px;
}
.intro-body {
    font-size: 16px;
    line-height: 1.75;
    color: #3a4a5c;
    margin: 0 0 24px;
}
.intro-link {
    display: inline-block;
    color: #0e6b0e;
    font-weight: 700;
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.intro-link:hover { color: #094c09; }

/* ============================================
   FEATURED DEALS (homepage)
   ============================================ */
.featured-section {
    margin: 0 auto;
    background: linear-gradient(0deg, rgba(22, 49, 84, 1) 75%, rgba(255, 255, 255, 1) 75%);
    text-align: center;
}
.featured-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text);
}
.featured-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 24px 24px;
    text-align: left;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card {
    background: var(--white-bg);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
}
.product-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.product-card-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 auto;
    line-height: 1.4;
    min-height: 48px;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    gap: 10px;
}
.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #2a3a4c;
    white-space: nowrap;
}
.btn-details {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 40px 24px 56px;
}
.btn-inventory {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 44px;
    border-radius: 8px;
    text-decoration: none;
}

/* ============================================
   CONTACT BAR (homepage)
   ============================================ */
.contact-bar {
    max-width: 500px;
    margin: 0 auto 56px;
    background: var(--navy-mid);
    border-radius: 10px;
    padding: 28px 32px;
    text-align: center;
}
.contact-bar h3 {
    font-size: 20px;
    margin: 0 0 16px;
    font-weight: 700;
}
.contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.btn-contact {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: filter 0.2s, border-color 0.2s;
}
.btn-contact-phone { border: none; }
.btn-contact-phone:hover { color: white; text-decoration: none; }
.btn-contact-email {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-contact-email:hover {
    border-color: rgba(255,255,255,0.6);
    color: white;
    text-decoration: none;
}

/* ============================================
   CONTACT FORM (contact page)
   ============================================ */
.contact-form .form-control {
    border: 2px solid #dde3ea;
    border-radius: 6px;
    padding: 12px 14px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
    height: auto;
    box-shadow: none;
}
.contact-form .form-control:focus {
    border-color: var(--green-primary);
    box-shadow: none;
    outline: none;
}
.contact-form textarea.form-control {
    min-height: 140px;
}
.btn-send {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}
.contact-info {
    font-size: 16px;
    color: #3a4a5c;
    margin-bottom: 24px;
    line-height: 1.75;
}
.contact-info a {
    color: #0e6b0e;
    font-weight: 700;
}

/* ============================================
   CAROUSEL (services page)
   ============================================ */
.carousel {
    border-radius: 6px;
    overflow: hidden;
    margin-top: 20px;
}
.carousel img {
    width: 100%;
    display: block;
}
.carousel-inner {
    min-height: auto;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.4);
    border-radius: 4px;
    padding: 16px;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0 32px;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #b0c0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-white); }
.footer-phone {
    color: var(--green-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.footer-phone:hover { color: var(--text-white); }
.footer-copy {
    color: #9aabb8;
    font-size: 13px;
    margin-top: 12px;
}
.footer-logo {
    width: 80px;
    opacity: 0.8;
}

/* ============================================
   PASSCODE GATE
   ============================================ */
.passcode-gate {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}
.passcode-box {
    background: var(--navy-mid);
    border-radius: 10px;
    padding: 40px 36px;
    max-width: 360px;
    width: 90%;
    text-align: center;
}
.passcode-box img { height: 48px; margin-bottom: 24px; }
.passcode-box h2 { font-size: 20px; margin: 0 0 6px; color: var(--text-white); }
.passcode-box p { font-size: 14px; color: var(--text-muted); margin: 0 0 20px; }
.passcode-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: var(--text-white);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}
.passcode-box input:focus { border-color: var(--green-primary); }
.passcode-box input.error { border-color: #cc3333; animation: shake 0.3s; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.passcode-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .site-header .container { height: 60px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--navy-deep);
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        gap: 16px;
    }
    .nav-links.open a {
        padding: 18px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 18px;
    }
    .header-cta { display: none; }
    .nav-links-mobile-call,
    .nav-links-mobile-only { display: block; }

    /* Homepage */
    .white-panel { padding: 16px 0 36px; }
    .hero-section {
        margin: 0 12px;
        border-radius: 8px;
        aspect-ratio: 16 / 9;
    }
    .intro-section { padding: 40px 20px 0; }
    .intro-section h1 { font-size: 26px; }
    .featured-section { padding: 36px 20px 16px; }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Contact bar */
    .contact-bar { margin: 0 12px 40px; padding: 24px 20px; }
    .contact-buttons { flex-direction: column; }
    .btn-contact { max-width: 100%; }

    /* Inner pages */
    .content-panel { padding: 32px 0 40px; }
    .content-inner { padding: 0 20px; }
    .content-inner h1,
    .content-inner h2 { font-size: 24px; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-logo { display: none; }
}

@media (min-width: 769px) and (max-width: 991px) {
    .product-grid { gap: 14px; }
    .product-card-title { font-size: 15px; }
    .product-card-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-img-1, .hero-img-2 { animation: none; }
    .hero-img-1 { opacity: 1; }
    .hero-img-2 { opacity: 0; }
    .product-card { transition: none; }
}

/* ============================================
   CONTACT FORM BUTTON OVERRIDE
   (handles old .btn .btn-primary classes
   inside .contact-form wrapper)
   ============================================ */
.contact-form .btn,
.contact-form .btn.btn-primary,
.contact-form .btn.btn-primary.btn-lg,
.contact-form input[type="submit"] {
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 40%, var(--green-dark) 100%);
    color: var(--text-white);
    border: none;
    border-bottom: none;
    box-shadow: none;
    text-shadow: none;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 6px;
    min-width: auto;
    display: inline-block;
    width: auto;
    margin: 0;
    transition: filter 0.2s, transform 0.15s;
}
.contact-form .btn:hover,
.contact-form .btn.btn-primary:hover,
.contact-form input[type="submit"]:hover {
    filter: brightness(1.12);
    color: var(--text-white);
    transform: translateY(-1px);
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green-primary) 40%, var(--green-dark) 100%);
    border: none;
    border-bottom: none;
    box-shadow: none;
}

/* ============================================
   PRODUCTS GRID PAGE
   ============================================ */
.products-intro {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 8px;
}
.products-intro h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 16px;
}
.products-intro p {
    font-size: 16px;
    line-height: 1.75;
    color: #3a4a5c;
    margin: 0 0 8px;
}
.products-grid-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px 48px;
}
.products-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .products-grid-full {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .products-intro { padding: 32px 20px 8px; }
    .products-grid-section { padding: 16px 20px 36px; }
    .products-intro h1 { font-size: 24px; }
}
@media (min-width: 769px) and (max-width: 991px) {
    .products-grid-full { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 16px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: start;
}
.product-detail-info h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 20px;
    line-height: 1.3;
}
.product-price-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    margin-bottom: 20px;
}
.product-price-btn svg { flex-shrink: 0; }
.product-drawings {
    margin-bottom: 8px;
}
.product-drawings a {
    display: inline-block;
    color: var(--green-primary);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product-drawings a:hover { color: var(--green-dark); }
.product-detail-carousel {
    border-radius: 6px;
    overflow: hidden;
}
.product-detail-carousel .carousel-inner {
    min-height: auto;
}
.product-detail-carousel img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.product-description {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 48px;
}
.product-description-card {
    background: #f8f9fb;
    border-radius: 6px;
    padding: 28px 32px;
}
.product-description-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 12px;
}
.product-description-card p {
    font-size: 16px;
    color: #3a4a5c;
    line-height: 1.6;
    margin: 0 0 12px;
}
.product-description-card ul {
    padding-left: 20px;
    margin: 0;
}
.product-description-card li {
    font-size: 15px;
    color: #3a4a5c;
    line-height: 1.6;
    margin-bottom: 4px;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-detail-section { padding: 28px 20px 16px; }
    .product-detail-info h1 { font-size: 22px; }
    .product-description { padding: 0 20px 36px; }
    .product-description-card { padding: 20px 20px; }
}
