/*
Theme Name: Gizzsh
Theme URI: https://gizzsh.com/
Author: Gizzsh
Description: Lightweight B2B theme for Guangzhou Gizzsh Electronic Technology Co., Ltd. Built for commercial vehicle monitor and camera product catalogues.
Version: 1.1.5
Requires at least: 6.5
Tested up to: 7.1
License: GNU General Public License v2 or later
Text Domain: gizzsh
*/

:root {
  --navy: #0a2540;
  --navy-700: #123a5e;
  --navy-500: #1d4e7c;
  --accent: #ff6b35;
  --accent-dark: #e2551f;
  --ink: #16202b;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .06);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy);
  color: #c9d8e6;
  font-size: 13px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a { color: #e7f0f8; }
.topbar a:hover { color: #fff; }
.topbar__list { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__list li { display: flex; align-items: center; gap: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; max-width: none; flex: 0 0 auto; }
.brand__name { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.brand__tag { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--navy); border-radius: 6px; }
.nav a:hover, .nav .current-menu-item > a { background: var(--bg-soft); color: var(--navy-500); }
.nav .menu-item-has-children { position: relative; }
.nav .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 30;
}
.nav .menu-item-has-children:hover .sub-menu { display: block; }
.nav .sub-menu a { padding: 8px 12px; font-weight: 500; font-size: 14px; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(10, 37, 64, .2); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef4fa; color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1150px 640px at 78% 16%, #17496e 0%, #0b2a47 55%, #081f36 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 62px;
  align-items: center; padding: 66px 0 46px;
}
.hero__copy { max-width: 620px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.05rem; color: #cfe0ee; max-width: 58ch; }

.hero__media { min-width: 0; }
.hero__player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; background: #061626;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 26px 64px rgba(3, 15, 28, .55), 0 2px 0 rgba(255, 255, 255, .06) inset;
}
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__sound {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: rgba(6, 22, 38, .74); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .18s ease;
}
.hero__sound:hover { background: rgba(6, 22, 38, .92); }
.hero__sound svg { opacity: .55; }
.hero__sound[aria-pressed="true"] svg { opacity: 1; }
.hero__caption {
  margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #9db7cb; max-width: 48ch;
}
.hero__eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #ffb499; font-weight: 700; margin-bottom: 16px;
}
.hero__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px;
  margin: 0; padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__stat strong { display: block; font-size: 1.55rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero__stat span { font-size: 13px; color: #a9c2d6; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 42px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__eyebrow {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  font-weight: 700; margin-bottom: 10px; display: block;
}
.section__head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  position: relative; display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all .2s ease;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c9d7e5; }
.cat-card__media { aspect-ratio: 16 / 10; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 18px; }
.cat-card__media img { max-height: 100%; width: auto; object-fit: contain; }
.cat-card__body { padding: 22px 24px 26px; }
.cat-card__body h3 { margin-bottom: 6px; }
.cat-card__body p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.cat-card__more { font-weight: 700; font-size: 14px; color: var(--navy-500); }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
}
.feature__icon {
  width: 42px; height: 42px; border-radius: 9px; background: rgba(255, 107, 53, .1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--accent); font-weight: 800; font-size: 18px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- application strip ---------- */
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.app-item {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 12px; text-align: center;
  font-size: 13.5px; font-weight: 600; color: var(--navy);
}
.app-item span { display: block; font-size: 22px; margin-bottom: 6px; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: all .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c9d7e5; }
.product-card__media { aspect-ratio: 1 / 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 16px; }
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; }
.product-card__ph { display: block; width: 100%; height: 100%; background: #e9eef5; border-radius: 6px; }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__sku { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.product-card__title { font-size: 1rem; margin: 6px 0 8px; }
.product-card__title a { color: var(--navy); }
.product-card__desc { color: var(--muted); font-size: 13.5px; flex: 1; margin-bottom: 14px; }
.product-card__link { font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ---------- single product ---------- */
.product-hero { padding: 48px 0 64px; }
.product-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; align-items: start; }
.gallery__main { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gallery__main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); cursor: pointer; overflow: hidden; aspect-ratio: 1/1; }
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-info__sku { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.product-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 8px 0 14px; }
.product-info__lead { color: var(--muted); font-size: 1.02rem; }
.product-info__points { list-style: none; margin: 22px 0; padding: 0; }
.product-info__points li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14.5px; }
.product-info__points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.product-info__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.spec-block { margin-top: 56px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 36%; font-weight: 650; color: var(--navy); background: var(--bg-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- cta band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b9cddd; margin: 0; max-width: 60ch; }

/* ---------- footer ---------- */
.site-footer { background: #071a2c; color: #93aabd; font-size: 14px; padding: 64px 0 0; }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer a { color: #b7c9d8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* ---------- page banner ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--navy);
  background-size: cover; background-position: center 45%; background-repeat: no-repeat;
  color: #fff;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg,
    rgba(6, 24, 42, .95) 0%, rgba(6, 24, 42, .9) 34%,
    rgba(6, 24, 42, .62) 62%, rgba(6, 24, 42, .28) 100%);
}
.page-hero__inner {
  position: relative; z-index: 1;
  min-height: 300px; padding-top: 40px; padding-bottom: 44px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero .breadcrumb { padding: 0 0 16px; color: rgba(255, 255, 255, .6); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .72); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .section__eyebrow { color: var(--accent); margin-bottom: 8px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; max-width: 22ch; }
.page-hero__intro { color: rgba(255, 255, 255, .82); font-size: 1.02rem; max-width: 620px; margin: 0; }
.page-hero__intro p:last-child { margin-bottom: 0; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers {
  display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font-weight: 600; color: var(--navy);
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- prose ---------- */
.prose { max-width: 820px; }
.prose:has(.contact-grid) { max-width: none; }
.prose:has(.contact-grid) > p { max-width: 820px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- notices ---------- */
.notice { border-radius: 8px; padding: 16px 20px; margin-bottom: 28px; font-size: 14.5px; }
.notice strong { display: block; margin-bottom: 4px; }
.notice--ok { background: #eefaf3; border: 1px solid #bfe8d2; color: #14532d; }
.notice--ok span { color: #2f6b48; }
.notice--err { background: #fef3f2; border: 1px solid #f6c9c4; color: #7a271a; }
.notice--err span { color: #98352a; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; margin-top: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.contact-card--form { padding: 28px 28px 22px; }

.enquiry-form { display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.enquiry-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.enquiry-form label span { color: var(--accent); }
.enquiry-form input,
.enquiry-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fbfcfe;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus { outline: none; border-color: var(--navy-500); background: #fff; }
.form-full { margin-bottom: 18px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feature-grid, .feature-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .product-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex: none;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 8px; }
  .nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .header-cta .btn { display: none; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; padding: 52px 0 40px; }
  .hero__copy { max-width: none; }
  .hero__caption { max-width: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; padding: 22px 0 26px; }
}

@media (max-width: 780px) {
  .topbar .wrap { justify-content: center; }
  .topbar__list { gap: 12px; font-size: 12px; }
  .hero__grid { padding: 40px 0 32px; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid, .feature-grid--3 { grid-template-columns: 1fr; gap: 14px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .hero__stat strong { font-size: 1.35rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-card { padding: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .page-hero { background-position: center 55%; }
  .page-hero__inner { min-height: 240px; padding-top: 26px; padding-bottom: 30px; }
  .page-hero h1 { font-size: 1.8rem; max-width: none; }
  .page-hero__intro { font-size: .96rem; }
}
