@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
/* icon font: <i class="bi bi-..."> */


:root {
  /* brand tokens — taken from the logo files */
  --navy: #002B5B;
  --navy-deep: #001833;
  --red: #D00016;
  --red-dark: #A80012;
  --mist: #EEF2F7;

  /* corner radius tokens: change these 3 values to round the whole site more or less */
  --radius-sm: 8px;
  /* buttons, inputs, menu items */
  --radius-md: 12px;
  /* cards, badges, dropdowns */
  --radius-lg: 18px;
  /* big panels and the contact form */
  --red-tint: #FDF1F2;

  /* surface tokens — these flip in dark mode */
  --surface: #FFFFFF;
  --surface-alt: #EEF2F7;
  --ink: #1B2A41;
  --ink-soft: #55637A;
  --heading: #002B5B;
  --line: #D6DEE9;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px);
}

/* The site always uses the light brand theme (even if the visitor's device is in dark mode). */
:root {
  color-scheme: light;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* clip (not hidden) stops sideways scroll without breaking the sticky navbar */
html,
body {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
}

a:hover {
  color: var(--red-dark);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ---------- colour utilities ---------- */
.bg-navy {
  background-color: var(--navy) !important;
}

.bg-navy-deep {
  background-color: var(--navy-deep) !important;
}

.bg-red {
  background-color: var(--red) !important;
}

.bg-mist {
  background-color: var(--surface-alt) !important;
}

.bg-red-tint {
  background-color: var(--red-tint) !important;
}

.text-navy {
  color: var(--heading) !important;
}

.text-red {
  color: var(--red) !important;
}

.text-soft {
  color: var(--ink-soft) !important;
}

.text-on-dark {
  color: #F2F5FA !important;
}

.text-on-dark-muted {
  color: #A9B8CF !important;
}

.border-red {
  border: 2px solid var(--red) !important;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .75rem 1.5rem;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}

.btn-red:hover,
.btn-red:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.btn-outline-navy {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--heading);
}

.btn-outline-navy:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-outline-on-dark {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .55);
}

.btn-outline-on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* ---------- typography ---------- */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.home-hero-title,
.heading-xl,
.heading-md {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--heading);
}

.home-hero-title {
  font-size: clamp(3.2rem, 7.4vw, 6.2rem);
  font-weight: 900;
  line-height: .92;
}

.heading-xl {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}

.heading-md {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-max-width {
  max-width: 62ch;
}

/* ---------- spacing ---------- */
.py-section {
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.py-section-sm {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ---------- icon sizes ----------
   Icons come from Bootstrap Icons: <i class="bi bi-telephone-fill icon-16"></i>
   .icon-12 … .icon-28   sets the icon size in pixels                          */
.bi {
  line-height: 1;
}

.icon-12 {
  font-size: 12px;
}

.icon-14 {
  font-size: 14px;
}

.icon-16 {
  font-size: 16px;
}

.icon-18 {
  font-size: 18px;
}

.icon-20 {
  font-size: 20px;
}

.icon-22 {
  font-size: 22px;
}

.icon-26 {
  font-size: 26px;
}

.icon-28 {
  font-size: 28px;
}

/* ---------- top contact bar ---------- */
.topbar {
  font-size: .875rem;
}

.topbar a {
  color: #E3E9F2;
  text-decoration: none;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- navbar ---------- */
.site-navbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 1030;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, padding .2s ease;
}

.site-navbar .navbar-brand-logo {
  height: 54px;
  width: auto;
  transition: height .2s ease;
}

/* .is-scrolled is added by main.js once the page scrolls: adds a shadow and a smaller logo */
.site-navbar.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 24, 51, .10);
}

.site-navbar.is-scrolled .navbar-brand-logo {
  height: 44px;
}

.site-navbar .nav-link {
  color: var(--heading);
  font-weight: 600;
  padding: .5rem .9rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--red);
}

.site-navbar .dropdown-menu {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  background: var(--surface);
  padding: .5rem;
  margin-top: 0;
  box-shadow: 0 16px 40px rgba(0, 24, 51, .12);
}

.site-navbar .dropdown-item {
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: .45rem .6rem;
  white-space: normal;
}

.site-navbar .dropdown-item:hover {
  background: var(--surface-alt);
  color: var(--red);
}

.site-navbar .navbar-toggler {
  border: 2px solid var(--heading);
  border-radius: var(--radius-sm);
}

/* ---------- nested flyout menu (Services) ----------
   .dropdown-hover   opens the dropdown on mouse hover (desktop only)
   .dropdown-flyout    the first-level list of service categories
   .has-submenu      a category that has its own sub-list
   .submenu          the sub-list; flies out to the RIGHT on desktop,
                     opens underneath (tap to expand) on mobile
   .submenu-toggle   the category link that opens a .submenu        */
.dropdown-flyout {
  min-width: 17rem;
}

.has-submenu {
  position: relative;
}

.submenu-toggle {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.submenu-chevron {
  font-size: 12px;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform .2s ease;
}

.submenu {
  display: none;
  margin: 0;
  padding: .5rem;
  background: var(--surface);
  min-width: 16rem;
}

.dropdown-item-all {
  color: var(--red) !important;
  font-weight: 600;
}

@media (min-width: 992px) {
  .dropdown-hover:hover>.dropdown-menu {
    display: block;
  }

  .submenu {
    position: absolute;
    left: 100%;
    top: -.5rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    box-shadow: 16px 16px 40px rgba(0, 24, 51, .12);
  }

  .has-submenu:hover>.submenu,
  .has-submenu:focus-within>.submenu {
    display: block;
  }

  .has-submenu:hover>.submenu-toggle,
  .has-submenu:focus-within>.submenu-toggle {
    background: var(--surface-alt);
    color: var(--red);
  }

  .has-submenu:hover .submenu-chevron {
    color: var(--red);
  }
}

@media (max-width: 991.98px) {
  .site-navbar .dropdown-menu {
    border: 0;
    border-left: 3px solid var(--red);
    box-shadow: none;
    padding: 0 0 .5rem .5rem;
  }

  .has-submenu.is-open>.submenu {
    display: block;
    padding: 0 0 .25rem 1rem;
  }

  .has-submenu.is-open .submenu-chevron {
    transform: rotate(90deg);
  }
}

/* ---------- hero with book wall ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-two-tone {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 992px) {
  .hero-two-tone {
    background: linear-gradient(90deg, var(--surface) 0 56%, var(--surface-alt) 56% 100%);
  }
}

/* hero book wall: fills the right half of the hero edge to edge (a full-width
   strip under the text below 992px). Three columns of covers scroll on their own,
   the middle one the other way. Each track holds its books twice, so moving it by
   half its height loops seamlessly. Hover pauses it; reduced motion stops it. */
.hero-book-wall {
  position: relative;
  height: 420px;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.9rem, 1.6vw, 1.4rem);
  padding-inline: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(208, 0, 22, .22), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero-with-wall {
  padding-bottom: 0;
}

@media (min-width: 992px) {
  .hero-with-wall {
    padding-bottom: 6rem;
  }

  .hero-book-wall {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 56%;
    height: auto;
    margin-top: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-book-wall {
    height: 340px;
  }
}

.hero-book-col {
  min-width: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}

.hero-book-track {
  animation: hero-wall-scroll 48s linear infinite;
}

.hero-book-col:nth-child(2) .hero-book-track {
  animation-duration: 40s;
  animation-direction: reverse;
}

.hero-book-col:nth-child(3) .hero-book-track {
  animation-duration: 54s;
  animation-delay: -12s;
}

.hero-book-wall:hover .hero-book-track {
  animation-play-state: paused;
}

.hero-book {
  /* spacing is padding, not gap, so the two copies are exactly half the track */
  display: block;
  padding-bottom: clamp(.9rem, 1.6vw, 1.4rem);
}

.hero-book img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .35));
  transition: transform .4s ease;
}

