/**
 * Experts Self Publishing — proposed brand system
 * Not loaded on production pages until rebrand approval.
 * Load after existing vendor styles when applied site-wide.
 */

/* Self-hosted fonts — WOFF2 Latin subset (scripts/optimize-fonts.js) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/inter/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/inter/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/roboto-slab/roboto-slab-400.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/roboto-slab/roboto-slab-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/poppins/Poppins-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/poppins/Poppins-Bold.woff2") format("woff2");
}

/* -------------------------------------------------------------------------- */
/* Semantic design tokens                                                      */
/* -------------------------------------------------------------------------- */

:root {
  /* Brand palette — supplied / assigned roles */
  --esp-color-primary: #4a1a52;
  --esp-color-primary-hover: #36123c;
  --esp-color-secondary: #9c2483;
  --esp-color-secondary-hover: #861b70;
  --esp-color-accent: #d01281;
  --esp-color-accent-hover: #b20e6d;

  /* Surfaces — derived neutrals */
  --esp-color-bg: #fbf9fc;
  --esp-color-surface: #ffffff;
  --esp-color-tint: #f5edf6;

  /* Text */
  --esp-color-text: #352d3d;
  --esp-color-text-muted: #625967;
  --esp-color-text-inverse: #ffffff;

  /* Borders */
  --esp-color-border-decorative: #dccfde;
  --esp-color-border-control: #8b7c90;

  /* Status — derived for accessible UI feedback */
  --esp-color-success: #1f7a4a;
  --esp-color-success-bg: #e8f5ee;
  --esp-color-success-border: #9fd4b8;
  --esp-color-warning: #8a5a00;
  --esp-color-warning-bg: #fff6e6;
  --esp-color-warning-border: #e8c878;
  --esp-color-error: #b42318;
  --esp-color-error-bg: #fdeeed;
  --esp-color-error-border: #f2b8b3;
  --esp-color-disabled-fg: #8b7c90;
  --esp-color-disabled-bg: #ece8ef;
  --esp-color-disabled-border: #dccfde;
  --esp-color-focus-ring: #4a1a52;

  /* Typography */
  --esp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --esp-font-heading: "Roboto Slab", Georgia, "Times New Roman", serif;

  /* Spacing & shape */
  --esp-radius-sm: 4px;
  --esp-radius-md: 8px;
  --esp-radius-lg: 12px;
  --esp-shadow-card: 0 4px 24px rgba(26, 21, 32, 0.08);
  --esp-shadow-focus: 0 0 0 3px rgba(74, 26, 82, 0.35);

  /* Layout rhythm */
  --esp-space-section: clamp(3.25rem, 5.5vw, 4.75rem);
  --esp-space-section-sm: clamp(2.75rem, 4.5vw, 3.5rem);
  --esp-space-stack: 1rem;
  --esp-space-stack-lg: 1.5rem;
  --esp-prose-width: 42rem;

  /* Legacy aliases for future site-wide overrides */
  --theme-color: var(--esp-color-primary);
  --green-color: var(--esp-color-primary);
}

/* -------------------------------------------------------------------------- */
/* Base (preview scope; production will use targeted overrides)                */
/* -------------------------------------------------------------------------- */

.esp-brand,
.brand-preview {
  font-family: var(--esp-font-body);
  color: var(--esp-color-text);
  background-color: var(--esp-color-bg);
  line-height: 1.6;
}

.esp-brand h1,
.esp-brand h2,
.esp-brand h3,
.esp-brand h4,
.esp-brand .esp-heading,
.brand-preview h1,
.brand-preview h2,
.brand-preview h3,
.brand-preview h4,
.brand-preview .esp-heading {
  font-family: var(--esp-font-heading);
  font-weight: 700;
  color: var(--esp-color-text);
  line-height: 1.25;
}

.esp-brand a:not([class]),
.brand-preview a:not([class]) {
  color: var(--esp-color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.esp-brand a:not([class]):hover,
.brand-preview a:not([class]):hover {
  color: var(--esp-color-primary-hover);
}

/* -------------------------------------------------------------------------- */
/* Wordmark                                                                    */
/* -------------------------------------------------------------------------- */

.esp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.esp-wordmark:focus-visible {
  outline: none;
  box-shadow: var(--esp-shadow-focus);
  border-radius: var(--esp-radius-sm);
}

.esp-wordmark__mark {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--esp-radius-md);
  background: url("../img/brand/esp-mark.png") center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  display: block;
}

.esp-wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.esp-wordmark__name {
  font-family: var(--esp-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--esp-color-text);
}

.esp-wordmark__tagline {
  font-family: var(--esp-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--esp-color-text-muted);
}

.esp-wordmark--inverse .esp-wordmark__name {
  color: var(--esp-color-text-inverse);
}

.esp-wordmark--inverse .esp-wordmark__tagline {
  color: rgba(255, 255, 255, 0.82);
}

/* -------------------------------------------------------------------------- */
/* Navigation (preview component)                                              */
/* -------------------------------------------------------------------------- */

.esp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--esp-color-surface);
  border: 1px solid var(--esp-color-border-decorative);
  border-radius: var(--esp-radius-lg);
}

.esp-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.esp-nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--esp-color-text);
  text-decoration: none;
  padding: 0.35rem 0;
}

.esp-nav__links a:hover,
.esp-nav__links a[aria-current="page"] {
  color: var(--esp-color-primary);
}

.esp-nav__links a:focus-visible {
  outline: none;
  box-shadow: var(--esp-shadow-focus);
  border-radius: var(--esp-radius-sm);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.esp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--esp-radius-md);
  border: 2px solid transparent;
  font-family: var(--esp-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.esp-btn,
a.esp-btn:hover,
a.esp-btn:focus,
a.esp-btn:visited {
  text-decoration: none;
}

.esp-btn:focus-visible {
  outline: none;
  box-shadow: var(--esp-shadow-focus);
}

.esp-btn--primary {
  background-color: var(--esp-color-primary);
  color: var(--esp-color-text-inverse);
}

a.esp-btn.esp-btn--primary:hover,
a.esp-btn.esp-btn--primary:focus {
  background-color: var(--esp-color-primary-hover);
  color: var(--esp-color-text-inverse);
}

.esp-btn--secondary {
  background-color: var(--esp-color-secondary);
  color: var(--esp-color-text-inverse);
}

a.esp-btn.esp-btn--secondary:hover,
a.esp-btn.esp-btn--secondary:focus {
  background-color: var(--esp-color-secondary-hover);
  color: var(--esp-color-text-inverse);
}

.esp-btn--accent {
  background-color: var(--esp-color-accent);
  color: var(--esp-color-text-inverse);
}

a.esp-btn.esp-btn--accent:hover,
a.esp-btn.esp-btn--accent:focus {
  background-color: var(--esp-color-accent-hover);
  color: var(--esp-color-text-inverse);
}

.esp-btn--outline {
  background-color: transparent;
  color: var(--esp-color-primary);
  border-color: var(--esp-color-primary);
}

a.esp-btn.esp-btn--outline:hover,
a.esp-btn.esp-btn--outline:focus {
  background-color: var(--esp-color-tint);
  color: var(--esp-color-primary);
  border-color: var(--esp-color-primary);
}

.esp-btn--ghost {
  background-color: transparent;
  color: var(--esp-color-text);
}

a.esp-btn.esp-btn--ghost:hover,
a.esp-btn.esp-btn--ghost:focus {
  background-color: var(--esp-color-tint);
  color: var(--esp-color-text);
}

.esp-btn:disabled,
.esp-btn--disabled {
  background-color: var(--esp-color-disabled-bg);
  color: var(--esp-color-disabled-fg);
  border-color: var(--esp-color-disabled-border);
  cursor: not-allowed;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Cards                                                                       */
/* -------------------------------------------------------------------------- */

.esp-card {
  background: var(--esp-color-surface);
  border: 1px solid var(--esp-color-border-decorative);
  border-radius: var(--esp-radius-lg);
  box-shadow: var(--esp-shadow-card);
  overflow: hidden;
}

.esp-card__body {
  padding: 1.35rem;
}

.esp-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--esp-color-accent);
  margin-bottom: 0.35rem;
}

.esp-card__title {
  font-family: var(--esp-font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.esp-card__text {
  color: var(--esp-color-text-muted);
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.esp-card--tinted {
  background: var(--esp-color-tint);
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                       */
/* -------------------------------------------------------------------------- */

.esp-form {
  display: grid;
  gap: 1rem;
}

.esp-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--esp-color-text);
}

.esp-field input,
.esp-field select,
.esp-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--esp-color-border-control);
  border-radius: var(--esp-radius-md);
  font-family: var(--esp-font-body);
  font-size: 1rem;
  color: var(--esp-color-text);
  background: var(--esp-color-surface);
  box-sizing: border-box;
}

