/* Finavate - native rebuild of finavate.co.uk
   Palette + type sampled from the live site (2026-07-17):
   headings Afacad Regular, body Poppins ExtraLight,
   green #163300, lime #9FE870 (live value - brand doc says #9DE963),
   coral #FF5656, off-white #FAFAF7 */

:root {
  --green: #163300;
  --lime: #9FE870;
  --coral: #FF5656;
  --offwhite: #FAFAF7;
  --ink: #080808;
  --grey: #888888;
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

section[id], [id="top"] { scroll-margin-top: 80px; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
}

h1, h2, h3 { font-family: 'Afacad', sans-serif; font-weight: 400; line-height: 1.4; }

img { max-width: 100%; display: block; }

.container {
  width: 100%; max-width: var(--maxw); min-width: 0;
  margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad);
}

.container > * { min-width: 0; }

.eyebrow {
  font-size: 15px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}

.lime { color: var(--lime); }
.coral { color: var(--coral); }

.btn {
  display: inline-block; background: var(--lime); color: var(--green);
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.5px;
  padding: 12px 28px; border-radius: 50px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--green);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; gap: 24px;
}
.wordmark { display: flex; align-items: center; }
.wordmark img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  color: #fff; text-decoration: none; font-size: 16px; font-weight: 300;
}
.nav a:not(.btn):hover { color: var(--lime); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */

.hero { background: var(--green); color: #fff; }
.hero .container {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-top: clamp(40px, 5vw, 60px); padding-bottom: clamp(40px, 5vw, 64px);
}
.hero h1 { font-size: clamp(34px, 3.9vw, 52px); line-height: 1.16; color: #fff; margin-bottom: 26px; }
.hero p { font-size: 18px; margin-bottom: 22px; max-width: 42ch; }
.hero .hook { color: var(--lime); }
.hero .hook u, .hero .bold u { text-underline-offset: 3px; }
.hero .bold { font-weight: 700; }
.hero .btn { margin-top: 4px; }

.video-frame {
  aspect-ratio: 16 / 9; width: 100%; max-width: 560px; justify-self: end;
  border-radius: 10px; overflow: hidden; background: #0d2400;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Stat bar ---------- */

.statbar { background: var(--offwhite); text-align: center; }
.statbar .container { padding-top: clamp(36px, 4vw, 48px); padding-bottom: clamp(20px, 2vw, 28px); }
.statbar h2 { font-size: clamp(20px, 3vw, 42px); color: var(--green); white-space: nowrap; margin-bottom: 10px; }
.statbar .source { color: var(--green); font-size: 18px; }

/* ---------- Trusted by (carousel marquee) ----------
   GATE for go-live: a client logo only ships once written permission is on file. Never PDM. */

.trusted { background: var(--offwhite); overflow: hidden; }
.trusted .container { padding-top: clamp(20px, 2vw, 28px); padding-bottom: clamp(28px, 3vw, 40px); text-align: center; }
.trusted .eyebrow { color: var(--grey); margin-bottom: 24px; }
.logo-marquee { width: 100%; max-width: 100%; overflow: hidden; position: relative; }
.logo-track {
  display: flex; align-items: center; gap: clamp(48px, 6vw, 96px);
  width: max-content; animation: marquee 35s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-track img {
  height: 48px; width: 150px; object-fit: contain;
}
/* squarish marks need a taller box for similar visual mass */
.logo-track img.logo-sq { height: 64px; width: 110px; }

/* ---------- Mission ---------- */

.mission .container {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-top: clamp(32px, 4vw, 44px); padding-bottom: clamp(20px, 2.5vw, 28px);
}
.mission-art img { max-width: 540px; width: 100%; margin: 0 auto; }
.mission h2 { font-size: clamp(32px, 3.9vw, 52px); color: var(--green); margin-bottom: 24px; }
.plain-list { list-style: none; }
.plain-list li { color: #30352d; font-size: 16px; font-weight: 300; margin-bottom: 26px; }
.plain-list li:last-child { margin-bottom: 0; }

.mission-closer { text-align: center; }
.mission-closer .container { padding-bottom: clamp(32px, 4vw, 44px); }
.mission-closer p {
  font-family: 'Afacad', sans-serif; font-size: clamp(24px, 2.75vw, 40px);
  line-height: 1.3; color: var(--green); max-width: 52ch; margin: 0 auto 26px;
}

/* ---------- Services ---------- */

.services { background: #fff; }
.services .container {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(32px, 4vw, 44px); padding-bottom: clamp(32px, 4vw, 44px);
}
.services h2 { font-size: clamp(32px, 3.9vw, 52px); color: var(--green); margin-bottom: 28px; }
.services-illustration { justify-self: end; align-self: start; margin-top: 44px; width: clamp(260px, 28vw, 403px); }
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 3vw, 56px);
}
.icon-list { list-style: none; }
.icon-list li {
  display: flex; gap: 14px; align-items: center;
  color: #30352d; font-size: 16px; font-weight: 300;
  margin-bottom: 18px; min-height: 52px;
}
.icon-list li:last-child { margin-bottom: 0; }
.icon-list img { flex: 0 0 auto; width: 27px; height: 28px; object-fit: contain; }

/* ---------- Testimonials ---------- */

.testimonials { background: var(--offwhite); text-align: center; }
.testimonials .container { padding-top: clamp(28px, 3vw, 36px); padding-bottom: clamp(28px, 3vw, 36px); }
.testimonials h2 { font-size: clamp(30px, 3.2vw, 44px); color: var(--green); margin-bottom: 18px; }
.carousel {
  position: relative; width: 100%; max-width: 980px; margin: 0 auto;
}
.slides-stage {
  position: relative; width: 100%; min-height: 280px;
  transition: height .4s ease;
}
.quote-mark {
  font-family: 'Afacad', sans-serif; font-size: 58px; line-height: .75;
  color: var(--lime); height: 34px; overflow: hidden;
}
.slide {
  display: block; position: absolute; top: 0; left: 50%; width: min(68%, 620px);
  padding: 22px clamp(22px, 4vw, 42px) 20px;
  background: #fff; border: 1px solid #e1e7dc; border-radius: 16px;
  box-shadow: 0 8px 28px rgba(22, 51, 0, .07);
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) scale(.88);
  filter: blur(2px);
  transition: transform .45s ease, opacity .45s ease, filter .45s ease, box-shadow .45s ease;
}
.slide.active {
  z-index: 3; opacity: 1; pointer-events: auto;
  transform: translateX(-50%) scale(1); filter: blur(0);
}
.slide.prev, .slide.next {
  z-index: 2; opacity: .32; pointer-events: auto;
  cursor: pointer; filter: blur(1.5px); box-shadow: none;
}
.slide.prev { transform: translateX(-118%) scale(.9); }
.slide.next { transform: translateX(18%) scale(.9); }
.slide blockquote { font-size: 15px; font-weight: 400; line-height: 1.6; }
.slide blockquote p { margin-bottom: 10px; }
.slide .company-logo { height: 50px; width: auto; margin: 8px auto 6px; object-fit: contain; }
.slide .no-logo { height: 60px; margin: 6px auto 8px; }
.slide cite {
  display: block; font-style: normal; color: #5E5E5E;
  font-size: 13px; font-weight: 500; letter-spacing: .3px;
}
.slide cite .person { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: #d4d4cc; cursor: pointer; padding: 0;
}
.dots button.active { background: var(--green); }

/* ---------- Contact + footer ---------- */

.contact { background: var(--green); color: #fff; text-align: center; }
.contact .container { padding-top: clamp(40px, 5vw, 56px); padding-bottom: clamp(24px, 3vw, 36px); }
.contact .eyebrow { color: #fff; opacity: .85; }
.contact h2 { font-size: clamp(30px, 3.9vw, 52px); line-height: 1.1; color: #fff; max-width: 26ch; margin: 0 auto 18px; }
.contact .sub { font-size: clamp(17px, 2vw, 22px); font-weight: 700; margin-bottom: 28px; }
.contact .sub u { text-underline-offset: 3px; }

.footer-bottom {
  background: var(--offwhite); color: var(--ink);
  border-top: 1px solid #e4e8df; padding: 32px 0 18px;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 32px; align-items: center;
}
.footer-bottom address { font-style: normal; font-size: 15px; line-height: 1.55; text-align: left; }
.badges {
  display: flex; gap: 24px; align-items: center; justify-content: center;
  flex: 0 1 auto;
}
.badges img { height: auto; max-width: none; flex: 0 0 auto; object-fit: contain; }
.badges .badge-icaew { width: 145px; }
.badges .badge-xero { width: 96px; }
.badges .badge-shopify { width: 150px; }
.footer-contact { text-align: right; font-size: 15px; line-height: 1.7; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid #dce1d7; padding-top: 14px;
  font-size: 13px; text-transform: uppercase; margin-top: 22px; color: #4d5349;
}
.footer-legal a { color: #4d5349; text-underline-offset: 3px; }

/* ---------- Disclaimer page ---------- */

.legal-body .container { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.legal-body h1 { font-size: clamp(34px, 4vw, 50px); color: var(--green); margin-bottom: 36px; }
.legal-body h2 { font-size: 26px; color: var(--green); margin: 32px 0 12px; }
.legal-body p { margin-bottom: 14px; }

/* ---------- Breakpoints ---------- */

@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; }
  .video-frame { justify-self: start; }
  .statbar h2 { white-space: normal; }
  .mission .container { grid-template-columns: 1fr; }
  .mission-art { order: 2; }
  .services .container { grid-template-columns: 1fr; }
  .services-illustration { display: none; }
}

@media (max-width: 750px) {
  .nav {
    position: fixed; inset: 84px 0 auto 0; background: var(--green);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    padding: 0 var(--pad);
  }
  .nav a:not(.btn) { padding: 14px 0; font-size: 17px; }
  .nav .btn { margin: 12px 0 20px; }
  .nav-toggle:checked ~ .nav { max-height: 360px; }
  .nav-burger {
    display: block; cursor: pointer; width: 26px; height: 20px; position: relative;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px;
    background: #fff; transition: transform .2s ease;
  }
  .nav-burger span { top: 9px; }
  .nav-burger span::before { top: -8px; }
  .nav-burger span::after { top: 8px; }

  .services-grid { grid-template-columns: 1fr; }
  .icon-list li { min-height: 0; margin-bottom: 24px; }
  .slides-stage { min-height: 330px; }
  .slide { width: 82%; border-radius: 12px; padding: 20px 18px 18px; }
  .slide.prev { transform: translateX(-112%) scale(.9); }
  .slide.next { transform: translateX(12%) scale(.9); }
  .slide blockquote { font-size: 15px; line-height: 1.6; }
  .testimonials .container { padding-top: 28px; padding-bottom: 28px; }
  .badges { width: 100%; gap: 14px; }
  .badges .badge-icaew { width: 105px; }
  .badges .badge-xero { width: 76px; }
  .badges .badge-shopify { width: 112px; }
  .footer-bottom { padding-top: 28px; }
  .footer-grid { flex-direction: column; text-align: center; gap: 22px; }
  .footer-bottom address, .footer-contact { text-align: center; }
  .footer-legal { flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
}
