/* ═══════════════════════════════════════
   EMKON SOLUTIONS LIMITED — Shared Styles
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #0d1f6e;
  --primary-dark:   #091655;
  --primary-light:  #1a318a;
  --secondary:      #f5a623;
  --secondary-dark: #d4891a;
  --dark:           #111827;
  --white:          #ffffff;
  --bg:             #ffffff;
  --bg-light:       #f4f7fc;
  --bg-section:     #f8f9fc;
  --text:           #2c2c2c;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --radius:         10px;
  --shadow:         0 2px 16px rgba(13,31,110,0.09);
  --shadow-md:      0 6px 28px rgba(13,31,110,0.14);
  --transition:     0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(13,31,110,0.09);
  transition: box-shadow var(--transition);
}

nav.scrolled { box-shadow: 0 4px 24px rgba(13,31,110,0.16); }

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-name small {
  font-size: 0.62rem; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 2px;
}

.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }

.nav-links a {
  color: var(--text); text-decoration: none;
  padding: 0.45rem 0.9rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--secondary); background: rgba(13,31,110,0.06); }

.nav-links a.nav-cta {
  background: var(--secondary); color: var(--primary) !important;
  font-weight: 700; margin-left: 0.25rem;
}

.nav-links a.nav-cta:hover { background: var(--secondary-dark); }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: flex; align-items: center; gap: 3px;
}

.dropdown-arrow {
  font-size: 0.58rem; display: inline-block;
  transition: transform var(--transition); margin-left: 1px;
}

.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 32px rgba(13,31,110,0.14);
  list-style: none; min-width: 185px; padding: 0.4rem;
  opacity: 0; visibility: hidden;
  transition: all 0.22s ease; z-index: 300;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li { list-style: none; }

.dropdown-menu li a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.58rem 0.9rem; border-radius: 7px;
  font-size: 0.86rem; font-weight: 700;
  color: var(--primary) !important; text-decoration: none;
  background: transparent;
  transition: all var(--transition);
}

.dropdown-menu li a:hover {
  background: rgba(13,31,110,0.08);
  color: var(--secondary) !important;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px; transition: all var(--transition);
}

/* ── PAGE HERO BANNER (inner pages) ── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 6.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-banner .breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem; position: relative; z-index: 1;
}

.page-banner .breadcrumb a { color: var(--secondary); text-decoration: none; }
.page-banner .breadcrumb span { color: rgba(255,255,255,0.4); }

.page-banner h1 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900;
  color: var(--white); position: relative; z-index: 1; line-height: 1.2;
}

.page-banner h1 span { color: var(--secondary); }

.page-banner p {
  color: rgba(255,255,255,0.68); font-size: 1rem;
  max-width: 520px; margin: 0.75rem auto 0;
  position: relative; z-index: 1;
}

/* ── SECTION SHARED ── */
.section { padding: 5rem 2rem; }
.section-light { background: var(--bg); }
.section-gray  { background: var(--bg-section); }
.section-navy  { background: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  background: rgba(13,31,110,0.07);
  color: var(--primary);
  border: 1px solid rgba(13,31,110,0.15);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 0.32rem 0.9rem; border-radius: 50px; margin-bottom: 0.9rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900;
  color: var(--primary); line-height: 1.15; margin-bottom: 0.75rem;
}

.section-header h2 span { color: var(--secondary); }

.section-header p { color: var(--text-muted); font-size: 0.97rem; max-width: 540px; margin: 0 auto; }

.divider {
  width: 52px; height: 4px;
  background: linear-gradient(to right, var(--secondary), rgba(13,31,110,0.25));
  border-radius: 2px; margin: 1rem auto 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; border-radius: 8px;
  font-weight: 700; font-size: 0.92rem;
  padding: 0.82rem 1.8rem; transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary); color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13,31,110,0.28);
}

.btn-secondary {
  background: var(--secondary); color: var(--primary);
}
.btn-secondary:hover {
  background: var(--secondary-dark); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245,166,35,0.35);
}

.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.10); border-color: var(--white); }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); transition: all var(--transition);
}

.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md);
  border-color: rgba(13,31,110,0.15);
}

.card-accent-top { border-top: 3px solid var(--secondary); }
.card-accent-left { border-left: 3px solid var(--secondary); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 0.9rem; }
.footer-logo {
  width: 40px; height: 40px; background: var(--secondary);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem; color: var(--primary); flex-shrink: 0;
}
.footer-brand-row strong { display: block; font-size: 0.93rem; color: var(--white); }
.footer-brand-row small { font-size: 0.6rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 1.5px; }
.footer-brand > p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }

.footer-col h5 {
  font-size: 0.75rem; font-weight: 800; color: var(--white);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 1.1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary); display: inline-block;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  font-size: 0.875rem; color: rgba(255,255,255,0.80);
  text-decoration: none; transition: color var(--transition);
  display: inline-flex; align-items: center; gap: 5px;
}
.footer-col ul li a::before { content: '›'; color: var(--secondary); }
.footer-col ul li a:hover { color: var(--secondary); }

.footer-contact-item { display: flex; gap: 8px; font-size: 0.83rem; margin-bottom: 0.6rem; line-height: 1.4; }
.footer-contact-item .fci-icon { color: var(--secondary); flex-shrink: 0; }

.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 90px; left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem; gap: 0.2rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(13,31,110,0.12);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .nav-dropdown.dropdown-open .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f5f6fa;
    margin-top: 0.3rem;
    min-width: 100%;
  }

  .nav-dropdown.dropdown-open .dropdown-arrow { transform: rotate(180deg); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
