/* Construction Safety Insights, LLC — site stylesheet */

:root {
  --navy: #0b2138;
  --navy-2: #12314f;
  --charcoal: #1b1f24;
  --orange: #e8590c;
  --orange-2: #ff7a1a;
  --yellow: #f4b400;
  --bg: #f6f7f9;
  --bg-card: #ffffff;
  --border: #e2e5ea;
  --text: #22282f;
  --text-muted: #5b6470;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(11, 33, 56, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.9rem; text-transform: uppercase; }
h2 { font-size: 2.1rem; text-transform: uppercase; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--text); }

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

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

img { max-width: 100%; display: block; }

/* Hazard stripe accent bar */
.stripe-bar {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--yellow),
    var(--yellow) 14px,
    var(--charcoal) 14px,
    var(--charcoal) 28px
  );
}

/* ===== Header / Nav ===== */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand-text { line-height: 1.2; }
.brand-text .full {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-text .tag {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--orange-2) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0d2942 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,89,12,0.25), transparent 70%);
}

.hero .container { position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 { color: var(--white); max-width: 780px; }
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 2em;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 64px 0 54px;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 700px; font-size: 1.1rem; margin-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-2); text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 72px 0; }
section.alt { background: var(--white); }
section.dark {
  background: var(--charcoal);
  color: var(--white);
}
section.dark h2, section.dark h3 { color: var(--white); }
section.dark p { color: rgba(255,255,255,0.75); }

.section-head { max-width: 700px; margin: 0 0 40px; }
.section-head.center { margin: 0 auto 48px; text-align: center; }

/* ===== Credential strip ===== */
.cred-strip {
  background: var(--navy);
  padding: 26px 0;
}
.cred-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: center;
  align-items: center;
}
.cred-item {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cred-item .dot { color: var(--yellow); }

/* ===== Cards / Grids ===== */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(232,89,12,0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.96rem; }

/* Service detail card with left accent */
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.service-block h3 { margin-bottom: 8px; }
.service-block ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-muted); }
.service-block li { margin-bottom: 6px; }

/* Project entries */
.project-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.project-entry:last-child { border-bottom: none; }
.project-years {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--orange);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.project-entry h3 { margin-bottom: 4px; }
.project-entry .firm {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  background: rgba(11,33,56,0.06);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 3px;
}

/* Insights / Blog cards */
.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.insight-card .thumb {
  height: 130px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  position: relative;
}
.insight-card .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(244,180,0,0.12), rgba(244,180,0,0.12) 10px, transparent 10px, transparent 20px);
}
.insight-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.insight-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}
.insight-card h3 { margin-bottom: 10px; }
.insight-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.read-more {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-top: 14px;
  display: inline-block;
}

.article-body h2 { margin-top: 1.6em; }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

/* Quote */
.quote-block {
  border-left: 4px solid var(--yellow);
  padding: 6px 0 6px 24px;
  margin: 30px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.15rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-info-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(232,89,12,0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { margin: 0 0 4px; color: var(--navy); font-family: 'Inter', sans-serif; font-size: 1rem; }
.contact-info-item p { margin: 0; color: var(--text-muted); }

form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--bg);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.92); margin-bottom: 26px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.7); }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .project-entry { grid-template-columns: 1fr; gap: 6px; }
  nav.main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    display: none;
    padding: 10px 20px 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
