:root {
  --ink: #102033;
  --muted: #607083;
  --line: #dbe6ef;
  --soft: #f4f9fd;
  --white: #fff;
  --navy: #102a43;
  --blue: #1788d3;
  --sky: #4db7e8;
  --teal: #0e9f94;
  --coral: #ec6a3a;
  --shadow: 0 18px 42px rgba(16, 42, 67, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  color: #eaf7ff;
  background: #0c2b48;
  font-size: 14px;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px max(20px, calc((100vw - 1180px) / 2));
}
.topbar a:hover { color: #bcecff; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(219, 230, 239, .9);
  box-shadow: 0 4px 18px rgba(16, 42, 67, .05);
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
}
.brand-text {
  display: grid;
  min-width: 0;
}
.brand-text strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-text small {
  color: var(--muted);
  font-size: 12px;
}
.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  color: #263b52;
  font-weight: 700;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: .18s ease;
}
.nav-links a.active,
.nav-links a:hover { color: var(--blue); }
.nav-links a.active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
  font-weight: 800;
}
.nav-cta:hover { background: #0d76bd; }
.nav-toggle { display: none; }

.hero-slider {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #dff3fb;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 590px;
  padding: 74px max(20px, calc((100vw - 1180px) / 2));
  background-image: linear-gradient(90deg, rgba(7, 34, 59, .82) 0%, rgba(7, 34, 59, .58) 42%, rgba(7, 34, 59, .05) 75%), var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .5s ease, transform .7s ease;
}
.hero-slide.active {
  opacity: 1;
  position: relative;
  transform: scale(1);
}
.hero-content {
  max-width: 700px;
  color: var(--white);
}
.hero-content h1,
.hero-content h2 {
  max-width: 700px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero-content p {
  max-width: 620px;
  margin: 0 0 30px;
  color: #d8eefb;
  font-size: 19px;
}
.hero-content .eyebrow { color: #a9ebff; }
.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-controls {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 32px;
  display: flex;
  gap: 10px;
}
.hero-controls button {
  width: 42px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.hero-controls button.active { background: var(--white); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.button.primary {
  color: var(--white);
  background: var(--coral);
}
.button.primary:hover { background: #d9582b; }
.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}
.hero-content .button.ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
}
.text-link {
  color: var(--blue);
  font-weight: 800;
}
.mini-link {
  color: var(--coral);
  font-weight: 800;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: #d4e5f0;
}
.trust-strip div {
  padding: 24px 22px;
  background: var(--white);
}
.trust-strip strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.1;
}
.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 62px max(20px, calc((100vw - 1180px) / 2));
}
.section-heading,
.intro-grid,
.capability {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 30px;
}
.intro-grid {
  margin-bottom: 0;
  background: linear-gradient(180deg, var(--white), #f8fcff);
}
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: 0;
}
.section p { color: var(--muted); }

.page-hero {
  padding: 66px max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: linear-gradient(90deg, rgba(7, 34, 59, .88), rgba(14, 159, 148, .54)), url('../img/PJOfrF.jpg') center / cover;
}
.page-hero.compact h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 50px);
}
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dff4ff;
}

