@charset "UTF-8";
/* ==========================================================
   NMG Advisors LLC — site styles
   Palette read from the live Wix site theme
   ========================================================== */
:root {
  /* Read off the live Wix theme (--color_41..45), not eyedropped. */
  --lavender: #B29FD4;   /* header background */
  --plum:     #3A285A;   /* dark purple sections, nav rules, cards */
  --green:    #086636;   /* buttons + service icons */
  --offwhite: #F4F1F7;   /* light page background */
  --navy:     #263149;   /* body text */
  --white:    #FFFFFF;
  --ink:      var(--navy);
  /* Derived hover shades. Not in the Wix palette. */
  --plum-deep:  #2E2048;
  --green-deep: #065129;
  --heading-font: "League Spartan", "Segoe UI", Arial, sans-serif;
  --body-font: "Source Sans 3", "Segoe UI", Arial, Helvetica, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  font-size: 18px;
  border: 0;
  cursor: pointer;
  font-family: var(--body-font);
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--green-deep); outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--lavender);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 24px;
}
.logo {
  display: block;
  background: var(--white);
  padding: 4px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  /* The header is sticky, so the logo sets how much of every screen it permanently
     occupies. 360px made it 176px tall, a fifth of a 1440x900 viewport, and the hero
     h1 sat entirely behind it once the page scrolled. */
  width: 220px;
  max-width: calc(100vw - 140px);
}
.main-nav {
  border-top: 5px solid var(--plum);
  border-bottom: 5px solid var(--plum);
  padding: 8px 0;
  flex: 0 1 660px;
}
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.main-nav a {
  text-decoration: none;
  color: var(--plum);
  font-size: 26px;
  letter-spacing: .06em;
  padding: 6px 4px;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--plum-deep); text-decoration: underline; text-underline-offset: 6px; }
.main-nav a[aria-current="page"] { color: var(--plum-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--plum);
  color: var(--white);
  text-align: center;
  padding: 56px 24px 64px;
}
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.12; }
.hero p { font-size: 20px; margin: 24px auto 36px; max-width: 52ch; }

/* ---------- Generic section ---------- */
.section { padding: 64px 0; text-align: center; }
.section h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; color: var(--ink); }
.section .lede { font-size: 19px; margin: 0 auto 40px; }

/* ---------- Who We Serve ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  max-width: 1250px;
  margin: 0 auto;
}
.serve-card { text-align: left; }
.serve-card img { width: 100%; aspect-ratio: 380 / 345; object-fit: cover; }
.serve-card .label {
  background: var(--plum);
  color: var(--white);
  font-weight: 700;
  font-size: 28px;
  padding: 18px 30px;
}

/* ---------- Services overview (home) ---------- */
.services-overview { padding-bottom: 72px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.svc-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-top: 48px; }
.svc { text-align: center; }
.svc svg { width: 80px; height: 80px; margin: 0 auto 30px; fill: none; stroke: var(--green); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 22px; margin-bottom: 20px; }
.svc p { margin: 0 auto; max-width: 34ch; }

/* ---------- Our Story ---------- */
.story {
  display: grid;
  grid-template-columns: 40% 60%;
  border-top: 3px solid var(--plum);
}
.story-side {
  background: var(--plum);
  color: var(--white);
  padding: 70px 24px 70px 12.5vw;
}
.story-side h2 { font-size: 60px; line-height: 1.05; }
.story-side hr { width: 36px; border: 0; border-top: 1px solid var(--white); margin: 30px 0 45px; }
.story-side a {
  color: var(--white); text-decoration: none; font-family: var(--body-font);
  font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid rgba(255,255,255,.5); padding-bottom: 4px;
}
.story-side a:hover, .story-side a:focus-visible { border-bottom-color: var(--white); }
.story-body { padding: 70px 56px; font-size: 19px; line-height: 1.65; max-width: 68ch; }

