/* ============================================================
   GB LASERS — Clean Rebuild
   Aesthetic: Industrial Precision · Dark Steel · Sharp Orange
   ============================================================ */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --black:      #0d0f11;
  --dark:       #111416;
  --panel:      #181c1f;
  --border:     #2a2f34;
  --mid:        #3a4048;
  --muted:      #7a8390;
  --light:      #b8c0c8;
  --white:      #f0f2f4;
  --orange:     #e8610a;
  --orange-lt:  #ff7b28;
  --orange-dim: #7a3205;
  --blue:       #1a6faa;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 2px;
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-lt); text-decoration: none; }
a:hover { color: var(--white); }
strong { color: var(--white); font-weight: 600; }

/* ---- GOOGLE FONTS IMPORT ---- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 15, 17, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 5vw;
  border-bottom: 1px solid var(--border);
}

.header-contact {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.header-contact a { color: var(--muted); }
.header-contact a:hover { color: var(--orange-lt); }
.header-contact span { color: var(--orange); margin-right: 0.4rem; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}
.logo-text span { color: var(--orange); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 5vw;
}

.header-nav a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 1.4rem;
  border-right: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}
.header-nav a:first-child { border-left: 1px solid var(--border); }
.header-nav a:hover,
.header-nav a.active { color: var(--orange-lt); background: rgba(232,97,10,0.06); }

.header-nav .nav-cta {
  margin-left: auto;
  padding: 0.65rem 1.6rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-right: none !important;
  transition: background var(--transition);
}
.header-nav .nav-cta:hover { background: var(--orange-lt); }

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-bottom: 2px solid var(--orange);
}
.hero img.hero-bg {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,15,17,0.92) 0%, rgba(13,15,17,0.5) 55%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 8vw;
}
.hero-content { max-width: 600px; }
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}
.hero-title span { color: var(--orange); }
.hero-sub {
  font-size: 1rem;
  color: var(--light);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.65;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-lt); color: var(--white); }
.btn-outline { border: 1px solid var(--border); color: var(--light); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-lt); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-bottom: 2px solid var(--orange);
}
.page-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.45;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,15,17,0.95) 0%, rgba(13,15,17,0.6) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 8vw;
}
.page-hero-overlay h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.page-hero-overlay h1 span { color: var(--orange); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5vw;
}
.section { padding: 5rem 5vw; max-width: 1240px; margin: 0 auto; }
.section-lg { padding: 6rem 5vw; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 2rem;
}

/* ============================================================
   HOME — PRODUCT CATEGORIES
   ============================================================ */
.categories {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 5vw;
}
.categories-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cat-card {
  background: var(--panel);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--transition);
  text-decoration: none;
}
.cat-card:hover { background: #1e2328; }
.cat-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(232,97,10,0.12);
  border: 1px solid var(--orange-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card__icon svg { width: 22px; height: 22px; stroke: var(--orange); }
.cat-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cat-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.cat-card__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-top: auto;
}
.cat-card:hover .cat-card__link { color: var(--orange-lt); }

/* ============================================================
   HOME — PRODUCT LISTING (index page cards)
   ============================================================ */
.products-section {
  padding: 4rem 5vw;
  border-bottom: 1px solid var(--border);
}
.products-section h2.group-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.products-section h2.group-title span {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.8rem;
  display: inline-block;
}
.products-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.product-card {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
}
.product-card:hover { background: #1e2328; }
.product-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.85);
  transition: filter var(--transition);
}
.product-card:hover .product-card__img { filter: brightness(1) saturate(1); }
.product-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-height: 4.5rem; }
.product-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.product-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.product-card__footer {
  padding: 0 1.4rem 1.4rem;
}
.product-card .btn-more {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--orange-dim);
  display: inline-block;
  transition: all var(--transition);
}
.product-card:hover .btn-more {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ============================================================
   PRODUCT PAGE — DETAIL LAYOUT
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 5vw;
  max-width: 1240px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.product-detail + .product-detail {
  /* alternating layout */
}
.product-detail:nth-child(even) { direction: rtl; }
.product-detail:nth-child(even) > * { direction: ltr; }

.product-detail__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: brightness(0.92) saturate(0.9);
  transition: filter var(--transition);
}
.product-detail__img:hover { filter: brightness(1) saturate(1); }

.product-detail__text {}
.product-detail__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.product-detail__text .sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.product-detail__text p {
  font-size: 0.95rem;
  color: var(--light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-wrap {
  max-width: 1240px;
  margin: 0 auto 4rem;
  overflow-x: auto;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comp-table th {
  background: var(--panel);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.2rem;
  text-align: left;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.comp-table th:first-child { color: var(--orange); }
.comp-table td {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  color: var(--light);
  vertical-align: top;
  line-height: 1.5;
}
.comp-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.comp-table tr:hover td { background: rgba(232,97,10,0.04); }
.comp-table td:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #09090b;
  border-top: 1px solid var(--border);
  padding: 4rem 5vw 2rem;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange-lt); }
.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}
.footer-col address a { color: var(--muted); }
.footer-col address a:hover { color: var(--orange-lt); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mid);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .product-detail:nth-child(even) { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 768px) {
  .header-top { flex-direction: column; gap: 0.6rem; text-align: center; }
  .header-nav { flex-wrap: wrap; justify-content: center; }
  .header-nav .nav-cta { margin-left: 0; }
  .hero img.hero-bg { height: 380px; }
  .hero-overlay { align-items: flex-end; padding-bottom: 3rem; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 540px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT CARD PLACEHOLDER (for items with no available image)
   ============================================================ */
.product-card__placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--mid);
  transition: color 0.3s;
}
.product-card:hover .product-card__placeholder {
  color: var(--orange-lt);
}
.product-card__placeholder svg {
  width: 52px;
  height: 52px;
  opacity: 0.5;
}
.product-card__placeholder span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}