.hero-book:hover img {
  transform: translateY(-6px) scale(1.03);
}

@keyframes hero-wall-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-book-track { animation: none; }
}
.hero-note {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

/* ---------- platform strip: moving logo marquee ----------
   .logo-slider        the window the logos move through (edges fade out)
   .logo-slider-track  the row that slides left forever; pauses on hover */
.platform-strip {
  border-bottom: 1px solid var(--line);
}

.logo-slider {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-slider-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.logo-slider:hover .logo-slider-track {
  animation-play-state: paused;
}

.platform-strip .platform-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 0 2.25rem;
  position: relative;
}

.platform-strip .platform-name::after {
  /* small red divider between store names */
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: translate(50%, -50%) rotate(45deg);
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- services ---------- */
.service-card {
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--heading);
  background: var(--surface);
}

.service-card.position-relative {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
}

.service-card:hover {
  border-top-color: var(--red);
}

.service-card a.stretched-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.service-icon {
  display: inline-block;
  font-size: 40px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* ---------- portfolio ---------- */
.portfolio-filter .btn {
  padding: .45rem 1.1rem;
  font-size: .95rem;
}

.portfolio-filter .btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.book-cover {
  margin: 0;
}

.book-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: -5px 0 0 rgba(0, 0, 0, .18) inset, 0 14px 28px rgba(0, 24, 51, .22);
  border-radius: 1px 3px 3px 1px;
  transition: transform .25s ease;
}

.book-cover a:hover img,
.book-cover a:focus img {
  transform: translateY(-6px);
}

.book-cover figcaption {
  margin-top: 1rem;
}

.book-cover .book-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--heading);
  line-height: 1.1;
}

.book-cover .book-meta {
  font-size: .9rem;
  color: var(--ink-soft);
}

.portfolio-item.is-hidden {
  display: none;
}

/* ---------- book card: Bootstrap .card with a 3D book mockup (transparent PNG) ----------
   used by the Portfolio page grid and the home page carousel */
.book-card {
  --bs-card-border-color: var(--line);
  --bs-card-border-radius: var(--radius-lg);
  --bs-card-inner-border-radius: calc(var(--radius-lg) - 1px);
  --bs-card-bg: var(--surface);
  overflow: hidden;
  /* box-shadow: 0 2px 6px rgba(0, 24, 51, .04); */
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.book-card:hover,
.book-card:focus-within {
  --bs-card-border-color: var(--line)  !important;
  --bs-card-border-radius: var(--radius-lg) !important;
  --bs-card-inner-border-radius: calc(var(--radius-lg) - 1px) !important;
  --bs-card-bg: var(--surface) !important;
  transform: translateY(-6px) !important;
  border-color: transparent !important;
  /* box-shadow: 0 22px 44px rgba(0, 24, 51, .14); */
}
.book-card:hover {
    border: 1px solid #d6dee9 !important;
}

.book-card-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem 1.25rem;
  background: radial-gradient(ellipse at 50% 30%, var(--surface) 0%, var(--surface-alt) 78%);
  border-bottom: 1px solid var(--line);
}

.book-card-stage img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 24, 51, .22));   /* follows the book's shape, not a rectangle */
  transition: transform .35s ease;
}

.book-card:hover .book-card-stage img {
  transform: scale(1.05) translateY(-4px);
}

.book-card-badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 1;
  padding: .4em .75em;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.book-card-body {
  padding: 1.1rem 1.25rem .5rem;
}

.book-card-body:last-child {
  padding-bottom: 1.3rem;
}

.book-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--heading);
  /* long subtitles stay to 2 lines so every card lines up */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-author {
  margin-top: .4rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

.book-card-title a {
  color: inherit;
  text-decoration: none;
}

.book-card-title a:focus-visible {
  outline: none;
}

/* stretched-link makes the whole card clickable; show the focus ring on the card */
.book-card:has(.stretched-link:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.book-card-desc {
  margin-top: .65rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--red);
}

.book-card-link .bi {
  transition: transform .2s ease;
}

.book-card:hover .book-card-link .bi {
  transform: translateX(4px);
}

/* links inside the card sit above the stretched link */
.book-card .btn-amazon {
  position: relative;
  z-index: 2;
}

.book-card-footer {
  padding: .25rem 1.25rem 1.25rem;
  background: transparent;
  border-top: 0;
}

/* Amazon buy button: navy so it sits with the brand, Amazon orange on the icon */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
}

.btn-amazon .bi {
  color: #FF9900;
  font-size: 1.05rem;
}

.btn-amazon:hover,
.btn-amazon:focus-visible {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.btn-amazon:hover .bi,
.btn-amazon:focus-visible .bi {
  color: #fff;
}

/* ---------- book case study page (book.php) ---------- */
.book-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  color: #fff;
}

.book-hero-author {
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255, 255, 255, .85);
}

.book-hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.book-hero-stage::before {
  /* soft light behind the book */
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
}

.book-hero-stage img {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45));
}

.book-study h2 {
  margin-top: 2.25rem;
}

.book-study h2:first-child {
  margin-top: 0;
}

.book-study p {
  font-size: 1.1rem;
  max-width: 68ch;
}

.book-details {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 24, 51, .06);
}

.book-details-list dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.book-details-list dd {
  margin: .15rem 0 0;
  padding-bottom: .85rem;
  margin-bottom: .85rem;
  border-bottom: 1px dashed var(--line);
  color: var(--heading);
  font-weight: 600;
}

