/* =============================================
   LOTO Compliance Hub — Industrial Precision
   Design System v2.0
   ============================================= */

/* --- Variables --- */
:root {
  /* Palette */
  --ink:           #07101f;
  --navy:          #0d1a2e;
  --navy-mid:      #142236;
  --navy-light:    #1c2e46;
  --navy-surface:  #243550;
  --amber:         #f0a020;
  --amber-dark:    #d08818;
  --amber-glow:    rgba(240,160,32,0.18);
  --red-cta:       #c0392b;
  --red-cta-hover: #a93226;
  --warm-white:    #f5f0e8;
  --text:          #e8e4dc;
  --text-secondary:#9a9690;
  --border:        rgba(255,255,255,0.08);
  --border-amber:  rgba(240,160,32,0.35);

  /* Hazard stripe — used as texture overlay */
  --stripe: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(240,160,32,0.07) 8px,
    rgba(240,160,32,0.07) 16px
  );
  --stripe-strong: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(240,160,32,0.15) 6px,
    rgba(240,160,32,0.15) 12px
  );

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Barlow', Arial, sans-serif;

  /* Layout */
  --max-width: 1100px;
  --radius:    4px;
  --shadow:    0 2px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);

  color-scheme: dark;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--navy);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--amber-dark); }
ul { padding-left: 1.25rem; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--warm-white);
}
h1 { font-size: 2.8rem; text-wrap: balance; }
h2 { font-size: 2.2rem; text-wrap: balance; }
h3 { font-size: 1.35rem; text-transform: none; font-weight: 700; letter-spacing: 0; }
p  { margin-bottom: 1rem; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 72px 0; }
[id] { scroll-margin-top: 72px; }

/* Alternating section backgrounds */
section:nth-child(even):not(.hero):not(.service-hero):not(.location-hero):not(.cta-section) {
  background: var(--navy-mid);
}
section:nth-child(odd):not(.hero):not(.service-hero):not(.location-hero):not(.cta-section) {
  background: var(--navy);
}

/* --- Navigation --- */
nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--amber);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  color: var(--warm-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: rgba(245,240,232,0.75);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); text-decoration: none; }
.nav-cta {
  background: var(--amber) !important;
  color: var(--ink) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--amber-dark) !important;
  color: var(--ink) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  background: var(--ink);
  position: relative;
  padding: 88px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stripe);
  opacity: 1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
}
.hero h1 {
  color: var(--warm-white);
  font-size: 3.2rem;
  margin-bottom: 1rem;
  max-width: 700px;
  position: relative;
}
.hero h1 span { color: var(--amber); }
.hero p {
  font-size: 1.1rem;
  color: rgba(245,240,232,0.78);
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 300;
  position: relative;
}
.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: relative;
}
.badge {
  background: rgba(240,160,32,0.12);
  border: 1px solid var(--border-amber);
  color: var(--amber);
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  border: none;
  touch-action: manipulation;
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--red-cta);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(192,57,43,0);
}
.btn-primary:hover {
  background: var(--red-cta-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(192,57,43,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 2px solid rgba(245,240,232,0.35);
}
.btn-outline:hover {
  background: rgba(245,240,232,0.07);
  color: var(--warm-white);
  border-color: rgba(245,240,232,0.6);
  text-decoration: none;
}
.btn-amber {
  background: var(--amber);
  color: var(--ink);
}
.btn-amber:hover {
  background: var(--amber-dark);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(240,160,32,0.3);
}
.btn-lg { padding: 16px 38px; font-size: 1.1rem; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--navy-mid);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  color: rgba(245,240,232,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item::before {
  content: "✓";
  color: var(--amber);
  font-weight: 900;
  font-size: 0.9rem;
}

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
}
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  padding: 3px 10px;
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--navy-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border-top-color: var(--amber);
  border-color: var(--border-amber);
}
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--warm-white);
}
.card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 1rem;
}
.card a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.card a:hover { color: var(--amber-dark); }

