/* Elysian — Styles ---------------------------------------------- */
:root {
  /* Base */
  --bg: #f8fafa;
  --bg-2: #ffffff;

  /* Text */
  --ink: #0d0e10;
  --muted: #4f5052;

  /* Accent (charcoal) */
  --accent: #282738;
  --accent-ink: #ffffff;

  /* Utility borders / overlays (dark-on-light) */
  --white-10: rgba(13, 14, 16, .08);
  --white-15: rgba(13, 14, 16, .12);
  --white-25: rgba(13, 14, 16, .18);

  /* Extra greys */
  --grey-1: #c5c6c8;
  --grey-2: #818283;

  /* Gold (for Gold plan only) */
  --gold: #d4b55f;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "liga", "kern", "calt";
  scroll-snap-type: y proximity;
  overflow-y: scroll;
}

/* Reveal on scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0)
}

/* Typography */
.section h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1
}

.section .eyebrow {
  font-size: 1rem
}

.section p {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem)
}

.lead {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem)
}

.card-title {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem)
}

.card-text,
.text-body-secondary {
  font-size: clamp(1.05rem, 1.6vw, 1.15rem)
}

.text-body-secondary {
  color: var(--muted) !important
}

/* Utilities */
.text-white-90 {
  color: rgba(13, 14, 16, .92) !important
}

.text-white-75 {
  color: rgba(13, 14, 16, .75) !important
}

.text-white-60 {
  color: #818283 !important
}

.border-white-10 {
  border-color: var(--white-10) !important
}

.bg-dark-2 {
  background: var(--bg-2)
}

.bg-black-10 {
  background: rgba(13, 14, 16, .04)
}

.bg-black-15 {
  background: rgba(13, 14, 16, .06)
}

.ls-1 {
  letter-spacing: .02em
}

.fw-extrabold {
  font-weight: 800
}

/* Sections */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 6rem 0 4rem;
  scroll-snap-align: start;
}

.section .eyebrow {
  display: inline-block;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600
}

.text-accent {
  color: var(--accent) !important
}

/* Buttons */
.badge.text-bg-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border: none
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent)
}

.btn-accent:hover {
  filter: brightness(.95);
  color: var(--accent-ink)
}

.btn-outline-light {
  --bs-btn-color: rgba(13, 14, 16, .92);
  --bs-btn-border-color: var(--white-25);
  --bs-btn-hover-bg: rgba(13, 14, 16, .06);
  --bs-btn-hover-border-color: rgba(13, 14, 16, .28)
}

/* Navbar */
.navbar {
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(13, 14, 16, .10);
  box-shadow: 0 8px 24px rgba(13, 14, 16, .06);
}

.navbar .nav-link {
  color: rgba(13, 14, 16, .78)
}

.navbar .nav-link:hover {
  color: var(--ink)
}

.navbar-toggler {
  border: 1px solid var(--white-15);
  background: rgba(13, 14, 16, .03);
  color: var(--ink);
  font-weight: 600
}

.navbar-toggler::after {
  content: ""
}

/* Hero */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  padding-top: 8rem
}

.hero-gradient {
  display: none !important
}

/* Hero badge */
.hero .hero-badge {
  border: 1px solid var(--white-10);
  background: rgba(13, 14, 16, .03);
  backdrop-filter: blur(6px);
}

/* One-line hero title */
.hero-title {
  font-size: clamp(1.5rem, 6vw, 4rem);
  white-space: nowrap;
  overflow-wrap: normal;
  text-wrap: nowrap;
}

.hero-sub {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem)
}

/* Cards */
.card {
  background: rgba(13, 14, 16, .02);
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  color: var(--ink)
}

.card-service .icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  background: rgba(40, 39, 56, .10);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem
}

/* Service hover pulse */
@keyframes pulseSoft {
  0% {
      transform: scale(1)
  }

  50% {
      transform: scale(1.02)
  }

  100% {
      transform: scale(1)
  }
}

.card-service:hover {
  animation: pulseSoft .6s ease-in-out
}

/* Portfolio */
.portfolio-item {
  position: relative;
  display: block;
  overflow: hidden
}

.portfolio-item img {
  transition: transform .5s ease
}

.portfolio-item .overlay {
  position: absolute;
  inset: .5rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  background: rgba(13, 14, 16, .55);
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease
}

