/* ==========================================================
   KYUNGDO ELECTRIC — 경도전기(주) Website
   Style: Deep navy + signature yellow (electric)
   ========================================================== */

:root {
  --navy-900: #060f24;
  --navy-800: #0b1e3c;
  --navy-700: #16305c;
  --navy-600: #1f4680;
  --navy-100: #e8ecf5;
  --navy-50:  #f4f6fb;

  --yellow:   #F5B301;
  --yellow-2: #ffcc33;
  --yellow-glow: rgba(245, 179, 1, 0.15);
  --copper:   #B87333;

  --text:     #0f1729;
  --text-mid: #4a5570;
  --text-sub: #7a8399;
  --line:     #e3e7ef;
  --bg:       #ffffff;
  --bg-alt:   #f7f8fb;
  --bg-dark:  var(--navy-900);

  --shadow-sm: 0 1px 2px rgba(6,15,36,.06), 0 1px 3px rgba(6,15,36,.04);
  --shadow-md: 0 4px 12px rgba(6,15,36,.08), 0 2px 4px rgba(6,15,36,.04);
  --shadow-lg: 0 20px 40px rgba(6,15,36,.12), 0 6px 12px rgba(6,15,36,.06);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'D2Coding', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--yellow); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ================ TOP BAR (info strip) ================ */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-left, .topbar-right { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-item svg { width: 14px; height: 14px; opacity: .8; }
.topbar-item strong { color: var(--yellow); font-weight: 600; }

/* ================ HEADER / NAV ================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.8) blur(12px);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { height: 40px; }
.nav-logo img { height: 100%; width: auto; }
.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy-800);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}
.nav-cta {
  margin-left: 12px;
  padding: 10px 20px;
  background: var(--navy-800);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.nav-cta:hover {
  background: var(--yellow);
  color: var(--navy-900) !important;
  transform: translateY(-1px);
}
.nav-toggle { display: none; }

/* ================ HERO ================ */
.hero {
  position: relative;
  min-height: 90vh;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../products/panel-yellow.jpg') center/cover no-repeat;
  opacity: 0.25;
  filter: saturate(1.2) contrast(1.1);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(245,179,1,0.20) 0%, transparent 50%),
    linear-gradient(180deg, rgba(6,15,36,.85) 0%, rgba(6,15,36,.95) 60%, var(--navy-900) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245,179,1,0.12);
  border: 1px solid rgba(245,179,1,0.3);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title .accent {
  color: var(--yellow);
  display: inline-block;
  position: relative;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  opacity: 0.4;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  max-width: 620px;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--yellow-2);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245,179,1,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-arrow { font-size: 18px; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 60px);
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.hero-stat-num .unit {
  font-size: 0.45em;
  color: var(--yellow);
  font-weight: 700;
}
.hero-stat-num .plus {
  font-size: 0.6em;
  color: var(--yellow);
  font-weight: 600;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

/* ================ SECTION BASE ================ */
.section {
  padding: clamp(70px, 10vw, 140px) 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .section-eyebrow { color: var(--yellow); }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.7); }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-eyebrow {
  display: inline-block;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-left: 44px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 2px;
  background: var(--yellow);
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ================ ABOUT ================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--yellow);
  border-radius: 50%;
  z-index: -1;
  filter: blur(0px);
}
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(6,15,36,0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--yellow);
}
.about-badge strong {
  color: var(--yellow);
  font-size: 24px;
  font-weight: 800;
  display: block;
  line-height: 1;
}
.about-badge span {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 1px;
}

