/* Prime Book Publishings — layout fixes & missing styles */

/* Primary brand palette */
:root {
  --bn-primary: #00628a;
  --bn-primary-hover: #005070;
  --bn-accent: #007c6c;
  --bn-dark: #09354e;
  --bn-text: #232323;
  --bn-bg-light: #f1f9fd;
  --bn-bg-soft: #e4f4fb;
}

/* Hero gradient alias (bg-gradient in HTML) */
.bg-gradient,
.masthead.bg-gradient {
  background: linear-gradient(90deg, #ffffff, var(--bn-bg-light), var(--bn-bg-soft)) !important;
}

/* CTA button pairs — Get Started + Free Consultation */
.cta-button-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
}

.cta-button-group .cta-btn-small,
.cta-button-group .main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 44px;
}

@media (max-width: 767px) {
  .masthead .cta-button-group,
  ._text-sm-center .cta-button-group {
    justify-content: center;
    width: 100%;
  }
}

/* Typewriter / rotating banner text */
.masthead h2 {
  font-weight: 600;
  line-height: 1.15;
}

.masthead h1.home {
  font-size: 22px;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}

.typewrite {
  display: inline-block;
  position: relative;
}

.wrap-banner-text {
  color: var(--bn-primary);
  font-weight: 600;
  display: inline-block;
  min-width: 0.6em;
  transition: opacity 0.15s ease;
}

#dynamic-image {
  transition: opacity 0.35s ease;
}

.border-blink {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--bn-primary);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: borderBlink 0.8s step-end infinite;
}

@keyframes borderBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Logo — header proportions */
.navbar .logo img,
.sidebar-logo .logo-name img {
  height: 72px;
  width: auto;
  max-width: min(360px, 62vw);
  object-fit: contain;
}

nav.bg-white .logo img,
nav.shadow-sm .logo img {
  height: 64px;
  max-width: 300px;
}

.footer-widget .logo img {
  height: 68px;
  width: auto;
  max-width: 310px;
  object-fit: contain;
}

