/* Directions Technology — one-page marketing site
   System fonts only. No external assets. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #0b2545;
  --ink-2: #13315c;
  --accent: #ffc857;
  --accent-2: #e6a81b;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --muted: #5b6a86;
  --line: #dfe4ee;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 2px 12px rgba(11, 37, 69, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink); text-decoration: none; font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__mark { color: var(--ink-2); }
.brand__name { font-size: 1.05rem; }
.nav__links { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.nav__links a { color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--accent-2); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  color: #f4f6fb;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,200,87,0.20), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(19,49,92,0.55), transparent 60%),
    linear-gradient(160deg, #0b2545 0%, #13315c 50%, #1b3a6b 100%);
}
.hero::after {
  /* subtle grid overlay */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%);
  z-index: -1;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lede { font-size: clamp(1.02rem, 0.6vw + 0.9rem, 1.18rem); max-width: 60ch; color: #dde4f0; }
.hero .eyebrow { color: var(--accent); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  margin: 2rem 0 0; padding: 0; list-style: none;
  font-size: 0.95rem; color: #c8d2e3;
}
.hero__meta strong { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 0.6rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; transition: transform 80ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #2a1a00; }
.btn--primary:hover { background: var(--accent-2); color: #2a1a00; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.section__head { max-width: 60ch; margin: 0 0 2rem; }
.section__sub { color: var(--muted); }

.section--split {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .section--split { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
}

/* ---------------- Services grid ---------------- */
.grid { display: grid; gap: 1rem; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.card:hover { transform: translateY(-2px); border-color: #c7d0e3; box-shadow: 0 6px 20px rgba(11, 37, 69, 0.09); }
.card__icon {
  width: 34px; height: 34px; color: var(--ink-2);
  background: #eef2fb; border-radius: 8px; padding: 5px;
  margin-bottom: 0.9rem;
}
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------------- Tag list (specialisation) ---------------- */
.tag-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-self: start;
}
.tag-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.9rem; font-size: 0.9rem; color: var(--ink-2);
}

/* ---------------- Partners grid ---------------- */
.partners {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.partners li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.2rem;
}
.partners h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.partners p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------------- Contact ---------------- */
.contact {
  display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem;
  margin: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  align-self: start;
}
.contact dt { font-weight: 600; color: var(--ink-2); }
.contact dd { margin: 0; color: var(--muted); }
.contact a { color: var(--ink-2); }
.muted { color: var(--muted); font-size: 0.95rem; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--ink); color: #c8d2e3;
  padding: 1.8rem 0; margin-top: 0;
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: 0.92rem;
}
.footer a { color: #e6ecf7; }
.footer__legal { margin: 0 0 0.2rem; color: #fff; font-weight: 600; }
.footer__address { margin: 0; color: #9fb0cc; }
.footer__links { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* ---------------- Narrow screens ---------------- */
@media (max-width: 560px) {
  .nav__links { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact dt { margin-top: 0.4rem; }
}
