/* ==========================================================================
   Nine-9 Solutions — one-pager
   Bootstrap 5.3.3 + custom layer. Grey (dark) version.
   ========================================================================== */

:root {
  --n9-bg:        #2F3232;   /* page background */
  --n9-bg-alt:    #313131;   /* cards / tiles */
  --n9-line:      #454545;   /* hairlines + borders */
  --n9-ink:       #ffffff;   /* headings */
  --n9-ink-mute:  #b9b9b9;   /* body copy */
  --n9-lime:      #a5ce3a;   /* brand accent */
  --n9-lime-dark: #8fb62c;   /* accent hover */

  --n9-serif: "Jomolhari", Georgia, serif;
  --n9-sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --n9-section-y: 5.5rem;
  
  --n9-nav-h: 88px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background-color: var(--n9-bg);
  color: var(--n9-ink);
  font-family: var(--n9-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

#home, #about, #services, #contact {
  scroll-margin-top: var(--n9-nav-h);
}

:focus-visible {
  outline: 2px solid var(--n9-lime);
  outline-offset: 3px;
}

/* ---------- Type ---------- */
.n9-display,
.n9-h2 {
  font-family: var(--n9-serif);
  font-weight: 400;
  color: var(--n9-ink);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.n9-display { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; margin-top: 2.5rem; }
.n9-h2      { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 1.25rem; }

.n9-accent  { color: var(--n9-lime); }

.n9-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n9-lime);
  margin-bottom: 0.75rem;
}

.n9-lead { max-width: 34ch; margin-bottom: 2rem; }
.n9-body { max-width: 46ch; }

/* ---------- Layout helpers ---------- */
.n9-section { padding: var(--n9-section-y) 0; }
.n9-section--divider { border-top: 1px solid var(--n9-line); }

/* ---------- Nav ---------- */
.n9-nav {
  background-color: transparent;
  backdrop-filter: none;
  padding-block: 1rem;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}

.n9-nav.is-scrolled {
  background-color: rgba(47, 50, 50, 0.92);   /* --n9-bg at ~92% */
  backdrop-filter: blur(8px);
  border-bottom-color: var(--n9-line);
}
.n9-nav .nav-link {
  color: var(--n9-ink);
  font-size: 0.9rem;
  padding-inline: 1rem;
  position: relative;
}
.n9-nav .nav-link:hover { color: var(--n9-lime); }
.n9-nav .nav-link.active {
  color: var(--n9-lime);
}

.n9-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.25rem;
  height: 2px;
  background: var(--n9-lime);
}
.navbar-toggler {
  border-color: var(--n9-line);
  padding: 0.35rem 0.5rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f2f2f2' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.n9-hero {
  padding: 12rem 0 5rem;
  position: relative;
  overflow-x: hidden;
}