/* Fixed nav spacing */
nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.bg-white,
nav.shadow-sm {
  display: block !important;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

nav .navbar {
  min-height: 70px;
}

/* Services section layout */
.services-section {
  overflow: hidden;
}

.services-section > .container {
  max-width: 1320px;
}

.services-section .card {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.services-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.services-section .card-body {
  text-align: center;
}

.services-section .card-title {
  color: #000;
  font-size: 1.35rem !important;
}

.services-section a {
  text-decoration: none;
  color: inherit;
}

.services-section video {
  max-height: 150px;
  width: auto;
  margin: 0 auto;
}

.services-section .border-bottom-primary {
  border-bottom: 4px solid var(--bn-primary) !important;
}

.services-section .font-44 {
  font-size: 2rem !important;
}

/* Client strip — horizontal row (works without slick) */
.clients-section {
  padding-top: 40px;
  padding-bottom: 40px;
  overflow: hidden;
}

.clients-section .row {
  min-height: 72px;
}

.clients-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
  min-height: 56px;
}

.clients-logos-row .clients-logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.clients-section .clients-logo-item img,
.clients-section img {
  display: block;
  max-height: 48px;
  max-width: 150px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* When slick initializes, keep logos vertically centered */
.clients-logos-row.slick-initialized {
  display: block;
  min-height: 56px;
}

.clients-logos-row.slick-initialized .slick-list {
  display: flex;
  align-items: center;
}

.clients-logos-row.slick-initialized .slick-track {
  display: flex !important;
  align-items: center;
}

.clients-logos-row.slick-initialized .slick-slide {
  float: none;
  height: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.clients-logos-row.slick-initialized .slick-slide > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.clients-logos-row.slick-initialized .clients-logo-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  width: 100%;
}

.clients-logos-row.slick-initialized .clients-logo-item img {
  max-width: 150px;
  max-height: 48px;
}

.clients-section .slick-prev,
.clients-section .slick-next {
  top: 50%;
  transform: translateY(-50%);
}

.clients-section .slick-prev {
  left: -8px;
}

.clients-section .slick-next {
  right: -8px;
}

/* Brands / platforms */
.brands-section figure {
  text-align: center;
  padding: 1rem;
  margin-bottom: 0;
}

.brands-section figure img {
  max-height: 56px;
  width: auto;
  margin: 0 auto;
}

.p-card-content {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.5rem;
}

.p-card-content a {
  color: var(--bn-primary);
  font-weight: 800;
}

/* Portfolio carousel */
.port-folio .carousel .wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.port-folio .carousel .wrap::-webkit-scrollbar {
  display: none;
}

.port-folio > .carousel + .carousel {
  margin-top: 2rem;
}

.port-folio .carousel .wrap > ul {
  display: flex;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
  height: auto;
  white-space: normal;
}

.port-folio .carousel .wrap ul li {
  flex: 0 0 auto;
  height: auto;
  margin: 0;
}

.port-folio .carousel .wrap ul li img {
  height: 300px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Testimonials */
.testmonials-section .review {
  min-height: 18rem;
}

/* Contact / pitch form section */
.contact-form-section {
  position: relative;
}

.contact-form-section .contact-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.bg-gredient-1 {
  position: relative;
  background: linear-gradient(93.48deg, #00628a -161.22%, rgba(228, 244, 251, 0) 87.52%);
}

.gd-form .bg-gredient-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(93.48deg, #00628a -161.22%, rgba(228, 244, 251, 0) 87.52%);
  z-index: 0;
  pointer-events: none;
}

.contact-form-section .container {
  position: relative;
  z-index: 1;
}

/* Lead form on service pages */
.header-lead-form {
  position: relative;
  z-index: 1;
}

.header-lead-form .contact-title {
  background: var(--bn-primary);
  padding: 18px 20px;
  margin: -35px -35px 20px;
  border-radius: 0;
}

.header-lead-form .contact-title h2 {
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.3;
}

.header-lead-form .contact-title p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 0;
  font-size: 14px;
}

/* Prefer recolored GIF icons when WebM still carries old orange accents */
.services-section video,
.card video[width="150"] {
  filter: hue-rotate(168deg) saturate(1.2);
}
.custom-select-arrow {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url(../img/icons/drop-down.svg) no-repeat right 15px center !important;
  background-size: 12px auto !important;
  padding-right: 40px;
}

.formlbl {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.btn-form {
  background: var(--bn-primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 50rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-form:hover,
.btn-form.btn-hover:hover,
#mainpopupform .pf-btn:hover {
  background: var(--bn-primary-hover) !important;
  border-color: var(--bn-primary-hover) !important;
  color: #fff !important;
}

/* Review badges row */
.review_wrapper {
  padding: 60px 0;
  background: #fafafa;
}

.review_wrapper_bg {
  align-items: center;
}

.awards-img {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-img {
  max-height: 48px;
  width: auto;
}

/* Complete solution cards */
.complete-Solution-section .card-1 img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mission sections */
.mission-section h3 {
  font-size: 2rem;
  font-weight: 700;
}

.max-height-500 {
  max-height: 500px;
  width: auto;
  margin: 0 auto;
}

/* Inner headings */
.inner-h2,
._inner-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
}

.brand-font {
  color: var(--bn-primary);
}

/* Legal pages */
.legal-content h1,
.legal-content h3 {
  color: #000;
}

.legal-content p,
.legal-content li {
  line-height: 1.8;
  color: #333;
}

/* Card links shouldn't show underline */
a.card,
.services-section a:hover {
  text-decoration: none;
}

/* Mobile nav phone + CTA visibility */
@media (min-width: 801px) {
  .navbar > .main-btn.btn-contact:not(.custom) {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 12px;
  }

  .navbar .navnum {
    margin-left: 16px;
    white-space: nowrap;
  }
}

@media (max-width: 800px) {
  .navbar .logo img,
  .sidebar-logo .logo-name img {
    height: 54px;
    max-width: 240px !important;
  }

  .masthead {
    padding-top: 120px !important;
    padding-bottom: 60px !important;
  }

  .masthead h2 {
    font-size: 1.75rem !important;
  }

  .navbar > .main-btn.btn-contact:not(.custom),
  .navbar .navnum {
    display: none;
  }

  .header-lead-form {
    margin-top: 2rem;
  }

  .header-lead-form .contact-title {
    margin: 0 0 16px;
  }

  .port-folio .carousel .wrap ul li img {
    height: 210px;
  }
}

@media (min-width: 992px) {
  .masthead h1.home {
    font-size: 24px;
  }

  .masthead h2 {
    font-size: 54px;
  }
}

/* Auto popup discount form */
#mainpopupform .modal-dialog.popup-discount-dialog {
  max-width: 540px;
  margin: 1rem auto;
}

#mainpopupform .popup-discount-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

#mainpopupform .offer-popup-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

#mainpopupform .offer-right {
  padding: 1.75rem 1.75rem 1.5rem;
}

#mainpopupform .popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#mainpopupform .popup-close:hover {
  background: var(--bn-primary);
  color: #fff;
}

#mainpopupform .offer-head {
  text-align: center;
  padding-right: 28px;
  margin-bottom: 1.25rem;
}

#mainpopupform .offer-tagline {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  background: rgba(0, 98, 138, 0.1);
  color: var(--bn-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#mainpopupform .offer-head h2 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
  text-transform: none;
}

#mainpopupform .offer-head h2 span {
  color: var(--bn-primary);
}