.portfolio-item:hover img {
  transform: scale(1.05)
}

.portfolio-item:hover .overlay {
  opacity: 1
}

/* Modals */
.detail-modal .modal-dialog {
  max-width: 920px
}

.detail-modal .meta {
  min-width: 260px
}

.detail-modal .modal-header {
  border-bottom: 1px solid rgba(13, 14, 16, .12)
}

.detail-modal .modal-footer {
  border-top: 1px solid rgba(13, 14, 16, .12)
}

@keyframes zoomOut {
  from {
      opacity: 1;
      transform: scale(1)
  }

  to {
      opacity: 0;
      transform: scale(.92)
  }
}

.zoom-out {
  animation: zoomOut .25s ease forwards
}

/* Pricing */
.card-pricing .price {
  line-height: 1
}

.card-pricing.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 .15rem rgba(40, 39, 56, .12)
}

/* Team social badges (restored look) */
.card .social {
  width: 34px;
  height: 34px;
  border: 1px solid var(--white-10);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
  opacity: .9;
}

.card .social i {
  line-height: 1;
  font-size: 1rem;
}

.card .social:hover {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 .15rem rgba(40, 39, 56, .14);
  color: var(--ink);
}

.card a.social,
.card a.social:visited {
  color: var(--ink);
}

/* Footer */
.footer .link-faded {
  color: rgba(13, 14, 16, .68);
  text-decoration: none
}

.footer .link-faded:hover {
  color: var(--ink);
  text-decoration: underline
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero {
      text-align: center
  }

  .section {
      padding: 3rem 1rem
  }

  .navbar-collapse {
      background: var(--bg-2);
      padding: 1rem;
      border-radius: .75rem;
      border: 1px solid var(--white-10)
  }
}

/* Center only these sections vertically */
#services.section,
#about.section,
#testimonials.section,
#pricing.section {
  align-items: center;
  /* overrides .section { align-items:flex-start } */
}

/* Fix testimonial carousel controls */
#testimonials .carousel {
  width: 100%;
  max-width: 100%;
  /* span full width of section */
}

#testimonials .carousel-control-prev,
#testimonials .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  width: 5%;
  /* keep them narrow */
}

#testimonials .carousel-control-prev {
  left: 0;
  /* flush left */
  justify-content: flex-start;
}

#testimonials .carousel-control-next {
  right: 0;
  /* flush right */
  justify-content: flex-end;
}

#testimonials .carousel-inner {
  width: 70%;
  /* testimonial text stays centered */
  margin: 0 auto;
}

/* Hero centering fix for mobile */
.hero .container {
  padding-top: 0;
  /* default = no extra push */
  text-align: center;
}

@media (min-width: 992px) {
  .hero .container {
      padding-top: 8rem;
      /* keep top padding for desktops/laptops */
  }
}

/* --- Mobile hero centering & button sizing (iOS-safe) --- */
#hero.hero {
  /* use small-viewport height so iOS bottom bar doesn't push content off-center */
  min-height: 100svh;
  align-items: center;
  /* vertical center */
}

#hero .container {
  padding-top: 0;
  /* remove desktop offset on mobile */
  padding-bottom: 0;
}

@media (max-width: 576px) {
  #hero .container {
      text-align: center;
      display: flex;
      align-items: center;
      /* center horizontally */
      justify-content: center;
      /* center vertically within hero flex column */
      gap: 0.75rem;
  }

  /* keep the headline on one line but scale it down sooner */
  .hero-title {
      font-size: clamp(1.35rem, 6.2vw, 2.25rem);
      white-space: nowrap;
  }

  .hero-sub {
      margin-bottom: 0.75rem !important;
      font-size: 1.05rem;
  }

  /* buttons: smaller, tighter, centered row */
  #hero .d-flex.gap-3 {
      gap: .75rem !important;
      justify-content: center;
      flex-wrap: wrap;
  }

  #hero .btn.btn-lg {
      padding: .85rem 1.15rem !important;
      font-size: 1rem !important;
      line-height: 1.1;
      border-radius: 9999px;
  }

  /* hero badge spacing so it doesn't push layout down */
  .hero .hero-badge {
      margin-top: .5rem;
  }
}

/* HERO centering: mobile vs desktop */
#hero.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* default = center on mobile */
}

#hero .container {
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}