.two-column {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}
.sidebar {
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .06);
}
.sidebar h2 {
  margin-bottom: 16px;
  font-size: 20px;
}
.sidebar a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.sidebar a.active,
.sidebar a:hover { color: var(--blue); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-tile {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: linear-gradient(135deg, #1788d3, #0e9f94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.category-tile:nth-child(2) { background: linear-gradient(135deg, #0f6cb5, #47b9e8); }
.category-tile:nth-child(3) { background: linear-gradient(135deg, #0e9f94, #2a6fbb); }
.category-tile:nth-child(4) { background: linear-gradient(135deg, #20557a, #1788d3); }
.category-tile span {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}
.category-tile strong {
  font-size: 14px;
  color: #e7f8ff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 42, 67, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(16, 42, 67, .12);
}
.product-image {
  display: block;
  background: #f7fbfe;
  border-bottom: 1px solid var(--line);
}
.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.product-body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}
.product-body p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}
.detail-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .06);
}
.detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 24px;
}
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
}
.contact-card,
.inquiry-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .06);
}
.inquiry-form,
.admin-form,
.admin-login {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}
input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
.notice {
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}
.notice.success { color: #0b5f4f; background: #e5f6f2; }
.notice.error { color: #9a3412; background: #fff0e8; }
.feature-row,
.stats,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.feature-row div,
.stats div,
.capability-grid div {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-row strong,
.stats strong,
.capability-grid strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
}
.feature-row span,
.stats span,
.capability-grid span { color: var(--muted); }
.capability {
  align-items: start;
  margin-bottom: 0;
  background: #f6fbff;
}
.capability > div:first-child { max-width: 420px; }
.capability-grid {
  flex: 1;
  margin-top: 0;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 max(20px, calc((100vw - 1180px) / 2)) 62px;
  padding: 32px;
  color: var(--white);
  background: linear-gradient(135deg, #0f4d7a, #1788d3);
  border-radius: var(--radius);
}
.cta h2 {
  max-width: 760px;
  margin: 0;
}
.cta .eyebrow { color: #bcecff; }
.footer {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 28px;
  padding: 42px max(20px, calc((100vw - 1180px) / 2));
  color: #d7e6f2;
  background: #0c2b48;
}
.footer strong { font-size: 20px; }
.footer p { margin: 6px 0; color: #b8c8d8; }
.footer a:hover { color: var(--white); }
.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}
.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 8px;
}
.floating-contact a {
  min-width: 88px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(16, 42, 67, .2);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.floating-contact a:first-child { background: var(--teal); }

.admin-body {
  min-height: 100vh;
  background: #eef4f9;
}
.admin-login {
  width: min(420px, calc(100vw - 32px));
  margin: 12vh auto;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.admin-login-brand h1 {
  margin: 0;
  font-size: 26px;
}
.admin-login-brand p {
  margin: 4px 0 0;
  color: var(--muted);
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 18px;
  color: var(--white);
  background: #0c2b48;
}
.admin-sidebar strong {
  margin-bottom: 16px;
  padding: 0 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 22px;
}
.admin-sidebar a {
  padding: 12px 14px;
  color: #d7dee8;
  border-radius: 6px;
  font-weight: 700;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}
.admin-main {
  margin-left: 250px;
  padding: 38px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.admin-heading h1 {
  margin: 0;
  font-size: 38px;
}
.admin-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(16, 42, 67, .07);
}
.admin-notice {
  max-width: 960px;
  margin-bottom: 18px;
}
.admin-form,
.admin-table {
  max-width: 1120px;
  margin-bottom: 28px;
  padding: 22px;
}
.admin-form h2 {
  margin: 8px 0 6px;
  font-size: 20px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox input { width: auto; }
.admin-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-row:last-child,
.inquiry-row:last-child { border-bottom: 0; }
.admin-row img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.admin-row span,
.inquiry-row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.admin-row button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
}
.admin-row button:hover {
  color: #b42318;
  border-color: #f4b8ad;
  background: #fff3f0;
}
.inquiry-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.admin-guide h2 {
  margin: 0 0 16px;
}
.admin-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.admin-guide-grid a {
  display: grid;
  gap: 6px;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.admin-guide-grid strong {
  color: var(--navy);
  font-size: 18px;
}
.admin-guide-grid span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: auto auto;
  }
  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 6px;
    color: var(--ink);
    font-weight: 800;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-open .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: grid;
    gap: 8px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .hero-slider,
  .hero-slide {
    min-height: 520px;
  }
  .two-column,
  .product-detail,
  .contact-layout,
  .footer {
    grid-template-columns: 1fr;
  }
  .product-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading,
  .intro-grid,
  .cta,
  .capability {
    align-items: start;
    flex-direction: column;
  }
  .capability-grid {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .brand-text strong {
    max-width: 210px;
    font-size: 16px;
  }
  .brand-text small { display: none; }
  .hero-slider,
  .hero-slide {
    min-height: 560px;
  }
  .hero-slide {
    padding-top: 48px;
    padding-bottom: 72px;
    background-image: linear-gradient(90deg, rgba(7, 34, 59, .86), rgba(7, 34, 59, .62)), var(--hero-image);
  }
  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-controls {
    left: 20px;
    right: auto;
  }
  .trust-strip,
  .product-grid,
  .category-grid,
  .feature-row,
  .stats,
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }
  .floating-contact { display: none; }
  .admin-sidebar {
    position: static;
    width: auto;
  }
  .admin-main {
    margin-left: 0;
    padding: 20px;
  }
  .admin-heading {
    align-items: start;
    flex-direction: column;
  }
  .admin-form-grid,
  .admin-guide-grid {
    grid-template-columns: 1fr;
  }
  .admin-row {
    grid-template-columns: 56px 1fr;
  }
  .admin-row > a,
  .admin-row > form {
    grid-column: 2;
  }
}