.esp-field input:focus,
.esp-field select:focus,
.esp-field textarea:focus {
  outline: none;
  border-color: var(--esp-color-primary);
  box-shadow: var(--esp-shadow-focus);
}

.esp-field input:disabled,
.esp-field select:disabled,
.esp-field textarea:disabled {
  background: var(--esp-color-disabled-bg);
  color: var(--esp-color-disabled-fg);
  cursor: not-allowed;
}

.esp-field--error input,
.esp-field--error textarea {
  border-color: var(--esp-color-error);
}

.esp-field__hint {
  font-size: 0.8125rem;
  color: var(--esp-color-text-muted);
  margin-top: 0.3rem;
}

.esp-field__error {
  font-size: 0.8125rem;
  color: var(--esp-color-error);
  margin-top: 0.3rem;
}

/* -------------------------------------------------------------------------- */
/* Alerts / status                                                             */
/* -------------------------------------------------------------------------- */

.esp-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--esp-radius-md);
  border: 1px solid;
  font-size: 0.9375rem;
}

.esp-alert--success {
  color: var(--esp-color-success);
  background: var(--esp-color-success-bg);
  border-color: var(--esp-color-success-border);
}

.esp-alert--warning {
  color: var(--esp-color-warning);
  background: var(--esp-color-warning-bg);
  border-color: var(--esp-color-warning-border);
}

.esp-alert--error {
  color: var(--esp-color-error);
  background: var(--esp-color-error-bg);
  border-color: var(--esp-color-error-border);
}

/* -------------------------------------------------------------------------- */
/* Swatches (preview only)                                                     */
/* -------------------------------------------------------------------------- */

.esp-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.esp-swatch {
  border-radius: var(--esp-radius-md);
  overflow: hidden;
  border: 1px solid var(--esp-color-border-decorative);
}

.esp-swatch__color {
  height: 4rem;
}

.esp-swatch__meta {
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  background: var(--esp-color-surface);
}

.esp-swatch__meta strong {
  display: block;
  font-size: 0.8125rem;
}

.esp-preview-section {
  margin-bottom: 2.5rem;
}

.esp-preview-section > h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--esp-color-border-decorative);
}

.esp-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.esp-preview-banner {
  background: linear-gradient(135deg, var(--esp-color-primary), var(--esp-color-secondary));
  color: var(--esp-color-text-inverse);
  padding: 1.5rem;
  border-radius: var(--esp-radius-lg);
  margin-bottom: 2rem;
}

.esp-preview-banner p {
  margin: 0.35rem 0 0;
  opacity: 0.92;
  max-width: 52ch;
}

/* -------------------------------------------------------------------------- */
/* Production overrides (loaded after style8e5e.css on live pages)             */
/* Documented !important uses: legacy minified bundle specificity              */
/* -------------------------------------------------------------------------- */

body {
  font-family: var(--esp-font-body) !important;
  font-synthesis: weight;
  color: var(--esp-color-text);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Layout & spacing refinements                                                */
/* -------------------------------------------------------------------------- */

p {
  line-height: 1.65;
}

.box-content p,
.service-content p,
.form-wrap p,
.step-content p,
.testi-para p,
.foot-box p {
  line-height: 1.65 !important;
}

.process-step .step-content h4.font-25 {
  font-size: 1.25rem !important;
  line-height: 1.3;
}

.sec-pd,
.inner-pd {
  padding-top: var(--esp-space-section) !important;
  padding-bottom: var(--esp-space-section) !important;
}

.bann-pd {
  padding-top: clamp(4rem, 8vw, 5.5rem) !important;
  padding-bottom: clamp(4.25rem, 8.5vw, 5.75rem) !important;
}

.header-above {
  padding: 10px 0 !important;
  min-height: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    #3a1045 0%,
    #4a1a52 40%,
    #5c1848 70%,
    #6b1038 100%
  ) !important;
  background-color: transparent !important;
}

.header-above .container {
  width: 100%;
  display: flex;
  align-items: center;
}

.header-above .container > .row {
  width: 100%;
  margin: 0;
  row-gap: 0;
  align-items: center !important;
  min-height: 0;
}

.header-above .container > .row > [class*="col-"] {
  display: flex;
  align-items: center;
}

.header-above .head-contact {
  width: 100%;
  display: flex;
  align-items: center;
}

.header-above .head-contact ul {
  width: 100%;
  min-height: 0;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.header-above .head-contact ul li {
  display: flex;
  align-items: center;
  line-height: 1;
}

.header-above .head-contact ul li a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0;
  font-size: 0.875rem;
  vertical-align: middle;
}

.header-above .head-contact ul li a span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-top: 0;
}

.header-above .head-ct-icon {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0;
  margin: 0 !important;
  vertical-align: middle;
}

.choose-heading,
.our-service-hd {
  margin-bottom: 2.5rem !important;
}

/* Services block main heading — slightly smaller than default sec-hd */
.our-service .our-service-hd .sec-hd {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem) !important;
  line-height: 1.2;
  margin-top: 0.15rem !important;
  margin-bottom: 0.35rem !important;
}

.our-service .our-service-eyebrow {
  color: #d01281 !important;
  margin-bottom: 0;
}

.our-service .our-service-hd > p {
  max-width: 56rem;
  margin-top: 0.1rem !important;
  margin-bottom: 0.15rem !important;
}

.choose-heading p {
  max-width: 58rem;
  width: 100%;
}

.our-service-hd p,
.bann-heading .main-para,
.w-80.mx-auto {
  max-width: var(--esp-prose-width);
  margin-left: auto;
  margin-right: auto;
}

.testimonial-sec .testi-heading .testi-desc {
  max-width: 58rem;
  width: 100%;
}

.testimonial-sec .testi-eyebrow {
  color: #d01281 !important;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem) !important;
}

.testimonial-sec .testi-main-hd {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem) !important;
  line-height: 1.25;
}

.sec-hd,
.main-heading {
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.sub-heading {
  line-height: 1.25;
}

.bann-heading .main-para {
  max-width: 38rem;
  margin-bottom: 1.75rem !important;
}

/* Homepage publish intro — stacked heading like reference hierarchy */
.publish-sec .s1-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  line-height: 1.15;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

.publish-sec .s1-heading__lead {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
}

.publish-sec .s1-heading__main {
  display: block;
  font-size: clamp(1.35rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.esp-brand-name {
  color: #4a1a52;
  font-weight: 700;
}

.h-banner .esp-brand-name {
  color: #fff !important;
}

.cta-left .esp-brand-name {
  color: #fff !important;
}

.connect-sec {
  position: relative;
  isolation: isolate;
  padding-top: clamp(5.5rem, 9vw, 7.5rem) !important;
  padding-bottom: clamp(5.5rem, 9vw, 7.5rem) !important;
}

/* Pink + black overlay over banner bg for contrast */
.connect-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgb(0 0 0 / 72%) 0%,
    rgb(0 0 0 / 55%) 35%,
    rgb(208 18 129 / 45%) 70%,
    rgb(208 18 129 / 58%) 100%
  );
}

/* Same pink + black hero overlay (book-publishing, etc.) */
.inner-banner.esp-hero-overlay {
  position: relative;
  isolation: isolate;
}

.inner-banner.esp-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgb(0 0 0 / 72%) 0%,
    rgb(0 0 0 / 55%) 35%,
    rgb(208 18 129 / 45%) 70%,
    rgb(208 18 129 / 58%) 100%
  );
}

.inner-banner.esp-hero-overlay > .container {
  position: relative;
  z-index: 1;
}

.connect-sec > .container {
  position: relative;
  z-index: 1;
}

.connect-sec .cta-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  line-height: 1.15;
  text-transform: none !important;
}

.connect-sec .cta-heading__lead {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.connect-sec .cta-heading__main {
  display: block;
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

/* Homepage hero — brand tint scrim over bg for text contrast */
.h-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(208 18 129 / 22%) 0%,
    rgb(208 18 129 / 12%) 30%,
    rgb(0 0 0 / 38%) 70%,
    rgb(0 0 0 / 62%) 100%
  );
}

.h-banner > .container {
  position: relative;
  z-index: 1;
}

/* Homepage hero — headline scale, line breaks, supporting copy */
.h-banner .bann-heading .bann-hd {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.75rem, 3.5vw, 3.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.45rem !important;
  text-wrap: balance;
  animation-delay: 0.1s;
}

.h-banner .bann-heading .bann-sub {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 95%);
  margin: 0 auto 1rem;
  max-width: 36rem;
  animation-delay: 0.15s;
}

.h-banner .bann-heading .main-para {
  font-size: clamp(0.9375rem, 1.1vw, 1.05rem) !important;
  line-height: 1.55 !important;
  max-width: 82rem;
  color: rgb(255 255 255 / 92%);
  text-wrap: balance;
}

