/* JBC Safety & Wear — shared styles */
:root {
  --navy-dark: #0c1a3d;
  --navy: #12224d;
  --navy-light: #1a2f63;
  --orange: #f5821f;
  --orange-dark: #d96e0f;
  --gray-bg: #f4f6f9;
  --gray-line: #e4e7ee;
  --text: #1c1f2a;
  --text-muted: #6b7280;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(12, 26, 61, 0.08);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--navy-dark); }
.logo .logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
}
.logo .logo-mark svg { width: 20px; height: 20px; }
.logo small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 1px; color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-dark);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-line);
  color: var(--navy-dark);
  cursor: pointer;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy-dark); cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(12,26,61,0.72) 0%, rgba(12,26,61,0.62) 40%, rgba(12,26,61,0.38) 58%, rgba(12,26,61,0.08) 82%), url("../images/hero-worker.jpg");
  background-size: cover;
  background-position: 96% 2%;
  background-repeat: no-repeat;
}
.hero .container { position: relative; z-index: 2; max-width: 100%; margin: 0; padding: 80px 32px 80px 48px; }
.hero-text { max-width: 480px; }
.hero h1 { font-size: 2.3rem; font-weight: 800; line-height: 1.18; margin-bottom: 20px; }
.hero .accent { color: var(--orange); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stat strip */
.stat-strip { background: var(--navy-dark); color: var(--white); padding: 26px 0; }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { display: flex; align-items: center; gap: 14px; }
.stat-item svg { width: 34px; height: 34px; flex-shrink: 0; color: var(--orange); }
.stat-item strong { display: block; font-size: 0.95rem; font-weight: 700; }
.stat-item span { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* Section heading */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow {
  display: inline-block; color: var(--orange); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 2rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

/* Category grid */
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s ease;
  box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card .cat-icon {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center;
}
.cat-card .cat-icon svg { width: 42px; height: 42px; color: var(--orange); }
.cat-card .cat-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-icon::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,26,61,0.92) 0%, rgba(12,26,61,0.35) 45%, rgba(12,26,61,0) 75%);
  pointer-events: none;
}
.cat-card .cat-icon h3 {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 14px 14px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.cat-card .cat-body { padding: 14px 16px; text-align: center; }
.cat-card .cat-body p { font-size: 0.8rem; color: var(--text-muted); }

/* Why us */
.why-card { text-align: center; padding: 10px; }
.why-card .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.why-card .icon-circle svg { width: 28px; height: 28px; color: var(--orange); }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: var(--text-muted); }

.why-block { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }
.why-block h2 { font-size: 1.9rem; font-weight: 800; color: var(--navy-dark); margin-bottom: 14px; }
.why-block p { color: var(--text-muted); margin-bottom: 22px; }

/* Sectors */
.sector-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.sector-card .sector-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--navy-light), var(--navy-dark));
}
.sector-card .sector-bg svg { position: absolute; right: -10px; bottom: -10px; width: 60%; opacity: 0.15; color: var(--white); }
.sector-card .sector-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(12,26,61,0.85);
  color: var(--white); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.9rem;
}
.sector-card .sector-label svg { width: 20px; height: 20px; color: var(--orange); }

/* Partners */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  align-items: center;
}
.partner-logo {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center; justify-content: center;
  height: 90px;
  filter: grayscale(15%);
  transition: 0.2s ease;
}
.partner-logo:hover { filter: none; box-shadow: var(--shadow); }
.partner-logo img { max-height: 55px; width: auto; object-fit: contain; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 60px 0;
}
.page-hero h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 10px; }
.breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.breadcrumb a { color: var(--orange); }

/* Simple content blocks */
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.info-card h3 { color: var(--navy-dark); font-size: 1.05rem; margin-bottom: 10px; }
.info-card p { color: var(--text-muted); font-size: 0.92rem; }

.check-list li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--text-muted); font-size: 0.93rem; }
.check-list svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }

/* Timeline (news / certificates) */
.timeline-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--gray-line);
}
.timeline-item .date { color: var(--orange); font-weight: 700; font-size: 0.85rem; }
.timeline-item h3 { color: var(--navy-dark); font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item .icon-circle {
  width: 48px; height: 48px; border-radius: 10px; background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item .icon-circle svg { width: 22px; height: 22px; color: var(--orange); }
.contact-item h4 { color: var(--navy-dark); font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: 0.9rem; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-dark); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-line);
  border-radius: 6px; font-family: inherit; font-size: 0.92rem;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--orange); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-line); height: 260px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 26px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.newsletter-form { display: flex; margin-top: 12px; }
.newsletter-form input {
  flex: 1; padding: 11px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px 0 0 6px;
  background: rgba(255,255,255,0.06); color: var(--white); font-size: 0.85rem;
}
.newsletter-form button {
  background: var(--orange); border: none; color: var(--white); padding: 0 16px; border-radius: 0 6px 6px 0; cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center; font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    min-height: 520px;
    background-image: linear-gradient(180deg, rgba(12,26,61,0.55) 0%, rgba(12,26,61,0.93) 65%), url("../images/hero-worker.jpg");
    background-position: center 3%;
  }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .why-block { grid-template-columns: 1fr; }
  .partner-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .grid-6, .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
