/* =========================================================================
   Spark Vantage — landing page
   Visual direction copied from stonesystems.io (navy / accent / Sora 900,
   alternating white-grey-navy bands with angled chevron dividers).
   Brand accent is red; see SITE-SPEC.md for the two-red contrast rule.
   ========================================================================= */

:root {
  --navy: #1B1F30;
  --navy-deep: #141826;
  --navy-card: #232840;

  --red: #E0261B;
  --red-dark: #B81D14;
  --red-tint: #FFF1EF;
  --coral: #FF6F5E;        /* accent TEXT on navy — never use --red for that */

  --ink: #1B1F30;
  --ink-soft: #4A4F5E;
  --muted: #8A90A0;

  --grey-bg: #F1F1F1;
  --surface: #FFFFFF;
  --border: #E3E6ED;

  --star: #F5A524;
  --green: #1F8A4C;

  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 78px;
  --radius: 16px;
  --radius-lg: 24px;
  --chev: 84px;            /* depth of the angled section dividers */
  --shadow: 0 12px 30px rgba(20, 22, 34, .09), 0 3px 8px rgba(20, 22, 34, .05);
  --shadow-lg: 0 22px 50px rgba(20, 22, 34, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2.05rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 118px) 0; }
.section--grey { background: var(--grey-bg); }
.section--navy { background: var(--navy); color: #C4C6CD; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* Angled chevron dividers, as on the reference site.
   The wedges are painted ON TOP of the section in the neighbouring section's
   colour (--chev-from / --chev-to) rather than clipping the section itself —
   clipping would expose the body background, which is the wrong colour
   whenever a neighbour isn't white. */
.chev {
  position: relative;
  overflow: hidden;
  padding-top: calc(clamp(72px, 9vw, 118px) + var(--chev));
  padding-bottom: calc(clamp(72px, 9vw, 118px) + var(--chev));
}
.chev::before, .chev::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: var(--chev);
  pointer-events: none;
}
.chev::before {
  top: 0;
  background: var(--chev-from, var(--surface));
  clip-path: polygon(0 0, 40% 100%, 100% 0);
}
.chev::after {
  bottom: 0;
  background: var(--chev-to, var(--surface));
  clip-path: polygon(0 0, 40% 100%, 100% 0, 100% 100%, 0 100%);
}
.chev--grey { --chev-from: var(--grey-bg); --chev-to: var(--grey-bg); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section--navy .eyebrow { color: var(--coral); }

.section-head { max-width: 940px; margin: 0 auto clamp(44px, 5vw, 68px); text-align: center; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.section--navy .section-head p { color: #A9AEBC; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(224, 38, 27, .28); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 38, 27, .34); }
.btn--ghost { border: 2px solid var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--onnavy { border: 2px solid rgba(255, 255, 255, .28); color: #fff; }
.btn--onnavy:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 11px 22px; font-size: .9rem; }

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 26px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name {
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
}
.brand__name span { color: var(--red); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .94rem; font-weight: 600; color: var(--ink); transition: color .15s var(--ease); }
.nav a:hover { color: var(--red); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.5px); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { background: var(--navy); color: #C4C6CD; padding: clamp(56px, 7vw, 92px) 0 clamp(76px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero__title { position: relative; padding-left: 26px; color: #fff; }
.hero__title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 5px; border-radius: 3px; background: var(--red);
}
.hero__lede { max-width: 46ch; margin-top: 26px; font-size: 1.02rem; color: #AEB3C1; }
.hero__lede strong { color: #fff; font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }

.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; margin-left: -11px; border-radius: 50%;
  border: 2.5px solid var(--navy); background: var(--navy-card);
  display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:last-child { background: var(--red); }

.trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; }
.trust__item { display: flex; align-items: center; gap: 11px; }
.trust__item svg { width: 26px; height: 26px; flex: none; }
.trust__label { font-size: .8rem; font-weight: 700; color: #fff; line-height: 1.25; }
.stars { display: flex; gap: 2px; color: var(--star); }
.stars svg { width: 13px; height: 13px; }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__art img { width: min(100%, 400px); filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .42)); }
.hero__art::after {
  content: ""; position: absolute; inset: auto 0 6%; height: 62%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(224, 38, 27, .28), transparent 68%);
}

/* =========================================================================
   TESTIMONIAL
   ========================================================================= */
.quote {
  max-width: 940px; margin-inline: auto; padding: clamp(30px, 4vw, 50px);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.quote__stars { display: flex; gap: 4px; color: var(--star); margin-bottom: 20px; }
.quote__stars svg { width: 21px; height: 21px; }
.quote blockquote {
  margin: 0; font-size: clamp(1.12rem, 2vw, 1.42rem); line-height: 1.6;
  font-weight: 600; color: var(--ink);
}
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.quote__avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem; }
.quote__name { font-weight: 800; color: var(--ink); }
.quote__role { font-size: .89rem; color: var(--muted); }
.note { margin-top: 22px; text-align: center; font-size: .88rem; color: var(--muted); }

/* =========================================================================
   WORK
   ========================================================================= */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.work {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work__shot { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top center; background: var(--grey-bg); }
.work__body { padding: 24px 26px 28px; }
.work__tag {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 99px;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.work__tag--client { background: var(--red-tint); color: var(--red-dark); }
.work__tag--sample { background: #EEF0F4; color: var(--ink-soft); }
.work h3 { font-size: 1.28rem; }
.work p { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.work__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; font-size: .93rem; color: var(--red); }
.work__link:hover { gap: 11px; }

/* =========================================================================
   FEATURE ROWS
   ========================================================================= */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 8vw, 108px); }
.feature--flip .feature__art { order: 2; }

.feature__art { background: var(--grey-bg); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px); }
.section--grey .feature__art { background: var(--surface); }
.feature__art img { width: 100%; }

.feature__lede { margin-top: 14px; font-size: 1.02rem; font-style: italic; color: var(--muted); }

.checklist { margin-top: 26px; display: grid; gap: 18px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--red); }
.checklist h4 { font-size: 1rem; font-weight: 800; color: var(--red); margin-bottom: 3px; }
.checklist p { font-size: .94rem; color: var(--ink-soft); }
.feature .btn { margin-top: 30px; }

/* =========================================================================
   TRADES
   ========================================================================= */
.trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px; }
.trade {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 16px; background: #fff; border-radius: var(--radius);
  text-align: center; transition: transform .2s var(--ease);
}
.trade:hover { transform: translateY(-4px); }
.trade svg { width: 34px; height: 34px; color: var(--red); }
.trade span { font-size: .93rem; font-weight: 700; color: var(--ink); }

/* =========================================================================
   PROCESS
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; text-align: center; }
.step__num {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 900;
}
.step h3 { font-size: 1.2rem; }
.step__time { display: block; margin-top: 5px; font-size: .92rem; font-weight: 700; color: var(--red); }
.step p { margin-top: 12px; font-size: .95rem; color: var(--muted); }

/* =========================================================================
   WHY / DIFFERENTIATORS
   ========================================================================= */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why {
  padding: 30px 28px 32px; background: var(--navy-card); border-radius: var(--radius);
  transition: transform .2s var(--ease);
}
.why:hover { transform: translateY(-4px); }
.why svg { width: 30px; height: 30px; color: var(--coral); margin-bottom: 18px; }
.why h3 { font-size: 1.15rem; color: #fff; }
.why p { margin-top: 10px; font-size: .93rem; color: #A9AEBC; }
.why mark { background: none; color: var(--coral); font-weight: 700; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: 12px; overflow: hidden; transition: background-color .2s var(--ease); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; text-align: left; font-size: 1.02rem; font-weight: 700; color: var(--ink);
}
.faq__q svg { width: 20px; height: 20px; flex: none; transition: transform .22s var(--ease); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a p { padding: 0 24px 22px; font-size: .97rem; color: var(--ink-soft); }

.faq__item[data-open="true"] { background: var(--red); }
.faq__item[data-open="true"] .faq__q { color: #fff; }
.faq__item[data-open="true"] .faq__q svg { transform: rotate(180deg); }
.faq__item[data-open="true"] .faq__a p { color: rgba(255, 255, 255, .92); }

/* =========================================================================
   CLOSING CTA
   ========================================================================= */
.cta {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  padding: clamp(36px, 5vw, 60px); background: var(--navy); border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { margin-top: 16px; max-width: 44ch; color: #A9AEBC; }
.cta .btn { margin-top: 28px; }
.cta__art { display: grid; place-items: center; }
.cta__art img { width: min(100%, 250px); }

/* ---------- contact form ---------- */
.form { display: grid; gap: 16px; max-width: 620px; margin-inline: auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .96rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 38, 27, .14);
}
.field textarea { min-height: 128px; resize: vertical; }
.form__note { font-size: .84rem; color: var(--muted); text-align: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--navy-deep); color: #9AA0AE; padding: clamp(56px, 7vw, 82px) 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer li + li { margin-top: 11px; }
.footer a { font-size: .94rem; transition: color .15s var(--ease); }
.footer a:hover { color: var(--coral); }
.footer .brand__name { color: #fff; }
.footer__about { max-width: 34ch; margin-top: 16px; font-size: .94rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
}
.tbd { color: var(--coral); font-style: italic; }

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .hero__art img { width: min(72%, 300px); }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__art { order: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta p { margin-inline: auto; }
  .cta__art { order: -1; }
  .cta__art img { width: 180px; }
}

@media (max-width: 760px) {
  :root { --chev: 42px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 22px 22px; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: flex; }
  .work-grid, .steps, .why-grid, .form__row { grid-template-columns: 1fr; }
  .trades { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__cta { gap: 14px; }
  .trust { gap: 18px; }
}

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