/* ---------- Contact strip ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--plum);
  padding: 10px 6px;
}
.contact-strip > div {
  background: var(--offwhite);
  padding: 56px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.contact-strip svg { width: 32px; height: 32px; stroke: var(--plum); fill: none; stroke-width: 1.5; margin: 0 auto 20px; }
.contact-strip h3 { font-size: 22px; margin-bottom: 20px; }
.contact-strip a { text-decoration: none; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: #000; color: #fff; margin: 0 4px;
}
.social svg { width: 18px; height: 18px; fill: #fff; stroke: none; margin: 0; }

/* ---------- Book a consultation (About page) ---------- */
.book { text-align: center; padding: 60px 24px; }
.book h2 { font-size: 44px; margin-bottom: 32px; color: var(--ink); }
.book .row { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; font-size: 19px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--white); padding: 34px 0 60px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; }
.footer-brand .logo { width: 355px; margin-bottom: 30px; }
.footer-brand p { margin: 0 0 12px; font-size: 16px; }
.footer-brand .social-row { display: flex; align-items: center; gap: 12px; }
.disclaimer { font-size: 16px; line-height: 1.55; max-width: 46ch; }
.disclaimer p { margin: 0 0 20px; }
.newsletter h3 { font-size: 28px; margin-bottom: 32px; }
.newsletter label { display: block; font-size: 19px; margin-bottom: 10px; }
.newsletter input[type="email"] {
  width: 100%; padding: 16px; border: 0; font-size: 17px; margin-bottom: 30px;
}
.newsletter .consent { display: flex; align-items: center; gap: 24px; justify-content: space-between; margin-bottom: 40px; }
.newsletter .consent label { display: flex; gap: 12px; margin: 0; align-items: center; }
.newsletter .consent input { width: 20px; height: 20px; }
.newsletter .btn { padding: 12px 18px; }
.newsletter .privacy { color: var(--white); font-size: 16px; display: inline-block; padding: 6px 0; }

/* ---------- About page ---------- */
.about-intro { padding: 50px 0 40px; }
.about-intro .inner { max-width: 78ch; margin: 0 auto; padding: 0 24px; }
.about-intro h1 { font-size: 46px; font-weight: 700; margin-bottom: 4px; }
.about-intro .role { font-size: 30px; color: var(--green); margin-bottom: 36px; }
.about-intro p { font-size: 19px; line-height: 1.65; max-width: 72ch; }
.about-intro .btn { display: block; width: fit-content; margin: 44px 0 0; padding: 14px 60px; }
.about-panels { background: var(--plum); padding: 40px 0; }
.about-panel { background: var(--offwhite); max-width: 920px; margin: 0 auto 40px; padding: 60px 56px; }
.about-panel:last-child { margin-bottom: 0; }
.about-panel h2 { font-size: 38px; margin-bottom: 28px; }
.about-panel p { font-size: 19px; line-height: 1.65; max-width: 72ch; }

