/* ==========================================================================
   Innovationz — light theme
   Brand carry-over: #010026 navy (now used for type and accents),
   #ffba00 amber, #455b64 body text.
   ========================================================================== */

:root {
  --navy:       #010026;
  --amber:      #ffba00;
  --amber-deep: #e0a300;
  --amber-text: #8a6200;  /* amber dark enough for small text on white */

  --ink:        #10162b;
  --body:       #4a5c66;
  --muted:      #6d818b;
  --line:       #e3e8ef;
  --line-soft:  #edf1f6;
  --surface:    #ffffff;
  --surface-2:  #f5f8fc;
  --surface-3:  #eef3f9;

  --wrap:  1180px;
  --r:     14px;
  --r-lg:  22px;

  --anchor-offset: 40px;  /* set deliberately; the sticky header is 72px tall, so
                             an anchored section's top edge sits behind it */

  --shadow:    0 1px 2px rgba(16, 22, 43, .04), 0 6px 20px rgba(16, 22, 43, .05);
  --shadow-lg: 0 20px 50px rgba(16, 22, 43, .10);

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- base ---------- */

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

/* Single source of truth for anchor scroll offset: sticky header (72px) + 16px gap.
   Do NOT also set scroll-margin-top on targets — the two stack and double the offset. */
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--navy);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin: 0 0 .9em;
}

.accent {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(255, 186, 0, .45) 62%);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover {
  background: #14104d;
  border-color: #14104d;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(1, 0, 38, .22);
}
.btn--lg { padding: 17px 38px; font-size: 1.03rem; }
.btn--sm { padding: 10px 20px; font-size: .87rem; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--ink);
  box-shadow: none;
}

