/*
Theme Name: GAOQIAO LED Traffic Child
Template: gaoqiao-ledtraffic
Description: Child theme for GAOQIAO LED Traffic — sky-blue brand system, humanized B2B industrial design.
Version: 2.0.0
*/

/* ============================================================
   GAOQIAO DESIGN SYSTEM — Sky Blue Industrial
   ============================================================ */

:root {
  --gq-brand: #0088CE;
  --gq-brand-dark: #006BA3;
  --gq-brand-light: #E6F4FB;
  --gq-ink: #0D2137;
  --gq-ink-2: #26465E;
  --gq-text: #3A4652;
  --gq-text-soft: #6B7B8C;
  --gq-line: #D8E2EA;
  --gq-line-soft: #E9EFF4;
  --gq-bg: #F5F7F9;
  --gq-panel: #FFFFFF;
  --gq-amber: #E67E00;
  --gq-green: #2A9D4A;
  --gq-red: #C53030;
  --gq-shadow: 0 2px 8px rgba(13, 33, 55, 0.06);
  --gq-shadow-hover: 0 8px 20px rgba(13, 33, 55, 0.10);
  --gq-radius-sm: 2px;
  --gq-radius: 4px;
  --gq-radius-lg: 8px;
  --gq-head: "Inter", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --gq-body: "Inter", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --gq-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* Override parent theme accent color */
.catalog-kicker,
.catalog-btn--primary,
.catalog-proof-card__label,
.catalog-mini-card:hover,
.catalog-card:hover,
.catalog-size:hover,
.catalog-route:hover {
  --gaq-accent: var(--gq-brand);
  --gaq-accent-2: var(--gq-brand-light);
}

/* Typography reset toward calmer, more human scale */
body {
  font-family: var(--gq-body);
  color: var(--gq-text);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gq-head);
  color: var(--gq-ink);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none !important;
  letter-spacing: -0.01em;
}

/* Override parent theme uppercase for all headings - highest specificity */
html body .catalog-hero__copy h1,
html body .catalog-hero__copy h2,
html body .catalog-hero__copy h3,
html body .catalog-section h2,
html body .catalog-section h3,
html body .catalog-card h3,
html body .catalog-size strong,
html body .catalog-route h3,
html body .catalog-sidecard h3,
html body .catalog-proof-card h3,
html body .catalog-mini-card strong,
html body .catalog-detail__copy h1,
html body .catalog-detail__content h2,
html body .catalog-detail__content h3,
html body .catalog-page__content h2,
html body .catalog-page__content h3,
html body .gq-page-hero h1,
html body .gq-content-block h3,
html body .gq-contact-card h3,
html body .catalog-inquiry__head h2,
html body .catalog-bandcta__inner h2,
html body .catalog-page__hero h1,
html body .catalog-page--service h2,
html body .catalog-page--service h3,
html body .catalog-page--cooperate h2,
html body .catalog-page--cooperate h3,
html body .catalog-page--about h2,
html body .catalog-page--about h3,
html body .catalog-page--contact h2,
html body .catalog-page--contact h3 {
  text-transform: none !important;
}

/* Keep kicker and labels uppercase */
html body .catalog-kicker,
html body .catalog-card__tag,
html body .catalog-proof-card__label {
  text-transform: uppercase !important;
}

a {
  color: var(--gq-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gq-brand);
  outline-offset: 2px;
}

/* Buttons: flatter, sharper, more industrial */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--gq-radius);
  border: 1px solid transparent;
  font-family: var(--gq-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  white-space: normal;
}

.catalog-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.catalog-btn--primary {
  background: var(--gq-brand);
  color: #fff;
  box-shadow: var(--gq-shadow);
}

.catalog-btn--primary:hover {
  background: var(--gq-brand-dark);
  box-shadow: var(--gq-shadow-hover);
}

.catalog-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.catalog-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

.catalog-btn--line {
  background: #fff;
  border-color: var(--gq-line);
  color: var(--gq-ink);
}

.catalog-btn--line:hover {
  border-color: var(--gq-brand);
  color: var(--gq-brand);
}

.catalog-btn--secondary {
  background: var(--gq-ink);
  color: #fff;
}

.catalog-btn--secondary:hover {
  background: var(--gq-ink-2);
}

