:root {
    --brand-black: #000000;
    --brand-red: #e11d48;
    --brand-blue: #1d4ed8;
    --brand-green: #047857;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-pure: #ffffff;
    --bg-accent: #f8fafc;
    --border-color: #e2e8f0;
}

* { box-sizing: border-box; }
body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-pure);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }

.top-contact-bar {
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #334155;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

.site-header {
    background: var(--bg-pure);
    border-bottom: 2px solid var(--brand-black);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo-group { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; object-fit: contain; }
.logo-block { display: flex; flex-direction: column; }
.logo-main { font-size: 2.1rem; font-weight: 900; letter-spacing: -1px; color: var(--brand-black); line-height: 1.05; }
.logo-main span { color: var(--brand-red); }
.logo-sub { font-size: 0.95rem; font-weight: 700; color: var(--brand-black); margin-top: 0.15rem; }
.logo-sub span { color: var(--brand-blue); text-decoration: underline; }
.logo-sub::after { content: " \25BC"; color: var(--brand-blue); font-size: 0.75rem; }

.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; }
.main-nav a { color: var(--text-main); text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.main-nav a:hover { color: var(--brand-red); }
.nav-highlight { color: var(--brand-blue) !important; border: 1px solid var(--brand-blue); padding: 0.35rem 0.7rem; border-radius: 4px; }
.nav-highlight:hover { background: var(--brand-blue); color: #fff !important; }
.nav-cta { background: var(--brand-black); color: #fff !important; padding: 0.42rem 0.95rem; border-radius: 4px; }
.nav-cta:hover { background: var(--brand-red) !important; }

.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.92)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: #ffffff;
    padding: 4.8rem 1.5rem;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(225, 29, 72, 0.95);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 0.9rem;
}
.hero h1 { font-size: 2.65rem; font-weight: 900; margin: 0 0 0.6rem 0; letter-spacing: -0.5px; }
.hero-motto { font-size: 1.25rem; font-weight: 800; color: #93c5fd; margin: 0 0 1.1rem 0; letter-spacing: 0.5px; }
.hero p { font-size: 1.1rem; max-width: 920px; margin: 0 auto 2rem auto; opacity: 0.95; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn-primary { background: var(--brand-red); color: #fff; padding: 0.85rem 1.6rem; border-radius: 4px; font-weight: 800; text-decoration: none; border: none; cursor: pointer; font-size: 0.98rem; display: inline-block; }
.btn-primary:hover { background: #be123c; }
.btn-secondary { background: #ffffff; color: var(--brand-black); padding: 0.85rem 1.6rem; border-radius: 4px; font-weight: 800; text-decoration: none; border: none; cursor: pointer; font-size: 0.98rem; display: inline-block; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid #94a3b8; padding: 0.65rem 1.1rem; border-radius: 4px; font-weight: 700; font-size: 0.85rem; text-decoration: none; display: inline-block; cursor: pointer; }
.btn-outline:hover { border-color: var(--brand-black); background: #f1f5f9; }

.section { padding: 4.2rem 0; }
.bg-light { background-color: var(--bg-accent); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-title { text-align: center; font-size: 2.05rem; font-weight: 900; color: var(--brand-black); margin: 0 0 0.6rem 0; }
.section-subtitle { text-align: center; max-width: 860px; margin: 0 auto 2.8rem auto; color: var(--text-muted); font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 2rem; }
.card { background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 1.8rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); border-color: var(--brand-black); }
.card-tag { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; color: var(--brand-blue); letter-spacing: 0.5px; }
.card h3 { margin: 0.4rem 0 0.8rem 0; font-size: 1.28rem; font-weight: 900; color: var(--brand-black); }

.handled-box {
    background: #ffffff;
    border: 2px solid var(--brand-black);
    border-radius: 8px;
    padding: 2rem 2.2rem;
    margin-bottom: 2.5rem;
}
.handled-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1rem 2rem;
    margin-top: 1.2rem;
}
.handled-item {
    padding: 0.7rem 0.9rem;
    background: var(--bg-accent);
    border-left: 4px solid var(--brand-red);
    border-radius: 4px;
    font-size: 0.95rem;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.step-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: 4px solid var(--brand-blue);
    border-radius: 6px;
    padding: 1.4rem;
}
.step-num {
    display: inline-block;
    background: var(--brand-blue);
    color: #fff;
    font-weight: 900;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.value-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 2px solid var(--brand-blue);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}
.value-banner h2 { margin-top: 0; color: var(--brand-blue); font-size: 1.45rem; font-weight: 900; }

.comp-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--brand-black); margin: 2rem 0; }
.comp-table th, .comp-table td { border: 1px solid #cbd5e1; padding: 1rem 1.2rem; text-align: left; vertical-align: top; }
.comp-table th { background: var(--brand-black); color: #fff; font-weight: 900; font-size: 1rem; }
.comp-table tr:nth-child(even) { background: var(--bg-accent); }
.highlight-col { background: #eff6ff !important; border-left: 3px solid var(--brand-blue) !important; border-right: 3px solid var(--brand-blue) !important; }

.directory-controls {
    background: var(--bg-accent);
    border: 2px solid var(--brand-black);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.control-group { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 0.4rem; }
.control-group label { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; }
.form-control { padding: 0.8rem 1rem; border: 1px solid #94a3b8; border-radius: 4px; font-size: 1rem; font-family: inherit; width: 100%; background: #fff; }
.form-control:focus { border-color: var(--brand-blue); outline: none; }

.supplier-list { display: flex; flex-direction: column; gap: 1.2rem; }
.supplier-row {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-left: 5px solid var(--brand-blue);
    border-radius: 6px;
    padding: 1.6rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    transition: all 0.2s ease;
}
.supplier-row:hover { border-color: var(--brand-black); box-shadow: 0 8px 16px rgba(0,0,0,0.06); }
.supplier-header { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.supplier-name { font-size: 1.25rem; font-weight: 900; margin: 0; color: var(--brand-black); }
.badge-code { background: #e2e8f0; color: #334155; font-size: 0.75rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 4px; }
.badge-cert { background: #dbeafe; color: #1e40af; font-size: 0.75rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 4px; }
.badge-source { background: #dcfce7; color: #166534; font-size: 0.75rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 4px; }
.badge-zip { background: #fef3c7; color: #92400e; font-size: 0.75rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 4px; }
.supplier-products { font-size: 1.02rem; font-weight: 700; color: var(--brand-blue); margin: 0.35rem 0; }
.supplier-desc { font-size: 0.94rem; color: var(--text-muted); margin: 0; }

.dual-action-box { display: flex; flex-direction: column; gap: 0.55rem; min-width: 270px; }

.box-framed { background: var(--bg-accent); border: 2px solid var(--brand-black); border-radius: 8px; padding: 2.5rem; max-width: 880px; margin: 0 auto; }
.alert-success { background: #dcfce7; color: #166534; padding: 1rem; border-radius: 4px; font-weight: 800; margin-bottom: 1.5rem; text-align: center; }
.alert-error { background: #fee2e2; color: #991b1b; padding: 1rem; border-radius: 4px; font-weight: 800; margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--brand-black); }

.lookup-result-box {
    background: #eff6ff;
    border: 1px solid var(--brand-blue);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.ai-chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 370px;
    max-width: calc(100vw - 30px);
    background: #ffffff;
    border: 2px solid var(--brand-black);
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 2000;
    overflow: hidden;
}
.ai-chat-header {
    background: var(--brand-black);
    color: #ffffff;
    padding: 0.85rem 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.ai-chat-header:hover { background: var(--brand-blue); }
.ai-chat-body { display: none; flex-direction: column; height: 390px; }
.ai-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.88rem;
    background: #f8fafc;
}
.ai-msg-bot {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.ai-msg-user {
    background: var(--brand-blue);
    color: #ffffff;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    margin-left: 2rem;
    font-weight: 600;
}
.ai-chat-input-row {
    display: flex;
    border-top: 1px solid #cbd5e1;
    background: #fff;
}
.ai-chat-input-row input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 0.9rem;
    outline: none;
}
.ai-chat-input-row button {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 0 1.1rem;
    font-weight: 800;
    cursor: pointer;
}

.site-footer { background: #0f172a; color: #cbd5e1; padding: 4rem 0 5rem 0; margin-top: 3rem; }
.site-footer .logo-main { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-desc { font-size: 0.92rem; line-height: 1.65; color: #94a3b8; margin-top: 0.5rem; }
.site-footer h4 { color: #ffffff; font-size: 1.05rem; margin: 0 0 1rem 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: #94a3b8; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: #64748b; }
