/* Site-wide button colour. Loaded last in every page <head>. */
:root {
  --btn: #7EAE13;
  --btn-hover: #6A9410;
}

.btn-orange,
.submit-btn,
.this-frm button,
.btn-signup,
.review-more button,
.sticky-phone a,
.mobile-cta-call,
.mobile-cta-signup,
#quoteModalFull .halloween-submit {
  background: var(--btn) !important;
  border-color: var(--btn) !important;
  color: #fff !important;
}

.btn-orange:hover,
.submit-btn:hover,
.this-frm button:hover,
.btn-signup:hover,
.review-more button:hover,
.sticky-phone a:hover,
.mobile-cta-call:hover,
.mobile-cta-signup:hover,
#quoteModalFull .halloween-submit:hover {
  background: var(--btn-hover) !important;
  border-color: var(--btn-hover) !important;
  color: #fff !important;
}

/* Outline button (header "Log in") */
.btn-login {
  border-color: var(--btn) !important;
  color: var(--btn-hover) !important;
}

/* Banner (hero) background: light tint of the button colour */
.hero-bg {
  background:
    radial-gradient(circle at 10% 20%, rgba(126, 174, 19, .26), transparent 38%),
    radial-gradient(circle at 92% 6%, rgba(126, 174, 19, .20), transparent 34%),
    radial-gradient(circle at 70% 100%, rgba(185, 224, 78, .18), transparent 40%),
    linear-gradient(180deg, #e9f3cf 0%, #f2f8e2 55%, #ffffff 100%) !important;
}

/* "Ready to Publish Your Book?" section: book-covers image under a dark overlay */
.sct-bringToLife {
  position: relative;
  padding: 40px 0 !important;
  background:
    radial-gradient(circle at 24% 50%, rgba(126, 174, 19, .38), transparent 42%),
    linear-gradient(90deg, rgba(20, 30, 24, .50) 0%, rgba(20, 30, 24, .82) 60%, rgba(20, 30, 24, .88) 100%),
    url("../images/Ready-to-Publish-Your-Book.webp") center / cover no-repeat !important;
}

.sct-bringToLife .bring-picture img {
  max-height: 400px;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, .6));
  transition: transform .4s ease;
}

.sct-bringToLife .bring-picture img:hover {
  transform: translateY(-6px) rotate(-1.5deg);
}

.sct-bringToLife .cta-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #b9e04e;
  color: #1d2b24;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sct-bringToLife .bring-toLife-Content h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.sct-bringToLife .bring-toLife-Content h2 span {
  color: #b9e04e;
}

.sct-bringToLife .bring-toLife-Content .cta-line {
  margin-bottom: 22px;
  color: #eef3ea !important;
  font-size: 19px;
}

.sct-bringToLife .btn-orange {
  padding: 17px 30px;
  font-size: 16px;
  box-shadow: 0 10px 26px rgba(126, 174, 19, .45);
}

.sct-bringToLife .cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.sct-bringToLife .cta-points li {
  position: relative;
  padding-left: 26px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.sct-bringToLife .cta-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7EAE13;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 991px) {
  .sct-bringToLife .bring-picture img { max-height: 300px; }
  .sct-bringToLife .row { gap: 26px 0 !important; }
}

/* Sticky header: stays at the top while scrolling */
.site-wrap {
  overflow: clip; /* unlike "hidden", lets position:sticky work inside */
}

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000 !important;
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header .navbar {
  transition: padding .25s ease;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(27, 36, 48, .10);
}

.site-header.is-stuck .navbar {
  padding: 10px 0 !important;
}

/* Keep #services / #faq etc. from landing underneath the sticky header */
html {
  scroll-padding-top: 70px;
}

.sct-bringToLife .d-flex {
  align-items: center;
}

