:root {
  --navy: #0B2D4E;
  --navy-2: #08243f;
  --blue: #1A6DB5;
  --green: #0F6E56;
  --charcoal: #1E2329;
  --steel: #4B5563;
  --light: #F5F7FA;
  --line: #D9E1EA;
  --white: #FFFFFF;
  --shadow: 0 18px 50px rgba(11,45,78,.14);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Keep anchor targets clear of the sticky nav when jumped to */
:target { scroll-margin-top: 130px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: var(--navy-2);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  padding: 9px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.topbar strong { color: #fff; }

.nav {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 320px; }
.logo-img-wrap {
  width: 190px;
  height: 82px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(11,45,78,.18);
  flex-shrink: 0;
}
.summit-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand h1 { font-family: 'Sora', sans-serif; font-size: 16px; line-height: 1.1; color: var(--navy); }
.brand p { font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.links { display: flex; gap: 20px; align-items: center; color: var(--steel); font-size: 14px; font-weight: 600; }
.links a { white-space: nowrap; }
.links a:hover { color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid rgba(255,255,255,.5); }
.btn-secondary:hover { background: var(--light); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,36,63,.95) 0%, rgba(11,45,78,.86) 45%, rgba(11,45,78,.45) 100%),
    url('/static/img/hero.jpg') center/cover no-repeat;
  color: #fff;
}
.hero .container { min-height: 640px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 70px 0; }
.eyebrow { color: #9fd0f7; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; overflow-wrap: break-word; }
.hero h2 { font-family: 'Sora', sans-serif; font-size: clamp(38px, 5vw, 66px); line-height: 1.03; letter-spacing: -.04em; margin-bottom: 18px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.86); max-width: 680px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 12px; font-size: 13px; color: rgba(255,255,255,.88); }

.intake-card {
  background: rgba(255,255,255,.96);
  color: var(--charcoal);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.45);
  scroll-margin-top: 130px;
}
.intake-card h3 { font-family: 'Sora', sans-serif; color: var(--navy); font-size: 24px; margin-bottom: 6px; }
.intake-card p { color: var(--steel); font-size: 14px; margin-bottom: 18px; }
.mini-form { display: grid; gap: 10px; }
.mini-form input, .mini-form select, .mini-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 13px; font: inherit; outline: none;
}
.mini-form input:focus, .mini-form select:focus, .mini-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,109,181,.12); }
.mini-form textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

section { padding: 84px 0; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-head h2 { font-family: 'Sora', sans-serif; color: var(--navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.section-head p { max-width: 520px; color: var(--steel); font-size: 16px; }

.trust { padding: 26px 0; background: var(--light); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13px; font-weight: 700; color: var(--navy); text-align: center; display: flex; align-items: center; justify-content: center; }

.services { background: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(11,45,78,.04);
  transition: .18s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(26,109,181,.28); }
.card-media {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--navy);
  position: relative;
}
.card-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,45,78,0) 55%, rgba(11,45,78,.28) 100%);
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(26,109,181,.1); color: var(--blue); font-size: 22px;
  margin: -42px 0 14px; position: relative; z-index: 1;
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(11,45,78,.12);
}
.card-media + .card-body .icon { background: #fff; }
.card h3 { font-family: 'Sora', sans-serif; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--steel); font-size: 14px; }

.forensic {
  background:
    linear-gradient(135deg, rgba(8,36,63,.98), rgba(11,45,78,.94)),
    url('/static/img/forensic.jpg') center/cover no-repeat;
  color: #fff;
}
.forensic-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; }
.forensic h2 { font-family: 'Sora', sans-serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 16px; }
.forensic p { color: rgba(255,255,255,.82); font-size: 17px; margin-bottom: 24px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px; font-weight: 700; font-size: 14px; }

.industries { background: var(--light); }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.industry h3 { color: var(--navy); font-family: 'Sora', sans-serif; margin-bottom: 6px; }
.industry p { color: var(--steel); font-size: 14px; }

.maintenance { background: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.maintenance .split { align-items: stretch; }
.panel { background: var(--light); border: 1px solid var(--line); border-radius: 26px; padding: 32px; display: flex; flex-direction: column; }
.panel .btn { margin-top: auto; align-self: flex-start; }
.panel h2 { color: var(--navy); font-family: 'Sora', sans-serif; font-size: 38px; line-height: 1.1; margin-bottom: 14px; letter-spacing: -.035em; }
.panel p { color: var(--steel); margin-bottom: 20px; }
.checklist { display: grid; gap: 10px; margin: 20px 0 24px; }
.checklist li { list-style: none; color: var(--charcoal); font-weight: 600; }
.checklist li:before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 8px; }

.reviews { background: var(--navy); color: #fff; padding: 64px 0; }
.review-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.reviews h2 { font-family: 'Sora', sans-serif; font-size: 34px; margin-bottom: 8px; }
.stars { color: #FFCC4D; font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; }
.reviews p { color: rgba(255,255,255,.78); }

.service-area { background: var(--light); }
.city-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.city { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--navy); font-weight: 700; font-size: 14px; }

.cta { background: linear-gradient(135deg, var(--charcoal), var(--navy)); color: #fff; text-align: center; }
.cta h2 { font-family: 'Sora', sans-serif; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin-bottom: 14px; letter-spacing: -.035em; }
.cta p { max-width: 720px; margin: 0 auto 28px; color: rgba(255,255,255,.8); font-size: 17px; }

footer { background: #081c31; color: rgba(255,255,255,.76); padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer h3, footer h4 { color: #fff; font-family: 'Sora', sans-serif; margin-bottom: 12px; }
footer a { display: block; margin: 8px 0; font-size: 14px; color: rgba(255,255,255,.72); }
footer a:hover { color: #fff; }
footer a.eml { display: inline; margin: 0; font-size: inherit; color: rgba(255,255,255,.82); cursor: pointer; word-break: break-word; }
footer a.eml:hover { color: #fff; text-decoration: underline; }
.fine { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Form status message (added for the working FastAPI/SendGrid intake form) */
.form-status { font-size: 14px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(15,110,86,.1); color: var(--green); border: 1px solid rgba(15,110,86,.3); }
.form-status.is-error { background: rgba(178,34,34,.08); color: #b22222; border: 1px solid rgba(178,34,34,.3); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* Hide the inline nav links once the full nav (logo + links + button) no
   longer fits on one row; below this the header shows brand + CTA only. */
@media (max-width: 1152px) {
  .links { display: none; }
}
@media (max-width: 1024px) {
  .hero .container, .forensic-wrap, .split { grid-template-columns: 1fr; }
  .grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar .container, .review-box, .section-head { flex-direction: column; align-items: flex-start; }
  .hero .container { min-height: auto; padding: 48px 0; }
  .brand { min-width: 0; }
  .brand h1 { font-size: 14px; }
  .logo-img-wrap { width: 150px; height: 65px; }
  .grid, .industry-grid, .feature-list, .form-row, .trust-grid, .footer-grid, .review-box { grid-template-columns: 1fr; }
  .review-box .btn { justify-self: start; }
  .panel { min-width: 0; }
  /* Allow long CTA labels to wrap on phones so they can't force a content
     column wider than the viewport (prevents horizontal overflow). */
  .btn { white-space: normal; }
  .nav-inner { flex-direction: column; gap: 12px; }
  .nav .btn { padding: 10px 12px; font-size: 13px; }
  .nav-inner > .btn-primary { align-self: center; }
  section { padding: 58px 0; }
}