/* Desktop overrides */
@media (min-width: 992px) {
  #hero.hero {
      align-items: flex-start;
      /* push content down slightly */
  }

  #hero .container {
      padding-top: 8rem;
      /* restore the top offset */
      text-align: left;
      /* align text/buttons left again */
  }
}

/* =========================================================
TESTIMONIALS — lock height + prevent layout shift
Paste at VERY BOTTOM of styles.css
========================================================= */

#testimonials #quoteCarousel .carousel-inner {
  /* Keeps the carousel height consistent as slides change */
  min-height: clamp(260px, 28vh, 380px);
}

/* Vertically center the content inside each slide (only when visible) */
#testimonials #quoteCarousel .carousel-item.active,
#testimonials #quoteCarousel .carousel-item-next,
#testimonials #quoteCarousel .carousel-item-prev {
  display: flex;
  align-items: center;
}

/* Make the figure fill the slide cleanly */
#testimonials #quoteCarousel figure {
  width: 100%;
  margin: 0;
}

/* =========================================================
TESTIMONIALS — FIX HEIGHT + STOP PAGE JUMP (Bootstrap Carousel)
Paste at VERY BOTTOM of styles.css
========================================================= */

#testimonials #quoteCarousel .carousel-inner {
  /* Hard-lock the visible area so cycling slides doesn't push the page */
  height: clamp(260px, 28vh, 380px);
}

/* Make the ACTIVE slide fill the locked height */
#testimonials #quoteCarousel .carousel-item {
  height: 100%;
}

/* Force the active slide to flex (Bootstrap otherwise uses display:block) */
#testimonials #quoteCarousel .carousel-item.active {
  display: flex !important;
  align-items: center;
}

/* Keep the content from touching edges and ensure it fits nicely */
#testimonials #quoteCarousel figure {
  width: 100%;
  margin: 0;
}

/* Optional: prevent long quotes from overflowing visually */
#testimonials #quoteCarousel blockquote {
  margin-bottom: 1rem;
}

/* =========================================================
TESTIMONIALS — lock carousel height (works with JS below)
========================================================= */

#testimonials #quoteCarousel .carousel-inner {
  overflow: hidden;
  /* important: prevents content affecting layout */
}

@media (max-width: 576px) {

  /* reduce padding so mobile doesn't get crazy tall */
  #testimonials #quoteCarousel .carousel-item {
      padding: 1.5rem !important;
      /* overrides Bootstrap p-5 */
  }

  /* use full width on mobile so text wraps more consistently */
  #testimonials .carousel-inner {
      width: 100% !important;
  }
}

/* =========================================================
PRICING — anchor CTA buttons to bottom of card
Paste at VERY BOTTOM of styles.css
========================================================= */

.card-pricing {
  display: flex;
  flex-direction: column;
}

.card-pricing .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Let the list take up the available space, pushing the button down */
.card-pricing .card-body ul {
  flex: 1 1 auto;
}

/* Force the button to the bottom */
.card-pricing .card-body .btn {
  margin-top: auto;
}

/* =========================================================
TESTIMONIALS — ZERO LAYOUT SHIFT (CSS-only, cross-browser)
Forces every slide to identical height and clamps overflow.
========================================================= */

#testimonials #quoteCarousel {
  /* prevents any internal animation/transform from affecting layout */
  overflow: hidden;
}

/* Lock a consistent visible height for the carousel across devices */
#testimonials #quoteCarousel .carousel-inner {
  height: clamp(300px, 34vh, 420px);
  /* tweak if you want taller/shorter */
}

/* Each slide fills the fixed viewport height */
#testimonials #quoteCarousel .carousel-item {
  height: 100%;
}

/* Make the testimonial “box” behave like a fixed card */
#testimonials #quoteCarousel figure {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* keeps name/title anchored */
}

/* Clamp quote height so longer text can't stretch the card */
#testimonials #quoteCarousel blockquote {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  /* desktop clamp */
}

/* Fallback for browsers that don't support line-clamp */
@supports not (-webkit-line-clamp: 1) {
  #testimonials #quoteCarousel blockquote {
      max-height: 9.5em;
      /* ~6 lines depending on font-size */
  }
}

