/* Asia Integrated Enterprises Corp. — static site styles */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #0d2d4f;
  --navy-deep: #09213f;
  --blue: #1a6eb3;
  --blue-light: #4a9be0;
  --bg-soft: #f1f5f8;
  --text: #0a0a0a;
  --muted: #55657a;
  --line: #dbe3ea;
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, .btn, .nav a, .eyebrow, .stat-label {
  font-family: Barlow, -apple-system, BlinkMacSystemFont, sans-serif;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand .logo-mark { height: 44px; width: auto; flex: none; }
.site-footer .brand .logo-mark { height: 40px; }
.brand-text { font-family: Barlow, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase; }
.brand-text small { display: block; font-weight: 500; font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.65); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); transition: color .2s; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.active { color: var(--blue-light); border-bottom-color: var(--blue-light); }
.nav a.nav-cta { background: var(--blue); color: #fff; padding: 11px 22px; border: 0; }
.nav a.nav-cta:hover { background: #2380cc; }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2380cc; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { border-color: var(--navy); color: var(--navy); }
.btn-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(9,33,63,.86) 28%, rgba(9,33,63,.12) 100%),
    url("images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0d2d4f, #09213f 60%, #1a4f80);
}
.hero-inner { padding: 120px 0 110px; max-width: 760px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; font-weight: 700; margin-bottom: 24px; }
.hero h1 span { color: var(--blue-light); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 620px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; padding: 76px 0 70px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 700; line-height: 1.12; margin-bottom: 16px; }
.page-hero p { max-width: 680px; color: rgba(255,255,255,.78); font-size: 17px; }

/* ---------- Feature strip ---------- */
.strip { background: var(--navy); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.strip-item:first-child { border-left: 0; }
.strip-item h3 { font-size: 13px; letter-spacing: .14em; margin-bottom: 8px; color: var(--blue-light); }
.strip-item p { font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section.soft { background: var(--bg-soft); }
section.navy { background: var(--navy); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--blue); }
.navy .section-head .eyebrow { color: var(--blue-light); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.navy .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); font-size: 17px; }
.navy .section-head p { color: rgba(255,255,255,.75); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; color: var(--navy); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.split .btn { margin-top: 14px; }
.media-box {
  aspect-ratio: 3 / 2; width: 100%;
  background:
    url("images/materials.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0d2d4f, #1a6eb3);
}

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px rgba(13,45,79,.12); transform: translateY(-3px); }
.card-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #cfd9e3, #e9eff4); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Barlow, sans-serif; font-weight: 600; letter-spacing: .12em; font-size: 12px; color: #7a8da3; text-transform: uppercase; text-align: center; padding: 16px; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag { font-family: Barlow, sans-serif; font-size: 11px; letter-spacing: .18em; font-weight: 600; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.card h3 { font-size: 21px; color: var(--navy); line-height: 1.2; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.center { text-align: center; margin-top: 48px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item { border-top: 2px solid var(--blue-light); padding-top: 22px; }
.why-item .num { font-family: Barlow, sans-serif; font-size: 40px; font-weight: 700; color: rgba(255,255,255,.22); line-height: 1; margin-bottom: 14px; }
.why-item h3 { font-size: 15px; letter-spacing: .12em; margin-bottom: 10px; }
.why-item p { color: rgba(255,255,255,.75); font-size: 15px; }

/* ---------- CTA / contact bar ---------- */
.cta { background: var(--navy-deep); color: #fff; padding: 84px 0; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; line-height: 1.15; }
.cta p { color: rgba(255,255,255,.75); font-size: 17px; }
.contact-lines { font-family: Barlow, sans-serif; font-size: 20px; line-height: 2; }
.contact-lines a:hover { color: var(--blue-light); }
.contact-lines .sep { color: rgba(255,255,255,.35); margin: 0 10px; }
.cta .btn { margin-top: 22px; }

/* ---------- Products page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn { font-family: Barlow, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; padding: 11px 22px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: all .2s; }
.filter-btn:hover { border-color: var(--blue); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.product { display: grid; grid-template-columns: 340px 1fr; background: #fff; border: 1px solid var(--line); margin-bottom: 28px; }
.product[hidden] { display: none; }
.product .card-img { aspect-ratio: auto; min-height: 280px; }
.product-body { padding: 32px 36px; }
.product-body h2 { font-size: 26px; color: var(--navy); line-height: 1.2; margin: 6px 0 4px; }
.sku { color: var(--blue); font-family: Barlow, sans-serif; font-weight: 600; letter-spacing: .1em; font-size: 13px; margin-bottom: 22px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; margin-bottom: 26px; }
.spec.full { grid-column: 1 / -1; }
.spec dt { font-family: Barlow, sans-serif; font-size: 11px; letter-spacing: .18em; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 3px; }
.spec dd { font-size: 15px; color: var(--text); }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: #fff; border: 1px solid var(--line); padding: 38px; border-top: 3px solid var(--blue); }
.panel h2 { font-size: 26px; color: var(--navy); margin: 8px 0 14px; line-height: 1.2; }
.panel p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: #fff; padding: 30px; border: 1px solid var(--line); }
.value h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.info-block { margin-bottom: 28px; }
.info-block .stat-label { font-size: 11px; letter-spacing: .2em; font-weight: 600; color: var(--blue); text-transform: uppercase; margin-bottom: 4px; }
.info-block p, .info-block a { font-size: 17px; color: var(--navy); font-weight: 500; word-break: break-word; }
.note { color: var(--muted); font-size: 15px; border-left: 3px solid var(--blue); padding-left: 16px; margin-top: 8px; }
form.inquiry { background: var(--bg-soft); padding: 40px; border: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: Barlow, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #c9d4de; background: #fff; font: inherit; font-size: 15px; color: var(--text); border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.field textarea { min-height: 150px; resize: vertical; }
.form-status { margin-top: 16px; font-size: 15px; font-weight: 500; }
.form-status.ok { color: #1b7a3d; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 15px; max-width: 340px; margin-top: 14px; }
.copyright { padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .strip-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .cta-inner, .contact-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .product .card-img { min-height: 220px; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.nav-cta { margin-top: 14px; text-align: center; width: 100%; }
}
@media (max-width: 600px) {
  .strip-grid, .why-grid, .cards, .values, .footer-grid, .specs { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .strip-item:first-child { border-top: 0; }
  section.block { padding: 68px 0; }
  .hero-inner { padding: 84px 0 78px; }
  .product-body { padding: 26px 22px; }
  form.inquiry { padding: 26px 20px; }
  .brand-text { font-size: 13px; }
}

/* ---------- Catalog (products page) ---------- */
.catalog-bar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.catalog-bar .field { margin-bottom: 0; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; align-items: start; }
.tile { background: #fff; border: 1px solid var(--line); padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.tile:hover, .tile:focus-visible { box-shadow: 0 10px 26px rgba(13,45,79,.14); transform: translateY(-2px); border-color: var(--blue); outline: none; }
.tile-img { display: block; aspect-ratio: 3 / 4; background: linear-gradient(135deg, #cfd9e3, #e9eff4); overflow: hidden; position: relative; }
.tile-img[data-line="eng"] { aspect-ratio: 4 / 3; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-img .ph, .dlg-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-family: Barlow, sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7a8da3; }
.tile-name { display: block; padding: 11px 12px 2px; font-family: Barlow, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--navy); }
.tile-meta { display: block; padding: 0 12px 12px; font-size: 12px; color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); }
.photo-note { margin-top: 34px; font-size: 13px; color: var(--muted); max-width: 760px; }
#more-wrap[hidden] { display: none; }

dialog#detail { border: 0; padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: auto; margin: auto; }
dialog#detail::backdrop { background: rgba(9,33,63,.62); }
.dlg-close { position: absolute; top: 8px; right: 12px; z-index: 2; background: none; border: 0; font-size: 34px; line-height: 1; color: var(--navy); cursor: pointer; padding: 4px 10px; }
.dlg-grid { display: grid; grid-template-columns: 330px 1fr; }
.dlg-media { background: var(--bg-soft); padding: 28px; }
.dlg-img { position: relative; background: linear-gradient(135deg, #cfd9e3, #e9eff4); display: flex; align-items: center; justify-content: center; min-height: 200px; }
.dlg-img img { width: 100%; height: auto; display: block; }
.dlg-img img[hidden] { display: none; }
.dlg-img .ph[hidden] { display: none; }
.dlg-img .ph { position: static; min-height: 220px; width: 100%; }
.dlg-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.dlg-thumbs button { width: 56px; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; }
.dlg-thumbs button.on { border-color: var(--blue); }
.dlg-thumbs img { width: 100%; display: block; }
.dlg-info { padding: 36px 36px 32px; }
.dlg-info h2 { font-size: 26px; color: var(--navy); line-height: 1.2; margin: 6px 0 4px; padding-right: 30px; }
.dlg-info .sku { margin-bottom: 20px; }
.dlg-info .specs { margin-bottom: 24px; }

/* spec accordions */
.line-spec { border: 1px solid var(--line); background: #fff; margin-bottom: 14px; }
.line-spec summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 26px; font-family: Barlow, sans-serif; font-size: 19px; font-weight: 600; color: var(--navy); }
.line-spec summary::-webkit-details-marker { display: none; }
.line-spec summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--blue); margin-left: 12px; }
.line-spec[open] summary::after { content: "−"; }
.line-spec summary .count { margin-left: auto; font-size: 13px; letter-spacing: .1em; color: var(--blue); }
.line-spec-body { padding: 4px 26px 28px; }

@media (max-width: 960px) {
  .catalog-bar { grid-template-columns: 1fr 1fr; }
  .catalog-bar .grow { grid-column: 1 / -1; }
  .dlg-grid { grid-template-columns: 1fr; }
  .dlg-media { padding: 22px; }
  .dlg-img { max-width: 260px; margin: 0 auto; }
  .dlg-thumbs { justify-content: center; }
  .dlg-info { padding: 26px 22px 28px; }
}
@media (max-width: 600px) {
  .catalog-bar { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .line-spec summary { padding: 16px 18px; font-size: 17px; }
  .line-spec-body { padding: 4px 18px 22px; }
}

/* ---------- Finishing touches ---------- */
.tile-img .ph, .dlg-img .ph { font-size: 0; letter-spacing: 0; color: transparent; background: url("images/logo.png") center / 38% no-repeat; opacity: .22; }
.dlg-img .ph { min-height: 260px; }
.consent { font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.consent a, .copyright a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
.copyright a:hover { color: #fff; }
.legal { max-width: 800px; }
.legal h2 { font-size: 22px; color: var(--navy); margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); font-size: 16.5px; }
.legal a { color: var(--blue); }
@media (max-width: 760px) {
  .hero { background:
    linear-gradient(rgba(9,33,63,.8), rgba(9,33,63,.8)),
    url("images/hero.jpg") 72% center / cover no-repeat,
    linear-gradient(135deg, #0d2d4f, #09213f 60%, #1a4f80); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile, .card { transition: none; } }

.dlg-img.lowres img { max-width: 210px; margin: 0 auto; }
.dlg-img.lowres { background: none; }