#mainpopupform .offer-sub {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.5;
}

#mainpopupform .pf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

#mainpopupform .pf-col {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
}

#mainpopupform .pf-col.pf-full {
  flex: 1 1 100%;
}

#mainpopupform .popup-discount-form .form-group {
  margin-bottom: 0;
}

#mainpopupform .pf-input,
#mainpopupform .pf-select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fafafa;
  color: #111;
  font-size: 0.92rem;
  box-shadow: none;
}

#mainpopupform .pf-input:focus,
#mainpopupform .pf-select:focus {
  outline: none;
  border-color: var(--bn-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 98, 138, 0.12);
}

#mainpopupform .pf-textarea {
  min-height: 88px;
  resize: vertical;
}

#mainpopupform .pf-btn {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 50rem;
  font-size: 0.95rem;
  font-weight: 700;
}

#mainpopupform .modal-backdrop.show {
  opacity: 0.55;
}

@media (max-width: 575px) {
  #mainpopupform .modal-dialog.popup-discount-dialog {
    max-width: calc(100% - 1.25rem);
    margin: 0.625rem auto;
  }

  #mainpopupform .offer-right {
    padding: 1.35rem 1.15rem 1.15rem;
  }

  #mainpopupform .offer-head h2 {
    font-size: 1.2rem;
  }

  #mainpopupform .pf-col {
    flex: 1 1 100%;
  }
}

/* ── Site-wide layout fixes ── */

/* Underscore class aliases used in templates */
._base-font-color {
  color: #000;
}

._bg-light {
  background: #f8f9fa;
}

._pt-md-5 { padding-top: 3rem; }
._pt-5 { padding-top: 3rem; }
._px-5 { padding-left: 3rem; padding-right: 3rem; }
._pt-40 { padding-top: 2.5rem; }

.heading1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.paragraph-2 {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.pr-6 { padding-right: 2rem; }
.pl-24 { padding-left: 24px; }
.pl-15 { padding-left: 15px; }
.pb-30 { padding-bottom: 30px; }

.pt-sm-20 { padding-top: 20px; }
.pb-sm-40 { padding-bottom: 40px; }

.footer-para {
  line-height: 1.7;
  color: #555;
}

.contact-info-row {
  align-items: center;
}

.contact-info-row figure {
  margin: 0;
}

/* Partner intro heading — don't push off-screen */
.col-md-7 .inner-h2 {
  margin-left: 0;
}

@media (min-width: 992px) {
  .col-md-7 .inner-h2 {
    margin-left: 1.5rem;
  }
}

/* CTA buttons — keep side-by-side on mobile */
@media (max-width: 991px) {
  .masthead .cta-button-group .main-btn,
  .cta-button-group .main-btn {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
    padding: 10px 22px !important;
  }
}

@media (max-width: 520px) {
  .cta-button-group .main-btn {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 0.75rem !important;
    padding: 10px 18px !important;
  }
}

/* Testimonials */
.testmonials-section .review {
  height: auto;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.testimonial-meta .authot-name {
  margin: 0;
  font-size: 1rem;
}

.review-rating {
  color: #ffe400;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Review badges */
.awards-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.awards-img li {
  flex: 0 0 auto;
}

.review-img {
  max-height: 56px;
  width: auto;
}

/* Footer bottom bar */
.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  text-align: center;
  width: 100%;
}

.footer-bottom-bar p {
  margin: 0;
}

.footer-bottom-sep {
  color: #999;
}

@media (max-width: 767px) {
  .footer-bottom-sep {
    display: none;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* Footer contact icons */
.footer-details .contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-details .footer-contact-item {
  margin: 0;
}

.footer-details .footer-contact-item a,
.footer-details .footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bn-primary);
  text-decoration: none;
}

.footer-details .footer-contact-item a:hover {
  color: var(--bn-primary-hover);
}

.footer-details .icons-fa {
  width: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}

.footer-details .footer-contact-item span:last-child {
  flex: 1;
  line-height: 1.5;
}

.footer-details .address {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-details .address i {
  padding-top: 4px !important;
}

/* Legal pages */
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.legal-content a {
  color: var(--bn-primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--bn-primary-hover);
}

/* Contact pitch section spacing */
@media (max-width: 767px) {
  .pr-6 {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  ._px-5 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  ._text-sm-center {
    text-align: center;
  }

  .pt-sm-20 { padding-top: 20px; }
  .pb-sm-40 { padding-bottom: 40px; }
}

/* Solution carousel — don't stretch single slide full width before slick loads */
.complete-Solution-section .regular-1 .col-4 {
  padding: 0 8px;
}