.about-content .section-eyebrow::before { display: none; }
.about-content .section-eyebrow { padding-left: 0; }
.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}
.about-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 32px;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.about-highlight {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .2s ease;
}
.about-highlight:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.about-highlight-icon {
  width: 40px; height: 40px;
  background: var(--yellow-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--navy-800);
}
.about-highlight-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.about-highlight-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}
.ceo-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ceo-sign-mark {
  width: 44px; height: 44px;
  background: var(--navy-800);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-mono);
}
.ceo-sign-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
}
.ceo-sign-name span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ================ BUSINESS AREAS ================ */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.biz-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.biz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.biz-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.biz-card:hover::before { transform: scaleX(1); }
.biz-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.biz-card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: 24px;
}
.biz-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.biz-card-title-en {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.biz-card-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ================ PRODUCTS GALLERY ================ */
.products-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: minmax(200px, auto);
}
.product-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-900);
  cursor: pointer;
  transition: transform .3s ease;
}
.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, opacity .3s ease;
}
.product-tile:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}
.product-tile-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(6,15,36,0.85) 100%);
  color: #fff;
  pointer-events: none;
}
.product-tile-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-tile-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.tile-large { grid-column: span 6; grid-row: span 2; }
.tile-med   { grid-column: span 3; grid-row: span 1; }
.tile-tall  { grid-column: span 3; grid-row: span 2; }
.tile-wide  { grid-column: span 6; grid-row: span 1; }

/* ================ CLIENTS ================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
}
.client-cell {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: background .2s ease;
  text-align: center;
}
.client-cell:hover {
  background: rgba(245,179,1,0.08);
}
.client-name {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.client-name span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.clients-note {
  margin-top: 40px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* ================ PROJECTS HIGHLIGHT ================ */