.bann-heading .btn-container {
  gap: 0.85rem !important;
  margin-bottom: 1.5rem !important;
}

/* Homepage hero decorative book art — equal sizing and positioning */
.img-right,
.img-left {
  height: 415px !important;
  width: 415px !important;
  bottom: 0 !important;
}

.img-right {
  right: -13px !important;
  left: auto !important;
  bottom: -15px !important;
  transform: rotate(6deg);
  transform-origin: bottom center;
  will-change: transform;
}

.img-left {
  left: -47px !important;
  right: auto !important;
  height: 400px !important;
  width: 400px !important;
  bottom: -8px !important;
  will-change: transform;
}

/* Homepage hero stats — keep digit and + on one line */
.counter-row .count-num {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  flex-shrink: 0;
  min-width: fit-content;
}

.counter-row .count-num .count {
  display: inline-block;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.counter-row .count-num > span {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.why-choose-sec > .container > .row {
  --bs-gutter-y: 1.25rem;
}

.why-choose-sec .choose-box {
  padding: 1.5rem 1.35rem !important;
  border-radius: var(--esp-radius-md) !important;
  margin-bottom: 0 !important;
  min-height: 6.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-choose-sec .choose-box h3 {
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.why-choose-sec .choose-box p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.service-box,
.box-content,
.testimonial-box {
  border-radius: var(--esp-radius-md);
}

.testimonial-box {
  padding: 1.25rem !important;
}

.testi-para {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.s1-form {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.125rem) !important;
  background: #4a1a52 !important;
  background-color: #4a1a52 !important;
  box-shadow: 0 12px 36px rgb(61 22 78 / 22%);
}

.s1-form::after {
  background: #4a1a52 !important;
  background-color: #4a1a52 !important;
}

.service-form {
  padding: clamp(2rem, 4vw, 2.75rem) !important;
}

.s1-form .form-group,
.service-form .form-group {
  margin-bottom: var(--esp-space-stack) !important;
}

.service-form .service-select {
  margin-bottom: 0.5rem;
}

.service-form .service-select > p {
  margin-bottom: 0.75rem;
}

.s1-form .btn-container,
.service-form .btn-container {
  margin-top: 0.35rem;
}

footer .container-fluid > .row {
  row-gap: 2rem;
}

@media (min-width: 992px) {
  footer .container-fluid > .row > .col-lg-2 {
    flex: 0 0 auto;
    width: 20%;
    max-width: 20%;
  }

  footer .container-fluid > .row > .col-lg-4:first-child {
    flex: 0 0 auto;
    width: 26.6667%;
    max-width: 26.6667%;
  }
}

footer .foot-box {
  margin-bottom: 0;
}

footer .foot-box h3,
footer .foot-connect > h4 {
  margin-bottom: 0.65rem;
  line-height: 1.25;
  font-size: 1.4rem !important;
  background: linear-gradient(90deg, #b21c83 0%, #4a1a52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

footer .foot-box h3.color,
footer .foot-connect > h4.font-28,
footer .foot-connect > h4.color {
  font-size: 1.4rem !important;
}

footer .foot-box p.font {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  max-width: 36rem;
  line-height: 1.65;
}

footer .foot-connect {
  margin-top: 0.35rem;
}

footer .foot-connect > h4 {
  margin-bottom: 0.85rem;
}

footer .foot-social ul {
  flex-wrap: wrap;
}

footer .foot-social a {
  display: inline-flex;
  text-decoration: none;
}

footer .foot-social ul li i {
  background-color: var(--esp-color-primary) !important;
}

footer .foot-social ul li a:hover i {
  background-color: var(--esp-color-accent) !important;
  color: #fff;
}

footer .last-contain {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  margin-top: 0.5rem;
}

footer .last-contain .row {
  row-gap: 0.75rem;
  align-items: center;
}

.modal-body .form-wrap .form-group {
  margin-bottom: var(--esp-space-stack);
}

.modal-body .btn-container {
  margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .sec-pd,
  .inner-pd {
    padding-top: var(--esp-space-section-sm) !important;
    padding-bottom: var(--esp-space-section-sm) !important;
  }

  .choose-heading,
  .our-service-hd {
    margin-bottom: 1.75rem !important;
  }

  .s1-form {
    padding: 1.75rem 1.25rem !important;
    border-radius: 1.5rem !important;
  }

  .service-form {
    padding: 1.75rem 1.25rem !important;
  }

  .bann-heading .btn-container {
    flex-wrap: wrap;
  }

  .box-set .count-num {
    width: auto !important;
    min-width: fit-content !important;
  }
}

@media (min-width: 992px) {
  .service-form-sec > .container > .row {
    align-items: center;
  }
}

/* Legacy style8e5e.css assigns Oswald to headings, nav, buttons, tabs, etc. */
.theme-font,
.theme-btn1,
.theme-btn2,
h1,
h2,
h3,
h4,
h5,
h6,
.sec-hd,
.sub-heading,
.main-heading,
.bann-hd,
.testimonials-sec span,
.lead-sec .accordion,
.panelfaq .title,
.company-name,
.pricing-tab-sec .nav-tabs .nav-link,
h2.theme-font.pack-1 {
  font-family: var(--esp-font-heading) !important;
}

.navbar-light .navbar-nav .nav-link,
.custom-dropdown .dropdown-item {
  font-family: var(--esp-font-body) !important;
}

.navbar-light .navbar-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.custom-dropdown .dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
}

:root {
  --theme-color: var(--esp-color-primary) !important;
  --green-color: var(--esp-color-primary) !important;
  --muted: var(--esp-color-text-muted) !important;
  --sd: rgb(74 26 82 / 28%) !important;
  --sl: var(--esp-color-tint) !important;
  --esp-filter-icon-primary: brightness(0) saturate(100%) invert(24%) sepia(45%)
    saturate(2847%) hue-rotate(271deg) brightness(92%) contrast(92%);
}

.color-green {
  color: var(--esp-color-primary) !important;
}

.para-color {
  color: var(--esp-color-text-muted);
}

.color,
.theme-color {
  color: var(--esp-color-primary) !important;
}

.theme-btn1,
.theme-btn1.btn-overlay,
.theme-btn2,
.theme-btn2.btn-overlay {
  transition: none !important;
}

.theme-btn1,
.theme-btn1.btn-overlay {
  background-color: var(--esp-color-primary) !important;
  border-color: var(--esp-color-primary) !important;
  color: var(--esp-color-text-inverse) !important;
}

.theme-btn1.active,
.theme-btn1.active.btn-overlay {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-primary) !important;
  color: var(--esp-color-primary) !important;
}

a.theme-btn1:hover,
a.theme-btn1.btn-overlay:hover,
a.theme-btn1.active:hover,
a.theme-btn1.active.btn-overlay:hover {
  background-color: var(--esp-color-primary-hover) !important;
  border-color: var(--esp-color-primary-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

.theme-btn1.active.btn-overlay::before,
.theme-btn1.active.btn-overlay:hover::before {
  background-color: var(--esp-color-primary-hover) !important;
}

/* btn-overlay slide uses a white ::before that clashes with branded buttons */
.theme-btn1.btn-overlay::before,
.theme-btn2.btn-overlay::before {
  display: none !important;
  content: none !important;
}

a.theme-btn1:hover img,
a.theme-btn1.btn-overlay:hover img {
  filter: brightness(0) invert(1) !important;
}

.theme-btn1.active img,
a.theme-btn1.active.btn-overlay img {
  filter: brightness(0) saturate(100%) invert(24%) sepia(45%) saturate(2847%)
    hue-rotate(271deg) brightness(92%) contrast(92%) !important;
}

a.theme-btn1.active:hover img,
a.theme-btn1.active.btn-overlay:hover img {
  filter: brightness(0) invert(1) !important;
}

.theme-btn2,
.theme-btn2.btn-overlay {
  background-color: var(--esp-color-accent) !important;
  border-color: var(--esp-color-accent) !important;
  color: var(--esp-color-text-inverse) !important;
}

a.theme-btn2:hover,
a.theme-btn2.btn-overlay:hover {
  background-color: var(--esp-color-accent-hover) !important;
  border-color: var(--esp-color-accent-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

a.theme-btn2:hover img,
a.theme-btn2.btn-overlay:hover img {
  filter: brightness(0) invert(1) !important;
}

.theme-btn3,
.theme-btn3.btn-overlay {
  transition: none !important;
}

/* btn-overlay white slide clashes with branded theme-btn3 */
.theme-btn3.btn-overlay::before {
  display: none !important;
  content: none !important;
}

a.theme-btn3.btn-overlay:hover {
  background-color: var(--esp-color-primary-hover) !important;
  border-color: var(--esp-color-primary-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

a.theme-btn3.btn-overlay:hover img {
  filter: brightness(0) invert(1) !important;
}

.book-cover-sec a.theme-btn3.btn-overlay:hover {
  background-color: var(--esp-color-accent-hover) !important;
  border-color: var(--esp-color-accent-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

/* Hero “Talk to Us” — legacy grey-btn → branded secondary CTA */
.grey-btn,
.grey-btn.btn-overlay {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--esp-color-accent) !important;
  border: 2px solid var(--esp-color-accent) !important;
  color: var(--esp-color-text-inverse) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.grey-btn.btn-overlay::before {
  display: none !important;
  content: none !important;
}

a.grey-btn:hover,
a.grey-btn.btn-overlay:hover {
  background-color: var(--esp-color-accent-hover) !important;
  border-color: var(--esp-color-accent-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

.grey-btn img {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1) !important;
}

.grey-btn .fa-bounce {
  animation: none !important;
}

.grey-btn:focus-visible {
  outline: none;
  box-shadow: var(--esp-shadow-focus);
}

/* Phone CTA — keep icon and number the same color (default + hover) */
a.icon-btn,
a.icon-btn .call-number {
  color: var(--esp-color-primary) !important;
  transition: color 0.2s ease;
}

a.icon-btn:hover,
a.icon-btn:hover .call-number {
  color: var(--esp-color-primary) !important;
}

a.icon-btn img {
  filter: var(--esp-filter-icon-primary) !important;
  transition: filter 0.2s ease;
}

a.icon-btn:hover img {
  filter: var(--esp-filter-icon-primary) !important;
}

a.icon-btn .fa-phone,
a.icon-btn:hover .fa-phone {
  color: var(--esp-color-primary) !important;
}

a.icon-btn.text-white,
a.icon-btn.text-white .call-number,
a.icon-btn.text-white:hover,
a.icon-btn.text-white:hover .call-number {
  color: var(--esp-color-text-inverse) !important;
}

a.icon-btn.text-white img,
a.icon-btn.text-white:hover img {
  filter: brightness(0) invert(1) !important;
}

a:focus-visible,
button:focus-visible,
.theme-btn1:focus-visible,
.theme-btn2:focus-visible {
  outline: none;
  box-shadow: var(--esp-shadow-focus);
}

.esp-wordmark--nav {
  gap: 0.85rem;
  min-width: 0;
}

.navbar-brand {
  display: inline-flex !important;
  align-items: center;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.navbar-brand .esp-nav-logo,
.esp-nav-logo {
  display: block !important;
  width: auto !important;
  height: 56px !important;
  max-width: min(240px, 55vw) !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.esp-footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 100%;
}

.esp-footer-logo {
  display: block;
  width: auto;
  height: 88px;
  max-width: min(320px, 90%);
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .esp-footer-logo {
    height: 68px;
    max-width: 240px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand .esp-nav-logo,
  .esp-nav-logo {
    height: 42px;
    max-width: 150px;
  }
}

.esp-wordmark--nav .esp-wordmark__name {
  font-size: 1rem;
  max-width: none;
  line-height: 1.15;
}

.esp-wordmark--nav .esp-wordmark__mark {
  width: 3rem;
  height: 3rem;
}

.esp-wordmark--footer .esp-wordmark__name {
  font-size: 1.25rem;
  color: #fff;
}

.esp-wordmark--footer .esp-wordmark__mark {
  width: 3.5rem;
  height: 3.5rem;
}

.esp-contact-panel {
  padding: 1.25rem;
  background: var(--esp-color-tint);
  border: 1px solid var(--esp-color-border-decorative);
  border-radius: var(--esp-radius-lg);
}

.esp-contact-panel__lead {
  font-weight: 600;
  margin: 0 0 1rem;
}

.esp-contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.esp-contact-panel__meta {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.esp-contact-panel__meta a {
  color: var(--esp-color-primary);
}

.esp-contact-panel__note {
  margin: 0;
  color: var(--esp-color-text-muted);
  font-size: 0.8125rem;
}

.esp-portfolio-unavailable {
  display: inline-block;
  opacity: 0.75;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/* Header / navigation                                                         */
/* -------------------------------------------------------------------------- */

.navbar-right .head-btn .theme-btn1 {
  padding: 0.55rem 1rem !important;
  font-size: 0.875rem !important;
  font-family: var(--esp-font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  white-space: nowrap;
  line-height: 1.2;
}

.navbar-right .head-btn .theme-btn1 img {
  width: 1.25rem !important;
  height: auto;
}

@media (min-width: 992px) {
  nav.navbar.navbar-expand-lg {
    min-height: 4.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  nav.navbar.navbar-expand-lg > .container {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    column-gap: 1.25rem;
  }

  nav.navbar.navbar-expand-lg .navbar-brand {
    grid-column: 1;
    justify-self: start;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  nav.navbar.navbar-expand-lg .navbar-toggler {
    grid-column: 2;
    justify-self: end;
  }

  nav.navbar.navbar-expand-lg .navbar-collapse {
    grid-column: 2;
    justify-self: center;
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    justify-content: center;
  }

  nav.navbar.navbar-expand-lg .navbar-right {
    grid-column: 3;
    justify-self: end;
    flex-shrink: 0;
  }

  nav.navbar.navbar-expand-lg .navbar-nav {
    gap: 0.375rem;
    align-items: center;
    flex-wrap: nowrap;
  }

  .navbar-light .navbar-nav .nav-item {
    flex-shrink: 0;
  }

  .navbar-light .navbar-nav .nav-link {
    white-space: nowrap;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    color: var(--esp-color-text) !important;
  }

  .navbar-light .navbar-nav .custom-dropdown > .nav-link.dropdown-toggle {
    gap: 0.4rem;
    white-space: nowrap;
  }

  .custom-dropdown .dropdown-icon {
    margin-left: 0 !important;
    font-size: 0.7rem !important;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    top: 0.05em;
  }

  .custom-dropdown .dropdown-item {
    font-size: 0.9rem !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
  }

  .navbar-right .head-btn .theme-btn1 {
    padding: 0.65rem 1.2rem !important;
    font-size: 0.9375rem !important;
    font-family: var(--esp-font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    white-space: nowrap;
    line-height: 1.2;
  }

  .navbar-right .head-btn .theme-btn1 img {
    width: 1.375rem !important;
    height: auto;
  }
}

@media (min-width: 992px) and (max-width: 1299px) {
  .esp-wordmark--nav .esp-wordmark__name {
    font-size: 0.875rem;
  }

  .navbar-light .navbar-nav .nav-link {
    padding: 0.5rem 0.45rem !important;
    font-size: 0.875rem !important;
  }

  nav.navbar.navbar-expand-lg > .container {
    column-gap: 0.75rem;
  }
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
  color: var(--esp-color-primary) !important;
  font-weight: 600;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--esp-color-primary-hover) !important;
}

.navbar-light .navbar-nav .nav-link.active:hover,
.navbar-light .navbar-nav .nav-link.active:focus {
  color: var(--esp-color-primary) !important;
}

/* Top bar contact links — legacy hover uses brand purple on purple header */
.header-above .head-contact ul li a,
.header-above .head-contact ul li a.text-white {
  color: var(--esp-color-text-inverse) !important;
}

.header-above .head-contact ul li a:hover,
.header-above .head-contact ul li a:focus {
  color: var(--esp-color-accent) !important;
}

.foot-box a:hover {
  color: var(--esp-color-accent) !important;
}

/* -------------------------------------------------------------------------- */
/* Legacy Expert Book Publishing colour remap (style8e5e / responsivef500)     */
/* -------------------------------------------------------------------------- */

.accordion-sec .accordion-button {
  background-color: rgb(74 26 82 / 8%) !important;
  border: 1px solid var(--esp-color-border-decorative) !important;
  color: var(--esp-color-text) !important;
}

.accordion-sec .accordion-button:not(.collapsed) {
  color: var(--esp-color-text-inverse) !important;
  background-color: var(--esp-color-primary) !important;
  box-shadow: inset 0 -1px 0 var(--esp-color-primary-hover) !important;
}

.accordion-sec .accordion-button:focus {
  border-color: var(--esp-color-primary) !important;
  box-shadow: 0 0 0 0.25rem rgb(74 26 82 / 32%) !important;
}

.accordion-sec .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(24%) sepia(45%) saturate(2847%)
    hue-rotate(264deg) brightness(88%) contrast(91%) !important;
}

.accordion-sec .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1) !important;
}

.lead-sec .accordion::after {
  color: var(--esp-color-primary) !important;
}

.bann-box {
  border-color: var(--esp-color-accent) !important;
  background-color: rgb(74 26 82 / 62%) !important;
}

.blog-anchor,
.blog-anchor:hover {
  color: var(--esp-color-primary) !important;
}

.only-this-tooltip .tooltip-inner {
  background-color: var(--esp-color-primary) !important;
  color: var(--esp-color-text-inverse) !important;
}

.only-this-tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--esp-color-primary) !important;
}

.only-this-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--esp-color-primary) !important;
}

.only-this-tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: var(--esp-color-primary) !important;
}

.only-this-tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: var(--esp-color-primary) !important;
}

.blog-slider .slick-dots li button:before {
  color: var(--esp-color-text-muted) !important;
}

.blog-slider .slick-dots li.slick-active button:before,
.process-nav .slick-dots li.slick-active button:before,
.slick-dots li.slick-active button:before {
  color: var(--esp-color-primary) !important;
  opacity: 1 !important;
}

.benefit-icon {
  color: var(--esp-color-primary);
}

.benefit-icon svg {
  stroke: currentColor;
}

.self-kdp .benefit-item {
  background-color: var(--esp-color-surface) !important;
  box-shadow: 0 4px 14px rgb(0 0 0 / 14%) !important;
}

.self-kdp .benefit-item:hover .benefit-icon {
  box-shadow: inset 0 0 0 1px var(--esp-color-border-decorative) !important;
}

.self-kdp .benefit-icon {
  background-color: var(--esp-color-tint) !important;
  box-shadow: none !important;
}

.self-kdp .benefit-text strong {
  color: var(--esp-color-primary) !important;
}

.self-kdp .benefit-text span {
  color: var(--esp-color-text-muted) !important;
}

.modal-content {
  background-color: var(--esp-color-tint) !important;
  position: relative;
}

/* Free Quote popup — close button */
#exampleModal .esp-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(74, 26, 82, 0.12);
  opacity: 1;
  box-shadow: none;
  background-image: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#exampleModal .esp-modal-close::before {
  content: "\00d7";
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  color: var(--esp-color-primary, #4a1a52);
}

#exampleModal .esp-modal-close:hover {
  background-color: rgba(208, 18, 129, 0.16);
  transform: scale(1.05);
}

#exampleModal .esp-modal-close:hover::before {
  color: #d01281;
}

#exampleModal .esp-modal-close:focus {
  box-shadow: 0 0 0 0.2rem rgba(208, 18, 129, 0.25);
  outline: none;
}

/* Pricing section — remap legacy peach/green cards to brand purple */
:is(.pricing-sec, .pricing-tab-sec) {
  background-color: var(--esp-color-bg) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-border-decorative) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-head .font-35.theme-font {
  color: var(--esp-color-text) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-head h4,
:is(.pricing-sec, .pricing-tab-sec) .pricing-head h5 {
  color: var(--esp-color-text-muted) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-head h4.color,
:is(.pricing-sec, .pricing-tab-sec) .pricing-head h3.color,
:is(.pricing-sec, .pricing-tab-sec) .pricing-head .price,
:is(.pricing-sec, .pricing-tab-sec) .pricing-head .price.color {
  color: var(--esp-color-primary) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-content h5.color {
  color: var(--esp-color-primary) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-content ul li {
  color: var(--esp-color-text) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-content ul li::before {
  color: var(--esp-color-accent) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .delete-price::before,
:is(.pricing-sec, .pricing-tab-sec) span.cut-price {
  background-color: transparent !important;
}

:is(.pricing-sec, .pricing-tab-sec) span.cut-price,
:is(.pricing-sec, .pricing-tab-sec) .delete-price {
  color: var(--esp-color-text-muted) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box .btn-container img {
  filter: brightness(0) saturate(100%) invert(24%) sepia(45%) saturate(2847%)
    hue-rotate(271deg) brightness(92%) contrast(92%) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .theme-btn3 {
  background-color: var(--esp-color-primary) !important;
  border: 2px solid var(--esp-color-primary) !important;
  color: var(--esp-color-text-inverse) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .theme-btn3:hover {
  background-color: var(--esp-color-primary-hover) !important;
  border-color: var(--esp-color-primary-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover {
  background-color: var(--esp-color-primary) !important;
  border-color: var(--esp-color-primary) !important;
  color: var(--esp-color-text-inverse) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .price,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .price.color,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .color-green,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .btn-container a:not(.theme-btn3),
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .btn-container p,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .pricing-head h3,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .pricing-head h4,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .pricing-head h5,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .pricing-head .font-35.theme-font,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .pricing-content ul li,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .pricing-content h5.color,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .delete-price,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover span.cut-price,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .para-color {
  color: var(--esp-color-text-inverse) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .pricing-content ul li::before {
  color: var(--esp-color-accent) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .btn-container img {
  filter: brightness(0) invert(1) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .theme-btn3,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .btn-container a.theme-btn3 {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-surface) !important;
  color: var(--esp-color-primary) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .theme-btn3:hover,
:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .btn-container a.theme-btn3:hover {
  background-color: var(--esp-color-tint) !important;
  border-color: var(--esp-color-tint) !important;
  color: var(--esp-color-primary-hover) !important;
}

.pricing-tab-sec .nav-tabs .nav-link {
  background-color: var(--esp-color-primary) !important;
  border-color: var(--esp-color-surface) !important;
  color: var(--esp-color-text-inverse) !important;
}

.pricing-tab-sec .nav-tabs .nav-item.show .nav-link,
.pricing-tab-sec .nav-tabs .nav-link.active {
  background-color: var(--esp-color-surface) !important;
  color: var(--esp-color-primary) !important;
  border-color: var(--esp-color-primary) !important;
}

/* Publish paths — publish-2 photo bg + path/market cards */
.publish-2 {
  position: relative;
}

.publish-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(74 26 82 / 70%) 0%,
    rgb(41 15 46 / 90%) 100%
  );
  z-index: 0;
}

.publish-2 .container {
  position: relative;
  z-index: 1;
}

.publish-2 .publish-heading.text-white,
.publish-2 .publish-heading.text-white h2,
.publish-2 .publish-heading.text-white p {
  color: var(--esp-color-text-inverse) !important;
}

.publish-2 .path-box.market-box {
  background-color: var(--esp-color-surface) !important;
  border: 1px solid var(--esp-color-border-decorative) !important;
}

.publish-2 .path-box.market-box .path-content p {
  color: var(--esp-color-text-muted) !important;
}

.publish-2 .path-box.market-box h3.color-green {
  color: var(--esp-color-primary) !important;
}

.publish-2 .path-box.market-box .path-head img {
  filter: brightness(0) saturate(100%) invert(24%) sepia(45%) saturate(2847%)
    hue-rotate(271deg) brightness(92%) contrast(92%) !important;
}

.publish-2 .market-box::before {
  background-color: var(--esp-color-primary) !important;
}

.publish-2 .path-box.market-box:hover,
.publish-2 .path-box.market-box:hover h3.color-green,
.publish-2 .path-box.market-box:hover .path-content p {
  color: var(--esp-color-text-inverse) !important;
}

.publish-2 .path-box.market-box:hover .path-head img {
  filter: brightness(0) invert(1) !important;
}

/* -------------------------------------------------------------------------- */
/* Site-wide legacy UBP component colour fixes (style8e5e.css)                */
/* -------------------------------------------------------------------------- */

/* Surfaces — legacy grey / peach section and card backgrounds */
.publish-1,
.bg-gre {
  background-color: var(--esp-color-bg) !important;
}

/* Extra horizontal space between platforms copy + slider */
.publish-1 > .container > .row {
  --bs-gutter-x: 3.5rem;
}

@media (min-width: 992px) {
  .publish-1 > .container > .row {
    --bs-gutter-x: 4.5rem;
  }
}

/* theme-btn3 — global (pricing has extra hover-in-card rules below) */
.theme-btn3 {
  background-color: var(--esp-color-primary) !important;
  border: 2px solid var(--esp-color-primary) !important;
  color: var(--esp-color-text-inverse) !important;
}

.theme-btn3:hover {
  background-color: var(--esp-color-primary-hover) !important;
  border-color: var(--esp-color-primary-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

.book-cover-sec .theme-btn3:hover {
  background-color: var(--esp-color-accent) !important;
  border-color: var(--esp-color-accent) !important;
  color: var(--esp-color-text-inverse) !important;
}

.book-cover-sec .theme-btn3:hover img {
  filter: brightness(0) invert(1) !important;
}

/* market-box — book-marketing grids + any non-publish-2 cards */
.market-box {
  background-color: var(--esp-color-surface) !important;
  border: 1px solid var(--esp-color-border-decorative) !important;
}

/* Equal-height marketing service cards */
.esp-market-grid > [class*="col-"] {
  display: flex;
}

.esp-market-grid .market-box {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  margin-bottom: 0 !important;
  min-height: 100%;
}

.esp-market-grid .market-box .market-icon {
  flex: 0 0 auto;
  min-height: 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.esp-market-grid .market-box .market-icon img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.esp-market-grid .market-box .market-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.esp-market-grid .market-box .market-content h3 {
  line-height: 1.25 !important;
  margin-bottom: 0.4rem !important;
  margin-top: 0 !important;
}

.esp-market-grid .market-box .market-content p {
  flex: 1 1 auto;
  line-height: 1.5 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.market-box::before {
  background-color: var(--esp-color-primary) !important;
}

.market-box h3.color,
.market-box h3.color-green {
  color: var(--esp-color-primary) !important;
}

.market-box p {
  color: var(--esp-color-text-muted) !important;
}

.market-box:hover,
.market-box:hover h3,
.market-box:hover h3.color,
.market-box:hover h3.color-green,
.market-box:hover p {
  color: var(--esp-color-text-inverse) !important;
}

/* service-box — legacy taupe cards */
.service-box {
  background-color: var(--esp-color-tint) !important;
}

.our-service .service-img {
  height: 240px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem 0.75rem 0;
}

.our-service .service-img img {
  height: 100% !important;
  width: auto !important;
  max-width: 88%;
  max-height: 220px;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}

.service-box:hover .service-content .color-green,
.service-box:hover .service-content a.theme-color,
.service-box:hover .service-content a.theme-color u {
  color: var(--esp-color-text-inverse) !important;
}

/* Purple form panel — side bands match panel colour */
.service-form {
  background-color: var(--esp-color-primary) !important;
}

/* Books We've Helped Publish — dark panel (match form/top bar dark) */
.book-cover-sec,
.website-portfolio.book-cover-sec {
  background-color: #4a1a52 !important;
  background: #4a1a52 !important;
  padding-top: clamp(1.5rem, 2.5vw, 2.25rem) !important;
  padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem) !important;
}

.book-cover-sec .portfolio-heading .color {
  color: #f0c9e4 !important;
}

.service-form-sec::before,
.service-form::after {
  background-color: var(--esp-color-primary) !important;
}

/* Modals — peach inner panels and green labels */
.modal-body .form-wrap {
  background-color: var(--esp-color-surface) !important;
}

/* Legacy new-badge.png on hero inline forms */
.form-wrapper::before {
  content: none !important;
  display: none !important;
}

.modal-content label,
.form-heading p {
  color: var(--esp-color-primary) !important;
}

/* Video testimonials — orange/green gradients and invisible border */
.video-testi {
  background: linear-gradient(
    125deg,
    rgb(74 26 82 / 25%) 0%,
    var(--esp-color-tint) 59%
  ) !important;
}

.video-testi .video-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgb(26 21 32 / 12%);
}

.video-testi .video-box iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  aspect-ratio: 9 / 16;
  height: auto;
  min-height: 420px;
  background: #111;
}

.video-testi .video-content p {
  line-height: 1.65;
}

.video-content::before {
  border-color: var(--esp-color-accent) !important;
}

.our-book-sec .testimonials-sec {
  height: 100%;
  margin-bottom: 1.25rem;
}

.our-book-sec .testi_para p:last-child {
  margin-bottom: 0;
}

/* Client reviews section — clean centered intro + review cards */
.our-book-sec .esp-client-heading {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.our-book-sec .esp-client-heading .sec-hd {
  text-align: center !important;
  text-transform: none;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.2;
  margin: 0.35rem auto 1rem;
  max-width: 42rem;
}

.our-book-sec .esp-client-heading .para-color {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
  color: #4a4a4a;
}

.our-book-sec .esp-client-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.our-book-sec .esp-client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 992px) {
  .our-book-sec .esp-client-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.our-book-sec .esp-client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid rgb(74 26 82 / 10%);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 10px 28px rgb(26 21 32 / 7%);
  height: 100%;
}

@media (min-width: 576px) {
  .our-book-sec .esp-client-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 1.75rem 1.75rem;
    gap: 1.5rem;
  }
}

.our-book-sec .esp-client-list > .esp-client-card {
  align-items: center;
}

@media (min-width: 576px) {
  .our-book-sec .esp-client-list > .esp-client-card {
    align-items: center;
  }
}

.our-book-sec .esp-client-card__cover {
  flex: 0 0 auto;
  width: 7.5rem;
}

@media (min-width: 576px) {
  .our-book-sec .esp-client-card__cover {
    width: 8.5rem;
  }

  .our-book-sec .esp-client-list > .esp-client-card .esp-client-card__cover {
    width: 9.5rem;
  }
}

.our-book-sec .esp-client-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(26 21 32 / 14%);
  object-fit: cover;
}

.our-book-sec .esp-client-card__body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

@media (min-width: 576px) {
  .our-book-sec .esp-client-card__body {
    text-align: left;
  }
}

.our-book-sec .esp-client-card__name {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.our-book-sec .esp-client-card__text p {
  margin: 0 0 0.7rem;
  line-height: 1.65;
  color: #444;
  font-size: 0.98rem;
}

.our-book-sec .esp-client-card__text p:last-child {
  margin-bottom: 0;
}

.our-book-sec .esp-client-card__meta {
  color: #4a1a52 !important;
  font-size: 0.95rem;
}

/* Portfolio video play button — legacy brown/green overrides */
a.play-btn,
.play-btn {
  color: var(--esp-color-text-inverse) !important;
  background-color: rgb(74 26 82 / 72%) !important;
  border-color: var(--esp-color-accent) !important;
  box-shadow: 0 3px 14px rgb(26 21 32 / 22%);
  text-decoration: none;
}

a.play-btn::before,
a.play-btn::after,
.play-btn::before,
.play-btn::after {
  color: var(--esp-color-accent);
}

a.play-btn:hover,
a.play-btn:focus,
a.play-btn:focus-visible,
.play-btn:hover,
.play-btn:focus,
.play-btn:focus-visible {
  color: var(--esp-color-text-inverse) !important;
  background-color: var(--esp-color-accent) !important;
  border-color: var(--esp-color-accent-hover) !important;
}

a.play-btn:focus-visible,
.play-btn:focus-visible {
  box-shadow: var(--esp-shadow-focus), 0 3px 14px rgb(26 21 32 / 22%);
}

a.play-btn i,
.play-btn i,
a.play-btn:hover i,
.play-btn:hover i,
a.play-btn:focus i,
.play-btn:focus i {
  color: currentColor !important;
}

/* Legacy nested-link markup (if any) */
.play-btn a,
.play-btn:hover a,
.play-btn:focus a {
  color: var(--esp-color-text-inverse) !important;
}

.quote-icon {
  color: var(--esp-color-accent) !important;
}

/* Ads band — orange photo wash */
.ads-sec::before {
  background: linear-gradient(
    182deg,
    transparent 0%,
    rgb(74 26 82 / 83%) 98%
  ) !important;
}

/* Contact list cards — grey legacy tiles */
.contact-list li {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-border-decorative) !important;
}

.contact-list li::before {
  background-color: var(--esp-color-primary) !important;
}

.contact-list li:hover,
.contact-list li:hover h4 a,
.contact-list .color-green:hover a {
  color: var(--esp-color-text-inverse) !important;
}

/* Phase steps — purple fill + invisible same-color border */
.phase-box {
  background-color: var(--esp-color-primary) !important;
  border-color: var(--esp-color-accent) !important;
  color: var(--esp-color-text-inverse) !important;
}

/* Guide links — distinct hover (both vars map to primary) */
.guide-title a:hover {
  color: var(--esp-color-accent) !important;
}

/* Legacy green PNG icons used with .color-green text links */
a.color-green img,
.color-green img[src*="green-mass"],
.color-green img[src*="green-call"] {
  filter: var(--esp-filter-icon-primary) !important;
}

:is(.pricing-sec, .pricing-tab-sec) .pricing-box:hover .btn-container img,
.market-box:hover .path-head img {
  filter: brightness(0) invert(1) !important;
}

.modal-title {
  color: var(--esp-color-primary) !important;
}

.testimonials-sec strong i,
.testimonials-sec .inline-block li {
  color: var(--esp-color-accent) !important;
}

.footer-search input,
.footer-search input:focus,
.footer-search i {
  background-color: var(--esp-color-primary-hover) !important;
  border-color: var(--esp-color-primary-hover) !important;
  color: var(--esp-color-text-inverse) !important;
}

/* Why choose boxes — brown: purple → pink hover; green: pink → purple hover */
.why-choose-sec .choose-box.brown-bg,
.why-choose-sec .choose-box.green-bg {
  border-color: transparent !important;
}

.why-choose-sec .choose-box.brown-bg {
  background-color: var(--esp-color-primary) !important;
}

.why-choose-sec .choose-box.green-bg {
  background-color: var(--esp-color-accent) !important;
}

.why-choose-sec .choose-box.brown-bg::before {
  background-color: var(--esp-color-accent) !important;
}

.why-choose-sec .choose-box.green-bg::before {
  background-color: var(--esp-color-primary) !important;
  opacity: 1;
}

.why-choose-sec .choose-box:hover {
  border-color: var(--esp-color-text-inverse) !important;
}

/* Testimonial avatar initials — legacy #ffd5bd / rgb(255, 213, 189) */
.testimonial-box .name-circle .name-1 {
  background-color: var(--esp-color-tint) !important;
  border-color: var(--esp-color-primary) !important;
  color: var(--esp-color-primary) !important;
}

/* Form fields on purple panels — white inputs so they contrast section bg */
.s1-form .form-wrap .form-group .form-control,
.service-form .form-wrap .form-group .form-control,
.service-form .form-group .form-control,
.service-form .nice-select {
  background-color: var(--esp-color-surface) !important;
  color: var(--esp-color-text) !important;
  border: 1px solid var(--esp-color-border-control) !important;
}

.s1-form .form-wrap .form-group .form-control::placeholder,
.service-form .form-wrap .form-group .form-control::placeholder,
.service-form .form-group .form-control::placeholder {
  color: var(--esp-color-text-muted) !important;
}

.service-form .nice-select .current {
  color: var(--esp-color-text) !important;
}

.service-form .nice-select:after {
  border-color: var(--esp-color-text-muted) !important;
}

.service-form .nice-select .list,
.service-form .nice-select ul.list {
  background-color: var(--esp-color-surface) !important;
  border: 1px solid var(--esp-color-border-control) !important;
  box-shadow: var(--esp-shadow-card) !important;
}

.service-form .nice-select .list .option,
.service-form .nice-select .option {
  color: var(--esp-color-text) !important;
}

.service-form .nice-select .option:hover,
.service-form .nice-select .option.focus,
.service-form .nice-select .option.selected.focus {
  background-color: var(--esp-color-tint) !important;
  color: var(--esp-color-text) !important;
}

.service-form .nice-select .list:hover .option:not(:hover) {
  background-color: transparent !important;
}

/* Service checkboxes on purple panels — white circles with visible checked state */
.service-form .service-select input[type="checkbox"] {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-text-inverse) !important;
}

.service-form .service-select input[type="checkbox"]:hover {
  box-shadow: 0 0 0 2px rgb(255 255 255 / 35%) !important;
}

.service-form .service-select input[type="checkbox"]:checked {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-text-inverse) !important;
}

.service-form .service-select input[type="checkbox"]:checked::after {
  background-color: var(--esp-color-accent) !important;
}

/* Privacy checkbox on purple inquiry panel */
.s1-form .form-check-input {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-border-control) !important;
}

.s1-form .form-check-input:checked {
  background-color: var(--esp-color-accent) !important;
  border-color: var(--esp-color-accent) !important;
}

.s1-form .form-check-input:focus {
  box-shadow: var(--esp-shadow-focus) !important;
}

/* Privacy consent — checkbox aligned with first line of label */
.form-checks,
.form-checks.d-flex {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  width: 100%;
  max-width: 100%;
}

.form-checks .form-check-input {
  float: none !important;
  position: static !important;
  flex: 0 0 auto;
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem;
  margin: calc((1.5em - 1rem) / 2) 0 0 !important;
  vertical-align: top;
}

.form-checks .form-check-label {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  max-width: 100%;
  display: block !important;
  margin: 0 !important;
  padding: 0;
  line-height: 1.5;
  text-align: left;
}

.form-checks .form-check-label a {
  vertical-align: baseline;
}

.form-checks .form-check-label p {
  margin: 0;
}

.service-form .form-check-input,
.form-wrap .form-check-input {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-border-control) !important;
}

.service-form .form-check-input:checked,
.form-wrap .form-check-input:checked {
  background-color: var(--esp-color-accent) !important;
  border-color: var(--esp-color-accent) !important;
}

/* Submit buttons on purple panels — white CTA so they contrast section bg */
.s1-form .theme-btn1,
.s1-form .theme-btn1.btn-overlay,
.service-form .theme-btn1,
.service-form .theme-btn1.btn-overlay {
  background-color: var(--esp-color-surface) !important;
  border-color: var(--esp-color-surface) !important;
  color: var(--esp-color-primary) !important;
}

.s1-form .theme-btn1:hover,
.s1-form .theme-btn1.btn-overlay:hover,
.s1-form button.theme-btn1:hover,
.s1-form button.theme-btn1.btn-overlay:hover,
.service-form .theme-btn1:hover,
.service-form .theme-btn1.btn-overlay:hover,
.service-form button.theme-btn1:hover,
.service-form button.theme-btn1.btn-overlay:hover {
  background-color: var(--esp-color-accent) !important;
  border-color: var(--esp-color-accent) !important;
  color: var(--esp-color-text-inverse) !important;
}

/* Modal / light-background forms */
.modal-body .form-wrap .form-group .form-control,
.modal-body .form-wrap .form-group textarea {
  background-color: var(--esp-color-surface) !important;
  color: var(--esp-color-text) !important;
  border: 1px solid var(--esp-color-border-control) !important;
}

.modal-body .form-wrap .form-group .form-control::placeholder,
.modal-body .form-wrap .form-group textarea::placeholder {
  color: var(--esp-color-text-muted) !important;
}

.contact-form .form-floating.form-group input,
.contact-form .form-floating.form-group textarea {
  background-color: var(--esp-color-tint) !important;
}

/* Banner/publish overlays — legacy rgba(40, 55, 27) / #28371b gradients */
.bg-overlay::before {
  background: linear-gradient(180deg, rgb(74 26 82 / 62%) 0, var(--esp-color-primary-hover) 89%) !important;
}

.publish-content {
  background: linear-gradient(180deg, rgb(74 26 82 / 12%) 0, var(--esp-color-primary-hover) 100%) !important;
}

.publish-box:hover .publish-content {
  background: linear-gradient(180deg, rgb(74 26 82 / 47%) 0, var(--esp-color-primary-hover) 89%) !important;
}

/* Portfolio section tabs — active state must contrast with purple section bg */
.book-cover-sec.slider-tab .nav-tabs,
.slider-tab .nav-tabs,
.slider-tabs .nav-tabs {
  gap: 0.5rem;
}

.slider-tab .nav-tabs .nav-link::before,
.slider-tabs .nav-tabs .nav-link::before {
  content: none !important;
  display: none !important;
}

.book-cover-sec.slider-tab .nav-tabs .nav-link {
  color: var(--esp-color-text-inverse) !important;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.book-cover-sec.slider-tab .nav-tabs .nav-link:hover,
.book-cover-sec.slider-tab .nav-tabs .nav-link:focus {
  color: var(--esp-color-text-inverse) !important;
  background-color: rgb(255 255 255 / 14%) !important;
}

.book-cover-sec.slider-tab .nav-tabs .nav-link.active,
.book-cover-sec.slider-tab .nav-tabs .nav-item.show .nav-link {
  color: #4a1a52 !important;
  background-color: var(--esp-color-text-inverse) !important;
  font-weight: 700;
}

/* Self-publishing CTA band — purple bg via --green-color remap; .color must not match it */
.self-kdp .sec-hd.color,
.self-kdp .self-heading > .sec-hd.color {
  color: var(--esp-color-text-inverse) !important;
}

.self-kdp .text-white .color {
  color: var(--esp-color-accent) !important;
}

/* Scrollbars — legacy track and thumb both use brand purple; keep thumb visible at rest */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--esp-color-tint) !important;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--esp-color-primary) !important;
  border-radius: 10px;
  border: 2px solid var(--esp-color-tint) !important;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--esp-color-accent) !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--esp-color-primary) var(--esp-color-tint);
}

.flip-box.flipped .flip-inner {
  transform: rotateY(180deg);
}

/* Disable hover flip — show front covers only unless intentionally flipped */
.flip-box:hover .flip-inner {
  transform: none !important;
}

.flip-box.flipped:hover .flip-inner {
  transform: rotateY(180deg) !important;
}

/* Explore More buttons on book flip cards */
.flip-back .btn-container {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  margin-top: 0.5rem;
}

.flip-back .theme-btn2,
.flip-back a.theme-btn2 {
  width: auto !important;
  max-width: 78% !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  line-height: 1.2 !important;
  white-space: nowrap;
  border-radius: 6px !important;
}

/* Slick layout fallback until theme CSS is applied */
.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slick-track {
  position: relative;
  left: 0;
  top: 0;
  display: block;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}

.slick-initialized .slick-slide {
  display: block;
}

/* Scroll reveal — esp-revealed avoids Bootstrap / interaction .active conflicts */
.reveal.esp-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Keep AOS-animated sections visible once shown */
[data-aos].aos-animate {
  opacity: 1 !important;
}

/* Inner-page heroes: vendor fadeUp fights data-aos — use esp-hero-animate instead */
.inner-banner .bann-heading > *:not(.esp-hero-animate),
.about-banner .bann-heading > *:not(.esp-hero-animate) {
  opacity: unset;
  transform: unset;
  animation: none;
}

.inner-banner .bann-heading .esp-hero-animate,
.about-banner .bann-heading .esp-hero-animate {
  opacity: 0;
  transform: translateY(22px);
  animation: espHeroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1)
    var(--esp-hero-delay, 0s) forwards;
  will-change: opacity, transform;
}

.esp-hero-animate {
  opacity: 0;
  transform: translateY(22px);
  animation: espHeroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1)
    var(--esp-hero-delay, 0s) forwards;
  will-change: opacity, transform;
}

@keyframes espHeroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-aos],
  .esp-hero-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}



/* P1: disclaimer for stats / testimonials */
.esp-claims-note {
  color: var(--esp-color-text-muted, #5c5c5c);
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.92;
}
.esp-claims-note small { font-size: inherit; }

/* Published books — centered section intro (heading + para above grid) */
.publish-book .publish-heading {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.publish-book .publish-heading .sec-hd {
  display: block;
  width: 100%;
  max-width: 58rem;
  margin: 0 auto 1.15rem;
  text-align: center !important;
  text-transform: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  color: #1a1a1a;
}

.publish-book .publish-heading p,
.publish-book .publish-heading .para-color {
  display: block;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center !important;
  line-height: 1.65;
  font-size: clamp(0.98rem, 1.35vw, 1.125rem);
}

/* -------------------------------------------------------------------------- */
/* Payment page                                                                */
/* -------------------------------------------------------------------------- */

.esp-pay {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgb(208 18 129 / 10%), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgb(74 26 82 / 12%), transparent 50%),
    linear-gradient(180deg, #f8f3f7 0%, #fbf9fc 40%, #fff 100%);
}

.esp-pay__hero {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  text-align: center;
}

.esp-pay__eyebrow {
  margin: 0 0 0.6rem;
  font-family: "Poppins", var(--esp-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--esp-color-accent);
}

.esp-pay__title {
  margin: 0 0 0.65rem;
  font-family: "Poppins", var(--esp-font-body) !important;
  font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.15;
  color: var(--esp-color-primary) !important;
  letter-spacing: -0.02em;
}

.esp-pay__lead {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--esp-color-text-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.55;
}

.esp-pay__body {
  padding: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.esp-pay__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 1.5rem;
  align-items: start;
  max-width: 58rem;
  margin: 0 auto;
}

.esp-pay__panel {
  background: #fff;
  border: 1px solid rgb(74 26 82 / 10%);
  border-radius: 16px;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: 0 12px 40px rgb(26 21 32 / 6%);
}

.esp-pay__section-label {
  margin: 0 0 0.85rem;
  font-family: "Poppins", var(--esp-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--esp-color-text-muted);
}

.esp-pay__packages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.esp-pay__option {
  display: block;
  margin: 0;
  cursor: pointer;
}

.esp-pay__option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.esp-pay__option-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  border: 1.5px solid rgb(74 26 82 / 14%);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.esp-pay__option:hover .esp-pay__option-body {
  border-color: rgb(74 26 82 / 28%);
}

.esp-pay__option.is-selected .esp-pay__option-body {
  border-color: var(--esp-color-primary);
  background: linear-gradient(135deg, rgb(74 26 82 / 5%) 0%, rgb(208 18 129 / 5%) 100%);
  box-shadow: 0 0 0 1px var(--esp-color-primary);
}

.esp-pay__option-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.esp-pay__radio {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgb(74 26 82 / 28%);
  border-radius: 50%;
  position: relative;
  background: #fff;
  transition: border-color 0.2s ease;
}

.esp-pay__option.is-selected .esp-pay__radio {
  border-color: var(--esp-color-primary);
}

.esp-pay__option.is-selected .esp-pay__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--esp-color-primary);
}

.esp-pay__option-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.esp-pay__option-name {
  font-family: "Poppins", var(--esp-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--esp-color-text);
  line-height: 1.3;
}

.esp-pay__option-hint {
  font-size: 0.88rem;
  color: var(--esp-color-text-muted);
}

.esp-pay__option-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
  text-align: right;
}

.esp-pay__option-price strong {
  font-family: "Poppins", var(--esp-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--esp-color-primary);
  line-height: 1.2;
}

.esp-pay__option-price span {
  font-size: 0.78rem;
  color: var(--esp-color-text-muted);
}

.esp-pay__custom-amount {
  display: block;
  padding: 0 0.25rem 0.85rem 2.9rem;
}

.esp-pay__custom-amount[hidden] {
  display: none !important;
}

.esp-pay__amount-input {
  display: flex;
  align-items: center;
  border: 1.5px solid rgb(74 26 82 / 16%);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  max-width: 16rem;
}

.esp-pay__currency {
  padding: 0.65rem 0.7rem 0.65rem 0.9rem;
  font-weight: 700;
  color: var(--esp-color-primary);
  background: rgb(74 26 82 / 6%);
}

.esp-pay__amount-input input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.65rem 0.85rem 0.65rem 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--esp-color-text);
  min-width: 0;
  background: transparent;
}

.esp-pay__amount-input:focus-within {
  border-color: var(--esp-color-primary);
  box-shadow: 0 0 0 3px rgb(74 26 82 / 14%);
}

.esp-pay__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.esp-pay__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.esp-pay__field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--esp-color-text);
}

.esp-pay__input {
  width: 100%;
  border: 1.5px solid rgb(74 26 82 / 16%);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--esp-color-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.esp-pay__input::placeholder {
  color: #9a90a0;
}

.esp-pay__input:focus {
  outline: 0;
  border-color: var(--esp-color-primary);
  box-shadow: 0 0 0 3px rgb(74 26 82 / 14%);
}

.esp-pay__status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  background: rgb(180 35 24 / 6%);
  border: 1px solid rgb(180 35 24 / 16%);
}

.esp-pay__status.is-ready {
  background: rgb(31 122 74 / 8%);
  border-color: rgb(31 122 74 / 22%);
}

.esp-pay__status-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #b42318;
}

.esp-pay__status.is-ready .esp-pay__status-dot {
  background: #1f7a4a;
}

.esp-pay__status strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--esp-color-text);
  margin-bottom: 0.15rem;
}