/* --- Two-col layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* --- Check List --- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 7px 0 7px 1.75rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 900;
}

/* --- Industries Strip --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.industry-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--navy-light);
  transition: background 0.2s, border-color 0.2s;
  border-left: 3px solid transparent;
}
.industry-item:hover {
  background: var(--navy-surface);
  border-left-color: var(--amber);
}
.industry-item .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.industry-item p {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  transition: color 0.2s;
}
.industry-item:hover p {
  color: var(--amber);
}

/* --- Urgency Box --- */
.urgency-box {
  background: var(--navy-surface);
  border-left: 4px solid var(--amber);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.urgency-box::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px;
  height: 100%;
  background: var(--stripe-strong);
  opacity: 0.6;
}
.urgency-box p {
  margin: 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.urgency-box strong { color: var(--amber); }

/* --- CTA Section --- */
.cta-section {
  background: var(--ink);
  position: relative;
  color: var(--warm-white);
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stripe);
  opacity: 0.8;
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
}
.cta-section h2 {
  color: var(--warm-white);
  font-size: 2.6rem;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p {
  color: rgba(245,240,232,0.72);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-weight: 300;
  position: relative;
}

/* --- Contact Form --- */
.form-section { background: var(--navy-mid); }
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--navy-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-amber);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-wrap h2 { margin-bottom: 0.4rem; color: var(--warm-white); }
.form-wrap .sub {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  font-weight: 300;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.form-group select option { background: var(--navy); color: var(--text); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 0.75rem; }
.form-submit .btn { width: 100%; font-size: 1.05rem; padding: 15px; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  text-align: center;
}
.form-phone {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-align: center;
}
.form-phone a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}
.form-phone a:hover { text-decoration: underline; }

/* --- Location Hero --- */
.location-hero {
  background: var(--ink);
  position: relative;
  color: var(--warm-white);
  padding: 64px 0;
  overflow: hidden;
}
.location-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stripe);
  pointer-events: none;
}
.location-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
}
.location-hero h1 {
  color: var(--warm-white);
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.location-hero p {
  color: rgba(245,240,232,0.75);
  font-size: 1.05rem;
  max-width: 620px;
  font-weight: 300;
  position: relative;
}

/* --- Service Hero --- */
.service-hero {
  background: var(--ink);
  position: relative;
  color: var(--warm-white);
  padding: 64px 0;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stripe);
  pointer-events: none;
}
.service-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
}
.service-hero h1 {
  color: var(--warm-white);
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.service-hero p {
  color: rgba(245,240,232,0.75);
  font-size: 1.05rem;
  max-width: 620px;
  font-weight: 300;
  position: relative;
}
.service-hero .hero-actions { margin-top: 1.5rem; position: relative; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  margin-bottom: 1rem;
  position: relative;
}
.breadcrumb a { color: rgba(245,240,232,0.45); }
.breadcrumb a:hover { color: var(--amber); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.3rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1rem;
  color: var(--warm-white);
  cursor: pointer;
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.faq-item p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin: 0;
  font-weight: 300;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--amber);
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

/* --- Footer --- */
footer {
  background: var(--ink);
  color: rgba(245,240,232,0.55);
  padding: 56px 0 24px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--warm-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--amber); }
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 300;
}
.footer-phone {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.footer-phone a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}
.footer-phone a:hover { text-decoration: underline; }
footer h4 {
  font-family: var(--font-display);
  color: var(--warm-white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: rgba(245,240,232,0.5);
  font-size: 0.88rem;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245,240,232,0.35);
}

/* --- Hero Two-Col Layout --- */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-img img {
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.55);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--border-amber);
}

/* --- Card Images --- */
.card-img {
  display: block;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* --- Section Feature Images --- */
.section-feature-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* --- Scroll Reveal (JS-driven) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
}

@media (max-width: 700px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--ink);
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 2px solid var(--amber);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .cta-section h2 { font-size: 2rem; }
  .location-hero h1,
  .service-hero h1 { font-size: 2rem; }
}
