/* Full Moon Analysis - fresh build */

:root {
  --accent: #BADA55;
  --ink: #2F2E2E;
  --body: #605E5E;
  --grey: #969696;
  --tint: #F7F7F5;
  --footer: #969696;
  --max: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.55;
}

.inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header { background: #fff; }
.bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo-img { height: 94px; width: auto; display: block; }
.btn {
  background: var(--accent);
  color: #7a7a7a;
  text-decoration: none;
  font-size: 17px;
  padding: 8px 30px;
  border-radius: 999px;
}
.btn:hover { color: #fff; }
.btn:hover { opacity: 0.85; }

/* Hero */
.hero { position: relative; height: 480px; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: rgba(60, 55, 45, 0.35);
}
.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
h1 {
  font-family: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 68px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 .stop { color: var(--accent); }

/* Sections */
.band { padding: 34px 0; }
.band.tinted { background: var(--tint); }

h2 {
  font-family: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 33px;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 22px;
}

p { color: var(--body); font-size: 17px; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* Client feedback */
.quote { display: grid; grid-template-columns: 340px 1fr; column-gap: 60px; row-gap: 8px; align-items: start; }
@media (max-width: 820px) {
  .bubble { float: left; width: 150px; margin: 0 18px 8px 0; }
  .quote { display: block; }
  .attribution { text-align: right; margin-top: 10px; }
}
.bubble svg { width: 100%; height: auto; display: block; }
.quote blockquote p { color: var(--body); font-size: 17px; margin-bottom: 14px; }
.attribution { grid-column: 2; text-align: right; color: var(--accent); font-size: 24px; margin-top: 0; }

/* Two-column layouts */
.cols { display: flex; gap: 40px; align-items: center; }
.services-copy { max-width: 640px; flex: 1; }
.chartered {
  flex-shrink: 0;
  margin-left: auto;
  max-height: 100%;
  overflow: hidden;
}
#services .cols { gap: 20px; }
.chartered img { height: 400px; max-width: 100%; width: auto; display: block; }

/* Technology */
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 46px;
  align-items: center;
  margin: 40px 0 24px;
  row-gap: 52px;
}
.logos img { height: 58px; width: auto; }
.logos img[alt="CashCalc"], .logos img[alt="FE fundinfo"] { height: 58px; margin-top: -5px; }
.tech-intro { margin-top: 6px; }

/* Contact */
.contact p { margin-bottom: 0; }

/* Business values */
.values-list p { margin-bottom: 16px; }
.num { margin-right: 4px; }

/* About */
.about-copy { flex: 1.1; }
.portrait { flex: 0.9; display: flex; justify-content: flex-end; }
.portrait img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  display: block;
}
.sig-name { color: var(--grey); font-size: 18px; margin-top: 22px; margin-bottom: 2px; }
.sig-role { color: var(--accent); font-size: 18px; margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 28px 0 34px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.site-footer p { color: #fff; font-size: 15px; }
.site-footer .small { font-size: 13px; line-height: 1.6; margin-bottom: 10px; max-width: 100%; }
.site-footer a { color: #fff; text-decoration: underline; }

/* Responsive */
@media (max-width: 820px) {
  .btn { display: none; }
  .bar { align-items: center; }
  .nav-burger { align-self: auto; margin-bottom: 0; }
  .logo-img { height: 72px; }
  h1 { font-size: 42px; }
  h2 { font-size: 26px; }
  .cols { flex-direction: column; }
  #services .cols { display: flow-root; }
  #services .chartered { float: none; width: 160px; margin: 0 auto 10px; padding-top: 0; text-align: center; }
  #services .chartered img { height: auto; width: 160px; max-width: 100%; }
  .portrait { text-align: left; }
  .logos img { height: 37px; }
  .logos img[alt="CashCalc"], .logos img[alt="FE fundinfo"] { height: 37px; margin-top: -4px; }
}


/* --- Mobile drawer menu (pure CSS via checkbox) --- */
.nav-toggle { display: none; }
.nav-burger { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(72vw, 320px);
  background: var(--accent);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  padding: 70px 34px;
  display: flex; flex-direction: column; gap: 8px;
}
.drawer a { color: #fff; text-decoration: none; font-size: 24px; font-weight: 400; padding: 14px 0; }
.nav-close {
  position: absolute; top: 14px; right: 22px;
  font-size: 42px; color: #fff; cursor: pointer; line-height: 1;
}
.nav-toggle:checked ~ .drawer { transform: translateX(0); }

@media (max-width: 820px) {
  .bar { align-items: center; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; box-sizing: border-box;
    padding: 10px; margin-left: 8px; align-self: center;
    border: 1px solid #ddd; border-radius: 8px; cursor: pointer;
    background: #fff; flex: 0 0 auto;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; display: block;
    width: 24px; height: 3px; background: var(--accent);
    border-radius: 2px; position: relative; transition: 0.2s;
  }
  .nav-burger span::before { position: absolute; top: -8px; }
  .nav-burger span::after  { position: absolute; top: 8px; }
  .nav-toggle:checked ~ .nav-burger { border-color: var(--accent); }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { transform: rotate(45deg); top: 0; }
  .nav-toggle:checked ~ .nav-burger span::after  { transform: rotate(-45deg); top: 0; }
}