.esp-pay__status p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--esp-color-text-muted);
  line-height: 1.4;
}

.esp-pay__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.25rem;
  font-family: "Poppins", var(--esp-font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--esp-color-accent) 0%, var(--esp-color-primary) 100%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgb(208 18 129 / 22%);
}

.esp-pay__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgb(208 18 129 / 28%);
}

.esp-pay__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.esp-pay__secure {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--esp-color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.esp-pay__secure i {
  margin-right: 0.25rem;
  color: var(--esp-color-primary);
}

.esp-pay__secure a {
  color: var(--esp-color-accent);
  font-weight: 600;
  text-decoration: none;
}

.esp-pay__secure a:hover {
  text-decoration: underline;
}

.esp-pay__methods {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(74 26 82 / 8%);
  text-align: center;
}

.esp-pay__methods img {
  max-width: 16rem;
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 0.92;
}

.esp-pay__aside {
  position: sticky;
  top: 1.25rem;
}

.esp-pay__summary {
  background: linear-gradient(165deg, #4a1a52 0%, #2e0f34 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.35rem;
  box-shadow: 0 14px 36px rgb(46 15 52 / 22%);
}

.esp-pay__summary-title {
  margin: 0 0 1.1rem;
  font-family: "Poppins", var(--esp-font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.02em;
}

.esp-pay__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.92rem;
}

.esp-pay__summary-row span {
  color: rgb(255 255 255 / 72%);
}

.esp-pay__summary-row strong {
  font-weight: 700;
  text-align: right;
  color: #fff;
}

.esp-pay__summary-total {
  border-bottom: 0;
  padding-top: 0.85rem;
  margin-bottom: 0.35rem;
}

.esp-pay__summary-total span {
  font-weight: 600;
  color: #fff;
}

.esp-pay__summary-total strong {
  font-family: "Poppins", var(--esp-font-body);
  font-size: 1.45rem;
  color: #ffc9e8;
}

.esp-pay__bullets {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.esp-pay__bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 78%);
}

.esp-pay__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--esp-color-accent);
}

.esp-pay__honey {
  position: absolute;
  left: -9999px;
}

@media (max-width: 991.98px) {
  .esp-pay__layout {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .esp-pay__aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .esp-pay__fields {
    grid-template-columns: 1fr;
  }

  .esp-pay__option-body {
    align-items: flex-start;
  }

  .esp-pay__custom-amount {
    padding-left: 1.05rem;
  }
}