/* Mobile: allow a touch more room for wrap, still fixed height (no pushing) */
@media (max-width: 576px) {
  #testimonials #quoteCarousel .carousel-inner {
      height: clamp(320px, 42vh, 520px);
  }

  #testimonials #quoteCarousel blockquote {
      -webkit-line-clamp: 8;
      /* mobile clamp */
  }

  @supports not (-webkit-line-clamp: 1) {
      #testimonials #quoteCarousel blockquote {
          max-height: 12.5em;
          /* ~8 lines fallback */
      }
  }
}

/* =========================================================
LIGHT THEME OVERRIDES (keep layout/animations intact)
========================================================= */

/* Sections that previously used "dark" helpers now read correctly on light bg */
.section {
  color: var(--ink)
}

.section.bg-dark-2 {
  color: var(--ink)
}

/* Bootstrap dark utility classes used in markup */
.bg-dark {
  background: var(--bg-2) !important
}

.text-white {
  color: var(--ink) !important
}

/* Ensure white "close" icon remains visible on light modals */
.btn-close-white {
  filter: invert(1) grayscale(1) brightness(.15) !important
}

/* Forms (Bootstrap) */
.form-control,
.form-control-lg {
  background: rgba(13, 14, 16, .02);
  border-color: var(--white-15);
  color: var(--ink);
}

.form-control::placeholder,
.form-control-lg::placeholder {
  color: rgba(79, 80, 82, .75)
}

.form-control:focus,
.form-control-lg:focus {
  border-color: rgba(40, 39, 56, .35);
  box-shadow: 0 0 0 .25rem rgba(40, 39, 56, .10);
}

/* =========================================================
COLOUR-ONLY OVERRIDES (NO LAYOUT CHANGES)
Additions requested: brand colour, footer, pricing, FAQ contrast
========================================================= */

/* 1) Force navbar brand (Bootstrap .navbar-dark was making it white) */
.navbar .navbar-brand {
  color: var(--ink) !important;
}

/* 2) Navbar "scrolled" (only applies if your JS toggles .scrolled) */
.navbar.scrolled {
  background: var(--ink) !important;
  border-bottom-color: rgba(248, 250, 250, .20) !important;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
  color: var(--bg) !important;
}

/* 3) Footer: background dark, text readable (colour-only) */
.footer {
  background: var(--ink) !important;
}

.footer,
.footer h5,
.footer h6,
.footer p,
.footer span,
.footer a {
  color: var(--bg) !important;
}

.footer .link-faded {
  color: rgba(248, 250, 250, .78) !important;
}

.footer .link-faded:hover {
  color: var(--bg) !important;
}

/* 4) PRICING — Silver: header + "From $1500" in #c5c6c8, with contrast */
#pricing .card-pricing:not(.featured) {
  background: rgba(13, 14, 16, .04) !important;
  /* subtle contrast vs #f8fafa */
  border-color: rgba(13, 14, 16, .12) !important;
}

#pricing .card-pricing:not(.featured) .card-header h5,
#pricing .card-pricing:not(.featured) .price {
  color: var(--grey-1) !important;
}

#pricing .card-pricing:not(.featured) .card-body,
#pricing .card-pricing:not(.featured) .card-body li {
  color: var(--muted) !important;
}

/* 5) PRICING — Gold: badge + header + price in gold (fits package name) */
#pricing .card-pricing.featured {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 .15rem rgba(212, 181, 95, .18) !important;
  /* same effect, gold-tinted */
}

#pricing .card-pricing.featured .badge.text-bg-accent {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

#pricing .card-pricing.featured .card-header h5,
#pricing .card-pricing.featured .price {
  color: var(--gold) !important;
}

/* 6) FAQ: accordion needs contrast against the section background */
#faq .accordion-item {
  background: rgba(13, 14, 16, .03) !important;
  border: 1px solid rgba(13, 14, 16, .12) !important;
}

#faq .accordion-button {
  background: transparent !important;
  color: var(--ink) !important;
}

#faq .accordion-button:not(.collapsed) {
  background: rgba(13, 14, 16, .04) !important;
  color: var(--ink) !important;
}

#faq .accordion-body {
  background: rgba(248, 250, 250, .75) !important;
  color: var(--muted) !important;
}

/* =========================================================
COLOUR-ONLY PATCHES (no layout/spacing/typography changes)
========================================================= */

/* 1) NAVBAR: smooth animated colour change (instead of sudden switch) */
.navbar,
.navbar .navbar-brand,
.navbar .nav-link {
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease;
}

