/*
Theme Name: Baiousen UV
Theme URI: https://www.uvbiosun.com/
Author: Baiousen
Description: B2B inquiry WordPress theme for UV germicidal lamps, replacement UVC lamps, quartz sleeves, ballasts and SEO news content.
Version: 1.0.0
Text Domain: baiousen-uv
*/

:root {
  --ink: #122131;
  --muted: #5d6d7d;
  --line: #dce5eb;
  --soft: #f4f8fa;
  --white: #ffffff;
  --blue: #1456d9;
  --cyan: #19a8b7;
  --green: #2a8a55;
  --shadow: 0 18px 48px rgba(24, 41, 55, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; background: var(--white); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 980px; margin-bottom: 22px; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.22; }

.site-header.nav-only {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  min-height: 90px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-top: 1px solid #d7e1e8;
  border-bottom: 1px solid #cbd8e0;
  background: #ffffff;
}

.main-nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 4vw, 64px);
  min-width: 0;
  overflow-x: auto;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 90px;
  align-items: center;
  color: #303030;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.current-menu-item a,
.current_page_item a {
  color: #0058c9;
}

.main-nav a.active::after,
.current-menu-item a::after,
.current_page_item a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #0b62c4;
  content: "";
}

.search-btn {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #0b4fb3;
}
.search-btn::before { width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; content: ""; }
.search-btn::after { position: absolute; width: 10px; height: 3px; right: 5px; bottom: 7px; background: #fff; border-radius: 2px; transform: rotate(45deg); content: ""; }

.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-btn { padding: 0 22px; border: 1px solid var(--blue); background: var(--blue); color: var(--white); cursor: pointer; }
.secondary-btn { padding: 0 22px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.text-link { display: inline-flex; margin-top: 18px; color: var(--blue); font-weight: 800; }

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: 74px clamp(20px, 5vw, 72px) 54px;
  background: linear-gradient(90deg, rgba(244,248,250,.94), rgba(244,248,250,.72) 52%, rgba(255,255,255,.96)), radial-gradient(circle at 24% 18%, rgba(25,168,183,.14), transparent 32%);
}
.hero-text { max-width: 610px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-stats { display: grid; max-width: 560px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.hero-stats div { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.hero-stats dt { margin-bottom: 4px; color: var(--blue); font-size: 24px; font-weight: 800; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 13px; }
.hero-media { margin: 0; }
.hero-media img, .product-hero img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow); }

.trust-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); background: #0d2436; color: var(--white); }
.trust-strip span { display: flex; min-height: 64px; align-items: center; justify-content: center; padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; font-weight: 700; }
.section { padding: 86px clamp(20px, 5vw, 72px); }
.section-head { max-width: 820px; margin-bottom: 36px; }
.section-head p, .compact p { color: var(--muted); font-size: 17px; }
.page-hero { padding: 92px clamp(20px, 5vw, 72px) 78px; background: linear-gradient(120deg, rgba(244,248,250,.96), rgba(255,255,255,.96)), radial-gradient(circle at 82% 14%, rgba(25,168,183,.16), transparent 28%); }
.page-hero h1 { max-width: 980px; font-size: clamp(40px, 5vw, 68px); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 18px; }

.product-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card, .news-card {
  display: block;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-card:hover, .news-card:hover { border-color: rgba(20,86,217,.38); box-shadow: 0 14px 36px rgba(19,43,66,.1); transform: translateY(-3px); }
.product-code, .news-card span { display: inline-flex; margin-bottom: 18px; color: #126a73; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.product-code { min-width: 54px; height: 30px; align-items: center; justify-content: center; border-radius: 6px; background: #e9f6f7; }
.product-card p, .product-card li, .news-card p { color: var(--muted); }
.product-card ul { margin: 20px 0 0; padding-left: 18px; }
.news-card small { color: var(--blue); font-weight: 800; }

.split, .factory, .product-detail { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 78px); }
.split { background: var(--soft); }
.application-list, .capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.application-list article { min-height: 190px; padding: 26px; border-left: 4px solid var(--cyan); border-radius: 8px; background: var(--white); }
.application-list p, .factory-copy p, .site-footer p, .detail-main p { color: var(--muted); }
.capability-grid div { min-height: 132px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff, #f7fafb); }
.capability-grid strong, .capability-grid span { display: block; }
.capability-grid strong { margin-bottom: 10px; font-size: 20px; }
.capability-grid span { color: var(--muted); }
.cta-band, .seo-block { background: #102333; color: var(--white); }
.cta-band .eyebrow, .seo-block .eyebrow { color: #8ed6c2; }
.cta-band p, .seo-block p { max-width: 760px; color: #dbe7ee; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: 74px clamp(20px, 5vw, 72px);
  background: linear-gradient(120deg, rgba(244,248,250,.96), rgba(255,255,255,.98)), radial-gradient(circle at 70% 20%, rgba(20,86,217,.12), transparent 30%);
}
.product-hero h1 { font-size: clamp(40px, 5vw, 68px); }
.product-hero p { max-width: 650px; color: var(--muted); font-size: 18px; }
.product-detail { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.detail-main h2:not(:first-child) { margin-top: 42px; }
.spec-table { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.spec-table div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.spec-table div:last-child { border-bottom: 0; }
.spec-table span { color: var(--muted); }
.detail-side { position: sticky; top: 92px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.detail-side a { display: block; padding: 13px 0; border-top: 1px solid var(--line); color: #284158; font-weight: 800; }

.inquiry-section { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(360px, 1fr); gap: clamp(28px, 5vw, 72px); padding: 86px clamp(20px, 5vw, 72px); background: linear-gradient(120deg, rgba(233,246,247,.95), rgba(255,255,255,.98)); }
.email-link { display: inline-flex; margin-top: 14px; color: var(--blue); font-size: 20px; font-weight: 800; }
.inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
label { display: grid; gap: 7px; color: #31485d; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #cdd9e1; border-radius: 6px; padding: 10px 12px; color: var(--ink); font: inherit; background: var(--white); }
textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }

.article-page { max-width: 920px; margin: 0 auto; padding: 86px 24px; }
.article-page h1 { font-size: clamp(40px, 5vw, 64px); }
.article-page h2 { margin-top: 42px; font-size: clamp(26px, 3vw, 36px); }
.article-page p { color: var(--muted); font-size: 18px; }
.article-lead { font-size: 21px !important; }
.article-cta { margin-top: 54px; padding: 30px; border-radius: 8px; background: var(--soft); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); background: #f7fafb; }
.site-footer p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 18px; color: #284158; font-weight: 700; }

@media (max-width: 1020px) {
  .main-nav { justify-content: flex-start; }
  .hero, .split, .factory, .seo-block, .inquiry-section, .product-hero, .product-detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .hero { min-height: auto; }
  .product-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header.nav-only { min-height: 74px; padding: 0 12px; }
  .main-nav a { min-height: 74px; font-size: 14px; }
  .hero { padding-top: 46px; }
  .hero-stats, .trust-strip, .product-grid, .application-list, .capability-grid, .inquiry-form, .news-grid { grid-template-columns: 1fr; }
  .section, .inquiry-section { padding-block: 58px; }
  .spec-table div { grid-template-columns: 1fr; gap: 6px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
