/* ============================================================
   Una Wire Products Inc. — Main Stylesheet
   ============================================================ */

:root {
  --navy:        #111111;
  --blue:        #222222;
  --blue-light:  #f0f0f0;
  --blue-mid:    #555555;
  --white:       #FFFFFF;
  --bg:          #f7f7f7;
  --bg-alt:      #eeeeee;
  --text:        #111111;
  --text-mid:    #555555;
  --text-light:  #999999;
  --border:      #dddddd;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow:      0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.18);
  --transition:  all .22s ease;
  --max-w:       1160px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-mid); }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-alt { background: var(--bg); }
.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 40px;
  margin-bottom: 16px;
}
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header p { font-size: 1.05rem; margin-top: 12px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.nav-brand-tagline {
  font-size: .68rem;
  color: var(--text-light);
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-mid);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { background: var(--bg); color: var(--navy); }
.nav-cta { margin-left: 12px; padding: 10px 20px !important; font-size: .88rem !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: block;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  backdrop-filter: blur(8px);
}
.hero-card-title {
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-card-tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── About ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--bg-alt) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--blue);
  border: 2px dashed var(--border);
}
.about-img-placeholder .img-icon {
  font-size: 3rem;
  opacity: .4;
}
.about-img-placeholder p {
  font-size: .82rem;
  color: var(--text-light);
  text-align: center;
  padding: 0 20px;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.about-badge-label {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-stat { text-align: center; flex: 1; }
.about-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.about-stat-label {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Products ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-category {
  margin-bottom: 56px;
}
.product-category-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-light);
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
  background: var(--blue-light);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.04);
}
.product-img--contain {
  height: 280px;
  background: var(--bg);
}
.product-img--contain img {
  object-fit: contain;
  padding: 12px;
}
.product-img-note {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 20px;
}
.product-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.product-body p  { font-size: .9rem; flex: 1; }
.product-specs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-light);
}
.product-new {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Articles ───────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.article-card.coming-soon { opacity: .6; pointer-events: none; }
.article-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.article-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.article-meta {
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-meta .dot { width: 3px; height: 3px; background: var(--text-light); border-radius: 50%; display: inline-block; }
.article-body h3 { font-size: 1rem; margin-bottom: 8px; }
.article-body p  { font-size: .88rem; flex: 1; }
.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 14px;
}
.article-link:hover { color: var(--navy); gap: 10px; }
.coming-soon-badge {
  display: inline-block;
  background: var(--bg);
  color: var(--text-light);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
  border: 1px solid var(--border);
}

/* ── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 36px; font-size: 1rem; }
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 3px;
}
.contact-detail p { font-size: .9rem; color: var(--text-mid); }
.contact-social { margin-top: 32px; }
.contact-social h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
}
.social-btn:hover { background: #111111; color: var(--white); transform: translateY(-1px); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 24px; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-brand-tagline {
  font-size: .82rem;
  margin-bottom: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .82rem;
  transition: var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,.18); color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Article page ───────────────────────────────────────── */
.article-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 72px 0 60px;
}
.article-hero .breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.article-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.article-hero .breadcrumb a:hover { color: var(--white); }
.article-hero h1 { color: var(--white); max-width: 760px; margin-bottom: 16px; font-size: clamp(1.6rem,3vw,2.4rem); }
.article-hero-meta { color: rgba(255,255,255,.65); font-size: .85rem; display: flex; gap: 18px; flex-wrap: wrap; }
.article-body-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  padding: 64px 0 80px;
  align-items: start;
}
.article-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--navy); }
.article-content h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--navy); }
.article-content p  { margin-bottom: 18px; color: var(--text-mid); line-height: 1.8; }
.article-content ul { margin: 0 0 18px 24px; color: var(--text-mid); line-height: 1.8; }
.article-content ul li { margin-bottom: 6px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .92rem; }
.article-content th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; }
.article-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.article-content tr:nth-child(even) td { background: var(--bg); }
.article-cta-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
  margin: 36px 0;
}
.article-cta-box h3 { color: var(--white); margin-bottom: 10px; }
.article-cta-box p  { color: rgba(255,255,255,.8); margin-bottom: 18px; }
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h4 { color: var(--navy); margin-bottom: 14px; font-size: .95rem; }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { margin-bottom: 8px; }
.sidebar-card ul li a { font-size: .88rem; color: var(--text-mid); }
.sidebar-card ul li a:hover { color: var(--navy); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-visual     { display: none; }
  .about-grid      { grid-template-columns: 1fr; }
  .about-img-wrap  { display: none; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .article-body-wrap { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 820px) {
  .nav-links       { display: none; }
  .nav-hamburger   { display: flex; }
  .nav-brand-tagline { display: none; }
  .nav-links.open  {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
}
@media (max-width: 640px) {
  .section         { padding: 64px 0; }
  .hero-actions    { flex-direction: column; }
  .hero-stats      { flex-wrap: wrap; gap: 20px; }
  .footer-inner    { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .products-grid   { grid-template-columns: 1fr; }
  .articles-grid   { grid-template-columns: 1fr; }
}
