/* ===========================================================
   SD Direct Ltd — shared stylesheet
   Palette: deep navy/blue, slate grey, royal purple
   =========================================================== */

:root {
  --navy: #16213E;
  --blue: #2451B8;
  --blue-bright: #3B6BE0;
  --purple: #6D28D9;
  --purple-light: #8B5CF6;
  --grey: #64748B;
  --grey-light: #94A3B8;
  --orange: #F2762E;
  --orange-deep: #C2540F;
  --orange-light: #FBC49A;
  --bg: #F4F6FB;
  --bg-alt: #EAEEFA;
  --white: #FFFFFF;
  --ink: #11162B;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em 0; color: var(--grey); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Route line signature element ---------- */
.route-divider {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--purple) 65%, var(--orange) 100%);
  background-size: 200% 100%;
}

.route-tick {
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 14px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo .dot { color: var(--purple-light); }

nav.main-nav {
  display: flex;
  gap: 8px;
}

nav.main-nav a {
  color: #C7D0E8;
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  outline: none;
}

nav.main-nav a.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1B2A52 55%, #2A2560 100%);
  color: var(--white);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, rgba(139,92,246,0) 70%);
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B7C3EC;
  margin-bottom: 20px;
}

.eyebrow .dot-accent { color: var(--orange); font-size: 15px; }

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
  max-width: 760px;
}

.hero p.lead {
  color: #C7D0E8;
  font-size: 18px;
  max-width: 560px;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: var(--white);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(109,40,217,0.35); }

.btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(22,33,62,0.3); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }

.section-alt { background: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

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

.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Feature grid / cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #E2E7F5;
  border-top: 2px solid transparent;
  border-radius: 12px;
  padding: 30px 26px;
  transition: border-top-color 0.15s ease;
}

.card:hover { border-top-color: var(--orange); }

.card .icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
}

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0;
}

.stat-band .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-band .stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(90deg, #7BA2FF, #C39BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-band .stat-label {
  font-size: 13px;
  color: #B7C3EC;
  margin-top: 6px;
  position: relative;
  padding-top: 10px;
}

.stat-band .stat-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--orange);
}

/* ---------- Category / product visual blocks (no third-party imagery) ---------- */
.category-visual {
  border-radius: 12px;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.category-visual .label {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}

.category-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.category-visual.c1::before { background: linear-gradient(150deg, var(--blue) 10%, var(--navy) 100%); }
.category-visual.c2::before { background: linear-gradient(150deg, var(--purple) 10%, var(--navy) 100%); }
.category-visual.c3::before { background: linear-gradient(150deg, var(--purple-light) 10%, var(--blue) 100%); }
.category-visual.c4::before { background: linear-gradient(150deg, var(--grey) 10%, var(--navy) 100%); }

.category-visual .grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  z-index: 0;
}

/* ---------- Brand grid ---------- */
.brand-tile {
  background: var(--white);
  border: 1px solid #E2E7F5;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: border-color 0.15s ease;
}

.brand-tile:hover { border-color: var(--orange); }

.brand-note {
  background: var(--bg-alt);
  border: 1px dashed #B9C4E5;
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--grey);
  margin-top: 28px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--purple) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 3px solid var(--orange);
}

.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D6DCEE;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--blue-bright);
  outline-offset: 1px;
  border-color: var(--blue-bright);
}

textarea { resize: vertical; min-height: 120px; }

/* ---------- Contact info cards ---------- */
.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #E2E7F5;
}

.info-row:last-child { border-bottom: none; }

.info-row .info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--font-display);
}

.info-row h4 { font-size: 14.5px; margin-bottom: 3px; }
.info-row p { font-size: 14px; margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #B7C3EC;
  padding: 56px 0 26px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid a { font-size: 14px; color: #B7C3EC; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8493C4;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .stat-band .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .header-inner { justify-content: center; }
  .cta-band { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-primary, .btn-dark { transition: none; }
}
