/* ============================================================
   KDI Technology Solutions — Main Stylesheet
   Karen Dylan Investment Pty Ltd t/as KDI Technology Solutions
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  --navy:          #0d2137;
  --navy-mid:      #112b48;
  --navy-light:    #1a3d5c;
  --blue:          #0066cc;
  --blue-light:    #1a7ee0;
  --blue-dark:     #0052a3;
  --blue-glow:     rgba(0, 102, 204, 0.18);
  --white:         #ffffff;
  --off-white:     #f5f7fa;
  --grey-light:    #eef1f5;
  --grey:          #dde2ea;
  --grey-mid:      #8c95a6;
  --grey-dark:     #4a5568;
  --text:          #111827;
  --text-light:    #374151;
  --text-muted:    #6b7280;

  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm:     0 1px 4px rgba(13, 33, 55, 0.07), 0 2px 8px rgba(13, 33, 55, 0.05);
  --shadow-md:     0 4px 16px rgba(13, 33, 55, 0.10), 0 8px 32px rgba(13, 33, 55, 0.07);
  --shadow-lg:     0 12px 40px rgba(13, 33, 55, 0.14), 0 24px 64px rgba(13, 33, 55, 0.08);
  --shadow-blue:   0 8px 32px rgba(0, 102, 204, 0.28);

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h:         72px;
  --section-pad:   100px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography Helpers ── */
.section-tag {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.875rem, 3.8vw, 2.625rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad) 0; }

/* ── Accent Divider ── */
.accent-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
  margin-bottom: 20px;
}
.accent-divider.center { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.btn-sm { padding: 9px 20px; font-size: 0.875rem; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.22);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--grey);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.transparent {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(13, 33, 55, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 32px;
}

.nav-logo-mark { display: flex; align-items: center; flex-shrink: 0; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.nav-logo-main {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  font-family: var(--font);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.80);
  position: relative;
  transition: color var(--transition);
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.nav-phone:hover { color: var(--blue-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-nav a:hover { color: var(--white); padding-left: 6px; }
.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav-phone {
  color: var(--blue-light) !important;
  font-weight: 600 !important;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
  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(10, 24, 42, 0.93) 0%,
    rgba(13, 33, 55, 0.82) 50%,
    rgba(17, 43, 72, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: var(--nav-h);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 102, 204, 0.18);
  border: 1px solid rgba(0, 102, 204, 0.40);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 180, 255, 0.95);
  margin-bottom: 28px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5.5vw, 3.875rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--blue-light);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

/* Stats bar */
.hero-stats-inner {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-item {
  padding: 18px 28px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  flex: 1 1 0;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  display: block;
  font-variant-numeric: tabular-nums;
  min-width: 5ch;
  text-align: center;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-mouse-dot {
  width: 3px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(0);    opacity: 1; }
  80%  { transform: translateY(9px);  opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════ */
#services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 204, 0.18);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue-glow), rgba(0, 102, 204, 0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 102, 204, 0.25));
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  transition: color var(--transition);
}

.service-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-features li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.55;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
}

.service-link:hover { gap: 9px; color: var(--blue-dark); }

/* ════════════════════════════════════════════
   WHY CHOOSE US
════════════════════════════════════════════ */
#why {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#why::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

#why::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#why .section-title   { color: var(--white); }
#why .section-tag     { color: var(--blue-light); }
#why .accent-divider  { background: linear-gradient(90deg, var(--blue-light), var(--blue)); }

.why-subtitle {
  color: rgba(255, 255, 255, 0.60) !important;
  margin-left: auto;
  margin-right: auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 52px;
}

.pillar {
  background: rgba(255, 255, 255, 0.025);
  padding: 52px 36px;
  position: relative;
  transition: background var(--transition);
}

.pillar:hover { background: rgba(255, 255, 255, 0.05); }

.pillar-number {
  font-family: var(--font);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 102, 204, 0.15);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  letter-spacing: -0.04em;
}

.pillar-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 204, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pillar-icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue-light);
}

.pillar-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
}

.pillar-feature-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pillar-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.50);
}

.pillar-feature-dot {
  width: 5px;
  height: 5px;
  background: var(--blue-light);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.75;
}

/* ════════════════════════════════════════════
   INDUSTRY FOCUS
════════════════════════════════════════════ */
#industries {
  background: var(--off-white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 204, 0.15);
}

.industry-card:hover::after { transform: scaleX(1); }