/* =========================================
   "Let's Publish Your Book" section: illustration + text left, form card right
========================================= */
.quote-split {
  position: relative;
  padding: 64px 0 !important;
  text-align: left;
  background:
    radial-gradient(circle at 12% 18%, rgba(126, 174, 19, .42), transparent 38%),
    radial-gradient(circle at 96% 96%, rgba(185, 224, 78, .22), transparent 36%),
    radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(135deg, #2f4436 0%, #223128 50%, #17221c 100%) !important;
}

.quote-split .row {
  gap: 36px 0;
}

.quote-split .cta-illustration {
  max-width: 420px;
  margin: 0 0 22px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}

.quote-split .btm-frmContent h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

.quote-split .btm-frmContent p {
  max-width: 480px;
  margin: 0 0 26px;
  color: #dfe6e1;
  font-size: 17px;
}

.quote-split .final-cta-buttons {
  justify-content: flex-start;
}

.quote-split .final-cta-buttons .btn-orange {
  box-shadow: 0 10px 26px rgba(126, 174, 19, .45);
}

/* ---------- Form card ---------- */
.quote-split .quote-card {
  padding: 32px 30px 28px;
  border-top: 5px solid #7EAE13;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .40);
  text-align: left;
}

.quote-split .quote-card h5 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.quote-split .quote-card > p {
  margin: 0 0 18px;
  font-size: 15px;
}

.quote-split .this-frm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.quote-split .this-frm > div {
  grid-column: 1 / -1;
}

.quote-split .this-frm > div.half {
  grid-column: auto;
}

.quote-split .this-frm input,
.quote-split .this-frm textarea {
  background: #f8faf5;
}

.quote-split .this-frm textarea {
  display: block;
  resize: vertical;
}

.quote-split .this-frm button {
  width: 100%;
  padding: 18px 26px;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(126, 174, 19, .35);
}

.quote-split .this-frm .form-error {
  margin-bottom: 12px;
}

@media (max-width: 991px) {
  .quote-split { padding: 48px 0 !important; }
  .quote-split .quote-left { text-align: center; }
  .quote-split .cta-illustration { max-width: 300px; margin: 0 auto 18px; }
  .quote-split .btm-frmContent p { margin-left: auto; margin-right: auto; }
  .quote-split .final-cta-buttons { justify-content: center; }
}

@media (max-width: 575px) {
  .quote-split .quote-card { padding: 24px 18px 22px; }
}

/* Banner fits in one screen on laptops/desktops (no scrolling to see the form) */
@media (min-width: 992px) {
  .hero-bg { padding-top: 98px !important; padding-bottom: 36px !important; }
  .hero-bg .row { align-items: center !important; }
  .hero-bg .hero-banner-content { padding-top: 0; }
  .hero-bg .hero-banner-content .eyebrow { margin-bottom: 10px; }
  .hero-bg .hero-banner-content h1 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.2; margin-bottom: 14px; }
  .hero-bg .hero-banner-content p { font-size: 16px; margin-bottom: 12px; }
  .hero-bg .hero-microcopy { margin-bottom: 18px !important; }

  .hero-bg .form_bx { padding: 22px 24px; }
  .hero-bg .form_bx > .row { gap: 12px 0 !important; }
  .hero-bg .form_bx h4 { font-size: 20px; margin-bottom: 2px; }
  .hero-bg .form_bx p { font-size: 14px; }
  .hero-bg .form-check-flex { gap: 7px; }
  .hero-bg .form-check-flex .form-check { padding: 5px 12px; }
  .hero-bg .form-check-label { font-size: 13px; }
  .hero-bg .form-control { padding: 10px 14px; }
  .hero-bg .form-microcopy { margin-top: 6px !important; }
}

/* Form microcopy with icons, centred ("We reply with a written quote / No spam / No pressure") */
.form-microcopy-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 12px !important;
  color: #44610a !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: center;
}

.form-microcopy-icons span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.form-microcopy-icons svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #7EAE13;
}

/* "Clear Pricing Before You Commit" section: original design, smaller top/bottom gap */
.st-chtnow {
  padding: 48px 0 !important;
}

@media (max-width: 767px) {
  .st-chtnow { padding: 40px 0 !important; }
}

/* "A Self Publishing Company..." section fits in one screen on laptops/desktops */
@media (min-width: 992px) {
  .st-books { padding: 36px 0 !important; }
  .st-books .book-inner-content h2 { font-size: clamp(26px, 2.7vw, 36px); line-height: 1.25; margin-bottom: 12px; }
  .st-books .book-inner-content p { font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; }
  .st-books .proof-points { margin: 14px 0 18px; }
  .st-books .proof-points li { margin-bottom: 8px; }
  .st-books .book-picture img { max-height: 440px; width: auto; }
}
/* =========================================
   FLOATING CALL BUTTON (bottom left, animated)
========================================= */
.call-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  height: 58px;
  border-radius: 999px;
  background: #7EAE13;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(126, 174, 19, .45);
  transition: background .2s ease;
}