.book-details-list dd:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.book-service-chip {
  display: inline-block;
  padding: .3rem .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.book-service-chip:hover,
.book-service-chip:focus-visible {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.book-pager {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.book-pager-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: var(--heading);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.book-pager-link.is-next {
  justify-content: space-between;
  text-align: right;
}

.book-pager-link:hover,
.book-pager-link:focus-visible {
  color: var(--heading);
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 24, 51, .08);
}

.book-pager-link .bi {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--red);
}

.book-pager-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.book-pager-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .book-hero-stage {
    max-width: 280px;
  }

  .book-details {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .book-hero-stage {
    max-width: 220px;
  }

  .book-study p {
    font-size: 1.02rem;
  }
}

/* ---------- home page book carousel (scroll-snap track, driven by main.js) ---------- */
.book-carousel {
  --per-view: 4;
  --gap: 1.5rem;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .75rem .25rem 1.25rem;   /* room for the hover lift and shadow */
  margin: -.75rem -.25rem 0;
  outline: none;
}

.book-carousel::-webkit-scrollbar {
  display: none;
}

.book-carousel-slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
}

@media (max-width: 1199.98px) {
  .book-carousel { --per-view: 3; }
}

@media (max-width: 767.98px) {
  .book-carousel { --per-view: 2; --gap: 1rem; }
}

@media (max-width: 575.98px) {
  .book-carousel { --per-view: 1.35; --gap: .9rem; }

  .book-card-stage {
    padding: 2.25rem 1rem 1rem;
  }

  .book-card-body {
    padding: .9rem 1rem .4rem;
  }

  .book-card-footer {
    padding: .6rem 1rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-card,
  .book-card-stage img {
    transition: none;
  }

  .book-carousel {
    scroll-behavior: auto;
  }
}

/* ---------- author websites: browser-framed screenshot cards (author websites page, portfolio preview, case study) ---------- */
.author-sites-section:not(.bg-mist) {
  border-top: 1px solid var(--line);
}

/* fake browser window around a website screenshot */
.site-browser {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 24, 51, .10);
  text-decoration: none;
}

.site-browser-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .8rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.site-browser-dots {
  display: inline-flex;
  gap: .35rem;
  flex-shrink: 0;
}

.site-browser-dots i {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: #F2665C;
}

.site-browser-dots i:nth-child(2) { background: #F5BE4F; }
.site-browser-dots i:nth-child(3) { background: #5CC46A; }

.site-browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: .2rem .7rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .72rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-browser-url .bi {
  font-size: .65rem;
  color: #2E9B4F;
}

.site-browser-screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.site-browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s ease;
}

.site-browser-screen.is-fallback {
  background: radial-gradient(ellipse at 50% 35%, #0b3b74 0%, var(--navy-deep) 80%);
}

.site-browser-screen.is-fallback img {
  position: absolute;
  top: 8%;
  left: 50%;
  width: auto;
  height: 84%;
  translate: -50% 0;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .45));
}

/* card */
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: .85rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.site-card .site-browser {
  box-shadow: none;
}

.site-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 24, 51, .12);
}

.site-card:hover .site-browser-screen img {
  transform: scale(1.04);
}

.site-card:has(.stretched-link:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.site-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem .4rem .35rem;
}

.site-card-genre {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}

.site-card-title {
  margin-top: .3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--heading);
}

.site-card-title a {
  color: inherit;
  text-decoration: none;
}

.site-card-title a:focus-visible {
  outline: none;
}

.site-card-book {
  margin-top: .35rem;
  font-size: .92rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-card-desc {
  margin-top: .6rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink);
}

.site-card-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .85rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--red);
}

.site-card-link .bi {
  font-size: .8rem;
  transition: transform .2s ease;
}

.site-card:hover .site-card-link .bi {
  transform: translate(2px, -2px);
}

/* case study page: large browser frame */
.book-site .heading-xl {
  color: #fff;
}

.book-site-points li {
  display: flex;
  gap: .6rem;
  padding: .3rem 0;
  color: rgba(255, 255, 255, .88);
}

.book-site-points .bi {
  color: #F4A9B1;
  font-size: 1.1rem;
}

.site-browser-lg {
  border: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transition: transform .35s ease, box-shadow .35s ease;
}

.site-browser-lg .site-browser-bar {
  padding: .7rem 1rem;
}

.site-browser-lg .site-browser-url {
  font-size: .8rem;
}

.site-browser-cta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

.site-browser-lg:hover,
.site-browser-lg:focus-visible {
  transform: translateY(-6px);
}

.site-browser-lg:focus-visible {
  outline: 3px solid #F4A9B1;
  outline-offset: 4px;
}

.site-browser-lg:hover .site-browser-cta,
.site-browser-lg:focus-visible .site-browser-cta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .site-browser-cta { opacity: 1; transform: none; }
}

.book-details-site {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--red);
  text-decoration: none;
  word-break: break-all;
}

.book-details-site:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .site-card,
  .site-browser-screen img,
  .site-browser-lg,
  .site-browser-cta {
    transition: none;
  }
}

/* ---------- process ---------- */
.process-step {
  position: relative;
  padding-left: 4.5rem;
  padding-bottom: 2.25rem;
}

.process-step::before {
  /* the vertical line connecting the steps */
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.process-step:last-child::before {
  display: none;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}

.process-step:last-child .step-number {
  background: var(--red);
}

/* ---------- manchester panel ---------- */
.manchester-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.manchester-panel > .container {
  z-index: 2;
}

/* Manchester photo background (image set per panel) */
.manchester-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

.manchester-bg::after {
  /* neutral dark wash keeps the white text readable over any photo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .4) 100%);
}

.honeycomb-bg {
  /* faint honeycomb — the Manchester worker bee */
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}

.bee-icon {
  display: inline-block;
  font-size: 64px;
  line-height: 1;
  color: var(--red);
}

.fact-item {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 1rem;
}

.fact-item strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  display: block;
  line-height: 1.1;
}

/* ---------- packages ---------- */
.package-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.package-card ul {
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.package-card li {
  margin-bottom: .35rem;
}

.package-card .package-list-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  margin: 1.1rem 0 .4rem;
}

.package-card-featured {
  border: 2px solid var(--red);
  position: relative;
}

.package-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  transform: translateY(-50%);
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .75rem;
}

/* ---------- reviews carousel ----------
   .review-track    horizontal row of reviews that snaps one card at a time
   .review-slide    one review (3 visible on desktop, 2 on tablet, 1 on mobile)
   .review-dots     page dots, built by main.js
   .carousel-arrow  square prev / next buttons */
