/* ==========================================================================
   Lebra Engineering & Design, LLC — Shared Stylesheet
   Palette: Navy / Slate Gray / Steel Blue accents / Safety Orange CTA
   ========================================================================== */

:root {
  --navy: #0f2942;
  --navy-dark: #0a1d30;
  --blue: #1d4e78;
  --steel: #2c7ea6;
  --steel-light: #e8f1f6;
  --slate: #4a5568;
  --slate-light: #6b7684;
  --bg-light: #f5f7f9;
  --bg-white: #ffffff;
  --border: #dfe4e9;
  --orange: #e8672c;
  --orange-dark: #cc5620;
  --green: #1f8a4c;
  --text-dark: #1a2733;
  --text-body: #3a4652;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 41, 66, 0.16);
  --maxw: 1200px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { margin-bottom: 14px; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}
.section-alt { background: var(--bg-light); }
.section-navy { background: var(--navy); color: #cfe0ee; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-header { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-header p { color: var(--slate); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(232,103,44,0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: transparent; border-color: #fff; color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #b9cddd;
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #b9cddd; }
.topbar .tb-phone { font-weight: 700; color: #fff; }
.topbar .tb-left span { margin-right: 18px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 14px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  line-height: 1.1;
}
.logo-img { height: 42px; width: auto; display: block; max-width: 100%; }
.footer-logo-img { height: 70px; width: auto; display: block; margin-bottom: 14px; }
nav.main-nav ul { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; row-gap: 4px; justify-content: flex-end; }
nav.main-nav a { font-weight: 600; color: var(--slate); font-size: 0.92rem; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--orange); }
.nav-cta-group { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone { font-weight: 700; color: var(--navy); font-size: 0.95rem; white-space: nowrap; flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

@media (max-width: 1300px) and (min-width: 901px) {
  .nav-wrap { padding: 12px 20px; }
  .logo-img { height: 36px; }
  nav.main-nav ul { gap: 12px; }
  nav.main-nav a { font-size: 0.8rem; }
  .nav-cta-group { gap: 8px; }
  .nav-phone { font-size: 0.8rem; }
  .btn-sm { padding: 8px 12px; font-size: 0.8rem; }
}

@media (max-width: 900px) {
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); padding: 10px 24px 24px; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .menu-toggle { display: block; }
  .nav-phone { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(10,29,48,0.93), rgba(15,41,66,0.85)), var(--navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 86px 0 70px;
}
.hero h1, .hero h2 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.18rem; color: #cfe0ee; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 30px; }
.hero-badges span { font-size: 0.88rem; color: #e7eef4; display: flex; align-items: center; gap: 6px; }
.hero-badges span::before { content: "✓"; color: var(--orange); font-weight: 900; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text-body);
  box-shadow: var(--shadow-lg);
}
.hero-form-card h3 { color: var(--navy); }
.hero-form-card .sub { color: var(--slate); font-size: 0.9rem; margin-bottom: 18px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--steel-light);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.trust-strip .item { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.trust-strip .item .ic { color: var(--orange); font-size: 1.1rem; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--steel-light); color: var(--steel);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card ul { margin: 10px 0 0; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 0.95rem; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.img-placeholder {
  background: linear-gradient(135deg, var(--steel-light), #cfe0ee);
  border: 1px dashed var(--steel);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 14px;
  min-height: 220px;
}

.case-img {
  background: linear-gradient(135deg, var(--steel-light), #cfe0ee);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 24px;
  overflow: hidden;
}
.case-img img { width: 110px; height: 110px; }
.case-img.case-photo {
  padding: 0;
  min-height: 220px;
}
.case-img.case-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ---------- Process steps ---------- */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 1000px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: left; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-family: var(--font-head);
}

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.testimonial p.quote { font-style: italic; color: var(--text-dark); margin-bottom: 14px; }
.testimonial .who { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.testimonial .who span { display: block; font-weight: 400; color: var(--slate-light); font-size: 0.85rem; }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- Case studies ---------- */
.case-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-card .body { padding: 22px; }
.case-card .tag { display: inline-block; background: var(--steel-light); color: var(--steel); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- FAQ (details/summary accordion) ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 14px;
  font-size: 1.4rem; color: var(--orange); font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding-bottom: 18px; color: var(--text-body); }

/* ---------- Final CTA / Form ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: 16px;
  padding: 50px;
}
.cta-band h2 { color: #fff; }
.cta-band .container-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .cta-band .container-inner { grid-template-columns: 1fr; } .cta-band { padding: 32px 24px; } }

form.lead-form label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; margin-top: 12px; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(44,126,166,0.15);
}
form.lead-form .btn { margin-top: 20px; }
.form-disclaimer { font-size: 0.78rem; color: var(--slate-light); margin-top: 10px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #a9bccb; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
footer.site-footer ul li { margin-bottom: 9px; font-size: 0.92rem; }
footer.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-logo { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.2rem; margin-bottom: 12px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy); z-index: 998;
  padding: 12px 16px; box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
  gap: 10px;
}
.sticky-cta a { flex: 1; text-align: center; }
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 68px; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--slate-light); padding: 14px 0; }
.breadcrumb a { color: var(--steel); }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag-pill { background: var(--steel-light); color: var(--blue); font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