/* Ensure base (top of page) stays readable on light */
.navbar .navbar-brand {
  color: var(--ink) !important;
}

.navbar .nav-link {
  color: rgba(13, 14, 16, .78) !important;
}

.navbar .nav-link:hover {
  color: var(--ink) !important;
}

/* Scrolled state: dark bar + light text (uses your existing JS toggle .scrolled) */
.navbar.scrolled {
  background: var(--ink) !important;
  border-bottom-color: rgba(248, 250, 250, .18) !important;
  box-shadow: 0 10px 24px rgba(13, 14, 16, .22) !important;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
  color: var(--bg) !important;
}

.navbar.scrolled .nav-link {
  opacity: .85;
}

.navbar.scrolled .nav-link:hover {
  opacity: 1;
}

/* 2) TESTIMONIALS: make carousel arrows visible + #0d0e10
(Bootstrap uses white SVGs; we invert them to become dark) */
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
  filter: invert(1) grayscale(1) brightness(.15) !important;
  /* -> deep charcoal */
  opacity: 1 !important;
}

/* Optional: slightly darken the hit area so you can see it on light backgrounds */
#testimonials .carousel-control-prev,
#testimonials .carousel-control-next {
  opacity: .95;
}

/* 3) TESTIMONIALS: card surface (clean, flat) */
#testimonials #quoteCarousel .carousel-inner {
  border: 1px solid rgba(13, 14, 16, .12) !important;
  background: #ffffff !important;
  /* white card */
  box-shadow: none !important;
  /* <-- remove grey glow */
}

#testimonials #quoteCarousel .carousel-item {
  background: transparent !important;
  /* let carousel-inner define the surface */
  color: var(--ink) !important;
}

#testimonials #quoteCarousel .blockquote-footer {
  color: var(--grey-2) !important;
}

/* 4) PRICING — Silver: darker surface for better contrast */
#pricing .card-pricing:not(.featured) {
  background: rgba(13, 14, 16, .08) !important;
  /* darker than before */
  border-color: rgba(13, 14, 16, .16) !important;
}

/* Silver header + price stay #c5c6c8 */
#pricing .card-pricing:not(.featured) .card-header h5,
#pricing .card-pricing:not(.featured) .price {
  color: var(--grey-1) !important;
}

/* Silver body text readable */
#pricing .card-pricing:not(.featured) .card-body,
#pricing .card-pricing:not(.featured) .card-body li {
  color: rgba(248, 250, 250, .86) !important;
}

/* 5) PRICING — Gold: “Choose” button gold + white text */
#pricing .card-pricing.featured .btn {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
}

#pricing .card-pricing.featured .btn:hover {
  filter: brightness(.95) !important;
  color: #ffffff !important;
}

/* Gold Popular badge text -> white (instead of black) */
#pricing .card-pricing.featured .badge.text-bg-accent {
  background: var(--gold) !important;
  color: #ffffff !important;
}

/* 6) PRICING — Black package: header + price to #0d0e10
  (targets the 3rd card in your pricing row) */
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-header h5,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .price {
  color: var(--ink) !important;
}

/* Keep Black card body text consistent */
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-body,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-body li {
  color: var(--muted) !important;
}

/* =========================================================
 FINAL PATCH — Pricing + Gold badge alignment + Testimonials polish
 (Only affects requested elements)
 ========================================================= */

/* ---------------------------
 PRICING CARD TARGETS
 Assumes order: Silver (1st), Gold featured (2nd), Black (3rd)
 --------------------------- */