.review-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: .25rem;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .review-slide {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 992px) {
  .review-slide {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

.review-card {
  height: 100%;
  padding: 1.75rem;
  background: var(--surface);
  border-left: 3px solid var(--red);
}

.review-dots {
  display: flex;
  gap: .5rem;
}

.review-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  padding: 0;
  background: #E5BFC3;
  cursor: pointer;
}

.review-dots button[aria-selected="true"] {
  background: var(--red);
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--heading);
  background: var(--surface);
  color: var(--heading);
  border-radius: var(--radius-sm);
}

.carousel-arrow:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.review-card blockquote {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.review-stars {
  color: #E8A317;
  letter-spacing: .1em;
}

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.faq-accordion .accordion-button {
  background: transparent;
  color: var(--heading);
  box-shadow: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  padding: 1.25rem 0;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--red);
}

.faq-accordion .accordion-body {
  padding: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* ---------- forms ---------- */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--ink);
  padding: .7rem .9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 .2rem rgba(0, 43, 91, .18);
}

.form-label {
  font-weight: 600;
  color: var(--heading);
  font-size: .95rem;
}

/* ---------- CTA band ---------- */
.cta-section {
  background: var(--red);
  color: #fff;
}

.cta-section h2 {
  color: #fff;
}

/* ---------- floating WhatsApp button ---------- */
.whatsapp-float-btn {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.whatsapp-float-btn:hover {
  color: #fff;
  background: #1EBE5A;
}

/* ---------- footer ---------- */
.site-footer {
  font-size: .95rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 200px;
}

.footer-link {
  color: #B9C6D9;
  text-decoration: none;
  display: inline-block;
  padding: .2rem 0;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.social-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
}

.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.modal-content {
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* contact form card */
.form-panel {
  background: var(--surface);
}

/* ---------- stats counters ----------
   .stat-row      row of counters with thin dividers between them
   .stat-counter  one counter block
   .stat-number   big number; main.js counts it up from 0 when it scrolls into view
   .stat-label    small caption under the number */
.stat-row {
  border-top: 3px solid var(--heading);
  border-bottom: 1px solid var(--line);
}

.stat-counter {
  padding: 1.75rem 1.25rem;
  height: 100%;
  border-right: 1px solid var(--line);
}

.stat-row>div:last-child .stat-counter {
  border-right: 0;
}

@media (max-width: 991.98px) {
  .stat-row>div:nth-child(2n) .stat-counter {
    border-right: 0;
  }

  .stat-row>div:nth-child(-n+2) .stat-counter {
    border-bottom: 1px solid var(--line);
  }
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 4.75rem);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: .5rem;
  color: var(--heading);
  font-weight: 600;
}

/* ---------- trust badges ----------
   .trust-badge          review-platform badge: name, stars, score
   .trust-badge-{name}   sets the platform's accent colour on the top edge */
.trust-badge-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .trust-badge-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.trust-badge {
  --badge-accent: var(--heading);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: .15rem;
  column-gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--badge-accent);
  text-decoration: none;
  color: var(--ink);
}

.trust-badge:hover {
  border-color: var(--badge-accent);
  color: var(--ink);
}

.trust-badge-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--heading);
}

.trust-badge .review-stars {
  grid-column: 1;
  color: var(--badge-accent);
  font-size: 1.05rem;
}

.trust-badge-score {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--heading);
}

.trust-badge-score small {
  font-size: .9rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.trust-badge-note {
  grid-column: 1 / -1;
  font-size: .85rem;
  color: var(--ink-soft);
}

.trust-badge-trustpilot {
  --badge-accent: #00B67A;
}

.trust-badge-google {
  --badge-accent: #E8A317;
}

.trust-badge-reviewsio {
  --badge-accent: #1A73E8;
}

.trust-badge-bark {
  --badge-accent: #2D6FE0;
}

@media (max-width: 575.98px) {

  /* phones: score drops under the stars */
  .trust-badge {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .trust-badge-score {
    grid-column: 1;
    grid-row: auto;
    font-size: 1.8rem;
    margin-top: .35rem;
  }
}

/* =====================================================================
   ROUNDED CORNERS — soft, minimal radius on cards and panels
   .rounded-brand-sm / -md / -lg   add the brand radius to any element
   ===================================================================== */
.rounded-brand-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded-brand-md {
  border-radius: var(--radius-md) !important;
}

.rounded-brand-lg {
  border-radius: var(--radius-lg) !important;
}

.service-card,
.package-card,
.review-card,
.trust-badge,
.site-navbar .dropdown-menu,
.submenu,
.modal-content {
  border-radius: var(--radius-md);
}

.service-card,
.review-card {
  overflow: hidden;
}

/* not on .package-card, so the "Most chosen" pill can sit on its edge */
.form-panel,
.services-cta-panel {
  border-radius: var(--radius-lg);
}

.site-navbar .dropdown-item {
  border-radius: 6px;
}

.step-number {
  border-radius: var(--radius-sm);
}

.carousel-arrow,
.social-link {
  border-radius: var(--radius-sm);
}

.package-badge {
  border-radius: 999px;
  padding: .3rem .9rem;
}

.review-dots button {
  border-radius: 999px;
}

.stat-row {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--heading);
}

.whatsapp-float-btn {
  border-radius: 50%;
}

/* soft shadow on cards so the rounded shape reads clearly */
.service-card,
.package-card,
.review-card,
.trust-badge {
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
}

.service-card:hover,
.trust-badge:hover {
  box-shadow: 0 10px 28px rgba(0, 24, 51, .10);
}

/* book covers stay book-shaped: tight corners on the spine side */
.book-cover img {
  border-radius: 3px 8px 8px 3px;
}

/* ---------- review platform badges section ---------- */
.platform-badges {
  border-bottom: 1px solid var(--line);
}


.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
}

.bg-mist .cta-box,
.bg-red-tint .cta-box {
  background: var(--surface);
}

.cta-box-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.cta-box-text p {
  color: var(--ink-soft);
}

.cta-box-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.cta-box-buttons .btn {
  padding: .65rem 1.2rem;
  display: inline-flex;
  align-items: center;
}

.btn-icon-only {
  width: 46px;
  justify-content: center;
  padding: 0 !important;
}

.cta-box-on-dark {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .18);
  border-left-color: var(--red);
}

.cta-box-on-dark .cta-box-title {
  color: #fff;
}

.cta-box-on-dark .cta-box-text p {
  color: #A9B8CF;
}

.hero-contact {
  color: var(--ink-soft);
}

.hero-contact a {
  color: var(--heading);
  font-weight: 600;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.mobile-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 24, 51, .08);
}