.n9-hero::before {
  content: "";
  position: absolute;
  top: -42%;            /* was 50% + translateY(-50%) */
  right: -8%;
  width: 780px;
  height: 780px;
  border: 1px solid var(--n9-line);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.n9-hero__figure { position: relative; display: inline-block; }

.n9-mascot { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.n9-btn {
  background: var(--n9-lime);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background-color .18s ease, transform .18s ease;
}
.n9-btn:hover,
.n9-btn:focus { background: var(--n9-lime-dark); color: #fff; }

.n9-btn:active { background: transparent !important; border: 1px solid var(--n9-ink); color: var(--n9-ink) !important; }

.n9-btn i { font-size: 0.875rem; }

/* ---------- Problem: benefit row ---------- */
.n9-benefits { margin-top: 3.5rem; }
.n9-benefit { display: flex; gap: 0.85rem; }
.n9-benefit__icon {
  color: var(--n9-lime);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
.n9-benefit__title {
  font-family: var(--n9-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--n9-ink);
  margin-bottom: 0.35rem;
}
.n9-benefit__text { font-size: 0.85rem; margin-bottom: 0; }

/* ---------- About ---------- */
.n9-image-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.n9-testimonials { margin-top: 3rem; }
.n9-quote {
  border: 1px solid var(--n9-line);
  padding: 1.75rem;
  border-radius: 8px;
  height: 100%;
  margin: 0;
}
.n9-quote__mark { color: var(--n9-lime); font-size: 1.25rem; display: block; margin-bottom: 0.75rem; }
.n9-quote blockquote { font-size: 0.85rem; margin-bottom: 1.25rem; }
.n9-quote figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.n9-quote__author { font-size: 0.75rem; color: var(--n9-ink-mute); }
.n9-stars { color: var(--n9-lime); font-size: 0.75rem; letter-spacing: 0.1em; }

/* ---------- Services tiles ----------
   Every tile is a fixed 3-row grid: icon / title / price.
   The title row absorbs wrapping so prices stay on the same baseline. */
.n9-tile {
  gap: 0.35rem;
  height: 100%;
  padding: 3rem 1.25rem;
  text-align: center;
  border: 1px solid var(--n9-line);
  border-radius: 8px;
  transition: border-color .18s ease, background-color .18s ease;
}
.n9-tile:hover { border-color: var(--n9-lime); background: #363636; }
.n9-tile__icon { color: var(--n9-lime); font-size: 1.5rem; line-height: 1; margin-bottom: 0.75rem; }
.n9-tile__title {
  font-family: var(--n9-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--n9-ink);
  margin: 0;
  align-self: start;
      line-height: 2rem;
}
.n9-tile__price { font-size: 0.75rem; color: var(--n9-ink-mute); margin: 0; align-self: end; }

/* ---------- Process timeline ---------- */
.n9-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
/* horizontal connector */
.n9-timeline::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 12.5%;
  right: 12.5%;
  border-top: 1px dashed var(--n9-line);
}
.n9-step { text-align: center; position: relative; }
.n9-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid var(--n9-lime);
  background: var(--n9-bg);
  color: var(--n9-ink);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
}
.n9-step__title {
  font-family: var(--n9-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--n9-ink);
  margin-bottom: 0.4rem;
}
.n9-step__text { 
  margin-bottom: 0;
  font-weight: 200;
  font-size: 0.75rem;
  color: var(--n9-ink-mute);
}

/* vertical timeline on mobile / tablet */
@media (max-width: 767.98px) {
  .n9-timeline { grid-template-columns: 1fr; gap: 2rem; padding-left: 1rem; }
  .n9-timeline::before {
    top: 1.4rem;
    bottom: 1.4rem;
    left: 2.4rem;
    right: auto;
    border-top: 0;
    border-left: 1px dashed var(--n9-line);
  }
  .n9-step {
    display: grid;
    grid-template-columns: 2.8rem 1fr;
    gap: 1.25rem;
    align-items: start;
    text-align: left;
  }
  .n9-step__num { margin-bottom: 0; }
}

/* ---------- Pricing checklist ---------- */
.n9-checklist { list-style: none; margin: 0; padding: 0; }
.n9-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.n9-checklist i { color: var(--n9-lime); font-size: 1rem; }

/* ---------- Contact ---------- */
.n9-contact {
  border-top: 1px solid var(--n9-line);
  padding: var(--n9-section-y) 0 4rem;
}
.n9-contact__list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.n9-contact__list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0; font-size: 0.9rem; }
.n9-contact__list i { color: var(--n9-lime); font-size: 1rem; }
.n9-contact__list a { color: var(--n9-ink-mute); text-decoration: none; }
.n9-contact__list a:hover { color: var(--n9-lime); }

/* ---------- Footer ---------- */
.n9-footer {
  border-top: 1px solid var(--n9-line);
  padding: 2rem 0 2.5rem;
}
.n9-footer__copy { font-size: 0.75rem; color: #8a8a8a; }

/* ---------- Footer legal links ---------- */
.n9-footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
}
.n9-footer__legal a { color: #8a8a8a; text-decoration: none; }
.n9-footer__legal a:hover { color: var(--n9-lime); }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
  :root { --n9-section-y: 4rem; }
  .n9-nav__list { padding-top: 0.75rem; }
  .n9-nav .nav-link.active::after { display: none; }
  .n9-hero { padding-top: 12rem; text-align: left; }
  .n9-lead, .n9-body { max-width: none; }
  

}