/* ==========================================================================
   Kestrel Partners: light theme only
   No dark-mode media query is used anywhere; color-scheme is locked to light.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper:      #FBFCFE;
  --surface:    #FFFFFF;
  --tint:       #EEF3FC;
  --line:       #DCE4F0;
  --ink:        #13203B;
  --slate:      #56657E;
  --cobalt:     #2354E8;
  --cobalt-deep:#1A3FB8;
  --sky:        #7FA3F5;
  --mint:       #17936B;
  --amber:      #E8A23A;
  --danger:     #B4261F;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Figtree', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--slate); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: .65rem 1.1rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 254, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font: 700 1.2rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--slate); text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cobalt); }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; transition: transform .2s, opacity .2s; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 { margin-bottom: 1.5rem; }
/*.hero-copy .lead { max-width: 34rem; }*/

/* Engagement timeline: the one memorable element */
.timeline { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 24px 48px -28px rgba(35, 84, 232, .28); }
.timeline figcaption { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1.5rem; }
.timeline figcaption strong { font: 600 1.1rem/1.3 var(--font-display); }
.tl-axis, .tl-track { display: grid; grid-template-columns: repeat(12, 1fr); }
.tl-axis { margin-left: 6.25rem; font-size: .8rem; color: var(--slate); padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.tl-rows { list-style: none; margin: 0; padding: 0; background:
  repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%) 6.25rem 0 / calc(100% - 6.25rem) 100% no-repeat; }
.tl-row { display: grid; grid-template-columns: 6.25rem 1fr; align-items: center; min-height: 3.5rem; }
.tl-label { font-weight: 600; font-size: .95rem; }
.tl-bar { height: 1.6rem; border-radius: 8px; transform-origin: left center; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .16s + .2s); }
.tone-a { background: var(--cobalt); }
.tone-b { background: var(--sky); }
.tone-c { background: var(--mint); }
.tone-d { background: var(--amber); }
.tl-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--slate); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sectors strip ---------- */
.sectors { border-block: 1px solid var(--line); background: var(--surface); }
.sectors-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.25rem; }
.sectors-inner p { margin: 0; }
ul.inline { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-weight: 500; }

/* ---------- Product images & sections ---------- */
.media,
.ph {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(35, 84, 232, .05), rgba(127, 163, 245, .1));
  border-radius: 18px;
  border: 1px solid var(--line);
}
.media {
  max-width: 100%;
  box-shadow: 0 18px 42px -28px rgba(19, 32, 59, .45);
}
.ph {
  display: grid;
  place-items: center;
  color: var(--slate);
  padding: clamp(1.25rem, 2vw, 2rem);
  text-align: center;
  background: linear-gradient(135deg, rgba(35, 84, 232, .04), rgba(127, 163, 245, .08));
}
.ph svg { margin-bottom: .65rem; }
.ph-label, .ph-hint { display: block; }
.ph-label { font-weight: 600; font-size: 1rem; color: var(--ink); }
.ph-hint { font-size: .8rem; color: var(--slate); margin-top: .15rem; }

.product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.product + .product { border-top: 1px solid var(--line); }
.product-flip .product-media { order: -1; }
.product-text { display: grid; gap: .95rem; }
.product-name { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.product-headline { margin: 0; font: 600 1.1rem/1.45 var(--font-display); color: var(--ink); }
.product .product-text p:last-of-type { margin-bottom: 0; }
.product-media { min-width: 0; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.feature-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-top: clamp(1rem, 2vw, 1.5rem);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding-top: clamp(1.2rem, 2vw, 2rem);
}

.section { padding-block: var(--section); }
.section.pad-top-0 { padding-top: 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 42rem; }
.section-head h2 { margin-bottom: .85rem; }
.section-head .lead { margin: 0; }

.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.1rem; max-width: 18ch; }
.page-hero .lead { max-width: 42rem; margin: 0; }

