/* ==========================================================================
   ANPING XIANGZHAN METAL WIRE MESH PRODUCTS CO., LTD — multi-page site
   Shared stylesheet. Design language continues the approved v1 direction:
   deep navy steel + blue accent + light grey ground, Archivo typeface.
   ========================================================================== */

:root {
    --ink-900: #0B1220;
    --ink-800: #131C2E;
    --ink-700: #1E293B;
    --steel-600: #475569;
    --steel-500: #64748B;
    --steel-400: #94A3B8;
    --line: #E2E8F0;
    --bg: #F6F8FB;
    --surface: #FFFFFF;
    --accent: #2563EB;
    --accent-deep: #1D4ED8;
    --whatsapp: #128C7E;
    --whatsapp-deep: #0E7469;
    --radius: 8px;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--steel-600);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff;
    padding: 10px 16px; border-radius: 0 0 6px 0; text-decoration: none; z-index: 200;
}
.skip-link:focus { left: 0; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 99;
    background: rgba(11, 18, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
    position: relative; z-index: 1;
    max-width: var(--maxw); margin: 0 auto;
    padding: 0 20px; height: 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
    flex: 0 1 auto; min-width: 0;
    display: inline-flex; align-items: center; gap: 9px;
    color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.3px;
    text-decoration: none; min-height: 44px; white-space: nowrap;
}
.brand .logo-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand .brand-accent { color: var(--accent); }
.brand .brand-logo { height: 34px; width: auto; display: block; flex: none; border-radius: 4px; }
.nav-toggle {
    position: relative; z-index: 2; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; pointer-events: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav {
    display: none; position: absolute; z-index: 1; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px 20px 18px;
    background: var(--ink-900); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav.open { display: flex; }
.nav a {
    color: #CBD5E1; text-decoration: none; font-size: 16px;
    padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: #fff; }
/* Products dropdown — mobile: stacked inside hamburger menu */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.drop-caret { width: 14px; height: 14px; flex: none; transition: transform .15s ease; }
.dropdown { margin-top: 2px; padding-left: 14px; }
.nav .drop-item {
    display: block; font-size: 15px; color: #CBD5E1; text-decoration: none;
    padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .drop-item:hover { color: #fff; }
.nav .drop-item:last-child { border-bottom: 0; }
.header-wa { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 22px; border-radius: 6px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-deep); }
.btn-whatsapp svg { width: 18px; height: 18px; margin-right: 8px; flex: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; opacity: 0.45;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.66) 48%, rgba(11, 18, 32, 0.24) 80%);
}
.hero-content { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 84px 20px 54px; }
.hero-eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
    color: #93C5FD; margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(30px, 6.4vw, 50px); line-height: 1.12; font-weight: 700;
    letter-spacing: -0.5px; color: #fff; max-width: 18ch; margin-bottom: 18px;
}
.hero-sub { max-width: 58ch; color: #CBD5E1; font-size: 17px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; color: var(--steel-400); font-size: 14px; }
.hero-note a { color: #93C5FD; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.page-hero .hero-bg { opacity: 0.32; }
.page-hero-content {
    position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
    padding: 56px 20px 44px;
}
.page-hero h1 {
    font-size: clamp(26px, 5vw, 40px); line-height: 1.15; font-weight: 700;
    letter-spacing: -0.4px; color: #fff; margin-bottom: 12px;
}
.page-hero .hero-sub { margin-bottom: 0; font-size: 16px; }
.breadcrumb {
    position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
    padding: 14px 20px 0; font-size: 13px; color: var(--steel-400);
}
.breadcrumb a { color: #93C5FD; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--steel-400); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-white { background: var(--surface); }
.section-tint { background: var(--bg); }
.section-dark { background: var(--ink-900); color: #CBD5E1; }
h2 {
    font-size: clamp(23px, 3.6vw, 30px); font-weight: 700; letter-spacing: -0.3px;
    color: var(--ink-900); margin-bottom: 12px; line-height: 1.2;
}
.section .lead { max-width: 66ch; color: var(--steel-500); margin-bottom: 26px; font-size: 16px; }
.section-dark h2 { color: #fff; }
.section-head { margin-bottom: 26px; }
.section-head p { max-width: 66ch; color: var(--steel-500); }
.section-head .head-link { font-size: 14px; font-weight: 600; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head-row h2 { margin-bottom: 0; }

/* ---------- Fact band (home trust stats) ---------- */
.fact-band { background: var(--ink-900); color: #fff; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.09); }
.fact-item { background: var(--ink-900); padding: 26px 22px; }
.fact-item .fact-value { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 4px; letter-spacing: -0.3px; }
.fact-item .fact-label { font-size: 13px; color: var(--steel-400); line-height: 1.45; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 19px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.card-body > p { color: var(--steel-500); margin-bottom: 14px; }
.card-link { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- App / advantage items ---------- */
.app-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.app-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px;
}
.app-item svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.app-item h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.app-item p { font-size: 14px; color: var(--steel-500); }

.adv-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.adv-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px;
}
.adv-item svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.adv-item h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.adv-item p { font-size: 14px; color: var(--steel-500); }

/* ---------- Spec table ---------- */
.table-wrap {
    overflow-x: auto; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.spec-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; word-break: break-word; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { background: var(--ink-900); color: #fff; font-weight: 600; }
.spec-table td { color: var(--steel-600); }
.spec-note { margin-top: 14px; font-size: 14px; color: var(--steel-500); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.about-grid + .about-grid { margin-top: 44px; }
.about-figures { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-media.wide { aspect-ratio: 3 / 2; }
.about-media.compact { aspect-ratio: 3 / 2; }
.about-media.panel { aspect-ratio: 2 / 1; }
.about-media.square { aspect-ratio: 1 / 1; }
.about-media.tall { aspect-ratio: 5 / 6; }
.about-grid .about-body.centered { align-self: center; }
.fig-note { padding: 10px 14px; font-size: 13px; color: var(--steel-500); background: var(--surface); border-top: 1px solid var(--line); }
.center-figure { margin: 0 auto 30px; max-width: 720px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.center-figure .about-media { aspect-ratio: auto; }
.center-figure .about-media img { position: static; width: 100%; height: auto; display: block; }
.about-stack { display: grid; gap: 24px; margin-top: 44px; }
.about-body h2 { font-size: 23px; margin-bottom: 12px; }
.about-body p { color: var(--steel-500); margin-bottom: 12px; line-height: 1.6; }
.about-body ul { list-style: none; margin: 4px 0 16px; }
.about-body li {
    position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--steel-500);
}
.about-body li::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 760px; margin: 0 auto; }
.contact-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px;
}
.contact-card h3, .contact-card h2 { font-size: 18px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; }
.contact-card p { color: var(--steel-500); margin-bottom: 14px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 16px; }
.contact-line svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-line a { color: var(--ink-800); text-decoration: none; font-weight: 600; }
.contact-line a:hover { color: var(--accent); }
.check-list { list-style: none; margin-top: 4px; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--steel-500); font-size: 15px; }
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: 8px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-900); color: #fff; padding: 52px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD5E1; max-width: 60ch; margin-bottom: 22px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
footer { background: #070C16; color: var(--steel-400); font-size: 14px; padding: 28px 0; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 15px; }
.footer-inner p { line-height: 1.6; }
.footer-inner a { color: var(--steel-400); text-decoration: none; }
.footer-inner a:hover { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-meta { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.footer-wa { color: #7DD3C8 !important; font-weight: 600; }

/* ---------- Responsive: narrow phones ---------- */
@media (max-width: 767px) {
    .table-wrap { overflow-x: visible; border: 0; background: transparent; border-radius: 0; }
    .spec-table th, .spec-table td { padding: 11px 10px; font-size: 14px; }
    .about-grid.reverse .about-figure { order: -1; }
}

/* ---------- Responsive: tablet / desktop ---------- */
@media (min-width: 720px) {
    .app-grid { grid-template-columns: 1fr 1fr; }
    .adv-grid { grid-template-columns: 1fr 1fr; }
    .fact-grid { grid-template-columns: repeat(4, 1fr); }
    .card-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav {
        display: flex; position: static; flex-direction: row; align-items: center;
        gap: 24px; padding: 0; background: none; border: 0;
    }
    .nav a { padding: 0; border: 0; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
    /* Products dropdown — desktop: hover/focus panel */
    .has-dropdown { position: relative; }
    .dropdown {
        position: absolute; top: 100%; left: -8px; z-index: 5;
        min-width: 190px; padding: 6px; margin: 0;
        background: var(--ink-800); border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
        opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: opacity .15s ease, visibility .15s, transform .15s ease;
    }
    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
    .has-dropdown:hover .drop-caret { transform: rotate(180deg); }
    .nav .drop-item {
        display: block; min-height: 38px; padding: 8px 12px; border-radius: 6px;
        font-size: 14px; color: #CBD5E1; text-decoration: none; white-space: nowrap; border-bottom: 0;
    }
    .nav .drop-item:hover { background: rgba(37, 99, 235, 0.15); color: #fff; }
    .header-wa {
        display: inline-flex; align-items: center; gap: 8px;
        color: #7DD3C8; font-weight: 600; font-size: 14px; text-decoration: none;
        border: 1px solid rgba(125, 211, 200, 0.5); border-radius: 6px;
        padding: 8px 12px; min-height: 40px; white-space: nowrap;
    }
    .header-wa svg { width: 16px; height: 16px; flex: none; }
    .header-wa:hover { background: rgba(125, 211, 200, 0.1); color: #fff; }
    .hero-content { padding: 128px 20px 70px; }
    .page-hero-content { padding: 76px 20px 58px; }
    .app-grid { grid-template-columns: repeat(3, 1fr); }
    .adv-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 5fr 7fr; }
    .about-grid.reverse { grid-template-columns: 7fr 5fr; }
    .about-body p { font-size: 16px; }
    .contact-grid { max-width: 760px; }
    .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 960px) {
    .card-grid.two .card { flex-direction: row; align-items: stretch; }
    .card-grid.two .card-media { flex: 0 0 42%; aspect-ratio: auto; height: 250px; }
    .card-grid.two .card-media img { object-position: center; }
    .card-grid.two .card-body { padding: 22px 22px 24px; }
    .adv-grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
