/* ============================================================
   NET DESIRE TECHNOLOGIES -- BRAND DESIGN SYSTEM
   Premium Corporate Identity CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@500;600;700&display=swap');

/* ---- CSS DESIGN TOKENS ---- */
:root {
  /* Brand Palette -- Extracted from Logo */
  --navy-950:   #060f1f;
  --navy-900:   #0b1e3d;
  --navy-800:   #0f2850;
  --navy-700:   #143265;
  --blue-600:   #1552a0;
  --blue-500:   #1a5fc8;
  --blue-400:   #2e7bd8;
  --blue-300:   #5fa0e8;
  --gold-600:   #a8861e;
  --gold-500:   #c9a84c;
  --gold-400:   #dfc168;
  --gold-300:   #edd896;

  /* Semantic Tokens */
  --brand-primary:    var(--navy-900);
  --brand-secondary:  var(--blue-500);
  --brand-accent:     var(--gold-500);
  --brand-surface:    #f5f7fc;
  --brand-white:      #ffffff;

  /* Text */
  --text-primary:   #0d1929;
  --text-secondary: #4a5568;
  --text-muted:     #718096;
  --text-inverse:   rgba(255,255,255,0.92);
  --text-inverse-dim: rgba(255,255,255,0.60);

  /* Borders */
  --border-light: rgba(0,0,0,0.07);
  --border-dark:  rgba(255,255,255,0.10);
  --border-gold:  rgba(201,168,76,0.35);

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(11,30,61,0.08);
  --shadow-sm:  0 2px 8px rgba(11,30,61,0.10);
  --shadow-md:  0 8px 24px rgba(11,30,61,0.12);
  --shadow-lg:  0 20px 48px rgba(11,30,61,0.16);
  --shadow-xl:  0 32px 64px rgba(11,30,61,0.22);
  --shadow-glow: 0 0 40px rgba(26,95,200,0.20);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.28);

  /* Spacing Scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   180ms;
  --dur-base:   280ms;
  --dur-slow:   440ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--brand-white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
.t-display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-display-sm {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.25;
}
.t-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.t-body-lg { font-size: 18px; line-height: 1.75; font-weight: 400; }
.t-body    { font-size: 16px; line-height: 1.7;  font-weight: 400; }
.t-body-sm { font-size: 14px; line-height: 1.65; font-weight: 400; }

/* Accent text */
em.accent { font-style: normal; color: var(--gold-500); }
em.blue   { font-style: normal; color: var(--blue-400); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 800px; }

.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.grid-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }
.grid-5   { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--space-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: var(--space-6); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

.text-center  { text-align: center; }
.section-pad  { padding-block: clamp(72px, 9vw, 128px); }
.section-pad-sm { padding-block: clamp(48px, 6vw, 80px); }

/* ============================================================
   SECTION EYEBROW / LABEL
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  flex-shrink: 0;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-400); }
.eyebrow--light::before { background: var(--gold-400); }

/* Section heading decorative underline */
.heading-underline {
  position: relative;
  display: inline-block;
}
.heading-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500) 0%, transparent 100%);
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }

/* Primary -- Blue gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,95,200,0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,95,200,0.40);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

/* Gold CTA */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201,168,76,0.40);
  color: var(--navy-900);
}

/* Ghost -- for dark backgrounds */
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.30);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.60);
  color: #fff;
  transform: translateY(-2px);
}

/* Outline on light bg */
.btn-outline {
  background: transparent;
  color: var(--blue-500);
  border: 1.5px solid var(--blue-500);
}
.btn-outline:hover {
  background: var(--blue-500);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-icon { padding: 10px 10px; }

/* Animated arrow inside button */
.btn-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   CARDS -- GLASS & SOLID
   ============================================================ */
/* Solid light card */
.card {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--gold-500));
  opacity: 0;
  transition: opacity var(--dur-base);
}
.card:hover {
  border-color: rgba(26,95,200,0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

/* Glass card -- for dark backgrounds */
.card-glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-8);
  transition: all var(--dur-base) var(--ease-out);
}
.card-glass:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-4px);
}

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-blue  { background: rgba(26,95,200,0.10);  color: var(--blue-500); }
.badge-gold  { background: rgba(201,168,76,0.15);  color: var(--gold-600); }
.badge-navy  { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.badge-green { background: rgba(34,197,94,0.12); color: #16a34a; }

/* ============================================================
   DIVIDERS & DECORATIVE
   ============================================================ */
.divider-gold {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 2px;
  margin-top: 20px;
}
.divider-gold--center { margin-inline: auto; }

/* Gradient mesh background effect */
.mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(26,95,200,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid pattern */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.grid-pattern--light {
  background-image:
    linear-gradient(rgba(26,95,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,95,200,0.05) 1px, transparent 1px);
}

/* ============================================================
   SCROLL REVEAL (JS-enhanced)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px);  }
.reveal-left.revealed, .reveal-right.revealed { transform: translateX(0); }
.reveal-scale  { transform: scale(0.92); }
.reveal-scale.revealed { transform: scale(1); }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ============================================================
   STAT DISPLAY
   ============================================================ */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-white);
}
.stat-number .suffix { color: var(--gold-400); }
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-inverse-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-inverse-dim);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); font-size: 12px; }
.breadcrumb .current { color: var(--gold-400); }

