/*
Theme Name: Nexharn Connectivity
Theme URI: https://nexharnconnectivity.com/
Author: Nexharn Connectivity
Author URI: https://nexharnconnectivity.com/
Description: A custom B2B WordPress theme for cable, wire harness, and industrial cable assembly manufacturers.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexharn
*/

:root {
  --nx-ink: #152033;
  --nx-muted: #5a6678;
  --nx-line: #dfe5ed;
  --nx-bg: #f6f8fb;
  --nx-panel: #ffffff;
  --nx-blue: #1458d4;
  --nx-blue-dark: #0b3b91;
  --nx-teal: #00a79d;
  --nx-steel: #334155;
  --nx-orange: #f59e0b;
  --nx-radius: 8px;
  --nx-shadow: 0 16px 40px rgba(21, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--nx-ink);
  background: var(--nx-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--nx-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--nx-blue-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--nx-line);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner,
.footer-grid,
.hero-grid,
.split-grid,
.product-grid,
.stats-grid,
.category-grid,
.rfq-grid,
.seo-grid,
.insight-grid,
.factory-grid {
  display: grid;
  gap: 24px;
}

.header-inner {
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--nx-ink);
  font-weight: 700;
  min-width: 0;
}

.brand .custom-logo {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 240px !important;
  max-height: 58px !important;
  object-fit: contain;
}

.site-header img.custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 240px !important;
  max-height: 58px !important;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--nx-blue), var(--nx-teal));
  border-radius: 8px;
  font-weight: 800;
}

.brand-name {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: var(--nx-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-navigation ul {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.main-navigation a {
  color: var(--nx-steel);
  font-size: 15px;
  font-weight: 700;
}

.header-cta,
.button,
.wp-block-button__link,
.rfq-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: #fff;
  background: var(--nx-blue);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.header-cta:hover,
.button:hover,
.rfq-form button:hover {
  color: #fff;
  background: var(--nx-blue-dark);
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(110deg, rgba(9, 25, 52, 0.94), rgba(10, 62, 125, 0.82)),
    radial-gradient(circle at 80% 30%, rgba(0, 167, 157, 0.45), transparent 32%),
    #0f2547;
  color: #fff;
  padding: 82px 0 54px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
}

.hero-media {
  display: grid;
  gap: 16px;
}

.hero-media > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--nx-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin: 0 0 14px;
  color: #9ee7e1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  margin: 0 0 28px;
  color: #dce8f8;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button.secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-panel,
.panel,
.product-card,
.category-card,
.rfq-form,
.contact-card {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow);
}

.hero-panel {
  color: var(--nx-ink);
  padding: 24px;
}

.hero-panel h2 {
  margin-top: 0;
  font-size: 24px;
}

.capability-list,
.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.capability-list li,
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.capability-list li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--nx-teal);
  content: ">";
  font-weight: 800;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: #fff;
}

.seo-section {
  background: #eef4fb;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.entry-content h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-header p,
.entry-content p {
  color: var(--nx-muted);
}

.product-grid,
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-layout .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.product-card,
.category-card,
.contact-card {
  padding: 24px;
}

.archive-layout .product-card {
  padding: 28px;
}

.product-card img,
.category-card img,
.image-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 6px;
}

.image-panel img {
  margin-bottom: 0;
  border: 1px solid var(--nx-line);
  box-shadow: var(--nx-shadow);
}

.visual-split {
  align-items: center;
}

.visual-split.reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.product-card h2,
.product-card h3 {
  line-height: 1.2;
}

.product-card h3,
.category-card h3,
.contact-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tag-list span,
.product-meta span {
  display: inline-flex;
  padding: 6px 9px;
  color: var(--nx-steel);
  background: #eef4fb;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: start;
}

.panel {
  padding: 28px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: 0 10px 26px rgba(21, 32, 51, 0.06);
}

.stat strong {
  display: block;
  color: var(--nx-blue);
  font-size: 30px;
  line-height: 1;
}

.seo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-grid article,
.insight-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: 0 10px 26px rgba(21, 32, 51, 0.06);
}

.seo-grid h3,
.insight-card h3 {
  margin-top: 0;
  font-size: 22px;
  line-height: 1.2;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--nx-blue);
  border-radius: 6px;
  font-weight: 800;
}

.factory-section {
  color: #fff;
  background: #0f2547;
}

.factory-section .section-header p,
.factory-section p {
  color: #dce8f8;
}

.factory-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 38px;
}

.factory-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.factory-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: #e7eefb;
}

.factory-list li::before {
  position: absolute;
  left: 0;
  color: var(--nx-teal);
  content: ">";
  font-weight: 800;
}

.factory-media img,
.factory-video,
.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #071225;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--nx-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.video-embed iframe {
  height: auto;
}

.page-hero {
  padding: 62px 0;
  color: #fff;
  background: linear-gradient(120deg, #10213c, #1458d4);
}

.breadcrumbs {
  margin-bottom: 12px;
  color: #c7d6ec;
  font-size: 14px;
}

.entry-content {
  max-width: 860px;
  margin: 0 auto;
}

.rfq-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
}

.rfq-form {
  padding: 24px;
}

.rfq-notice {
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #075048;
  background: #dff8f3;
  border: 1px solid #95e2d8;
  border-radius: 6px;
  font-weight: 700;
}

.rfq-notice.error {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #fecaca;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rfq-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--nx-steel);
  font-weight: 700;
}

.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  margin-top: 6px;
  color: var(--nx-ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.rfq-form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  color: #d7e2f4;
  background: #101827;
  padding: 54px 0 24px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin-top: 0;
}

.site-footer a {
  color: #d7e2f4;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 24px;
  margin-top: 34px;
  color: #9fb0c7;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.archive-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.sidebar-box {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .header-inner,
  .hero-grid,
  .split-grid,
  .rfq-grid,
  .archive-layout,
  .footer-grid,
  .factory-grid {
    grid-template-columns: 1fr;
  }

  .brand .custom-logo {
    max-width: 220px !important;
    max-height: 54px !important;
  }

  .main-navigation ul {
    gap: 14px;
  }

  .main-navigation ul {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-grid,
  .category-grid,
  .stats-grid,
  .seo-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    padding: 54px 0 38px;
  }

  .section {
    padding: 48px 0;
  }

  .product-grid,
  .category-grid,
  .stats-grid,
  .seo-grid,
  .insight-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .header-cta {
    width: 100%;
  }

  .brand .custom-logo {
    max-width: 180px !important;
    max-height: 46px !important;
  }
}
