/* ===========================================================================
   Glyde Data Consulting
   One stylesheet. Design tokens are at the top — change a colour once here
   and it changes everywhere.
   =========================================================================== */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --azure:    #1b6ec2;
  --azure-600:#1559a0;
  --teal:     #2fb5c9;

  --ink:      #16202f;
  --body:     #43536a;
  --muted:    #6b7b91;
  --line:     #e3e9f1;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fc;

  --radius:   10px;
  --radius-lg:16px;
  --shadow:   0 1px 2px rgba(11,37,69,.06), 0 8px 24px rgba(11,37,69,.06);
  --shadow-lg:0 2px 4px rgba(11,37,69,.06), 0 20px 48px rgba(11,37,69,.12);

  --wrap:     1140px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--azure-600); text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px;
  background: var(--azure); color: #fff;
  border: 1px solid var(--azure);
  border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--azure-600); border-color: var(--azure-600); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm    { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-light:hover { background: #eef4fb; color: var(--navy-800); border-color: #eef4fb; }
.btn-outline { background: transparent; color: var(--azure); }
.btn-outline:hover { background: var(--bg-soft); color: var(--azure-600); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--navy-800); font-size: 1.16rem; letter-spacing: -.02em; }
.brand-text em {
  font-style: normal; color: var(--muted);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--azure); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--azure); }
.nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(7,26,51,.93) 0%, rgba(19,49,92,.88) 55%, rgba(27,110,194,.80) 100%),
    url('../images/banner.jpg') center/cover no-repeat,
    var(--navy-800);
  color: #fff;
  padding: clamp(64px, 9vw, 116px) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 55%;
  height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,181,201,.28), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #9fd4e6; margin-bottom: 22px;
}
.hero .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); }
.hero .lede { font-size: clamp(1.06rem, 1.9vw, 1.26rem); color: #d6e3f2; max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Trust strip --------------------------------------------------------- */

.trust {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.trust-label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.trust li { font-size: .9rem; color: var(--navy-700); font-weight: 500; }

/* --- Sections ------------------------------------------------------------ */

.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }
.kicker {
  display: block; font-size: .76rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--azure); margin-bottom: 12px;
}

/* --- Cards (the fix for the clipped, uneven cards) ----------------------- */

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

.card {
  display: flex;            /* equal heights, no clipping, buttons aligned */
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfdcec; }
.card img.icon { width: 52px; height: 52px; margin-bottom: 20px; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--body); font-size: .98rem; }
.card .card-link {
  margin-top: auto;         /* pins the link to the bottom of every card */
  padding-top: 18px;
  font-weight: 600; font-size: .95rem;
}
.card .card-link::after { content: " →"; }
.card a { text-decoration: none; }
.card-cta {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  border-color: transparent;
  justify-content: center;
}
.card-cta h3 { color: #fff; }
.card-cta h3 a { color: #fff; }
.card-cta p { color: #c6d6ea; }
.card-cta .card-link { color: #7fd4e6; }

.card-linked { position: relative; }
.card-linked a::before { content: ""; position: absolute; inset: 0; }  /* whole card clickable */

/* --- Steps --------------------------------------------------------------- */

.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  font-weight: 700; font-size: 1rem;
}
.step h3 { margin-bottom: .35em; }
.step p { font-size: .98rem; margin-bottom: 0; }

/* --- Industries ---------------------------------------------------------- */

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: .93rem; color: var(--navy-700); font-weight: 500;
}

/* --- Quote / testimonial ------------------------------------------------- */

.quote {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--radius); padding: 28px 30px;
}
.quote blockquote { margin: 0 0 14px; font-size: 1.06rem; color: var(--ink); }
.quote cite { font-style: normal; font-size: .9rem; color: var(--muted); }

/* --- Case study ---------------------------------------------------------- */

.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.case .sector { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--azure); font-weight: 600; margin-bottom: 14px; }
.case dt { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 14px; }
.case dd { margin: 4px 0 0; font-size: .97rem; }
.case .result { color: var(--ink); font-weight: 600; }
.case h3 { margin: 0 0 6px; font-size: 1.12rem; }
.case dl { margin: 0; }
.stack {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}
.case .stack { margin-top: auto; }   /* pins the stack line to the bottom of every card */