.mobile-contact-bar a,
.mobile-contact-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  font-size: .95rem;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 374.98px) {

  .mobile-contact-bar a,
  .mobile-contact-bar button {
    font-size: .85rem;
    gap: .3rem;
  }
}

.mobile-contact-bar .is-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media (max-width: 991.98px) {
  .site-footer {
    padding-bottom: 80px;
  }

  /* room so the bar never covers the footer text */
}

/* ---------- responsive fixes ---------- */
.contact-list a,
.contact-list span,
.site-footer li,
.topbar a {
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .hero-two-tone .row {
    text-align: left;
  }

  .position-sticky {
    position: static !important;
  }

  /* process intro shouldn't stick on small screens */
}

@media (max-width: 575.98px) {
  .py-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .btn-lg {
    width: 100%;
  }

  /* full-width hero buttons on phones */
  .cta-box {
    padding: 1.25rem;
  }

  .cta-box-buttons {
    width: 100%;
  }

  .cta-box-buttons .btn:not(.btn-icon-only) {
    flex: 1 1 auto;
    justify-content: center;
  }

  .stat-counter {
    padding: 1.25rem 1rem;
  }

  .stat-label {
    font-size: .9rem;
  }

  .package-card {
    padding: 1.75rem 1.25rem;
  }

  .form-panel {
    padding: 1.5rem !important;
  }

  .faq-accordion .accordion-button {
    font-size: 1.2rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-navbar .nav-link {
    padding: .5rem .55rem !important;
    font-size: .95rem;
  }

  .site-navbar .btn {
    padding: .6rem 1rem;
  }
}

.mobile-contact-bar .bi {
  flex-shrink: 0;
}

@media (max-width: 374.98px) {
  .btn-lg {
    font-size: 1.05rem;
    padding: .7rem 1rem;
  }
}

/* ---------- page header ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-bottom: 4px solid var(--red) !important;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .95;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #fff;
}

.breadcrumb-on-dark {
  margin-bottom: 0;
  font-size: .95rem;
}

.breadcrumb-on-dark a {
  color: #E3E9F2;
  text-decoration: none;
}

.breadcrumb-on-dark a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-on-dark .breadcrumb-item.active {
  color: #A9B8CF;
}

.breadcrumb-on-dark .breadcrumb-item+.breadcrumb-item::before {
  color: #A9B8CF;
}

/* ---------- spacing helper ---------- */
.pb-section {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

@media (max-width: 575.98px) {
  .pb-section {
    padding-bottom: 3.5rem;
  }
}

/* ---------- about: at a glance ---------- */
.about-summary {
  background: var(--surface-alt);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.about-summary-item {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}

.about-summary-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-summary-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--heading);
  line-height: 1.2;
}

.about-summary-item span {
  color: var(--ink-soft);
}

/* ---------- about: value cards + role cards ---------- */
.value-card,
.role-card {
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
}

.value-card {
  border-top: 3px solid var(--red);
}

.role-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--heading);
}

.value-card p,
.role-card p {
  color: var(--ink-soft);
}

.role-icon {
  display: inline-block;
  font-size: 40px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ---------- contact: method cards ---------- */
.contact-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: .75rem;
}

.contact-card-link {
  display: inline-block;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-card-link:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ---------- contact: form card ---------- */
.form-panel-bordered {
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 24, 51, .08);
}

.form-check-input:checked {
  background-color: var(--red);
  border-color: var(--red);
}

.form-check-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 .2rem rgba(0, 43, 91, .18);
}

/* ---------- contact: opening hours + map ---------- */
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}

.hours-list span {
  color: var(--ink-soft);
}

.hours-list strong {
  color: var(--heading);
}

.map-frame {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 24, 51, .08);
  background: var(--surface);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ---------- small-screen tweaks for inner pages ---------- */
@media (max-width: 575.98px) {
  .about-summary {
    padding: 1.25rem;
  }

  .hours-list li {
    flex-direction: column;
    gap: .15rem;
  }
}


.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}

.section-label-on-dark {
  color: #F4A9B1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* ---------- how it works: numbered steps ---------- */
.step-list {
  display: grid;
  gap: 1.25rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
}

.step-card-number {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

.step-card:last-child .step-card-number {
  background: var(--red);
}

.step-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

@media (max-width: 575.98px) {
  .step-card {
    grid-template-columns: 1fr;
    gap: .75rem;
    padding: 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}


/* ---------- hero ---------- */
.service-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--red) !important;
}

.hero-checklist {
  color: #D5DEEB;
  font-size: .95rem;
}

.hero-checklist .bi {
  color: #F4A9B1;
}

.at-a-glance-card {
  background: var(--surface);
  color: var(--ink);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .28);
}

.at-a-glance-card dt {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.at-a-glance-card dd {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.4;
}

.at-a-glance-row+.at-a-glance-row {
  border-top: 1px solid var(--line);
}

.at-a-glance-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--red-tint);
  color: var(--red);
}

/* ---------- jump links under the hero ---------- */
.jump-links-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.jump-links-nav::-webkit-scrollbar {
  display: none;
}

.jump-links-nav .nav-link {
  padding: 1rem;
  white-space: nowrap;
  color: var(--heading);
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.jump-links-nav .nav-link:hover,
.jump-links-nav .nav-link:focus {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- overview ---------- */
.right-for-you-panel {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
}

.right-for-you-panel li+li {
  border-top: 1px dashed var(--line);
}

.check-circle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

/* ---------- what's included ---------- */
.included-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.included-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 14px 30px rgba(0, 24, 51, .10);
}

.included-card p {
  color: var(--ink-soft);
}

.included-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  transition: background .2s ease;
}

.included-card:hover .included-card-icon {
  background: var(--red);
}

/* ---------- how it works ---------- */
.service-steps {
  position: relative;
}

@media (min-width: 992px) {
  .service-steps::before {
    /* line joining the numbers on desktop */
    content: "";
    position: absolute;
    top: 1.625rem;
    left: 2.5rem;
    right: 2.5rem;
    height: 2px;
    background: var(--line);
  }
}

.service-step-number {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 6px var(--surface);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}

.service-steps>div:last-child .service-step-number {
  background: var(--red);
}

.service-steps h3 {
  font-size: 1.45rem;
}

.service-steps p {
  color: var(--ink-soft);
}