/* ---------- Services page ---------- */
.services-hero { text-align: center; padding: 60px 24px; }
.services-hero h1 { font-size: clamp(44px, 5vw, 64px); margin-bottom: 20px; }
.services-hero p { font-size: 19px; max-width: 60ch; margin: 0 auto 36px; line-height: 1.65; }
.services-panel { background: var(--plum); padding: 60px 24px 90px; }
.svc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; max-width: 1180px; margin: 0 auto; }
.svc-cards > .flip-card { flex: 1 1 340px; max-width: 360px; }
.flip-card {
  background: var(--offwhite); display: grid; perspective: 1500px;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: box-shadow .25s, transform .25s;
}
.flip-card:hover, .flip-card:focus-within { box-shadow: 0 10px 24px rgba(0,0,0,.28); transform: translateY(-4px); }
.flip-card .face {
  grid-area: 1 / 1; padding: 40px 32px 32px; text-align: center;
  backface-visibility: hidden; transition: transform .6s;
}
.flip-card .front h3 { font-size: clamp(27px, 2.3vw, 33px); line-height: 1.15; margin-bottom: 28px; }
.flip-card .front svg { width: 88px; height: 88px; margin: 0 auto 26px; fill: none; stroke: var(--green); stroke-width: .85; stroke-linecap: round; stroke-linejoin: round; }
.flip-card .front p { font-size: 18px; line-height: 1.6; margin: 0; }
/* Affordance: the detail list is behind the card, and nothing else says so. */
.flip-card .front::after {
  content: "See what’s included ›";
  display: block; margin-top: 26px;
  font-family: var(--body-font); font-size: 15px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--green);
}
.flip-card .front { display: flex; flex-direction: column; justify-content: center; }
.flip-card .back { background: var(--offwhite); transform: rotateY(180deg); text-align: left; }
.flip-card .back h3 { font-size: 25px; text-align: center; margin-bottom: 24px; }
.flip-card .back ul { margin: 0; padding-left: 18px; font-size: 17px; line-height: 1.65; }
.flip-card .back li { margin-bottom: 12px; }
.flip-card .back strong { font-weight: 600; }
.flip-card:hover .front, .flip-card:focus-within .front { transform: rotateY(180deg); }
.flip-card:hover .back,  .flip-card:focus-within .back  { transform: rotateY(0); }
@media (prefers-reduced-motion: reduce) {
  .flip-card .face { transition: none; }
  /* Keep the shadow cue, drop the movement. */
  .flip-card { transition: box-shadow .25s; }
  .flip-card:hover, .flip-card:focus-within { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { font-size: 20px; }
  .story-side { padding-left: 24px; }
  .svc-cards { gap: 28px; }
}
@media (max-width: 860px) {
  /* flex-wrap stays: it is what drops the open nav onto its own row. The logo has to be
     capped so the logo + gap + button always fit row 1, or the button wraps under the
     logo and the sticky header doubles in height. */
  .site-header .wrap { flex-wrap: wrap; gap: 16px; padding: 12px 16px; }
  /* vw, not %: a percentage max-width on a replaced element resolves against its own
     width here, not the container, which collapsed the logo to 96px at every width.
     140px covers the wrap padding, the gap and the button. */
  .site-header .logo { width: 200px; }
  .nav-toggle {
    display: block; background: var(--plum); border: 0; color: var(--white);
    font-family: var(--body-font); font-size: 17px; font-weight: 600;
    letter-spacing: .04em; padding: 12px 20px; min-height: 44px; cursor: pointer;
  }
  .main-nav { flex-basis: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 10px 0; }
  .serve-grid, .svc-grid, .svc-grid.two, .contact-strip, .site-footer .wrap { grid-template-columns: 1fr; }
  .svc-cards > .flip-card { flex: 1 1 100%; max-width: 460px; }
  .story { grid-template-columns: 1fr; }
  .story-body { padding: 40px 24px; }
  .contact-strip > div { padding: 44px 16px; }
  .about-panel { padding: 50px 24px; }
  .footer-brand .logo { width: 100%; max-width: 355px; }
  .flip-card .front h3 { font-size: 30px; }
  [id] { scroll-margin-top: 114px; }
}

/* ---------- Services page: consultation banner (plum box on light bg) ---------- */
.book-banner { padding: 34px 24px; }
.book-banner .inner {
  background: var(--plum); color: var(--white); max-width: 1225px; margin: 0 auto;
  text-align: center; padding: 48px 24px 40px;
}
.book-banner h2 { font-size: 44px; margin-bottom: 26px; }
.book-banner .row { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; font-size: 19px; }
.book-banner a { color: var(--white); }

/* ---------- Contact page ---------- */
.contact-page { background: var(--plum); color: var(--white); padding: 20px 24px 0; text-align: center; }
.contact-page h1 { font-size: clamp(44px, 5vw, 64px); margin-bottom: 30px; }
.contact-card {
  background: var(--offwhite); color: var(--ink); max-width: 1225px; margin: 0 auto;
  padding: 60px 115px 50px; text-align: left;
}
.contact-card .lede { text-align: center; font-size: 24px; margin: 0 0 60px; }
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.contact-info h3 { font-family: var(--body-font); font-weight: 700; font-size: 19px; margin-bottom: 20px; }
.contact-info a { text-decoration: none; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 54px; text-align: left; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 18px; margin: 0 0 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--plum-deep); font-size: 17px;
  font-family: var(--body-font); background: var(--offwhite);
}
.contact-form textarea { min-height: 110px; }
.contact-form .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.contact-form .btn.send { background: var(--plum); font-family: var(--heading-font); font-size: 28px; padding: 4px 0; width: 313px; margin: 0; }
.contact-form .btn.send:hover { background: var(--plum-deep); }