/* Cards: reduce radius, calmer shadow */
.catalog-card,
.catalog-size,
.catalog-route,
.catalog-proof-card,
.catalog-mini-card,
.catalog-sidecard,
.catalog-inquiry__panel,
.catalog-detail__content,
.catalog-detail__media,
.catalog-page__content,
.catalog-taxonomy-sidebar__head,
.catalog-taxonomy-sidebar__body {
  border-radius: var(--gq-radius-lg) !important;
  border-color: var(--gq-line) !important;
}

.catalog-card:hover,
.catalog-size:hover,
.catalog-route:hover {
  border-color: var(--gq-brand) !important;
  box-shadow: var(--gq-shadow-hover) !important;
}

/* Hero: cleaner, less decorative */
.catalog-hero {
  background: linear-gradient(180deg, #EEF6FC 0%, #F5F7F9 100%);
  padding: 72px 0 48px;
}

.catalog-hero::before,
.catalog-hero::after {
  display: none;
}

.catalog-hero__copy,
.catalog-hero__panel {
  border-radius: var(--gq-radius-lg);
  box-shadow: var(--gq-shadow);
}

.catalog-hero__copy h1 {
  max-width: none;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
}

.catalog-hero__panel img {
  border-radius: var(--gq-radius);
  min-height: auto;
}

/* Trust list: use signal dots instead of gradient pills */
.catalog-trust-list li::before {
  background: var(--gq-brand);
  box-shadow: none;
  border-radius: 50%;
}

/* Section spacing */
.catalog-section { padding: 80px 0; }
.catalog-section--soft { background: var(--gq-bg); }
.catalog-section--proof { background: linear-gradient(180deg, #EDF4F9, transparent); }

.catalog-section__head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

/* Signal status bar — signature element */
.gq-signal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.gq-signal-bar__dot {
  width: 6px;
  height: 28px;
  border-radius: 2px;
}

.gq-signal-bar__dot--red { background: var(--gq-red); }
.gq-signal-bar__dot--amber { background: var(--gq-amber); }
.gq-signal-bar__dot--green { background: var(--gq-green); }
.gq-signal-bar__dot--blue { background: var(--gq-brand); }

/* Strip */
.catalog-strip {
  background: var(--gq-ink);
  padding: 20px 0;
}

.catalog-strip__grid span {
  font-family: var(--gq-mono);
  font-size: 26px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--gq-ink);
  margin-top: 0;
}

.site-footer h2,
.site-footer h3,
.site-footer a {
  color: #fff;
}

.site-footer h2 {
  font-size: 28px;
}

/* Inquiry form polish */
.catalog-inquiry__field input,
.catalog-inquiry__field textarea {
  border-radius: var(--gq-radius);
  border-color: var(--gq-line);
}

.catalog-inquiry__field input:focus,
.catalog-inquiry__field textarea:focus {
  border-color: var(--gq-brand);
  box-shadow: 0 0 0 3px var(--gq-brand-light);
}

/* Breadcrumbs */
.catalog-breadcrumbs {
  font-size: 13px;
  color: var(--gq-text-soft);
}

.catalog-breadcrumbs a {
  color: var(--gq-text-soft);
}

.catalog-breadcrumbs a:hover {
  color: var(--gq-brand);
}

/* Page content readability */
.catalog-page__content {
  font-size: 16px;
  line-height: 1.7;
}

.catalog-page__content h2,
.catalog-page__content h3 {
  margin-top: 40px;
}

.catalog-page__content p,
.catalog-page__content li {
  color: var(--gq-text);
}

.catalog-page__content a {
  color: var(--gq-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kicker: calmer, not hidden */
.catalog-kicker {
  color: var(--gq-brand);
  font-family: var(--gq-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tags / pills */
.catalog-card__tag,
.catalog-proof-card__label {
  border-radius: var(--gq-radius);
  background: var(--gq-brand-light);
  color: var(--gq-brand-dark);
  font-family: var(--gq-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Gallery */
.catalog-gallery__item {
  border-radius: var(--gq-radius);
  overflow: hidden;
}

.catalog-gallery__item img {
  border-radius: var(--gq-radius);
  transition: transform 300ms ease;
}

/* Band CTA */
.catalog-bandcta__inner {
  border-radius: var(--gq-radius-lg);
  background: linear-gradient(130deg, var(--gq-ink), #163046);
  border-color: rgba(0,136,206,0.3);
}

.catalog-bandcta .catalog-btn--line {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .catalog-btn,
  .catalog-card,
  .catalog-size,
  .catalog-route,
  .catalog-mini-card,
  .catalog-proof-card {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .catalog-hero__grid,
  .catalog-layout,
  .catalog-detail__hero-grid,
  .catalog-detail__spec-table,
  .catalog-grid--4,
  .catalog-grid--3,
  .catalog-inquiry__form,
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .catalog-strip__grid,
  .catalog-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .catalog-hero,
  .catalog-section,
  .catalog-detail__hero,
  .catalog-detail__body { padding: 48px 0; }

  .catalog-hero__grid,
  .catalog-layout,
  .catalog-detail__hero-grid,
  .catalog-detail__spec-table,
  .catalog-grid--4,
  .catalog-grid--3,
  .catalog-grid--2,
  .catalog-strip__grid,
  .catalog-spec-grid,
  .catalog-inquiry__form,
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE TEMPLATE ENHANCEMENTS
   ============================================================ */

.gq-page-hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--gq-brand-light), #fff);
}

.gq-page-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  max-width: 18ch;
  margin-bottom: 16px;
}

.gq-page-hero__lead {
  font-size: 18px;
  color: var(--gq-text-soft);
  max-width: 720px;
}

.gq-content-section {
  padding: 56px 0;
}

.gq-content-section--soft {
  background: var(--gq-bg);
}

.gq-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gq-content-block {
  padding: 28px;
  border: 1px solid var(--gq-line);
  border-radius: var(--gq-radius-lg);
  background: var(--gq-panel);
}

.gq-content-block h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.gq-content-block p {
  color: var(--gq-text-soft);
  margin-bottom: 0;
}

.gq-value-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.gq-value-list li {
  padding: 18px;
  border-left: 3px solid var(--gq-brand);
  background: var(--gq-panel);
  border-radius: 0 var(--gq-radius) var(--gq-radius) 0;
}

.gq-value-list strong {
  display: block;
  color: var(--gq-ink);
  font-size: 16px;
  margin-bottom: 4px;
}

.gq-value-list span {
  color: var(--gq-text-soft);
  font-size: 14px;
}

.gq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gq-contact-card {
  padding: 24px;
  border: 1px solid var(--gq-line);
  border-radius: var(--gq-radius-lg);
  background: var(--gq-panel);
}

.gq-contact-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.gq-contact-card p {
  color: var(--gq-text-soft);
  font-size: 14px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .gq-content-grid,
  .gq-contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MAIN NAVIGATION HEADER (added 2026-07-08)
   ============================================================ */
.site-main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gq-panel);
  border-bottom: 1px solid var(--gq-line);
  box-shadow: var(--gq-shadow);
}

.site-main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.site-main-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-main-header__logo img {
  max-height: 42px;
  width: auto;
  height: auto;
}

.site-main-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-main-header__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-main-header__item a {
  display: block;
  padding: 10px 14px;
  color: var(--gq-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--gq-radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-main-header__item a:hover,
.site-main-header__item a:focus {
  background: var(--gq-brand-light);
  color: var(--gq-brand);
}

.site-main-header__item.is-active a {
  background: var(--gq-brand-light);
  color: var(--gq-brand);
  font-weight: 600;
}

.site-main-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-main-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--gq-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--gq-radius);
  transition: background-color 0.15s ease;
}

.site-main-header__cta:hover,
.site-main-header__cta:focus {
  background: var(--gq-brand-dark);
  color: #fff;
}

.site-main-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--gq-line);
  border-radius: var(--gq-radius);
  cursor: pointer;
}

.site-main-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--gq-ink);
  border-radius: 1px;
}

@media (max-width: 1024px) {
  .site-main-header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gq-panel);
    padding: 20px;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 999;
  }

  .site-main-header__nav.is-open {
    transform: translateX(0);
  }

  .site-main-header__menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
  }

  .site-main-header__item {
    width: 100%;
  }

  .site-main-header__item a {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .site-main-header__toggle {
    display: flex;
  }

  .site-main-header__cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-main-header__inner {
    min-height: 56px;
  }

  .site-main-header__logo img {
    max-height: 34px;
  }
}