/* ---------- related services ---------- */
.related-service-card {
  height: 100%;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-left: 4px solid var(--heading);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.related-service-card:hover,
.related-service-card:focus {
  color: var(--ink);
  border-color: var(--red);
  box-shadow: 0 10px 28px rgba(0, 24, 51, .10);
}

.related-service-card .service-icon {
  margin: 0;
  flex-shrink: 0;
}

.related-service-card .heading-md {
  font-size: 1.4rem;
}

.related-service-text {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
}

.related-service-arrow {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: var(--heading);
  transition: all .2s ease;
}

.related-service-card:hover .related-service-arrow {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- FAQ help card ---------- */
.faq-help-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #D5DEEB;
  border-radius: var(--radius-lg);
}

.faq-help-card h3 {
  color: #fff;
  font-size: 1.6rem;
}

.faq-help-card a {
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.faq-help-card a:hover {
  color: #F4A9B1;
}

/* ---------- closing CTA ---------- */
.service-cta {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: #fff;
}

.service-cta h2 {
  color: #fff;
}

.service-cta p {
  color: rgba(255, 255, 255, .9);
}

/* =====================================================================
   ALL SERVICES PAGE (services.php)

   SECTION IDS ON THE PAGE
     #develop-the-book  #prepare-the-book  #publish-and-produce
     #childrens-books   #where-to-start    #faq

   CLASSES
     .stage-number             big red "01 / 02 / 03" number beside each stage
     .service-group-card      card for one service group (e.g. Ghostwriting)
     .service-group-icon      navy icon box at the top of that card
     .service-group-links     list of the sub-pages inside the card
   ===================================================================== */
.stage-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  color: var(--red);
}

.service-group-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--heading);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.service-group-card:hover {
  border-top-color: var(--red);
  box-shadow: 0 14px 30px rgba(0, 24, 51, .10);
}

.service-group-card .heading-md a {
  color: var(--heading);
  text-decoration: none;
}

.service-group-card .heading-md a:hover {
  color: var(--red);
}

.service-group-card>p {
  color: var(--ink-soft);
}

.service-group-icon {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  transition: background .2s ease;
}

.service-group-card:hover .service-group-icon {
  background: var(--red);
}

.service-group-links li+li {
  border-top: 1px solid var(--line);
}

.service-group-links a {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}

.service-group-links a .bi {
  color: var(--red);
  flex-shrink: 0;
  transition: transform .2s ease;
}

.service-group-links a:hover {
  color: var(--red);
}

.service-group-links a:hover .bi {
  transform: translateX(4px);
}

/* =====================================================================
   PACKAGES PAGE (packages.php)
     .compare-table-wrap   rounded box that scrolls sideways on small screens
     .compare-table        package comparison table
     .is-featured          highlighted column (Gold)
     .compare-yes / .compare-no   tick and dash inside a cell
   ===================================================================== */
.compare-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--heading);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
}

.compare-table {
  min-width: 640px;
  color: var(--ink);
}

.compare-table th,
.compare-table td {
  padding: .9rem 1.25rem;
  vertical-align: middle;
  border-color: var(--line);
}

.compare-table td {
  text-align: center;
  color: var(--ink-soft);
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--heading);
  background: var(--surface-alt);
  text-align: center;
}

.compare-table thead th:first-child,
.compare-table tbody th {
  text-align: left;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--heading);
}

.compare-table .is-featured {
  background: var(--red-tint);
}

.compare-table thead .is-featured {
  color: var(--red);
}

.compare-table tbody tr:last-child>* {
  border-bottom: 0;
}

.compare-yes {
  font-size: 1.25rem;
  color: var(--red);
}

.compare-no {
  color: var(--line);
  font-weight: 700;
}

/* =====================================================================
   TOOLS PAGES (royalty-calculator.php, book-title-generator.php)
     .tool-result-panel   navy box that shows the calculator result
     .tool-result-value   big royalty figure
     .tool-result-row     one label + value line under the figure
     .tool-result-note    small warning / tip under the rows
     .title-list          list of generated titles
     .title-list-item     one generated title with its Copy button
   ===================================================================== */
.tool-result-panel {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: var(--navy);
  color: #D5DEEB;
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 24, 51, .18);
}

.tool-result-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 7vw, 4.5rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.tool-result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.tool-result-row strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.tool-result-note {
  color: #F4A9B1;
  font-size: .9rem;
}

.tool-result-note:empty {
  display: none;
}

.title-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  counter-reset: title;
}

.title-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
}

.title-list-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--heading);
}

.title-list-text::before {
  counter-increment: title;
  content: counter(title, decimal-leading-zero) "  ";
  color: var(--red);
}

.title-list-item .btn {
  flex-shrink: 0;
  padding: .35rem .9rem;
}

.title-list-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.title-list-text .small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.4;
  margin-top: .3rem;
}

.tool-result-empty {
  height: auto;
  min-height: 100%;
  display: flex;
}

.tool-result-empty .included-card-icon {
  display: inline-flex;
}

@media (max-width: 991.98px) {
  .tool-result-empty {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .title-list-item {
    padding: .85rem 1rem;
    gap: .75rem;
  }

  .title-list-text {
    font-size: 1.15rem;
  }
}
/* =====================================================================
   COOKIE BANNER — accept and reject carry equal weight
   ===================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  padding: 1rem 0;
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(0, 24, 51, .2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-link,
.cookie-banner-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 991.98px) {
  .cookie-banner {
    bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px));   /* sits above the mobile contact bar */
  }
}

/* =====================================================================
   CONTENT BLOCKS ADDED WITH THE OCTOBER 2026 COPY
     .trust-point-list  short tick list under hero buttons
     .level-table       comparison table (e.g. levels of editing)
     .team-card         one person on the team page
     .placeholder-note  visible marker for content the business must still supply
   ===================================================================== */
.trust-point-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.trust-point-list .bi {
  color: var(--red);
  margin-top: .2rem;
}

.level-table {
  --bs-table-bg: var(--surface);
  --bs-table-color: var(--ink);
  border-color: var(--line);
}

.level-table th {
  color: var(--heading);
  font-weight: 700;
}

.level-table thead th {
  background: var(--navy);
  color: #fff;
}

.team-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.team-card-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.team-card-role {
  color: var(--red);
  font-weight: 600;
}

.placeholder-note {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--ink-soft);
}

/* ---------- team page: profile cards ---------- */
.team-profile {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.team-profile:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0, 24, 51, .06), 0 14px 30px rgba(0, 24, 51, .1);
}

.team-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.team-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--red-tint);
}

.team-profile-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: .2rem;
}

.team-profile-role {
  color: var(--red);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 0;
}

.team-profile-bio {
  color: var(--ink-soft);
  flex-grow: 1;
}

.team-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.team-tags li {
  background: var(--mist);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.team-profile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-soft);
}

.team-profile-foot .bi-award {
  color: var(--red);
  margin-right: .3rem;
}

.team-profile-foot a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  font-size: 1rem;
  transition: background .2s ease, color .2s ease;
}