/* ---------- Privacy page ---------- */
.privacy-page { background: var(--plum); color: var(--white); padding: 80px 24px 110px; }
.privacy-page h1 { text-align: center; font-size: clamp(44px, 5vw, 64px); margin-bottom: 90px; }
.privacy-page .inner { max-width: 760px; margin: 0 auto; font-size: 19px; line-height: 1.9; }
.privacy-page p { margin: 0 0 36px; }

@media (max-width: 860px) {
  .contact-card { padding: 40px 24px; }
  .contact-info, .contact-form { grid-template-columns: 1fr; }
  .contact-form .btn.send { width: 100%; }
}

/* Who We Serve — hover description (matches Wix hover state) */
.serve-card { position: relative; overflow: hidden; }
.serve-desc {
  position: absolute; inset: 0; margin: 0; background: rgba(58,40,90,.92); color: var(--white);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 40px; font-size: 19px; line-height: 1.7; opacity: 0; transition: opacity .3s;
}
.serve-card:hover .serve-desc, .serve-card:focus-within .serve-desc, .serve-card:focus .serve-desc { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .serve-desc { transition: none; } }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--plum); color: var(--white); padding: 12px 20px;
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 8px; }
/* Sticky header would otherwise cover an anchored target */
/* Re-derived from the real header height at each breakpoint, plus a 12px gap.
   A stale value here tucks an anchor target under the sticky header. */
[id] { scroll-margin-top: 125px; }
/* The hover cards are keyboard-reachable, so they need a visible focus ring */
.serve-card:focus-visible, .flip-card:focus-visible,
.serve-card:focus-within, .flip-card:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
}

/* Long service lists must not spill out of a fixed-height flip card */
.flip-card .back { overflow-y: auto; }
@media (max-width: 1100px) {
  .flip-card .back h3 { font-size: 32px; margin-bottom: 24px; }
  .flip-card .back ul { font-size: 17px; line-height: 1.7; }
  /* The front face runs long here: the widest title wraps to three lines. */
  .flip-card .front h3 { font-size: 40px; margin-bottom: 48px; }
  .flip-card .front svg { margin-bottom: 48px; }
}
.privacy-page .effective {
  text-align: center; margin: -60px 0 60px; font-size: 17px; opacity: .85;
}

/* Footer contact details are links, styled like the site's other dark-background
   links: no underline at rest, underline on hover and focus. */
/* :not(.social) matters. This rule outranks .social (0,1,1 beats 0,1,0), so without it
   the chip loses its inline-flex centring and picks up 5px of top padding, which pushed
   the LinkedIn glyph up and to the left inside its circle. */
.footer-brand a:not(.social) {
  text-decoration: none;
  /* inline-block + padding so the tap target clears the 24px minimum;
     the raw text is only 17px tall, which is fiddly to hit on a phone. */
  display: inline-block; padding: 5px 0;
}
.footer-brand a:not(.social):hover, .footer-brand a:not(.social):focus-visible { text-decoration: underline; }