/* Silver card: bg #282728, all text #c5c6c8, button to match, ticks to match */
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing {
  background: #282728 !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing,
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .card-header,
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .card-body,
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .card-header h5,
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .price,
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .card-body li {
  color: #c5c6c8 !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .card-body i,
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .card-body svg,
#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .card-body .bi {
  color: #c5c6c8 !important;
  fill: #c5c6c8 !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .btn {
  background: #c5c6c8 !important;
  border-color: #c5c6c8 !important;
  color: #282728 !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(1) .card-pricing .btn:hover {
  filter: brightness(.95) !important;
  color: #282728 !important;
}

/* Gold card: keep current colours; only fix badge so it sits inside border and doesn't push layout */
#pricing .row>.col-md-6.col-lg-4:nth-child(2) .card-pricing.featured .card-header {
  position: relative !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(2) .card-pricing.featured .badge {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  margin: 0 !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(2) .card-pricing.featured .badge+* {
  /* In case any element had margin-top expecting the badge in flow */
  margin-top: 0 !important;
}

/* Black card: bg #0d0e10, all text #f8fafa, button inverted, ticks match */
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing {
  background: #0d0e10 !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .card-header,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .card-body,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .card-header h5,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .price,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .card-body li {
  color: #f8fafa !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .card-body i,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .card-body svg,
#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .card-body .bi {
  color: #f8fafa !important;
  fill: #f8fafa !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .btn {
  background: #f8fafa !important;
  border-color: #f8fafa !important;
  color: #0d0e10 !important;
}

#pricing .row>.col-md-6.col-lg-4:nth-child(3) .card-pricing .btn:hover {
  filter: brightness(.95) !important;
  color: #0d0e10 !important;
}

/* =========================================================
 FIX 1: GOLD "Popular" badge — centered like a clipboard clip,
 sits on the border WITHOUT pushing content or covering "Gold"
 ========================================================= */

#pricing .row>.col-md-6.col-lg-4:nth-child(2) .card-pricing.featured {
  position: relative !important;
  /* anchor badge to the card itself */
}

#pricing .row>.col-md-6.col-lg-4:nth-child(2) .card-pricing.featured .badge {
  position: absolute !important;
  top: -16px !important;
  /* clip effect over the border */
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;
  margin: 0 !important;
}

/* Make space so badge doesn't overlap the "Gold" heading */
#pricing .row>.col-md-6.col-lg-4:nth-child(2) .card-pricing.featured .card-header {
  padding-top: 2.5rem !important;
}


/* =========================================================
 TESTIMONIALS — FINAL FIX (bigger card + no cycling glitches)
 Paste at VERY BOTTOM of styles.css
 ========================================================= */

/* Make the testimonial "card" (carousel-inner) wider on desktop */
#testimonials .carousel-inner {
  width: min(980px, 86%) !important;
  margin: 0 auto !important;
}

/* Keep the original fixed-height behaviour (prevents page jump) */
#testimonials #quoteCarousel .carousel-inner {
  height: clamp(260px, 28vh, 380px) !important;
  min-height: clamp(260px, 28vh, 380px) !important;
  overflow: hidden !important;
}

/* Center the card content during carousel transition states */
#testimonials #quoteCarousel .carousel-item.active,
#testimonials #quoteCarousel .carousel-item-next,
#testimonials #quoteCarousel .carousel-item-prev {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ensure the figure fills the available width inside the card */
#testimonials #quoteCarousel figure {
  width: 100% !important;
  margin: 0 !important;
}

/* Mobile: full width */
@media (max-width: 576px) {
  #testimonials .carousel-inner {
      width: 100% !important;
  }
}

/* =========================================================
 NAVBAR (MOBILE) — Fix invisible hamburger + invisible menu items on scroll
 (SCOPED TO MOBILE/TABLET ONLY)
 ========================================================= */

@media (max-width: 991.98px) {

  /* Hamburger button: always visible */
  .navbar .navbar-toggler {
    background: #f8fafa !important;
    border: 1px solid rgba(13, 14, 16, .25) !important;
    color: #0d0e10 !important;
  }

  /* Force a DARK hamburger icon (Bootstrap uses a background-image SVG) */
  .navbar .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='rgba(13,14,16,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* When scrolled, KEEP the hamburger readable */
  .navbar.scrolled .navbar-toggler {
    background: #f8fafa !important;
    border-color: rgba(13, 14, 16, .35) !important;
    color: #0d0e10 !important;
  }

  .navbar.scrolled .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='rgba(13,14,16,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Mobile dropdown panel stays light */
  .navbar .navbar-collapse {
    background: #f8fafa !important;
  }

  /* Override scrolled white links INSIDE the mobile menu */
  .navbar.scrolled .navbar-collapse .nav-link,
  .navbar .navbar-collapse .nav-link {
    color: #0d0e10 !important;
  }

  .navbar.scrolled .navbar-collapse .nav-link:hover,
  .navbar .navbar-collapse .nav-link:hover {
    color: #0d0e10 !important;
    opacity: .75;
  }
}