.team-profile-foot a:hover {
  background: var(--navy);
  color: #fff;
}

.team-cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
}

@media (max-width: 575.98px) {
  .team-cta {
    padding: 2rem 1.25rem;
  }
}

/* ---------- about page: team + testimonial carousels (reuse .book-carousel, driven by main.js) ---------- */
.book-carousel.team-carousel,
.book-carousel.testimonial-carousel {
  --per-view: 3;
}

@media (max-width: 991.98px) {
  .book-carousel.team-carousel,
  .book-carousel.testimonial-carousel { --per-view: 2; --gap: 1rem; }
}

@media (max-width: 575.98px) {
  .book-carousel.team-carousel,
  .book-carousel.testimonial-carousel { --per-view: 1.1; --gap: .9rem; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
}

.testimonial-card blockquote {
  flex-grow: 1;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

/* =====================================================================
   SERVICE PAGES: design layer
   Look-only upgrades for every page built on .service-hero (the service
   inner pages and services.php). The hero itself is left as the site-wide
   .page-hero design so every page header matches.
     jump links    stick under the navbar; main.js marks the section in view
     text sections a heading + a short text block become a two-column layout
     timeline      "Timeline and price" card with icon, trust points and a quote button
     cards         orphan cards avoided (4 in a row, odd rows centred), accent on hover
     tables        rounded, bordered, striped
   ===================================================================== */
main:has(> .service-hero) {
  --svc-nav-h: 80px;    /* navbar height, kept up to date by main.js */
}

.faq-help-card .honeycomb-bg {
  display: none;
}

/* ---------- jump links: sticky, with the current section marked ---------- */
main:has(> .service-hero) .jump-links-nav {

  top: var(--svc-nav-h);
  z-index: 1020;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 6px 18px rgba(0, 24, 51, .06);
}

main:has(> .service-hero) .jump-links-nav .nav {
  gap: .25rem;
}

main:has(> .service-hero) .jump-links-nav .nav-link {
  position: relative;
  padding: 1.05rem .9rem;
  border-bottom: 0;
  font-size: 1rem;
  color: #3A4A63;
  transition: color .2s ease;
}

main:has(> .service-hero) .jump-links-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s ease;
}

main:has(> .service-hero) .jump-links-nav .nav-link:hover,
main:has(> .service-hero) .jump-links-nav .nav-link:focus,
main:has(> .service-hero) .jump-links-nav .nav-link.is-active {
  color: var(--heading);
}

main:has(> .service-hero) .jump-links-nav .nav-link:hover::after,
main:has(> .service-hero) .jump-links-nav .nav-link.is-active::after {
  transform: scaleX(1);
}

main:has(> .service-hero) section[id] {
  scroll-margin-top: calc(var(--svc-nav-h) + 4rem);
}

/* ---------- section headings: a short red rule where there is no label ---------- */
main:has(> .service-hero) > section:not(.service-hero):not(.service-cta) h2.heading-xl:not(.section-label + h2)::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-bottom: 1.1rem;
  border-radius: 2px;
  background: var(--red);
}

main:has(> .service-hero) h2.heading-xl {
  text-wrap: balance;
}

/* ---------- text sections: heading left, text in a card on the right ---------- */
main:has(> .service-hero) .container:has(> .row:first-child + .text-max-width:last-child) > .text-max-width {
  position: relative;
  max-width: none;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}

main:has(> .service-hero) .bg-mist .container:has(> .row:first-child + .text-max-width:last-child) > .text-max-width {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 12px 30px rgba(0, 24, 51, .07);
}

main:has(> .service-hero) .container:has(> .row:first-child + .text-max-width:last-child) > .text-max-width::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--red);
}

main:has(> .service-hero) .container:has(> .row:first-child + .text-max-width:last-child) > .text-max-width p {
  font-size: 1.12rem;
  line-height: 1.75;
}

main:has(> .service-hero) .text-max-width > :last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  main:has(> .service-hero) .container:has(> .row:first-child + .text-max-width:last-child) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }

  main:has(> .service-hero) .container:has(> .row:first-child + .text-max-width:last-child) > .row {
    margin: 0 !important;
  }

  main:has(> .service-hero) .container:has(> .row:first-child + .text-max-width:last-child) > .row > [class*="col"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  main:has(> .service-hero) .container:has(> .row:first-child + .text-max-width:last-child) > .text-max-width {
    padding: 2.25rem 2.5rem 2.25rem 2.75rem;
  }
}

/* ---------- "what's included" cards ---------- */
main:has(> .service-hero) .row:has(> div > .included-card) {
  justify-content: center;     /* a short last row sits in the middle */
}

@media (min-width: 992px) {
  /* exactly four cards in a three-column grid: show all four in one row */
  main:has(> .service-hero) .row:has(> .col-lg-4:nth-child(4):last-child > .included-card) > .col-lg-4 {
    width: 25%;
  }
}

main:has(> .service-hero) .included-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

main:has(> .service-hero) .included-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

main:has(> .service-hero) .included-card:hover {
  border-color: var(--line);
  box-shadow: 0 20px 40px rgba(0, 24, 51, .12);
}

main:has(> .service-hero) .included-card:hover::before {
  transform: scaleX(1);
}

main:has(> .service-hero) .included-card-icon {
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  box-shadow: 0 8px 18px rgba(0, 43, 91, .22);
}

main:has(> .service-hero) .included-card:hover .included-card-icon {
  background: linear-gradient(145deg, var(--red), #9E0011);
  box-shadow: 0 8px 18px rgba(208, 0, 22, .25);
}

/* ---------- checklist panel used full width: two columns ---------- */
main:has(> .service-hero) .right-for-you-panel {
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 12px 30px rgba(0, 24, 51, .06);
}

main:has(> .service-hero) .bg-mist .right-for-you-panel {
  background: var(--surface);
}

@media (min-width: 992px) {
  main:has(> .service-hero) .container > .right-for-you-panel > ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  main:has(> .service-hero) .container > .right-for-you-panel > ul > li {
    border-top: 1px dashed var(--line);
  }

  main:has(> .service-hero) .container > .right-for-you-panel > ul > li:nth-child(-n+2) {
    border-top: 0;
  }
}

/* ---------- tables ---------- */
main:has(> .service-hero) .table-responsive:has(> .level-table) {
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 12px 30px rgba(0, 24, 51, .06);
  background: var(--surface);
}

main:has(> .service-hero) .table-responsive > .level-table {
  margin-bottom: 0 !important;
}

main:has(> .service-hero) .level-table > :not(caption) > * > * {
  padding: 1rem 1.25rem;
}

main:has(> .service-hero) .level-table thead {
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
}

main:has(> .service-hero) .level-table thead th {
  --bs-table-bg: transparent;
  background: transparent;
  border-bottom: 3px solid var(--red);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .02em;
}

main:has(> .service-hero) .level-table tbody tr:nth-child(even) > * {
  background: #F7F9FC;
}

main:has(> .service-hero) .level-table tbody tr:last-child > * {
  border-bottom: 0;
}

main:has(> .service-hero) .level-table tbody tr:hover > * {
  background: var(--red-tint);
}

@media (max-width: 767.98px) {
  /* phones: keep columns readable and let the table scroll sideways */
  main:has(> .service-hero) .table-responsive > .level-table {
    min-width: 620px;
  }

  main:has(> .service-hero) .level-table > :not(caption) > * > * {
    padding: .85rem 1rem;
  }
}

/* ---------- related services ---------- */
main:has(> .service-hero) .related-service-card {
  border-left-width: 1px;
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

main:has(> .service-hero) .related-service-card:hover,
main:has(> .service-hero) .related-service-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 24, 51, .12);
}