.link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
  transition: color .16s ease;
}
.link:hover { color: var(--amber-text); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo__mark {
  height: 40px;
  width: auto;
  flex: none;
  display: block;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color .16s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a[data-spy].is-active { box-shadow: inset 0 -2px 0 var(--amber); }
.nav__cta { color: #fff !important; }
.nav__cta.is-active { box-shadow: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  padding: clamp(76px, 11vw, 140px) 0 clamp(80px, 11vw, 130px);
}

.hero__glow {
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 140%;
  background:
    radial-gradient(42% 40% at 80% 18%, rgba(255, 186, 0, .28), transparent 68%),
    radial-gradient(38% 38% at 10% 76%, rgba(96, 130, 255, .18), transparent 68%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 810px; }

.hero__title { margin-bottom: .35em; }

.hero__text {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 640px;
  margin-bottom: 2.2em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- stats ---------- */

.stats {
  background: var(--navy);
  color: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border-inline: 1px solid rgba(255, 255, 255, .1);
}

.stat {
  background: var(--navy);
  padding: 34px 22px;
  text-align: center;
}
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: .87rem;
  color: rgba(255, 255, 255, .68);
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--alt { background: var(--surface-2); }

.section__head {
  max-width: 700px;
  margin-bottom: 54px;
}
.section__lede { font-size: 1.08rem; margin-bottom: 0; }

.page-head {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--line);
  padding: clamp(54px, 7vw, 84px) 0 clamp(48px, 6vw, 70px);
}
.page-head__lede {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 0;
}

/* ---------- services ---------- */

.svcs { display: grid; gap: 0; }

.svc {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.svc:first-child { border-top: 0; padding-top: 0; }
.svc:last-child { padding-bottom: 0; }

/* Grid children default to min-width:auto, which lets long content force overflow. */
.svc__intro,
.contact__form { min-width: 0; }

.svc__intro h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

.svc__lede {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

.svc__points {
  list-style: none;
  margin: 0;
  padding: 26px 30px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  align-self: start;
}
.section--alt .svc__points { background: var(--surface); }
.svc__points li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: .95rem;
}
.svc__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ---------- why / about ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.why__intro { min-width: 0; }
.why__intro h2 { margin-bottom: .5em; }

.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.why__list li {
  padding-left: 26px;
  border-left: 3px solid var(--amber);
}
.why__list h3 { margin-bottom: .35em; }
.why__list p { margin: 0; font-size: .97rem; }

/* ---------- process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.step { padding-top: 26px; border-top: 2px solid var(--line); }
.step__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  color: rgba(255, 186, 0, .75);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: .4em; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- faq ---------- */

.faq { max-width: 800px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--amber-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; font-size: .97rem; max-width: 70ch; }

/* ---------- work ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.proj {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.proj:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 186, 0, .55);
  box-shadow: var(--shadow-lg);
}

.proj__head { margin-bottom: 14px; }
.proj__head .eyebrow { margin-bottom: .5em; }
.proj__head h3 { font-size: 1.5rem; margin-bottom: 0; }

.proj__lede {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .7em;
}
.proj p { font-size: .95rem; }

/* Push the stack tags to the bottom so cards of differing length still align. */
.proj .tags { margin-top: auto; padding-top: 18px; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .76rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
}

/* ---------- prose (legal pages) ---------- */

.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }

.prose--legal { font-size: 1rem; }
.prose--legal h2 { font-size: 1.32rem; margin-top: 2em; }

.deflist { margin: 0 0 1.6em; display: grid; grid-template-columns: 220px 1fr; }
.deflist dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
}
.deflist dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label span { color: var(--amber-text); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 4px rgba(255, 186, 0, .2);
}
.field [aria-invalid="true"] { border-color: #d33b3b; }
.err { display: block; margin-top: 6px; color: #c22c2c; font-size: .85rem; }

/* Honeypot — hidden from humans, present for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .87rem; color: var(--muted); margin: 16px 0 0; }
.form-note a { color: var(--ink); }

/* Inline AJAX submit status (skin/main.js sets is-ok / is-err). */
.form-status { margin: 14px 0 0; min-height: 1.25em; font-size: .95rem; font-weight: 500; }
.form-status.is-ok  { color: #1a7f4b; }
.form-status.is-err { color: #c22c2c; }

/* 404 page */
.error404 { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; }
.error404__code {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem); line-height: 1;
  letter-spacing: -.04em; color: var(--navy); margin: 8px 0 0;
}
.error404__title { font-size: clamp(1.4rem, 4vw, 2rem); margin: 10px 0 0; }
.error404__lede { color: var(--body); font-size: 1.05rem; margin: 16px auto 0; max-width: 46ch; }
.error404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.error404__links { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.error404__links a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.error404__links a:hover { color: var(--ink); }

.notice {
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.notice--ok { background: #f0fbf4; border: 1px solid #b9e6cb; }
.notice--ok h3 { font-size: 1.3rem; }
.notice--ok p:last-child { margin-bottom: 0; }
.notice--err { background: #fdf1f1; border: 1px solid #f0c2c2; color: #a52626; }
.notice--err p { margin: 0; }

.contact__aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.section--alt .contact__aside { background: var(--surface); }
.contact__aside h3 { font-size: 1.24rem; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  font-size: .97rem;
}
.contact__list li:first-of-type { border-top: 0; padding-top: 0; }
.contact__label {
  display: block;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.contact__list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--amber); }

/* ---------- footer ---------- */

.site-foot {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  color: var(--body);
  padding: clamp(54px, 7vw, 76px) 0 30px;
  font-size: .93rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 42px;
}
.foot__brand p { margin-top: 16px; max-width: 34ch; }

.foot__col h2 {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin-bottom: 10px; }
.foot__col a { color: var(--body); text-decoration: none; transition: color .16s ease; }
.foot__col a:hover { color: var(--ink); }
.foot__contact li { line-height: 1.6; }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
}
.foot__bar p { margin: 0; }
.foot__bar a { color: var(--muted); text-decoration: none; }
.foot__bar a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .why { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 24px 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .nav a[data-spy].is-active { box-shadow: none; color: var(--amber-text); }
  .nav__cta { margin-top: 18px; border-bottom: 0; align-self: flex-start; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .deflist { grid-template-columns: 1fr; }
  .deflist dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .deflist dd { padding-top: 4px; border-top: 0; }
  .proj { padding: 28px 24px; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
