:root {
  --navy: #06284a;
  --navy-2: #0a3b66;
  --orange: #f27a16;
  --gold: #f4b51c;
  --ink: #172033;
  --muted: #607086;
  --line: #dce4ec;
  --soft: #f4f7fa;
  --white: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img { display: block; width: 132px; height: 62px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 8px; }
nav a, nav button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}
nav a:hover, nav button:hover { background: var(--soft); color: var(--navy); }
nav form { margin: 0; }
.nav-action, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
}
.nav-action, .primary { background: var(--orange); color: var(--white); }
.secondary { background: var(--white); color: var(--navy); border-color: var(--line); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}
.slides, .slide { position: absolute; inset: 0; }
.slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 900ms ease;
}
.slide.active { opacity: 1; }
.slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,40,74,.96), rgba(6,40,74,.74) 45%, rgba(6,40,74,.1));
}
.hero-content {
  position: relative;
  width: min(780px, 92vw);
  padding: 88px clamp(22px, 5vw, 70px);
  color: var(--white);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--navy); letter-spacing: 0; }
.hero h1, .page h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  line-height: 1.03;
  color: inherit;
}
.hero p:not(.eyebrow), .lead, .page p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}
.hero p:not(.eyebrow) { max-width: 690px; color: #d7e2ec; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.standards, .services, .page { padding: 72px clamp(20px, 5vw, 70px); }
.standards {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) 1.4fr;
  gap: 32px;
  align-items: center;
  background: var(--soft);
}
.standard-grid, .service-grid, .client-grid, .dashboard-grid, .metrics {
  display: grid;
  gap: 16px;
}
.standard-grid { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
.standard-grid span, .service-grid article, .client-grid article, .dashboard-grid article, .panel-card, .login-card, .ticket-row, .metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 40, 74, .06);
}
.standard-grid span {
  display: grid;
  min-height: 68px;
  place-items: center;
  padding: 12px;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}
.section-head { max-width: 800px; margin-bottom: 30px; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid article, .client-grid article, .dashboard-grid article, .panel-card { padding: 24px; }
.service-grid strong, .client-grid strong { display: block; color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
.client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.client-grid span { color: var(--orange); font-weight: 900; }
.page { min-height: 66vh; }
.two-col, .contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 40px;
  align-items: start;
}
.panel-card ul { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact-list p { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.contact-list strong, .contact-list span { display: block; }
.contact-list span { margin-top: 4px; color: var(--muted); }

.site-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.site-form p, .login-card p { margin: 0; display: grid; gap: 7px; color: var(--navy); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
}
.auth-page { display: grid; min-height: 76vh; place-items: center; padding: 48px 18px; background: var(--soft); }
.login-card { display: grid; width: min(460px, 100%); gap: 14px; padding: 30px; }
.login-logo-shell {
  display: grid;
  place-items: center;
  min-height: 126px;
  padding: 12px;
  border-radius: 4px;
  background: #001b32;
}
.login-card img { width: min(260px, 100%); height: auto; }
.login-card h1 { margin: 0; }
.prospect-call {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  text-align: center;
  line-height: 1.45;
}
.prospect-call a {
  display: inline;
  color: var(--orange);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workbench { background: #f8fafc; }
.workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}
.workbench-head h1 { margin: 0; color: var(--white); font-size: clamp(2rem, 4vw, 3.5rem); }
.workbench-head p:not(.eyebrow) { color: #cbd8e4; margin-bottom: 0; }
.ticket-form { margin: 18px 0; background: var(--white); }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; }
.metrics article { display: grid; gap: 8px; padding: 18px; }
.metrics strong { color: var(--navy); font-size: 2rem; }
.metrics span { color: var(--muted); font-weight: 850; }
.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid h2 { margin-top: 0; font-size: 1.15rem; }
.dashboard-grid p { margin: 8px 0 0; color: var(--muted); }
.ticket-list { display: grid; gap: 12px; margin-top: 18px; }
.ticket-row { display: flex; justify-content: space-between; gap: 18px; padding: 18px; }
.ticket-row h3 { margin: 12px 0 6px; }
.ticket-row p { margin: 0; }
.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #e9eef5;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
}
.pill.critical { background: #ffe8df; color: #a73a12; }
.pill.urgent { background: #fff4cc; color: #775000; }
.pill.scheduled { background: #e5f4eb; color: #24623a; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions a { min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--navy); font-weight: 850; padding: 9px 12px; }
.messages { padding: 12px clamp(18px, 4vw, 56px); background: #e5f4eb; color: #24623a; font-weight: 850; }
.messages p { margin: 0; }
.questionnaire-page {
  background: #f8fafc;
}
.questionnaire-form {
  max-width: 1080px;
  background: var(--white);
}
fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
legend {
  padding: 0 10px;
  color: var(--navy);
  font-size: 1.16rem;
  font-weight: 950;
}
.form-grid,
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.maintenance-option {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 950;
}
.check-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}
.quantity-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: var(--white);
}
.quantity-panel p {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--navy);
  color: var(--white);
}
footer img { width: 132px; height: auto; }
footer div { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(6,40,74,.16);
  }
  nav.open { display: flex; }
  .standards, .two-col, .contact-page { grid-template-columns: 1fr; }
  .standard-grid, .service-grid, .client-grid, .dashboard-grid, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 16px; }
  .brand img { width: 112px; height: 54px; }
  .hero { min-height: 590px; }
  .slides::after { background: linear-gradient(180deg, rgba(6,40,74,.76), rgba(6,40,74,.95)); }
  .hero-content { padding: 58px 20px; }
  .standard-grid, .service-grid, .client-grid, .dashboard-grid, .metrics, .form-grid, .quantity-grid { grid-template-columns: 1fr; }
  .ticket-row, footer { flex-direction: column; align-items: stretch; }
}