.industry-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-glow), rgba(0, 102, 204, 0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.industry-icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.industry-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.industry-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

.industry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.industry-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.industry-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.5;
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-md);
  min-width: 172px;
  text-align: center;
}

.about-badge-year {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.about-badge-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.about-content { padding-left: 8px; }

.about-body {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-values {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.value-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.value-text p {
  font-size: 0.8rem;
  color: var(--grey-dark);
  line-height: 1.55;
}

.about-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════
   INSIGHTS
════════════════════════════════════════════ */
#insights {
  background: var(--off-white);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.insight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.insight-image-wrap {
  overflow: hidden;
  position: relative;
}

.insight-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.insight-card:hover .insight-image { transform: scale(1.05); }

.insight-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--blue-light);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.insight-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-bottom: 12px;
}

.insight-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--grey-mid);
  border-radius: 50%;
}

.insight-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.insight-excerpt {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}

.insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  border-top: 1px solid var(--grey-light);
  background: var(--off-white);
}

.insight-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.02em;
}

.author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.insight-read-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}

.insight-read-link:hover { gap: 8px; color: var(--blue-dark); }

.insights-footer {
  text-align: center;
  margin-top: 44px;
}

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 72px;
  margin-top: 52px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-detail:hover .contact-detail-icon {
  background: rgba(0, 102, 204, 0.15);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.contact-detail-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 0.9375rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}

.contact-detail-value a {
  color: var(--navy);
  transition: color var(--transition);
}

.contact-detail-value a:hover { color: var(--blue); }

.contact-hours,
.contact-company {
  border-top: 1px solid var(--grey-light);
  padding-top: 22px;
}

.contact-hours-title,
.contact-company-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 10px;
}

.contact-hours-body {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-company-body {
  font-size: 0.8rem;
  color: var(--grey-dark);
  line-height: 1.75;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--grey);
}

.form-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.form-required { color: #dc2626; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--grey-mid); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.10);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc2626;
}

.form-error-msg {
  font-size: 0.78rem;
  color: #dc2626;
  display: none;
  margin-top: 2px;
}

.form-error-msg.visible { display: block; }

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d2137' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.form-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--blue);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.form-consent-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
}

.form-submit { width: 100%; justify-content: center; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: rgba(22, 163, 74, 0.07);
  border: 1.5px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 20px;
}

.form-success.visible { display: flex; }

.form-success svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; }

.form-success-title {
  font-size: 0.9375rem;
  color: #15803d;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-success-body {
  font-size: 0.85rem;
  color: #166534;
  line-height: 1.55;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
}

.footer-main {
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-mark { display: flex; align-items: center; flex-shrink: 0; }

.footer-logo-main {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.footer-logo-sub {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-top: 2px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.social-link:hover { background: rgba(0, 102, 204, 0.28); }

.social-link svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.social-link:hover svg { color: var(--blue-light); }

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.48);
  transition: color var(--transition), padding-left var(--transition);
}

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

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

.footer-contact-line svg {
  width: 14px;
  height: 14px;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.75;
}

.footer-contact-line span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
}

.footer-contact-line a {
  color: rgba(255, 255, 255, 0.48);
  transition: color var(--transition);
}

.footer-contact-line a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-left {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.65;
}

.footer-bottom-links {
  display: flex;
  gap: 22px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--blue-light); }

/* ════════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid     { grid-template-columns: 1fr; gap: 1px; }
  .industries-grid  { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { max-width: 560px; }
  .about-badge      { right: 0; }
  .insights-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-grid     { grid-template-columns: 1fr; gap: 48px; }
  .footer-main      { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links,
  .nav-cta { display: none; }

  .hamburger { display: flex; }

  .services-grid    { grid-template-columns: 1fr; gap: 18px; }
  .insights-grid    { grid-template-columns: 1fr; }
  .industries-grid  { grid-template-columns: 1fr; max-width: none; }
  .form-row         { grid-template-columns: 1fr; }
  .footer-main      { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; align-items: flex-start; }

  .hero-stats-inner { flex-direction: column; }
  .stat-item        { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-item:last-child { border-bottom: none; }

  .about-values     { grid-template-columns: 1fr; }
  .about-cta        { flex-direction: column; }
  .contact-form-wrap { padding: 28px 22px; }

  .hero-scroll-cue  { display: none; }
}

@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .btn           { width: 100%; justify-content: center; }
  .hero-title    { font-size: 2.125rem; }
  .pillar        { padding: 40px 28px; }
  .service-card  { padding: 28px 22px; }
  .about-badge   { right: 0; bottom: -20px; }
}