/* --- Work page ----------------------------------------------------------- */

.work-list { display: grid; gap: 0; }
.work-item {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px;
  padding: 44px 0; border-top: 1px solid var(--line);
}
.work-item:first-child { border-top: 0; padding-top: 0; }
.work-meta h2 { font-size: 1.5rem; margin-bottom: .3em; }
.work-meta .sector {
  display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--azure); font-weight: 600; margin-bottom: 12px;
}
.work-role { font-size: .93rem; color: var(--body); font-weight: 500; margin: 0; }
.work-role span { color: var(--muted); font-weight: 400; }
.work-body dl { margin: 0; }
.work-body dt {
  font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-top: 20px;
}
.work-body dt:first-child { margin-top: 0; }
.work-body dd { margin: 5px 0 0; font-size: 1rem; }
.work-body dd.result { color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .work-item { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
}

/* --- Service page -------------------------------------------------------- */

.page-head {
  background: var(--navy-800);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 0;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #cddcee; font-size: 1.08rem; max-width: 660px; margin-bottom: 0; }
.crumbs { font-size: .85rem; color: #9db6d3; margin-bottom: 18px; }
.crumbs a { color: #9db6d3; }
.crumbs a:hover { color: #fff; }

.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul:not(.creds):not(.edu):not(.pill-list):not(.contact-list) li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.prose ul:not(.creds):not(.edu):not(.pill-list):not(.contact-list) li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.callout {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 28px;
}
.callout p { margin: 0; color: var(--ink); font-weight: 500; }

.aside { position: sticky; top: 100px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; }
.aside h3 { font-size: 1.05rem; }
.aside ul { list-style: none; margin: 0 0 20px; padding: 0; }
.aside li { border-bottom: 1px solid var(--line); }
.aside li:last-child { border-bottom: 0; }
.aside li a { display: block; padding: 11px 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
.aside li a:hover { color: var(--azure); text-decoration: none; }
.aside li a[aria-current="page"] { color: var(--azure); }
.aside .btn { width: 100%; }

/* --- About --------------------------------------------------------------- */

.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.creds li { position: relative; padding-left: 30px; font-size: .97rem; }
.creds li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}
.portrait { border-radius: var(--radius-lg); border: 1px solid var(--line); }

.edu { list-style: none; margin: 0; padding: 0; }
.edu li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.edu li:first-child { border-top: 0; padding-top: 0; }
.edu-when { font-size: .86rem; color: var(--muted); font-weight: 600; padding-top: 2px; }
.edu strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.4; }
.edu-school { display: block; font-size: .92rem; color: var(--azure); margin-top: 2px; }
.edu p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) {
  .edu li { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Contact ------------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .97rem; color: var(--ink);
  background: #fff; border: 1px solid #cfdae8; border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(27,110,194,.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }        /* honeypot — leave hidden */
.form-note { font-size: .86rem; color: var(--muted); }

.alert { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 26px; font-size: .97rem; }
.alert-ok  { background: #e8f7ee; border: 1px solid #b6e3c8; color: #14602f; }
.alert-err { background: #fdeced; border: 1px solid #f4c2c6; color: #8a1c25; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg); display: block; }

/* --- CTA band ------------------------------------------------------------ */

.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: clamp(44px, 6vw, 68px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: #cddcee; max-width: 620px; margin: 0; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--navy-900); color: #a9bdd6; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 40px; }
.footer-logo { border-radius: 8px; margin-bottom: 16px; }
.footer-blurb { color: #8fa5c0; margin: 0; font-size: .93rem; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #a9bdd6; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; }
.footer-base p { margin: 0; font-size: .87rem; color: #7f95b2; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 780px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
