/* =============================================
   TrustWing Solutions — style.css
   Mobile-first, no frameworks
   ============================================= */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F7FAFF;
  color: #1B1B1B;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* CUSTOM PROPERTIES */
:root {
  --blue: #1565FF;
  --blue-dark: #0A1D56;
  --blue-light: #EEF2FF;
  --green: #25D366;
  --bg: #F7FAFF;
  --white: #ffffff;
  --text: #1B1B1B;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(21,101,255,0.08);
  --shadow-md: 0 8px 40px rgba(21,101,255,0.12);
  --transition: 0.25s ease;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.logo img { height: 44px; width: auto; object-fit: contain; }

/* NAV */
.nav { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }

/* HAMBURGER */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 16px 20px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
.mobile-nav .nav-link { display: block; padding: 12px 16px; font-size: 15px; }
.mobile-nav .btn-whatsapp { margin-top: 12px; justify-content: center; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(21,101,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue-dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-title .accent { color: var(--blue); }
.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(21,101,255,0.3);
}
.btn-primary:hover {
  background: #0d4fd9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,255,0.4);
}
.btn-wa-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #1B1B1B;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-wa-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.15);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* HERO VISUAL */
.hero-visual { position: relative; }
.hero-dashboard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E5E7EB;
}
.dash-dots span:nth-child(1) { background: #FCA5A5; }
.dash-dots span:nth-child(2) { background: #FCD34D; }
.dash-dots span:nth-child(3) { background: #6EE7B7; }
.dash-title { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.dash-stat {
  background: var(--white);
  padding: 16px;
  text-align: center;
}
.stat-val { font-size: 20px; font-weight: 700; color: var(--blue-dark); }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin: 2px 0; }
.stat-up { font-size: 12px; font-weight: 600; color: #10B981; }
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 20px 20px 12px;
  height: 100px;
}
.chart-bar {
  flex: 1;
  background: var(--blue-light);
  border-radius: 4px 4px 0 0;
  transition: background var(--transition);
}
.chart-bar.highlight { background: var(--blue); }

/* SERVICE TAGS */
.hero-service-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.htag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* =============================================
   CONTACT BAR
   ============================================= */
.contact-bar {
  background: var(--blue-dark);
  padding: 20px 0;
}
.contact-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.cbar-link { transition: color var(--transition); }
.cbar-link:hover { color: #fff; }
.cbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  display: none;
}

/* =============================================
   SECTIONS — SHARED
   ============================================= */
.section { padding: 72px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.title-underline {
  width: 48px;
  height: 4px;
  background: var(--blue);
  border-radius: 4px;
  margin: 10px auto 0;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* =============================================
   ACHIEVE
   ============================================= */
.achieve-section { background: var(--bg); }
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.achieve-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.achieve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21,101,255,0.2);
}
.achieve-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.achieve-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.achieve-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   SERVICES
   ============================================= */
.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.service-card:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21,101,255,0.2);
}
.svc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   WHY CHOOSE
   ============================================= */
.why-section { background: var(--blue-dark); }
.why-section .section-title { color: var(--white); }
.why-section .title-underline { background: rgba(255,255,255,0.4); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: background var(--transition);
}
.why-item:hover { background: rgba(255,255,255,0.1); }
.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(21,101,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { stroke: #93C5FD; }
.why-item h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.why-item p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* =============================================
   EQUIPMENT
   ============================================= */
.equipment-section { background: var(--bg); }
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.equip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.equip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.equip-img {
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border-bottom: 1px solid var(--border);
  min-height: 110px;
}
.equip-card .equip-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 16px 20px 4px;
}
.equip-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  padding: 0 20px 12px;
}
.equip-specs {
  padding: 0 20px;
  flex: 1;
}
.equip-specs li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}
.equip-specs li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue);
}
.btn-avail {
  display: block;
  margin: 16px 20px 20px;
  text-align: center;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(21,101,255,0.15);
  transition: background var(--transition), color var(--transition);
}
.btn-avail:hover { background: var(--blue); color: var(--white); }

/* =============================================
   CTA
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, #1565FF 0%, #0A1D56 100%);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.cta-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.cta-content p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 480px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-wa-cta:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-consult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: background var(--transition), transform var(--transition);
}
.btn-consult:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #060F2E; color: rgba(255,255,255,0.75); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}
.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 10px 0 14px;
  letter-spacing: 0.5px;
}
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 13px; }
.footer-col a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; opacity: 0.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* =============================================
   ANIMATIONS
   ============================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   TABLET 768px+
   ============================================= */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav { display: block; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .cbar-divider { display: block; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .cta-inner { flex-direction: row; text-align: left; justify-content: space-between; }
  .cta-content { max-width: 480px; }
  .cta-actions { justify-content: flex-start; }
}

/* =============================================
   DESKTOP 1024px+
   ============================================= */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .header-inner { height: 74px; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; padding: 64px 32px 48px; }
  .contact-bar-inner { justify-content: space-between; gap: 0; }
}

/* =============================================
   LARGE 1440px+
   ============================================= */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .header, .wa-float, .hero-visual, .cta-section { display: none; }
  body { background: white; color: black; }
}