.call-float:hover,
.call-float:focus-visible {
  background: #6A9410;
  color: #fff !important;
}

/* Pulsing rings behind the icon */
.call-float::before,
.call-float::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #7EAE13;
  animation: call-float-pulse 2s ease-out infinite;
}

.call-float::after {
  animation-delay: 1s;
}

.call-float-icon {
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
}

.call-float-icon svg {
  width: 26px;
  height: 26px;
  transform-origin: 50% 50%;
  animation: call-float-ring 2s ease-in-out infinite;
}

/* Number slides out on hover / keyboard focus */
.call-float-text {
  max-width: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: max-width .35s ease, padding .35s ease;
}

.call-float:hover .call-float-text,
.call-float:focus-visible .call-float-text {
  max-width: 180px;
  padding-right: 22px;
}

@keyframes call-float-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes call-float-ring {
  0%, 50%, 100% { transform: rotate(0); }
  5%, 15%, 25%, 35% { transform: rotate(-16deg); }
  10%, 20%, 30%, 40% { transform: rotate(16deg); }
}

/* Phones: sit above the fixed CALL NOW / SIGNUP bar */
@media (max-width: 767px) {
  .call-float { left: 14px; bottom: 74px; height: 52px; }
  .call-float::before, .call-float::after, .call-float-icon { width: 52px; height: 52px; }
  .call-float-icon { flex-basis: 52px; }
  .call-float-icon svg { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .call-float::before, .call-float::after, .call-float-icon svg { animation: none; }
  .call-float::before, .call-float::after { display: none; }
}

/* =========================================
   RESPONSIVE TUNING (tablet + phone)
========================================= */
@media (max-width: 991px) {
  /* less empty space above the banner text */
  .hero-bg { padding-top: 104px !important; padding-bottom: 44px !important; }

  /* "Ready to Publish Your Book?" stacks: centre everything under the book */
  .sct-bringToLife { text-align: center; }
  .sct-bringToLife .d-flex,
  .sct-bringToLife .cta-points { justify-content: center; }
}

@media (max-width: 767px) {
  /* the bottom CALL NOW bar and the round call button already cover this */
  .sticky-phone { display: none !important; }

  /* tighter section spacing so there is less scrolling */
  .st-books, .st-services, .st-publishbook, .sct-Testimo, .faq-section { padding: 44px 0 !important; }
  .svc-head { margin-bottom: 28px; }

  /* full-width, easy-to-tap buttons */
  .hero-banner-content .d-flex > a,
  .sct-bringToLife .d-flex > a,
  .final-cta-buttons > a,
  .cht-inner-content > .btn-orange,
  .book-inner-content > .btn-orange {
    display: block;
    flex: 1 1 100%;
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: center;
  }

  .sct-bringToLife .bring-toLife-Content h2 { font-size: 30px; }
  .sct-bringToLife .bring-toLife-Content .cta-line { font-size: 17px; }
  .sct-bringToLife .cta-points { flex-direction: column; align-items: center; gap: 8px; }

  .quote-split .btm-frmContent h2 { font-size: 30px; }

  /* headings never run edge to edge */
  h1, h2 { overflow-wrap: break-word; }
}

/* small phones (iPhone SE, older Androids) */
@media (max-width: 400px) {
  .site-header .navbar-brand img { width: 130px !important; }
  .nav-actions { gap: 4px !important; }
  .btn-login, .btn-signup { padding: 8px 10px !important; font-size: 13px !important; }
  .nav-toggle { width: 38px !important; height: 38px !important; }
  .hero-banner-content h1 { font-size: 28px; }
  .form_bx { padding: 20px 14px !important; }
  .form-check-flex { gap: 8px; }
  .form-check-flex .form-check { padding: 7px 12px; }
  #quoteModalFull .offer-title { font-size: 20px; }
}

/* =========================================
   DESKTOP HEADING SCALE (one consistent, calmer size set)
========================================= */
@media (min-width: 992px) {
  h1 { font-size: clamp(30px, 2.7vw, 38px) !important; line-height: 1.22 !important; }
  h2 { font-size: clamp(24px, 2.2vw, 30px) !important; line-height: 1.25 !important; }

  /* the two call-to-action bands stay one step larger than a normal section heading */
  .sct-bringToLife .bring-toLife-Content h2,
  .quote-split .btm-frmContent h2 { font-size: clamp(26px, 2.5vw, 34px) !important; }

  /* long-form policy pages read better with smaller section titles */
  .policy-section h2 { font-size: 22px !important; }
}

/* Form microcopy line ("We reply with a written quote / No spam / No pressure"): black text + icons */
.form-microcopy-icons,
.form-microcopy-icons svg {
  color: #111 !important;
}

/* Banner eyebrow line ("Austin, Texas. Serving authors nationwide."): plain text, dark green so it reads on the light banner */
.eyebrow {
  color: #35570a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
}

/* =========================================
   THANK-YOU PAGE: whole message fits in one screen
========================================= */
.thankyou-bg {
  min-height: calc(100vh - 78px) !important;
  padding: 20px 0 !important;
  background:
    radial-gradient(circle at 10% 20%, rgba(126, 174, 19, .22), transparent 38%),
    radial-gradient(circle at 92% 90%, rgba(126, 174, 19, .16), transparent 34%),
    linear-gradient(180deg, #eef5da 0%, #f6faea 60%, #ffffff 100%) !important;
}

.thankyou-card { padding: 28px 40px !important; border-top: 5px solid #7EAE13 !important; }
.thankyou-icon { width: 58px !important; height: 58px !important; margin-bottom: 12px !important; font-size: 26px !important; background: #7EAE13 !important; border-color: #7EAE13 !important; color: #fff !important; }
.thankyou-eyebrow { margin-bottom: 8px !important; color: #35570a !important; }
.thankyou-card h1 { margin-bottom: 12px !important; }
.thankyou-card p { margin-bottom: 6px !important; font-size: 15.5px !important; line-height: 1.65 !important; }
.thankyou-subtext { margin-bottom: 0 !important; }
.thankyou-actions { margin-top: 18px !important; }
.thankyou-note { margin-top: 18px !important; padding: 13px 18px !important; }

@media (min-width: 992px) {
  .thankyou-card h1 { font-size: 34px !important; }
  .thankyou-card h1 span { display: inline !important; }
  .thankyou-card p { max-width: none !important; }
}

@media (max-width: 767px) {
  .thankyou-bg { min-height: 0 !important; padding: 20px 0 28px !important; }
  .thankyou-card { padding: 24px 18px !important; }
  .thankyou-card h1 { font-size: 28px !important; }
}

/* Current page in the header menu */
.main-nav a.active { color: #6A9410 !important; }


/* =========================================
   HEADER: SERVICES DROPDOWN
========================================= */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink, #202a32);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle svg { transition: transform .2s ease; }
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.is-current .nav-dropdown-toggle { color: #6A9410; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 60;
  display: none;
  width: 300px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid #e1e6e4;
  border-top: 3px solid #7EAE13;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(27, 36, 48, .14);
  transform: translateX(-50%);
}

.nav-dropdown-menu::before { /* keeps the menu open while the pointer crosses the gap */
  content: "";
  position: absolute;
  top: -19px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.main-nav .nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #202a32;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a.active {
  background: #f1f8e1;
  color: #35570a !important;
}

.main-nav .nav-dropdown-all {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #e1e6e4;
}

.main-nav .nav-dropdown-all a { color: #6A9410; font-weight: 600; }

/* Phones / tablets: the menu opens inside the mobile nav list */
@media (max-width: 991px) {
  .nav-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line, #e1e6e4);
  }

  .nav-dropdown-menu {
    position: static;
    width: auto;
    margin: 0 0 6px;
    padding: 4px 0 4px 10px;
    border: 0;
    border-left: 3px solid #7EAE13;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown-menu::before { display: none; }

  .main-nav .nav-dropdown-menu li a {
    padding: 9px 10px;
    border-bottom: 0;
    font-size: 15px;
    white-space: normal;
  }

  .main-nav .nav-dropdown-all { border-top: 0; }
}
