/* ============================================================
   shared.css — Kalp Controls / Magnum Multi-Page Website
   Common: variables, reset, nav, footer, utilities
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --navy: #1a2b3b;
  --navy-d: #111f2c;
  --navy-m: #243a4e;
  --graphite: #2e3d4e;
  --graphite-m: #3c4f61;
  --graphite-l: #5a6e80;
  --orange: #f97316;
  --orange-d: #ea580c;
  --light: #f2f5f7;
  --white: #ffffff;
  --steel: #c8d3db;
  --blue: #2e3d4e;
  --blue-d: #1a2b3b;
  --blue-m: #3c4f61;
  --td: #1a2b3b;
  --tm: #2e3d4e;
  --ts: #5a6e80;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Barlow', sans-serif; background: #fff; color: var(--td); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── NAVIGATION ── */
nav#mainnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 65px; background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  box-shadow: 0 2px 20px rgba(26,43,59,.1);
}
nav#mainnav.scrolled { box-shadow: 0 4px 30px rgba(26,43,59,.15); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 42px; object-fit: contain; padding-left: 20px; }
.nav-links { display: flex; gap: 1px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--tm);
  padding: 6px 8px; border-radius: 6px;
  transition: color .2s, background .2s;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a:hover { color: var(--navy); background: var(--light); }
.nav-links .has-drop > a::after {
  content: '▾'; font-size: 20px; color: var(--ts);
  transition: transform .25s;
}
.nav-links .has-drop:hover > a::after { transform: rotate(180deg); color: var(--blue); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff;
  border: 1px solid rgba(26,43,59,.1);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(26,43,59,.15);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 999;
  list-style: none;
}
.nav-links .has-drop:hover .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
  padding: 8px 16px 4px; cursor: default;
  border-bottom: 1px solid rgba(26,43,59,.06);
  margin-bottom: 4px;
}
.nav-drop li a {
  font-size: 15px; font-weight: 500; color: var(--tm);
  border-radius: 6px;
  display: flex; align-items: center; gap: 10px;
  transition: color .2s, background .2s;
  padding: 9px 16px;
}
.nav-drop li a::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy); flex-shrink: 0;
  transition: transform .2s;
}
.nav-drop li a:hover { color: var(--navy); background: var(--light); }
.nav-drop li a:hover::before { transform: scale(1.5); }
.nav-drop li:not(:last-child) { border-bottom: 1px solid rgba(26,43,59,.05); }
.nav-links a.active { color: var(--blue); font-weight: 700; }
.nav-cta {
  background: #2e3d4e !important; color: #fff !important;
  border-radius: 8px !important; font-weight: 700 !important;
  white-space: nowrap;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
}
.nav-cta:hover { background: var(--navy-d) !important; }
.nav-cta::after { display: none !important; }
.nav-ham {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 6px; border: none; background: none;
}
.nav-ham span {
  display: block; width: 24px; height: 2px;
  background: var(--tm); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed; top: 65px; left: 0; right: 0; z-index: 9998;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26,43,59,.15);
  padding: 12px 24px 20px;
  flex-direction: column; gap: 0;
  max-height: calc(100vh - 65px); overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block; padding: 13px 16px;
  font-size: 16px; font-weight: 500; color: var(--tm);
  border-bottom: 1px solid rgba(26,43,59,.06);
  transition: color .2s, background .2s;
}
.nav-mobile a:hover { color: var(--navy); background: var(--light); }
.nav-mobile a.active { color: var(--navy); font-weight: 700; }
.nav-mobile .mob-cta {
  margin-top: 12px;
  background: var(--navy); color: #fff !important;
  border-radius: 8px; font-weight: 700 !important;
  text-align: center; justify-content: center;
}