/* Services list (rows, not cards) */
.service-list { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 1rem 3rem; align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.service-row p { margin: 0; color: var(--slate); }

/* Steps: a true sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
.steps li { position: relative; padding-top: 3.25rem; }
.steps li::before { content: ""; position: absolute; top: 1.1rem; left: 2.6rem; right: -2rem; height: 2px; background: var(--sky); }
.steps li:last-child::before { display: none; }
.step-n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--cobalt); color: #fff; font: 600 1rem/1 var(--font-display); }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--slate); font-size: 1rem; }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.outcomes .section-head { margin-bottom: 0; }
.outcome-list { margin: 0; display: grid; }
.outcome-list > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.outcome-list > div:last-child { border-bottom: 1px solid var(--line); }
.outcome-list dt { font: 700 clamp(2rem, 4vw, 2.75rem)/1 var(--font-display); color: var(--cobalt); letter-spacing: -0.03em; }
.outcome-list dd { margin: 0; color: var(--slate); }

/* Quote */
.quote { margin: 0; padding: clamp(1.75rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--cobalt); border-radius: 4px 20px 20px 4px; }
.quote p { font: 500 clamp(1.3rem, 2.6vw, 1.85rem)/1.4 var(--font-display); max-width: 40ch; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.quote footer { color: var(--slate); font-size: .98rem; }

/* CTA band */
.cta-band { background: var(--tint); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 3rem; }
.cta-inner h2 { margin-bottom: .6rem; }
.cta-inner .lead { margin: 0; max-width: 36rem; }

/* ---------- Services page ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem clamp(2rem, 6vw, 5rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 1px solid var(--ink); }
.service-detail h2 { margin-bottom: .9rem; }
.list-title { font: 600 1rem/1.3 var(--font-body); color: var(--slate); margin-bottom: .85rem; }
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checks li { position: relative; padding: .6rem 0 .6rem 1.9rem; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: .5rem; height: .85rem; border: solid var(--mint); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.85); transform-origin: center; }

/* ---------- About page ---------- */
.value-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.value-list > div { border-top: 3px solid var(--cobalt); padding-top: 1.25rem; }
.value-list h3 { margin-bottom: .6rem; }
.value-list p { color: var(--slate); }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.team h3 { margin: 1rem 0 .15rem; font-size: 1.15rem; }
.team .role { color: var(--cobalt-deep); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.team p:last-child { color: var(--slate); font-size: .98rem; }
.avatar { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; font: 700 1.25rem/1 var(--font-display); color: #fff; }
.avatar.tone-b { color: var(--ink); }
.avatar.tone-d { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
label { font-weight: 600; font-size: .98rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 9rem; }
input:hover, select:hover, textarea:hover { border-color: var(--sky); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(35, 84, 232, .15); }
[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: .93rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.notice { padding: 1.1rem 1.25rem; border-radius: 12px; border: 1px solid; margin: 0; max-width: none; }
.notice-error { background: #FDF1F0; border-color: #F0C4C1; color: var(--danger); font-weight: 500; }
.notice-ok { background: #EAF7F2; border-color: #BFE5D7; }
.notice-ok h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.notice-ok p { color: var(--ink); }

.contact-details { background: var(--tint); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-details h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.contact-details dl { margin: 0; display: grid; gap: 1rem; }
.contact-details dt { font-weight: 600; font-size: .9rem; color: var(--slate); }
.contact-details dd { margin: .1rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2rem 3rem; }
.footer-brand { font: 700 1.25rem/1.2 var(--font-display); margin-bottom: .6rem; }
.footer-head { font-weight: 600; margin-bottom: .75rem; }
.site-footer ul.plain li { margin-bottom: .45rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cobalt); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--slate); font-size: .93rem; }
.footer-base p { margin: 0; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  z-index: 90;
  inset: auto max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.35rem clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(19, 32, 59, .2);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.cookie-banner p { margin: 0; color: var(--slate); font-size: .96rem; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.cookie-banner .cookie-actions { justify-content: flex-end; }
.cookie-banner .btn,
.cookie-dialog .btn { white-space: nowrap; }
.cookie-dialog {
  position: fixed;
  inset: 0;
  width: min(100% - 2rem, 42rem);
  max-width: none;
  max-height: min(90vh, 48rem);
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(19, 32, 59, .24);
}
.cookie-dialog::backdrop { background: rgba(19, 32, 59, .55); }
.cookie-dialog form { display: grid; gap: 1.25rem; }
.cookie-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-dialog-head h2 { font-size: 1.6rem; }
.cookie-dialog .muted { margin: 0; }
.icon-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.icon-close:hover { color: var(--ink); border-color: var(--ink); }
.cookie-options { display: grid; gap: .75rem; }
.cookie-options li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cookie-options label { display: block; }
.cookie-options p { margin: .25rem 0 0; color: var(--slate); font-size: .93rem; }
.cookie-options .switch { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--cobalt); }
.cookie-options .switch:disabled { opacity: 1; }
.cookie-dialog .cookie-actions { justify-content: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .outcomes, .contact-grid, .service-detail, .product, .product-detail { grid-template-columns: 1fr; }
  .feature-lists { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: .5rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .steps li::before { display: none; }
  .team { grid-template-columns: 1fr 1fr; }
  .value-list { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .cookie-banner { grid-template-columns: 1fr; gap: 1rem; }
  .cookie-banner .cookie-actions { justify-content: flex-start; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { color: var(--cobalt); }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 560px) {
  .steps, .team, .field-row, .footer-grid, .gallery { grid-template-columns: 1fr; }
  .cookie-banner { inset-inline: .75rem; bottom: .75rem; padding: 1.1rem; }
  .cookie-banner .cookie-actions,
  .cookie-dialog .cookie-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-banner .btn,
  .cookie-dialog .btn { width: 100%; white-space: normal; }
  .cookie-options li { padding: .85rem; }
  .outcome-list > div { grid-template-columns: 1fr; gap: .35rem; }
  .tl-axis { margin-left: 5rem; font-size: .7rem; }
  .tl-row { grid-template-columns: 5rem 1fr; }
  .tl-rows { background-position: 5rem 0; background-size: calc(100% - 5rem) 100%; }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tl-bar { animation: none; }
  * { transition-duration: .01ms !important; }
}
