/* =====================================================
   BLACK EAGLE FLUID SYSTEMS — Premium Industrial Website
   ===================================================== */

/* Base & Variables */
:root {
    --primary-blue: #1A365D;
    --secondary-blue: #2B6CB0;
    --accent-orange: #ED8936;
    --accent-orange-hover: #DD6B20;
    --text-main: #2D3748;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== LANGUAGE BAR ===== */
.lang-selector {
    background-color: var(--primary-blue);
    padding: 6px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.lang-selector::before {
    content: "🌐";
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.lang-selector select {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 3px 10px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.lang-selector select option {
    background-color: var(--primary-blue);
    color: white;
}

/* ===== HEADER ===== */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 0 0 #1A365D, 0 2px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 80px;
    padding: 0 32px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0 24px 0 0;
    height: 80px;
    width: 280px;
    overflow: hidden;
    position: relative;
}

.logo-img {
    position: absolute;
    height: 200%;
    width: auto;
    max-width: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    filter: none;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 24px;
}

nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: var(--transition);
    white-space: nowrap;
}

nav a:hover {
    color: var(--secondary-blue);
}

nav a.nav-cta {
    background-color: var(--accent-orange);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

nav a.nav-cta:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(237, 137, 54, 0.4);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary-blue);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-blue);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('hero_bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 60px 24px;
}

.hero h1 {
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 44px;
    font-weight: 300;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Part Number Trap */
.part-number-trap {
    display: flex;
    max-width: 620px;
    margin: 0 auto 16px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.part-number-trap input {
    flex-grow: 1;
    padding: 18px 22px;
    border: none;
    font-size: 16px;
    font-family: var(--font-main);
    outline: none;
    color: var(--text-main);
    background: #fff;
}

.part-number-trap input::placeholder {
    color: #A0AEC0;
}

.part-number-trap .cta-button {
    background-color: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    font-family: var(--font-main);
}

.part-number-trap .cta-button:hover {
    background-color: var(--accent-orange-hover);
}

.hero-trust {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-bottom: 0 !important;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background-color: var(--primary-blue);
    padding: 20px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    font-weight: 400;
}

/* ===== WHAT WE DO ===== */
.what-we-do {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.section-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    max-width: 580px;
    margin: 0 auto 60px;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.wwd-card {
    padding: 36px 32px;
    background: var(--bg-light);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.wwd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--secondary-blue);
    border-radius: 2px 0 0 2px;
}

.wwd-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-blue);
}

.wwd-icon-wrap {
    width: 56px;
    height: 56px;
    background-color: rgba(43, 108, 176, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.wwd-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: var(--secondary-blue);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wwd-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.wwd-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== PRODUCTS — TABBED LAYOUT ===== */
.products {
    background-color: var(--bg-light);
    padding: 100px 0;
}

/* Product Tabs */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.tab-btn {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 14px;
    flex: 1 1 calc(50% - 12px);
    min-width: 140px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

.tab-btn.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tab-panel-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.tab-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tab-panel-img img:hover {
    transform: scale(1.03);
}

.tab-panel-parts {
    padding: 40px 36px 40px 0;
}

.tab-panel-parts h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-color);
}

.tab-panel-parts ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.tab-panel-parts li {
    padding: 9px 0;
    color: var(--text-main);
    font-size: 14.5px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-panel-parts li:nth-last-child(-n+2) {
    border-bottom: none;
}

.tab-panel-parts li::before {
    content: "";
    width: 7px;
    height: 7px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== BRANDS ===== */
.brands {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.brand-cat-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 36px 0 16px;
}

.brand-cat-label:first-of-type {
    margin-top: 0;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.brand-box {
    background: var(--bg-light);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-blue);
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.brand-box:hover {
    border-color: var(--secondary-blue);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.brand-note {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 16px;
}

.disclaimer {
    font-size: 13px;
    color: #A0AEC0;
    margin-top: 24px;
    font-style: italic;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background-color: var(--primary-blue);
    padding: 100px 0;
}

.how-it-works .section-title,
.how-it-works .section-label {
    color: #fff;
}

.how-it-works .section-sub {
    color: rgba(255, 255, 255, 0.6);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-orange), rgba(237, 137, 54, 0.2));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    background-color: var(--accent-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    margin: 0 auto 22px;
    box-shadow: 0 4px 20px rgba(237, 137, 54, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.step h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.step p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== SHIPPING SECTION ===== */
.shipping-section {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.shipping-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.shipping-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.shipping-text p {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.8;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    color: var(--text-main);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.check-list li::before {
    content: "";
    width: 22px;
    height: 22px;
    background-color: rgba(72, 187, 120, 0.15);
    border-radius: 50%;
    border: 2px solid #48BB78;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2348BB78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    margin-top: 2px;
}

.shipping-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

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

/* ===== RFQ SECTION ===== */
.rfq-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.rfq-container {
    max-width: 820px;
}

.rfq-info {
    text-align: center;
    margin-bottom: 44px;
}

.rfq-info h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.rfq-info p {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 24px;
}

.contact-details {
    display: inline-flex;
    gap: 30px;
    background: var(--bg-white);
    padding: 16px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-details p {
    margin: 0;
    font-size: 15px;
}

.contact-details a {
    color: var(--secondary-blue);
    font-weight: 600;
}

.rfq-form-wrapper {
    background: var(--bg-white);
    padding: 44px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-main);
    background: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--accent-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(237, 137, 54, 0.35);
    letter-spacing: 0.2px;
}

.submit-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.45);
}

/* ===== FOOTER ===== */
footer {
    background-color: #0F2137;
    color: #fff;
    padding: 70px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-wrap {
    display: inline-block;
    margin-bottom: 16px;
    /* screen blend composites the INVERTED image against the dark footer:
       inverted white bg (=black) screens to footer color → invisible
       inverted silver eagle (=dark grey) screens → visible chrome effect */
    mix-blend-mode: screen;
}

.footer-logo {
    display: block;
    width: 260px;
    height: auto;
    /* invert: white bg → black, silver eagle → dark grey (for screen blend) */
    filter: invert(1);
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 20px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* ===== WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .what-we-do-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container::before {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .tab-panel-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .what-we-do-grid {
        grid-template-columns: 1fr;
    }

    .tab-panel-inner {
        grid-template-columns: 1fr;
    }

    .tab-panel-parts {
        padding: 28px 24px;
    }

    .tab-panel-parts ul {
        grid-template-columns: 1fr;
    }

    .tab-panel-parts li:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border-color);
    }

    .tab-panel-parts li:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .part-number-trap {
        flex-direction: column;
        border-radius: 10px;
    }

    .part-number-trap input {
        border-radius: 8px;
        padding: 16px;
    }

    .part-number-trap .cta-button {
        padding: 16px;
        border-radius: 8px;
    }

    .what-we-do-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shipping-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-logo-wrap {
        display: block;
        margin: 0 auto 16px;
    }

    .rfq-form-wrapper {
        padding: 28px 20px;
    }

    .contact-details {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        display: none;
    }

    /* Mobile menu active state */
    nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 30px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        gap: 20px;
        z-index: 1001;
    }

    nav.active a {
        font-size: 18px;
        padding: 5px 0;
    }

    .mobile-menu-toggle {
        display: block;
        line-height: 60px; /* Centering in thinner bar */
    }

    .header-container {
        min-height: 60px;
        padding: 0 16px;
    }

    .lang-selector {
        justify-content: center;
        padding: 8px 24px;
    }

    .logo {
        height: 60px; /* Matches thinner header */
        width: 160px;
        padding: 0;
        margin-right: auto;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .logo-img {
        height: 130px; /* Task: Significantly larger logo */
        /* Task 2: Increased logo size on mobile */
    }

    /* Task 3: Reduced footer logo size on mobile */
    .footer-logo {
        width: 150px;
        margin: 0 auto;
    }

    .stats-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        gap: 10px;
    }

    .brand-box {
        padding: 14px 22px;
    }
}

.product-grid {
    grid-template-columns: 1fr;
}

.brands-grid {
    gap: 10px;
}

.brand-box {
    padding: 14px 22px;
}