/* ============================================================
   FEATURE CHECK LIST
   ============================================================ */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-icon svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ============================================================
   ICON CONTAINERS
   ============================================================ */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.icon-wrap-sm  { width: 40px; height: 40px; }
.icon-wrap-md  { width: 56px; height: 56px; }
.icon-wrap-lg  { width: 72px; height: 72px; }
.icon-wrap-blue { background: linear-gradient(135deg, rgba(26,95,200,0.12), rgba(26,95,200,0.06)); }
.icon-wrap-gold { background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.08)); }
.icon-wrap-solid { background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); }

/* ============================================================
   PAGE HERO -- INNER PAGES
   ============================================================ */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--brand-white); margin-bottom: 16px; }
.page-hero p  { color: var(--text-inverse-dim); font-size: 18px; max-width: 600px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--dur-fast);
  outline: none;
}
.form-control:focus {
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(26,95,200,0.12);
}
.form-control.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-control::placeholder { color: #a0aec0; }
.form-control--textarea { min-height: 130px; resize: vertical; }
.form-select {
  appearance: none;
  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='%23718096' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #ef4444; font-size: 12px; margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-success {
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #166534;
  font-weight: 600;
  text-align: center;
  display: none;
}
.form-success.show { display: block; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--dur-base) var(--ease-out);
  z-index: 900;
  box-shadow: var(--shadow-md);
}
#back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-top:hover { background: var(--blue-500); box-shadow: var(--shadow-glow); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-5 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }

  /* Page hero on inner pages */
  .page-hero { padding-top: 110px; padding-bottom: 56px; }
  .page-hero p { font-size: 16px; }

  /* Typography scale */
  .t-display-xl { font-size: clamp(36px, 8vw, 64px); }
  .t-display-lg { font-size: clamp(28px, 7vw, 48px); }
  .t-display-md { font-size: clamp(22px, 5.5vw, 36px); }

  /* Containers */
  .container { padding-inline: 20px; }

  /* Buttons */
  .btn-lg { padding: 15px 28px; font-size: 15px; }
}
@media (max-width: 480px) {
  .grid-5 { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 22px; font-size: 14px; }

  /* Typography */
  .t-display-xl { font-size: clamp(28px, 9vw, 44px); }
  .t-display-lg { font-size: clamp(24px, 8vw, 38px); }

  /* Form */
  .form-control { padding: 12px 14px; font-size: 14px; }

  /* Page hero */
  .page-hero { padding-top: 90px; padding-bottom: 40px; }

  /* Back to top */
  #back-top { width: 40px; height: 40px; bottom: 16px; right: 16px; }
}

/* ============================================================
   EXTRA SMALL MOBILE (max 320px)
   ============================================================ */
@media (max-width: 320px) {
  /* Typography — tightest scale */
  .t-display-xl { font-size: clamp(22px, 9vw, 32px); }
  .t-display-lg { font-size: clamp(20px, 8.5vw, 28px); }
  .t-display-md { font-size: clamp(18px, 7vw, 24px); }
  .t-display-sm { font-size: clamp(16px, 6vw, 20px); }

  /* Container — tightest padding */
  .container { padding-inline: 12px; }

  /* Buttons */
  .btn-lg { padding: 12px 16px; font-size: 13px; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }

  /* Page hero — account for smaller header */
  .page-hero { padding-top: 80px; padding-bottom: 32px; }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Badge wrapping */
  .badge { font-size: 10px; padding: 4px 8px; }
}
