/* ===== KDM ENGINEERING — REDESIGN 2026 ===== */
/* Industrial-precise aesthetic: dark navy + signal orange */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:        #0d1b2a;
  --navy-mid:    #132336;
  --navy-light:  #1c3350;
  --steel:       #2e4a66;
  --orange:      #e8650a;
  --orange-light:#ff8533;
  --white:       #f0f4f8;
  --grey:        #8da4bc;
  --grey-light:  #c8d8e8;
  --text:        #dce8f4;
  --text-dim:    #8da4bc;
  --line:        rgba(255,255,255,0.08);
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wrap img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(232,101,10,0.4));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
}

.logo-text span {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

nav.main-nav a:hover {
  color: var(--white);
  background: var(--line);
}

nav.main-nav a.active {
  color: var(--orange);
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px 2px 0 0;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--steel);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--grey);
  font-size: 20px;
}

/* ===== LAYOUT ===== */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 32px 60px;
}

/* ===== SIDEBAR LAYOUT ===== */
.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sidebar nav a {
  display: block;
  font-size: 14px;
  color: var(--grey);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 2px;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  border-left: 2px solid transparent;
}

.sidebar nav a:hover {
  color: var(--white);
  background: var(--line);
  padding-left: 16px;
}

.sidebar nav a.active {
  color: var(--orange);
  border-left-color: var(--orange);
  background: rgba(232,101,10,0.08);
  padding-left: 16px;
}

.sidebar nav ul {
  list-style: none;
  padding-left: 12px;
  margin-top: 4px;
}

.sidebar nav ul a {
  font-size: 13px;
  padding: 5px 12px;
}

/* ===== SECTION TITLE ===== */
.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

/* ===== INTRO TEXT ===== */
.intro-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: var(--navy-mid);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
}

/* ===== SLIDESHOW ===== */
.slideshow-wrap {
  position: relative;
  background: var(--navy-mid);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.slideshow-container {
  position: relative;
}

.mySlides {
  display: none;
  position: relative;
}

.mySlides img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #0a1520;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 24px 20px 16px;
  font-size: 14px;
}

.slide-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: var(--grey-light);
  font-size: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,27,42,0.7);
  border: 1px solid var(--steel);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.slide-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--navy-mid);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.dot.active, .dot:hover {
  background: var(--orange);
  transform: scale(1.2);
}

/* Fade animation */
.fade { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0.4 } to { opacity: 1 } }

/* ===== SPEC TABLES ===== */
.spec-section {
  margin-bottom: 40px;
}

.spec-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  padding: 14px 20px;
  background: var(--navy-light);
  border-left: 4px solid var(--orange);
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.spec-table thead th {
  background: var(--steel);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 2px solid var(--orange);
}

.spec-table thead th:first-child {
  text-align: left;
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.spec-table tbody tr:last-child {
  border-bottom: none;
}

.spec-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.spec-table td {
  padding: 11px 16px;
  font-size: 14px;
  vertical-align: middle;
}

.spec-table td.param-name {
  color: var(--text-dim);
  font-size: 13.5px;
  width: 55%;
}

.spec-table td.param-value {
  color: var(--white);
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.spec-table td.param-value.highlight {
  color: var(--white);
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.footer-contact-item span {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-contact-item a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--orange);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-links a {
  font-size: 13.5px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-nav-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: 760px;
}

.about-text {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-text + .about-text {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.about-signature {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  margin-top: 8px;
}

.about-signature .sig-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.about-signature .sig-title {
  font-size: 13px;
  color: var(--text-dim);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
}

.stat-card .stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ===== CONTACTS PAGE ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.contact-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child { border-bottom: none; }

.contact-row svg { flex-shrink: 0; margin-top: 1px; color: var(--orange); }

.contact-row .cr-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-row .cr-value {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
}

.contact-row a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-row a:hover { color: var(--orange); }

.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.req-table tr { border-bottom: 1px solid var(--line); }
.req-table tr:last-child { border-bottom: none; }

.req-table td {
  padding: 11px 20px;
  font-size: 14px;
}

.req-table td:first-child {
  color: var(--text-dim);
  width: 45%;
}

.req-table td:last-child {
  color: var(--white);
  font-weight: 500;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* ===== DOWNLOADS PAGE ===== */
.downloads-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.downloads-table .section-row td {
  background: var(--navy-light);
  padding: 12px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  border-top: 2px solid var(--orange);
}

.downloads-table tr { border-bottom: 1px solid var(--line); }
.downloads-table tr:last-child { border-bottom: none; }
.downloads-table tr:hover:not(.section-row) { background: rgba(255,255,255,0.03); }

.downloads-table td {
  padding: 14px 20px;
  font-size: 14px;
}

.downloads-table td:first-child { color: var(--text-dim); }

.downloads-table td:last-child { text-align: right; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.dl-btn:hover {
  background: var(--orange);
  color: var(--navy);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .sidebar-title { width: 100%; margin-bottom: 4px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .sidebar nav a { margin-bottom: 0; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  main { padding: 24px 16px 40px; }
  nav.main-nav { display: none; }
  nav.main-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--line); padding: 16px; gap: 2px; }
  .mobile-menu-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 16px; }
  .stats-row { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}

/* ===== UI/UX PRO MAX — IMPROVEMENTS 2026 ===== */

/* 1. cursor-pointer on all interactive elements */
.slide-btn,
.mobile-menu-btn,
.dot,
.dl-btn,
nav.main-nav a,
.sidebar nav a,
.footer-nav-links a {
  cursor: pointer;
}

/* 2. Highlight cells — orange accent color */
.spec-table td.param-value.highlight {
  color: var(--orange-light);
  font-weight: 600;
}

/* 3. Visible focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
.dl-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 4. prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms \!important; }
}

/* 5. Improve spec table zebra striping for readability */
.spec-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

/* 6. Slide btn hover state — fix for keyboard/touch */
.slide-btn:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
}

/* 7. Better highlight row hover in spec tables */
.spec-table tbody tr:hover .param-name {
  color: var(--grey-light);
}

/* 8. Mobile menu button — improved touch target (min 44x44px) */
.mobile-menu-btn {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 9. Smooth sidebar link indicator */
.sidebar nav a {
  transition: color 0.2s, background 0.2s, padding-left 0.2s, border-left-color 0.2s;
}

/* 10. Download table file-type label */
.file-type-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  background: var(--steel);
  color: var(--grey-light);
  vertical-align: middle;
}

/* 11. Contact page — map placeholder */
.map-placeholder {
  width: 100%;
  height: 220px;
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 24px;
}


.skip-link:focus {
  top: 0;
}