/* ── PAGE BANNER (inner pages) ── */
.page-banner {
  margin-top: 65px;
  background: linear-gradient(135deg, #0d1a26 0%, #1a2b3b 55%, #1e3450 100%);
  padding: 64px 80px 56px;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .03; pointer-events: none;
}
.page-banner-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.page-banner-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--steel); margin-bottom: 12px;
}
.page-banner-tag::before { content: ''; width: 24px; height: 2px; background: var(--steel); }
.page-banner h1 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: 1px;
}
.page-banner h1 span { color: var(--steel); }
.page-banner-desc {
  margin-top: 16px;
  font-size: 17px; color: rgba(255,255,255,.68);
  max-width: 580px; line-height: 1.75;
  border-left: 3px solid var(--steel); padding-left: 16px;
}
.page-breadcrumb {
  margin-top: 22px;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.page-breadcrumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb .sep { color: rgba(255,255,255,.2); }
.page-breadcrumb .current { color: var(--steel); }

/* ── SECTION BASE ── */
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 12px;
}
.sec-tag::before { content: ''; width: 24px; height: 2px; background: var(--graphite); display: inline-block; }
.sec-h {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: clamp(36px,5vw,44px); letter-spacing: 2px; line-height: 1.1;
  color: var(--td); margin-bottom: 16px; font-weight: 700;
}
.sec-h span { color: var(--navy); }
.sec-lead { font-size: 17px; color: var(--tm); line-height: 1.75; font-weight: 500; }
.prod-uline { width: 60px; height: 3px; background: var(--navy); margin: 14px 0 0; border-radius: 2px; }

/* ── COMMON BUTTONS ── */
.btn-blue {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; padding: 14px 36px;
  border-radius: 100px; font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 28px rgba(26,43,59,.3);
  transition: background .25s, transform .25s;
}
.btn-blue:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn-blue .arr {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.btn-orange {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: #fff; padding: 14px 32px;
  border-radius: 8px; font-size: 16px; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
  transition: background .2s, transform .2s;
}
.btn-orange:hover { background: var(--orange-d); transform: translateY(-2px); }
.dcta-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--steel); color: var(--navy);
  padding: 13px 28px; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background .2s;
}
.dcta-btn-primary:hover { background: #fff; }
.dcta-btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  padding: 13px 28px; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background .2s;
}
.dcta-btn-whatsapp:hover { background: #1fb858; }

/* ── FOOTER ── */
footer {
  background: #0d1b2a;
  border-top: 4px solid var(--steel);
  position: relative;
}
.ft-main {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 0;
  padding: 50px 80px 44px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  max-width: 1400px; margin: 0 auto;
}
.ft-col { padding: 0 40px 0 0; }
.ft-col + .ft-col { padding: 0 40px 0 32px; border-left: 1px solid rgba(255,255,255,.08); }
.ft-col:last-child { padding-right: 0; }
.ft-socials { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ft-socials a {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.ft-socials a:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.ft-col-h {
  font-family: 'Barlow Semi Condensed', sans-serif; font-size: 14px; letter-spacing: 3px;
  color: #fff; margin-bottom: 18px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.ft-col-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.2), transparent); }
.ft-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ft-nav a {
  font-size: 15px; color: rgba(255,255,255,.75);
  padding: 6px 8px; border-radius: 5px;
  display: flex; align-items: center; gap: 0;
  transition: color .2s, background .2s, gap .2s;
  position: relative;
}
.ft-nav a::before { content: "›"; color: var(--steel); font-size: 15px; margin-right: 6px; }
.ft-nav a:hover { color: #fff; background: rgba(255,255,255,.05); gap: 4px; }
.ft-clist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ft-clist li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: #fff; line-height: 1.7; }
.ft-cico {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7);
  transition: all .2s;
}
.ft-clist li:hover .ft-cico { background: rgba(255,255,255,.15); transform: scale(1.08); }
.ft-clist strong { color: #fff; font-weight: 700; }
.ft-clist a { color: rgba(255,255,255,.85); font-size: 15px; transition: color .2s; }
.ft-clist a:hover { color: #fff; }
.ft-bottom {
  position: relative; z-index: 1;
  padding: 16px 80px; text-align: center;
  background: #0a1520;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 5px solid var(--steel);
}
.ft-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── STICKY WHATSAPP ── */
.wa-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 9999; transition: transform .2s, box-shadow .2s;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }
.wa-btn::before {
  content: ''; position: absolute;
  width: 100%; height: 100%; border-radius: 50%;
  background: rgba(37,211,102,.4);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.8); opacity: 0;  }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 900px) {
  nav#mainnav { padding: 0 20px; }
  .nav-links { display: none !important; }
  .nav-ham { display: flex; }
  .page-banner { padding: 50px 24px 44px; }
  .ft-main {
    grid-template-columns: 1fr 1fr;
    padding: 40px 24px 30px;
    gap: 32px;
  }
  .ft-col { padding: 0 !important; border-left: none !important; }
  .ft-bottom { padding: 14px 24px; }
}
@media (max-width: 600px) {
  .ft-main { grid-template-columns: 1fr; gap: 28px; }
  .page-banner { padding: 40px 20px; }
}
