/* ============================================================
   TRUE SOUTH FIELDOPS — V15 SITE STYLESHEET
   Critical Infrastructure FieldOps
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&family=Roboto+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --navy:        #0f1c2e;
  --navy-mid:    #1a2d45;
  --navy-light:  #243650;
  --orange:      #e85d26;
  --orange-warm: #f06a30;
  --cream:       #f4f0e8;
  --cream-dark:  #e8e2d6;
  --white:       #ffffff;
  --gray-light:  #f0f2f4;
  --gray-mid:    #8a9bae;
  --gray-dark:   #4a5568;
  --text-body:   #1e2d3d;
  --text-light:  #5a6a7a;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'Roboto Mono', monospace;

  --max-width: 1200px;
  --section-pad: 80px 24px;
  --radius: 4px;
  --transition: 0.22s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── UTILITY ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; }
p  { font-size: 1rem; line-height: 1.72; color: var(--text-body); }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--text-body); }
.mono { font-family: var(--font-mono); font-size: 0.85rem; }
.label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 12px; left: 14px; right: 14px;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--orange);
  overflow: visible;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 2;
}
.nav-logo img {
  height: 124px;
  width: auto;
  display: block;
  margin-top: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-dark);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: var(--navy-light); }
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--orange-warm) !important; }

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

@media (max-width: 860px) {
  .site-nav { top: 10px; left: 10px; right: 10px; }
  .nav-logo img { height: 102px; margin-top: 2px; }
  .nav-inner { height: 76px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 12px 0 20px;
    gap: 2px;
    border-bottom: 2px solid var(--orange);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 24px; width: 100%; }
  .nav-cta { margin: 8px 24px; width: calc(100% - 48px); text-align: center; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-warm); border-color: var(--orange-warm); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-sm { font-size: 0.85rem; padding: 10px 22px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(15,28,46,0.92) 0%, rgba(15,28,46,0.78) 50%, rgba(15,28,46,0.62) 100%),
    url('images/hero-electrical-room.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 130px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(232,93,38,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 60%, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.hero-grid {
  display: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-label { margin-bottom: 20px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .lead { color: var(--cream-dark); margin-bottom: 36px; max-width: 640px; }
.hero-seo-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-rule {
  width: 60px; height: 3px;
  background: var(--orange);
  margin-bottom: 28px;
  border-radius: 2px;
}

/* ── SECTION WRAPPERS ── */
.section { padding: var(--section-pad); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--cream-dark); }
.section-cream { background: var(--cream); }
.section-gray  { background: var(--gray-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label { margin-bottom: 12px; }
.section-header p { max-width: 600px; margin: 16px auto 0; color: var(--text-light); }

/* ── CARDS ── */
.card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(232,93,38,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.card p  { font-size: 0.95rem; color: var(--text-light); }

/* Dark cards */
.card-dark {
  background: var(--navy-mid);
  border-color: var(--navy-light);
}
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: var(--cream-dark); }
.card-dark .card-icon { background: rgba(232,93,38,0.2); }

/* ── PROOF BAR ── */
.proof-bar {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-light);
  border-bottom: 1px solid var(--navy-light);
  padding: 32px 24px;
}
.proof-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.proof-stat { text-align: center; }
.proof-stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  display: block;
}
.proof-stat .desc {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  margin-top: 4px;
}
.proof-divider { width: 1px; height: 48px; background: var(--navy-light); }
@media (max-width: 600px) { .proof-divider { display: none; } }

/* ── DOCTRINE CALLOUT ── */
.doctrine {
  background: var(--navy);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.doctrine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(232,93,38,0.06) 0%, transparent 70%);
}
.doctrine-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.doctrine-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 32px 0;
}
.doctrine-lines p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.doctrine-lines p:last-child { color: var(--orange); }

/* ── SCOPE BOX ── */
.scope-box {
  border: 1px solid var(--navy-light);
  border-left: 4px solid var(--orange);
  background: rgba(255,255,255,0.04);
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-top: 32px;
}
.scope-box h4 { color: var(--orange); margin-bottom: 12px; }
.scope-box p { font-size: 0.9rem; color: var(--cream-dark); }
.scope-box-light {
  background: var(--white);
  border-color: #c7d0dc;
}
.scope-box-light p { color: var(--text-body); }

/* ── LIST STYLES ── */
.check-list { list-style: none; }
.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--cream-dark);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Light version for dark sections */
.check-list-light li { color: var(--cream-dark); border-bottom-color: var(--navy-light); }

/* ── CREDENTIAL BLOCK ── */
.cred-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.cred-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(232,93,38,0.12);
  color: var(--orange);
  border: 1px solid rgba(232,93,38,0.3);
  padding: 6px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.cred-badge-dark {
  background: var(--navy-mid);
  color: var(--cream-dark);
  border-color: var(--navy-light);
}

/* ── TWO-COL LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-3-2 { grid-template-columns: 3fr 2fr; }
@media (max-width: 800px) {
  .two-col, .two-col-3-2 { grid-template-columns: 1fr; gap: 40px; }
}

/* ── SERVICE TIER BLOCK ── */
.tier-list { display: flex; flex-direction: column; gap: 2px; }
.tier-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.tier-item:hover { background: var(--gray-light); }
.tier-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.4;
  min-width: 40px;
  line-height: 1;
  padding-top: 4px;
}
.tier-body h3 { margin-bottom: 6px; }
.tier-body p  { font-size: 0.92rem; color: var(--text-light); }

/* ── QUOTE / CALLOUT ── */
.callout {
  background: var(--orange);
  color: var(--white);
  padding: 40px 48px;
  border-radius: var(--radius);
  text-align: center;
}
.callout h2, .callout h3 { color: var(--white); }
.callout p { color: rgba(255,255,255,0.88); }

.blockquote {
  border-left: 4px solid var(--orange);
  padding: 20px 28px;
  background: var(--gray-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: var(--text-body);
  font-style: italic;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--orange);
  padding: 60px 24px 32px;
  color: var(--cream-dark);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-brand .brand-tag {
  font-size: 0.78rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.88rem; color: var(--gray-mid); line-height: 1.6; }
.footer-nav h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 0.88rem; color: var(--gray-mid); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-contact p { font-size: 0.88rem; color: var(--gray-mid); line-height: 1.8; }
.footer-contact a { color: var(--cream-dark); }
.footer-contact a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--gray-mid); }
.footer-scope {
  font-size: 0.72rem;
  color: rgba(138,155,174,0.7);
  max-width: 560px;
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-scope { text-align: left; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── PAGE HERO (interior) ── */
.page-hero {
  background: var(--navy);
  padding: 170px 24px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange) 40%, transparent);
}
.page-hero .label { margin-bottom: 16px; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero .lead { color: var(--cream-dark); max-width: 640px; }

/* ── SEVERITY TABLE ── */
.severity-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.severity-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.severity-table td { padding: 12px 16px; border-bottom: 1px solid var(--cream-dark); font-size: 0.9rem; }
.severity-table tr:last-child td { border-bottom: none; }
.p1 { border-left: 4px solid #d93025; }
.p2 { border-left: 4px solid #f4a30a; }
.p3 { border-left: 4px solid #1e88e5; }
.p4 { border-left: 4px solid #34a853; }

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-body);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── UTILITY SPACING ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
