/* ===== NIAGARA BUILDING TRADES — SITE STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: #0b1a2e;
  color: #fff;
  font-size: 13px;
  padding: 10px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.top-bar a { color: #f0b429; font-weight: 600; transition: color 0.2s; }
.top-bar a:hover { color: #ffd966; }
.top-bar .wix-badge {
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.top-bar .wix-badge svg { width: 18px; height: 18px; fill: #fff; }

/* ===== HEADER ===== */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; flex-direction: column; }
.logo-top {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0b1a2e;
  letter-spacing: 1px;
}
.logo-top span { color: #e67e22; }
.logo-bottom {
  font-family: 'Oswald', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #556;
  letter-spacing: 0.5px;
  margin-top: -2px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: #0b1a2e; padding: 4px; }
nav ul { display: flex; gap: 32px; }
nav a {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 15px; font-weight: 500;
  color: #1a1a2e; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: #e67e22;
  transform: scaleX(0); transition: transform 0.25s;
}
nav a:hover { color: #e67e22; }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: #e67e22; }
nav a.active::after { transform: scaleX(1); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,26,46,0.7), rgba(230,126,34,0.25));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 40px 24px; }
.hero-sub {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 18px; letter-spacing: 6px;
  text-transform: uppercase; color: #f0b429;
  margin-bottom: 12px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -1;
}
.hero-title {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 4px;
}
.hero-title span { color: #f0b429; }
.hero-cta {
  display: inline-block; margin-top: 32px;
  padding: 14px 40px; background: #e67e22; color: #fff;
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 4px; transition: background 0.25s, transform 0.2s;
}
.hero-cta:hover { background: #d35400; transform: translateY(-2px); }

/* ===== HERO INNER PAGES ===== */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,26,46,0.75), rgba(230,126,34,0.2));
  z-index: 1;
}
.page-hero .hero-content { position: relative; z-index: 2; }
.page-hero .hero-title { font-size: clamp(2.2rem, 6vw, 4rem); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-title {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px; color: #0b1a2e;
}
.section-title.sub { font-size: 1.5rem; color: #e67e22; margin-bottom: 8px; }
.section-sub {
  font-size: 1.05rem; color: #666;
  max-width: 720px; margin-bottom: 40px;
}
.text-center { text-align: center; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text p { margin-bottom: 16px; font-size: 1rem; color: #333; line-height: 1.8; }
.about-text .tagline {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 1.3rem; color: #e67e22; font-weight: 600;
  letter-spacing: 1px; margin: 24px 0 16px;
}
.about-text .cta-link {
  display: inline-block; margin-top: 12px;
  padding: 12px 32px; background: #0b1a2e; color: #fff;
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 4px; transition: background 0.25s;
}
.about-text .cta-link:hover { background: #1a3352; }
.about-image { border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.about-image img { width: 100%; height: auto; }

/* ===== GALLERY ===== */
.gallery-section { background: #f4f6f8; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.gallery-card {
  position: relative; border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.gallery-card img { width: 100%; height: 240px; object-fit: cover; }
.gallery-card .card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; padding: 40px 16px 16px;
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 16px; font-weight: 500; letter-spacing: 0.5px;
}

/* ===== PROJECT LIST ===== */
.projects-intro { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.projects-intro p { font-size: 1.1rem; color: #444; margin-bottom: 8px; }
.projects-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; max-width: 800px; margin: 0 auto; }
.project-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #f9fafb;
  border-left: 4px solid #e67e22;
  border-radius: 0 6px 6px 0;
  font-weight: 600; color: #0b1a2e; font-size: 0.95rem;
}
.project-item .icon { color: #e67e22; font-size: 1.2rem; }
.project-item.more {
  grid-column: 1 / -1; justify-content: center;
  border-left-color: #888; color: #888; font-style: italic; font-weight: 400;
}

/* ===== ABOUT PAGE CONTENT ===== */
.content-block { margin-bottom: 48px; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #0b1a2e; margin-bottom: 20px;
  border-bottom: 3px solid #e67e22;
  padding-bottom: 8px; display: inline-block;
}
.content-block h3 {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 1.3rem; font-weight: 600;
  color: #e67e22;
  margin: 32px 0 16px; letter-spacing: 0.5px;
}
.content-block p { margin-bottom: 14px; color: #333; line-height: 1.8; font-size: 1rem; }
.content-block blockquote {
  border-left: 4px solid #e67e22;
  padding: 12px 20px; margin: 20px 0;
  background: #f9fafb;
  font-style: italic; color: #555; font-size: 1.05rem;
}
.content-block ul { margin: 12px 0 12px 24px; }
.content-block ul li { margin-bottom: 8px; color: #333; position: relative; padding-left: 8px; }
.content-block ul li::before { content: '•'; color: #e67e22; font-weight: bold; position: absolute; left: -16px; }

/* ===== TRAINING PAGE ===== */
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 40px 0; }
.training-image { border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.training-image img { width: 100%; height: 280px; object-fit: cover; }
.safety-statement {
  background: #f0f4f8;
  border: 1px solid #d0d8e0;
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}
.safety-statement h3 {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  color: #0b1a2e; margin-bottom: 16px; font-size: 1.2rem;
}
.safety-statement p { color: #333; line-height: 1.8; margin-bottom: 12px; }
.safety-statement ul { margin-left: 24px; }
.safety-statement ul li { margin-bottom: 8px; color: #333; }
.safety-graphics { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.safety-graphics img { width: 100%; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* ===== AFFILIATES TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 40px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.affiliates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.affiliates-table th {
  background: #0b1a2e;
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.affiliates-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
}
.affiliates-table tr:nth-child(even) td { background: #f8f9fa; }
.affiliates-table tr:hover td { background: #f0f4f8; }
.affiliates-table td a {
  color: #e67e22;
  font-weight: 600;
  transition: color 0.2s;
}
.affiliates-table td a:hover { color: #d35400; text-decoration: underline; }
.affiliates-table .section-row td {
  background: #f0f2f5;
  font-weight: 700;
  color: #0b1a2e;
  border-bottom: 2px solid #d0d4d8;
}
.affiliates-table .separator td {
  padding: 2px;
  background: transparent;
  border: none;
}

/* ===== CONTACT PAGE ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 20px; color: #0b1a2e;
}
.contact-info p { margin-bottom: 10px; font-size: 0.95rem; color: #444; line-height: 1.7; }
.contact-info a { color: #e67e22; font-weight: 600; transition: color 0.2s; }
.contact-info a:hover { color: #d35400; }
.contact-info .map-placeholder {
  width: 100%; height: 240px;
  background: #e8ecf0;
  border-radius: 8px;
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: 0.9rem; text-align: center;
  border: 2px dashed #ccc;
}

/* ===== FORM ===== */
.contact-form label {
  display: block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: #555; margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: #333; font-size: 15px;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: #e67e22; background: #fff;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  padding: 14px 40px; background: #e67e22; color: #fff;
  border: none; border-radius: 4px;
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s;
}
.contact-form button:hover { background: #d35400; }

/* ===== FOOTER ===== */
footer {
  background: #0b1a2e;
  color: #fff;
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-info h4 {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-size: 1.2rem; color: #f0b429;
  margin-bottom: 16px; letter-spacing: 1px;
}
.footer-info p { font-size: 0.9rem; color: #aaa; line-height: 1.7; margin-bottom: 8px; }
.footer-info a { color: #f0b429; font-weight: 600; }
.footer-info a:hover { color: #ffd966; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; margin-top: 48px;
  text-align: center; font-size: 0.85rem; color: #778;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .projects-list { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .training-grid { grid-template-columns: 1fr; }
  .safety-graphics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 2px solid #e67e22;
    padding: 16px 24px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  nav ul.open { display: flex; }
  nav a { padding: 10px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .page-hero { min-height: 30vh; }
  .top-bar { justify-content: center; font-size: 12px; }
  .affiliates-table { font-size: 0.8rem; }
  .affiliates-table th,
  .affiliates-table td { padding: 8px 10px; }
}
