/* =============================================
   D K Industries — Custom Styles
   ============================================= */

:root {
  --primary:   #003B73;
  --secondary: #0056A6;
  --accent:    #F8B400;
  --surface:   #F8FAFC;
  --ink:       #1E293B;
  --ink-light: #64748B;
  --border:    #E2E8F0;
  --white:     #FFFFFF;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-root {
  background: var(--primary);
  transition: box-shadow 0.3s ease;
}

.nav-root.scrolled {
  box-shadow: 0 4px 24px rgba(0, 59, 115, 0.35);
}

.nav-link {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-mobile-link {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  display: block;
  transition: all 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 59, 115, 0.88) 0%,
    rgba(0, 86, 166, 0.72) 50%,
    rgba(0, 30, 60, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-tag {
  display: inline-block;
  background: rgba(248, 180, 0, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 180, 0, 0.30);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-heading--white { color: var(--white); }

.section-subheading {
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 680px;
}

.section-subheading--white { color: rgba(255,255,255,0.78); }

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}

.section-divider--center { margin-left: auto; margin-right: auto; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 59, 115, 0.14);
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.card-icon-wrap--accent {
  background: linear-gradient(135deg, var(--accent), #e09c00);
  color: var(--ink);
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .product-card-img { transform: scale(1.04); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,59,115,0.90), rgba(0,86,166,0.80));
}

.page-hero-content { position: relative; z-index: 2; }

/* =============================================
   SPEC TABLE
   ============================================= */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr:nth-child(even) { background: var(--surface); }

.spec-table td {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 45%;
  background: rgba(0,59,115,0.04);
}

.spec-table td:last-child { color: var(--ink-light); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #e0a200;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(248,180,0,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-1px);
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: rgba(248,180,0,0.07);
  border-radius: 50%;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-root {
  background: linear-gradient(180deg, #001f3f 0%, #001228 100%);
  color: rgba(255,255,255,0.75);
}

.footer-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color 0.2s ease;
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
}

.footer-link:hover { color: var(--accent); }

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: white;
}

.footer-social-btn:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

/* =============================================
   INDUSTRIES GRID
   ============================================= */
.industry-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: default;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,59,115,0.14);
  background: var(--primary);
  color: white;
}

.industry-card:hover .industry-icon-wrap {
  background: rgba(248,180,0,0.2);
  color: var(--accent);
}

.industry-card:hover .industry-name { color: white; }
.industry-card:hover .industry-desc { color: rgba(255,255,255,0.75); }

.industry-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,59,115,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.25s ease;
}

/* =============================================
   PRODUCT DETAIL SECTIONS
   ============================================= */
.product-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.product-section:last-child { border-bottom: none; }

.product-section:nth-child(even) { background: var(--white); }

.feature-list li, .app-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.feature-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.45em;
  flex-shrink: 0;
}

.app-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--secondary);
  margin-top: 0.45em;
  flex-shrink: 0;
}

/* =============================================
   QUALITY PROCESS
   ============================================= */
.process-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,59,115,0.1);
}

.process-step-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0,59,115,0.12);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,86,166,0.10);
  background: white;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  flex: 1;
  justify-content: center;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* =============================================
   MAPS
   ============================================= */
.map-embed {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* =============================================
   PRODUCTS SUB-NAV
   ============================================= */
.sub-nav {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: white;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar { display: none; }

.sub-nav-link {
  display: inline-block;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-light);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.sub-nav-link:hover,
.sub-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* =============================================
   FEATURE TAG PILLS
   ============================================= */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0,59,115,0.07);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up  { animation: fadeUp 0.5s ease both; }
.animate-fade-in  { animation: fadeIn 0.5s ease both; }

/* Stagger delays for card grids */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.30s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.40s; }

/* Intersection observer fade-in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   HAMBURGER
   ============================================= */
.hamburger {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 640px) {
  .hero-section { min-height: 75vh; }
  .page-hero { padding: 3.5rem 0 2.5rem; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  #navbar, #footer { display: none; }
}
