:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --navy-3: #1a3a66;
  --red: #c4122f;
  --red-dark: #9a0e24;
  --gold: #d4a017;
  --ink: #1c2430;
  --muted: #5b6777;
  --line: #dce3ec;
  --paper: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.12);
  --radius: 14px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--red); }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #d5deea;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd36a; }
.topbar span { margin-right: 16px; }

/* Header */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.brand h1 {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
nav > ul > li { position: relative; }
nav a {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
}
nav > ul > li > a:hover,
nav > ul > li.active > a,
nav > ul > li:hover > a {
  background: #eef3f9;
  color: var(--red);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 20;
}
nav li:hover > .dropdown,
nav li:focus-within > .dropdown { display: block; }
.dropdown a {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}
.dropdown a:hover { background: var(--paper); color: var(--red); }

/* Hero */
.hero {
  background:
    linear-gradient(100deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.62) 55%, rgba(196, 18, 47, 0.45) 100%),
    url("../images/powerpanel.JPG") center/cover no-repeat;
  color: #fff;
  min-height: 460px;
  display: grid;
  align-items: center;
}
.hero-inner { padding: 72px 0; max-width: 720px; }
.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero p { font-size: 18px; color: #e6edf7; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero {
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.88), rgba(196, 18, 47, 0.55)),
    url("../images/about.jpg") center/cover no-repeat;
  color: #fff;
  padding: 54px 0;
}
.page-hero.hero-products { background-image: linear-gradient(90deg, rgba(11, 31, 58, 0.88), rgba(196, 18, 47, 0.55)), url("../images/our_products.gif"); }
.page-hero.hero-contact { background-image: linear-gradient(90deg, rgba(11, 31, 58, 0.88), rgba(196, 18, 47, 0.55)), url("../images/contactus.png"); }
.page-hero.hero-career { background-image: linear-gradient(90deg, rgba(11, 31, 58, 0.88), rgba(196, 18, 47, 0.55)), url("../images/career.gif"); }
.page-hero h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 8px;
}
.crumbs { color: #d9e2ef; font-size: 14px; }
.crumbs a { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
input.btn { width: auto; cursor: pointer; }

/* Stats / sections */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section h3,
.block h3 {
  font-family: "Outfit", sans-serif;
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--navy);
}
.lead { color: var(--muted); max-width: 720px; margin: 0 0 28px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.stat {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-size: 28px;
  color: var(--red);
  font-family: "Outfit", sans-serif;
}
.stat span { color: var(--muted); font-size: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.grid-3, .grid-4, .cards {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4, .cards { grid-template-columns: repeat(4, 1fr); }
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 320px; object-fit: cover; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #e8eef6;
}
.card-body { padding: 18px; flex: 1; }
.card h4 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  color: var(--navy);
}
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.more { font-weight: 700; color: var(--red); font-size: 14px; }

.checks { padding: 0; margin: 16px 0 0; list-style: none; }
.checks li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}
.checks li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  left: 0;
  top: 8px;
}

/* Layout with sidebar */
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  padding: 36px 0 64px;
  align-items: start;
}
.sidebar, .content, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel h4 {
  font-family: "Outfit", sans-serif;
  color: var(--navy);
  margin: 0 0 8px;
}
.panel p { color: var(--muted); margin: 0; }
.sidebar { padding: 18px; position: sticky; top: 92px; }
.sidebar h4 {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  display: inline-block;
  padding-bottom: 4px;
}
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.side-nav a:hover, .side-nav a.active { color: var(--red); }
.content { padding: 28px; }
.content h3 {
  font-family: "Outfit", sans-serif;
  color: var(--navy);
  margin-top: 0;
}
.content p { color: #334155; }

.product {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.product:last-child { border-bottom: 0; }
.product h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: "Outfit", sans-serif;
}
.product img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}
.placeholder {
  height: 160px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8eef6, #f7d9df);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th,
table.data td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
table.data th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
table.data tr:nth-child(even) td { background: #f8fafc; }
table.data td:first-child { width: 48px; color: var(--muted); }

/* Forms */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.req { color: var(--red); }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(196, 18, 47, 0.25);
  border-color: var(--red);
}
.form-actions { display: flex; gap: 10px; }
.note { font-size: 13px; color: var(--muted); }

.layout-full {
  grid-template-columns: 1fr;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.contact-wrap .form {
  margin-top: 0;
}
.info-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 18px;
}
.info-card h4 { margin: 0 0 8px; color: var(--red); }
.org {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.org .box {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  min-width: 140px;
}
.org .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.org .box.alt { background: var(--navy-3); }
.org .box.red { background: var(--red); }

.thanks {
  text-align: center;
  padding: 40px 20px;
}
.thanks h3 { font-size: 34px; }

.filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}
.filter button.active, .filter button:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.sitemap-list a { display: inline-block; margin: 4px 0; font-weight: 600; }
.sitemap-list ul { margin: 4px 0 16px; color: var(--muted); }

/* Footer */
footer {
  background: var(--navy);
  color: #c9d5e4;
  padding: 40px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 24px;
}
footer h4 { color: #fff; margin: 0 0 12px; font-family: "Outfit", sans-serif; }
footer a { color: #c9d5e4; }
footer a:hover { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 14px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .stats, .cards, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .layout, .product, .contact-grid, .contact-wrap, .footer-grid, .form {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .menu-btn { display: block; }
  nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
  }
  nav li.open > .dropdown { display: block; }
  .photo img { height: 220px; }
}

@media (max-width: 640px) {
  .stats, .cards, .grid-4 { grid-template-columns: 1fr; }
  .brand h1 { font-size: 18px; }
  .hero { min-height: 380px; }
}