.projects-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.proj-tab {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  transition: all .2s ease;
}
.proj-tab:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.proj-tab.active {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.proj-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  transition: all .2s ease;
}
.proj-item:hover {
  border-color: var(--yellow);
  transform: translateX(4px);
}
.proj-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.5px;
}
.proj-year-num {
  font-size: 22px;
  color: var(--navy-900);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.proj-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.proj-content p {
  font-size: 13px;
  color: var(--text-sub);
}
.proj-flag {
  padding: 4px 10px;
  background: var(--navy-50);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.5px;
}
.proj-flag.global {
  background: rgba(245,179,1,0.12);
  color: #8a6100;
}
.projects-cta {
  text-align: center;
  margin-top: 48px;
}

/* ================ HISTORY TIMELINE ================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--yellow) 5%, var(--yellow) 95%, transparent);
}
.timeline-item {
  position: relative;
  padding: 20px 0 20px 88px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 34px;
  top: 28px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(245,179,1,0.2), 0 0 0 8px var(--bg-alt);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.4;
}

/* ================ CERTIFICATIONS ================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s ease;
  cursor: pointer;
}
.cert-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cert-thumb {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.cert-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}
.cert-card:hover .cert-thumb img { transform: scale(1.03); }
.cert-info {
  padding: 20px 24px;
}
.cert-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.cert-org {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.5px;
}

/* ================ FACILITIES ================ */
.facilities-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.facilities-images {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.facilities-images img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.fi-main { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 4/5; }
.fi-sub1 { grid-column: 2; grid-row: 1; aspect-ratio: 1/1; }
.fi-sub2 { grid-column: 2; grid-row: 2; aspect-ratio: 1/1; }

.facilities-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.facilities-table thead th {
  background: var(--navy-800);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.facilities-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.facilities-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.facilities-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.facilities-table tbody tr:hover { background: var(--bg-alt); }
.facilities-table tbody td {
  padding: 14px 16px;
  color: var(--text-mid);
}
.facilities-table tbody td:first-child {
  font-weight: 600;
  color: var(--navy-900);
}
.facilities-table tbody td:last-child {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--yellow);
  font-weight: 700;
}

/* ================ QUALITY / SAFETY POLICY ================ */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.policy-card {
  padding: 40px 32px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.policy-num {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 800;
  color: var(--yellow-glow);
  line-height: 1;
  letter-spacing: -2px;
}
.policy-icon {
  width: 56px; height: 56px;
  background: var(--navy-800);
  color: var(--yellow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.policy-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.policy-list {
  margin-top: 16px;
}
.policy-list li {
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  position: relative;
}
.policy-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 2px;
  background: var(--yellow);
}

/* ================ QUOTE / PROCESS ================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--navy-800);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}
.process-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.process-step-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}
.process-arrow {
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  height: 2px;
  background: var(--line);
  z-index: 1;
}
.process-arrow::after {
  content: '›';
  position: absolute;
  right: -8px;
  top: -12px;
  color: var(--line);
  font-size: 20px;
}
.process-step:last-child .process-arrow { display: none; }

.quote-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
  padding: 40px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  align-items: center;
}
.quote-info-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.quote-info-title .accent { color: var(--yellow); }
.quote-info-text {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-size: 15px;
}
.quote-docs {
  display: grid;
  gap: 12px;
}
.quote-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.quote-doc-icon {
  color: var(--yellow);
  flex-shrink: 0;
}

/* ================ CAREER ================ */
.career-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.career-title-main {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 24px;
}
.career-values {
  display: grid;
  gap: 16px;
}
.career-value {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--yellow);
}
.career-value-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  flex-shrink: 0;
}
.career-value-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.career-value-content p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}
.career-cta-inline {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--navy-50);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.career-cta-inline strong { color: var(--navy-900); }
.career-cta-inline a {
  color: var(--navy-800);
  font-weight: 700;
  border-bottom: 1px solid var(--yellow);
}

/* ================ CONTACT ================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info-block { }
.contact-info-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-info-value {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.contact-info-value.big {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--yellow);
  letter-spacing: 0.5px;
}
.contact-info-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: var(--radius-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-label .required { color: var(--yellow); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: all .2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(245,179,1,0.15);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B301' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.form-select option {
  background: var(--navy-800);
  color: #fff;
}
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--yellow);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--yellow-2);
  transform: translateY(-1px);
}
.form-consent {
  margin: 16px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.form-consent input[type="checkbox"] { accent-color: var(--yellow); margin-top: 3px; }

/* ================ MAP ================ */
.map-block {
  margin-top: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 21/9;
  background: var(--navy-800);
  position: relative;
}
.map-block iframe {
  width: 100%; height: 100%; border: none;
  filter: grayscale(0.3) invert(0.9) hue-rotate(180deg);
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  gap: 16px;
  padding: 20px;
  text-align: center;
}
.map-fallback svg { width: 48px; height: 48px; color: var(--yellow); }

/* ================ FOOTER ================ */
.footer {
  background: #050b1c;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .footer-logo { height: 42px; margin-bottom: 24px; }
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 360px;
}
.footer-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-list a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .biz-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ================ REVEAL ANIMATIONS ================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback if JS disabled or ScrollObserver not fired */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
html.no-js .reveal { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================ RESPONSIVE ================ */
@media (max-width: 1024px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-grid, .career-hero, .contact-layout, .facilities-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .projects-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .quote-info { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .nav { height: 60px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { padding: 12px 0; width: 100%; }
  .nav-menu .nav-cta { margin-left: 0; margin-top: 8px; width: 100%; justify-content: center; }
  .nav-toggle {
    display: flex;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
  }
  .business-grid, .clients-grid, .certs-grid { grid-template-columns: 1fr 1fr; }
  .products-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tile-large, .tile-med, .tile-tall, .tile-wide { grid-column: span 1; grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .about-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facilities-images { grid-template-columns: 1fr; }
  .fi-main, .fi-sub1, .fi-sub2 { grid-column: 1; grid-row: auto; aspect-ratio: 4/3; }
  .hero { padding: 80px 0 60px; min-height: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .process-steps { grid-template-columns: 1fr; }
  .process-arrow { display: none; }
}

/* ==================== YELLOW / COPPER THEME TOGGLE ==================== */
body.theme-copper {
  --yellow: #B87333;
  --yellow-2: #d18a48;
  --yellow-glow: rgba(184, 115, 51, 0.15);
}

/* THEME SWITCHER (dev / preview toggle) */
.theme-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  gap: 8px;
  background: rgba(6,15,36,0.9);
  backdrop-filter: blur(8px);
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.theme-switch button {
  padding: 8px 14px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all .2s ease;
}
.theme-switch button.active {
  background: var(--yellow);
  color: var(--navy-900);
}
.theme-switch button:hover:not(.active) {
  color: #fff;
}

/* Print-friendly (optional) */
@media print {
  .theme-switch, .nav-toggle, .header, .footer, .contact-form { display: none; }
  .hero, .section-dark { background: #fff !important; color: #000 !important; }
}