/* ---------- FAQ help card ---------- */
.faq-help-card {
  background-image:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(208, 0, 22, .25), transparent 60%),
    linear-gradient(165deg, var(--navy), var(--navy-deep));
  box-shadow: 0 20px 40px rgba(0, 24, 51, .18);
}

/* ---------- process steps: one row for 4 or 5 steps, no stray line for 6+ ---------- */
@media (min-width: 992px) {
  main:has(> .service-hero) .service-steps:has(> div:nth-child(4):last-child) > div {
    width: 25%;
  }

  main:has(> .service-hero) .service-steps:has(> div:nth-child(5):last-child) > div {
    width: 20%;
  }

  main:has(> .service-hero) .service-steps:has(> div:nth-child(6))::before {
    display: none;
  }
}

main:has(> .service-hero) .bg-mist .service-step-number {
  box-shadow: 0 0 0 6px var(--surface-alt);
}

/* ---------- "Timeline and price" card ----------
   .timeline-card          the card (white on grey sections, grey-blue on white ones)
   .timeline-card-main     calendar icon + the page's timeline text
   .timeline-card-footer   two trust points and the quote button */
.timeline-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 14px 34px rgba(0, 24, 51, .08);
}

.timeline-card::before {
  /* navy-to-red rule along the top */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red));
}

.timeline-card-main {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 2rem 1.75rem 1.5rem;
}

.timeline-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 43, 91, .22);
}

.timeline-card-text p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
}

.timeline-card-text > :last-child {
  margin-bottom: 0;
}

.timeline-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.75rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.bg-mist .timeline-card-footer {
  background: #F7F9FC;
}

.timeline-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--heading);
}

.timeline-card-points li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.timeline-card-points .bi {
  color: var(--red);
  font-size: 1.1rem;
}

@media (min-width: 992px) {
  main:has(> .service-hero) .container:has(> .row:first-child + .timeline-card:last-child) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }

  main:has(> .service-hero) .container:has(> .row:first-child + .timeline-card:last-child) > .row {
    margin: 0 !important;
  }

  main:has(> .service-hero) .container:has(> .row:first-child + .timeline-card:last-child) > .row > [class*="col"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .timeline-card-main {
    padding: 2.25rem 2.5rem 1.75rem;
    gap: 1.5rem;
  }

  .timeline-card-footer {
    padding: 1.1rem 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .timeline-card-main {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-card-footer .btn {
    width: 100%;
  }
}

/* ---------- blog listing cards (blog.php) — same look as .service-group-card ---------- */
.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--heading);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  border-top-color: var(--red);
  box-shadow: 0 14px 30px rgba(0, 24, 51, .10);
}

.blog-card .heading-md {
  font-size: 1.5rem;
  line-height: 1.1;
}

.blog-card .heading-md a {
  color: var(--heading);
  text-decoration: none;
}

.blog-card .heading-md a:hover {
  color: var(--red);
}

.blog-card > a {
  color: var(--red);
  text-decoration: none;
}

.blog-card > a .bi {
  display: inline-block;
  transition: transform .2s ease;
}

.blog-card > a:hover .bi {
  transform: translateX(4px);
}

@media (max-width: 575.98px) {
  .blog-card {
    padding: 1.5rem 1.25rem;
  }

  .blog-card .heading-md {
    font-size: 1.35rem;
  }
}


/* ---------- how it works: payment section ---------- */
.pay-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--heading);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 24, 51, .05), 0 6px 18px rgba(0, 24, 51, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pay-card:hover {
  border-top-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 24, 51, .10);
}

.pay-card:hover .included-card-icon {
  background: var(--red);
}

.pay-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pay-card-tag {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .2rem;
}

.pay-card-text {
  color: var(--ink-soft);
}

.pay-card-text strong {
  color: var(--heading);
}

.pay-points {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: .5rem;
  font-weight: 600;
  color: var(--heading);
}

.pay-points .bi {
  color: var(--red);
  margin-right: .4rem;
}

/* staged flow */
.pay-stages {
  list-style: none;
  counter-reset: pay;
  margin: auto 0 0;
  padding: 1rem 0 0;
  border-top: 1px dashed var(--line);
}

.pay-stages li {
  counter-increment: pay;
  position: relative;
  padding: 0 0 1.1rem 3rem;
}

.pay-stages li:last-child {
  padding-bottom: 0;
}

.pay-stages li::before {
  content: counter(pay);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.pay-stages li:last-child::before {
  background: var(--red);
}

.pay-stages li:not(:last-child)::after {
  /* line joining the dots */
  content: "";
  position: absolute;
  left: 1.04rem;
  top: 2.3rem;
  bottom: .2rem;
  width: 2px;
  background: var(--line);
}

.pay-stages strong {
  display: block;
  color: var(--heading);
  line-height: 1.3;
}

.pay-stages span {
  color: var(--ink-soft);
  font-size: .95rem;
}

/* promise banner */
.pay-promise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 2rem;
  color: #D5DEEB;
  border-radius: var(--radius-lg);
  background-image:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(208, 0, 22, .28), transparent 60%),
    linear-gradient(165deg, var(--navy), var(--navy-deep));
  box-shadow: 0 20px 40px rgba(0, 24, 51, .18);
}

.pay-promise-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.pay-promise-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: .25rem;
}

.pay-promise > div {
  flex: 1 1 280px;
}

@media (max-width: 575.98px) {
  .pay-card { padding: 1.5rem 1.25rem; }
  .pay-promise { padding: 1.5rem 1.25rem; }
  .pay-promise .btn { width: 100%; }
}