/* ============================================
   Berg Safety Solutions - Safety System Alberta OHS
   Main Stylesheet
   ============================================ */

:root {
  --primary: #0a4d68;
  --primary-dark: #063347;
  --primary-light: #1a7a9c;
  --accent: #f47c20;
  --accent-dark: #d46510;
  --teal: #00adb5;
  --teal-light: #00c9d1;
  --white: #ffffff;
  --light: #f4f8fb;
  --light-gray: #e8eef3;
  --mid-gray: #b0bec5;
  --dark-gray: #546e7a;
  --dark: #1a2a35;
  --text: #2c3e50;
  --text-light: #607d8b;
  --danger: #e53935;
  --success: #2e7d32;
  --warning: #f9a825;
  --shadow: 0 4px 20px rgba(10,77,104,0.10);
  --shadow-lg: 0 8px 40px rgba(10,77,104,0.16);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.badge-accent { background: var(--accent); color: var(--white); }
.badge-teal { background: var(--teal); color: var(--white); }
.badge-primary { background: var(--primary); color: var(--white); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,124,32,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,77,104,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 900;
  flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text span:first-child {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.nav-logo-text span:last-child {
  font-size: 11px;
  color: var(--teal-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-portal-link {
  color: var(--teal-light) !important;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--teal) !important;
  border-radius: 8px !important;
}
.nav-portal-link:hover {
  background: var(--teal) !important;
  color: var(--white) !important;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 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.03'%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");
}
.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0,173,181,0.05) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0,173,181,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,173,181,0.15);
  border: 1px solid rgba(0,173,181,0.3);
  border-radius: 20px;
  color: var(--teal-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title .highlight {
  color: var(--teal-light);
  position: relative;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--teal-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  pointer-events: none;
  opacity: 0.15;
}

/* ---- SECTION HEADINGS ---- */
.section-header { margin-bottom: 56px; }
.section-label {
  display: inline-block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}
.text-center .section-subtitle { margin: 0 auto; }

/* ---- PROBLEM SECTION ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--danger);
  transition: transform var(--transition);
}
.problem-card:hover { transform: translateY(-4px); }
.problem-icon {
  width: 52px; height: 52px;
  background: #fdecea;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.problem-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.problem-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* ---- FORMS PREVIEW ---- */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.form-pill {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  cursor: default;
}
.form-pill:hover {
  border-color: var(--teal);
  background: var(--light);
  color: var(--primary);
  transform: translateX(4px);
}
.form-pill-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  flex-shrink: 0;
}
.form-code {
  font-size: 11px;
  color: var(--mid-gray);
  display: block;
  margin-top: 2px;
}

/* ---- INDUSTRIES ---- */
.industry-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.industry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.industry-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255,255,255,0.88);
}
.industry-list li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.industry-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.industry-stat-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.industry-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.industry-stat-label { font-size: 14px; color: rgba(255,255,255,0.7); }
.industry-stat-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.industry-stat-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
}
.industry-stat-value { font-size: 13px; font-weight: 700; color: var(--teal-light); white-space: nowrap; }

/* ---- WHY BERG ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 12px;
}
.why-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.why-card:hover { transform: translateY(-5px); }
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}
.why-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.88); margin-bottom: 40px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.btn-white {
  background: var(--white);
  color: var(--accent-dark);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn-white:hover { background: transparent; color: var(--white); }

/* ---- CONTACT/DEMO SECTION ---- */
.demo-section { padding: 80px 0; }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.demo-info h2 { font-size: 34px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.demo-info p { font-size: 16px; color: var(--text-light); line-height: 1.7; margin-bottom: 28px; }
.demo-points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.demo-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.demo-points li span:first-child {
  width: 24px; height: 24px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}
.demo-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; }
.footer-bottom a { color: var(--teal-light); }
.alberta-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,173,181,0.12);
  border: 1px solid rgba(0,173,181,0.25);
  border-radius: 20px;
  font-size: 12px;
  color: var(--teal-light);
  font-weight: 600;
}

/* ---- COMPLIANCE BANNER ---- */
.compliance-banner {
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
  text-align: center;
}
.compliance-banner p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ---- NOTIFICATION BAR ---- */
.notif-bar {
  background: var(--accent);
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.notif-bar a { color: var(--white); text-decoration: underline; font-weight: 700; }
.notif-close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ---- WCB COMPLIANCE SECTION ---- */
.compliance-section { padding: 60px 0; }
.compliance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.compliance-card {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
}
.compliance-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.compliance-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.compliance-card h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.compliance-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.compliance-card .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: #e3f2fd;
  color: var(--primary);
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--primary-dark);
    padding: 20px 24px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu a {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .forms-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .forms-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}
