/* Fine Books — header, announcement bar, and shared overrides */

.tp-header-announce {
  overflow: hidden;
  background-color: #8eb75e;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 1px 2px rgba(18, 20, 32, 0.08);
}

.tp-header-announce-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.tp-header-announce-dup {
  display: none;
}

.tp-header-announce p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16px;
  color: var(--tp-finance-secondary, #222F30);
}

.tp-header-announce a {
  font-weight: 700;
  color: var(--tp-finance-secondary, #222F30);
  text-decoration: none;
}

.tp-header-announce a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tp-header-area {
  background-color: #fff;
}

.tp-header-logo img {
  width: 160px;
}

#header-sticky.header-sticky {
  background-color: transparent;
}

#header-sticky.header-sticky .tp-header-area {
  background-color: #fff;
}

.tp-header-menu > nav > ul > li > a.active {
  color: var(--tp-theme-1);
}

.tp-header-menu > nav > ul {
  white-space: nowrap;
}

@media (min-width: 992px) {
  .tp-header-menu > nav > ul > li {
    margin: 0 12px;
  }
}

@media (min-width: 1400px) {
  .tp-header-menu > nav > ul > li {
    margin: 0 16px;
  }
}

@media (min-width: 1600px) {
  .tp-header-menu > nav > ul > li {
    margin: 0 20px;
  }
}

.tp-header-menu > nav > ul > li.has-dropdown > a {
  padding-right: 2px;
}

.tp-header-menu > nav > ul > li.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.tp-header-menu > nav > ul > li.has-dropdown:hover > a::after {
  transform: rotate(225deg);
}

.tp-header-dropdown nav ul li.has-dropdown > .tp-submenu {
  width: 300px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.tp-header-dropdown nav ul li .tp-submenu li a {
  line-height: 1.35;
  white-space: normal;
  padding-top: 10px;
  padding-bottom: 10px;
}

.fb-nav-hint {
  display: none;
}

.tp-submenu .fb-nav-hint {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  opacity: 0.62;
}

.fb-faq-intro {
  max-width: 640px;
}

.fb-faq-intro p {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.7;
}

.tp-header-dropdown nav ul li .tp-submenu li a.active {
  color: var(--tp-theme-1);
}

.fb-service-offer {
  background: #fff;
  border-radius: 8px;
  padding: 28px 26px;
  height: 100%;
}

.fb-service-offer p {
  margin-bottom: 0;
}

.fb-service-offer .tp-about-vision-item-title {
  margin-bottom: 12px;
}

.tp-header-action .tp-btn-event {
  flex-shrink: 0;
}

.tp-header-action .tp-offcanvas-open-btn {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px 0 8px 8px;
  color: var(--tp-finance-secondary, #222F30);
  line-height: 1;
}

@media (max-width: 991px) {
  .tp-header-announce {
    padding: 8px 0;
  }

  .tp-header-announce-track {
    justify-content: flex-start;
    width: max-content;
    animation: fb-announce-marquee 18s linear infinite;
  }

  .tp-header-announce-dup {
    display: block;
  }

  .tp-header-announce p {
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.4;
    padding: 0;
  }

  .tp-header-menu {
    display: none;
  }

  .tp-header-action .tp-btn-event {
    display: none !important;
  }

  .tp-header-action .tp-offcanvas-open-btn {
    display: inline-flex;
    align-items: center;
  }

  .tp-header-menu > nav > ul > li {
    margin: 0 8px;
  }

  .tp-header-menu > nav > ul > li > a {
    padding: 10px 0 14px;
    font-size: 14px;
  }
}

@keyframes fb-announce-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 575px) {
  .tp-header-announce p {
    font-size: 13px;
  }
}

/* Homepage hero — keep charcoal type; sit it on a cream scrim so the photo cannot eat the letters */
.tp-fi-hero-overlay {
  isolation: isolate;
}

.tp-fi-hero-overlay::before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: auto;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #f7f7f5 0%,
    rgba(247, 247, 245, 0.96) 32%,
    rgba(247, 247, 245, 0.78) 46%,
    rgba(247, 247, 245, 0.28) 60%,
    rgba(247, 247, 245, 0) 74%
  );
}

.tp-fi-hero-shape {
  z-index: 2;
  opacity: 0.38;
  pointer-events: none;
}

.tp-fi-hero-wrapper {
  position: relative;
  z-index: 3;
}

.tp-fi-hero-title {
  font-size: 52px;
  line-height: 1.12;
  margin-bottom: 28px;
  max-width: 16em;
}

.tp-fi-hero-sub p,
.tp-fi-hero-sub p.text {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 38em;
}

.tp-fi-hero-sub {
  display: block;
}

.tp-fi-hero-content {
  padding-bottom: 40px;
}

.tp-fi-hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}

.tp-fi-hero-btn {
  margin-bottom: 0;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .tp-fi-hero-title {
    font-size: 46px;
  }
}

@media (max-width: 767px) {
  .tp-fi-hero-ptb {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .tp-fi-hero-overlay::before {
    background:
      linear-gradient(
        180deg,
        rgba(247, 247, 245, 0.94) 0%,
        rgba(247, 247, 245, 0.9) 62%,
        rgba(247, 247, 245, 0.62) 100%
      );
  }

  .tp-fi-hero-title {
    font-size: 40px;
    margin-bottom: 22px;
    max-width: none;
  }

  .tp-fi-hero-sub p,
  .tp-fi-hero-sub p.text {
    font-size: 16px;
  }

  .tp-fi-hero-content {
    padding-bottom: 28px;
  }
}

/* Inner-page banners — same scrim; drop luminosity blend so the photo does not wash the type */
.tp-breadcrumb-ptb {
  isolation: isolate;
  overflow: hidden;
}

.tp-breadcrumb-ptb .tp-cc-chose-bg {
  z-index: 0;
  mix-blend-mode: normal;
}

.tp-breadcrumb-ptb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #f7f7f5 0%,
      rgba(247, 247, 245, 0.94) 36%,
      rgba(247, 247, 245, 0.78) 52%,
      rgba(247, 247, 245, 0.38) 68%,
      rgba(247, 247, 245, 0.1) 82%,
      rgba(247, 247, 245, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247, 247, 245, 0.2) 0%,
      rgba(247, 247, 245, 0.06) 50%,
      rgba(247, 247, 245, 0.16) 100%
    );
}

.tp-breadcrumb-ptb .container {
  position: relative;
  z-index: 2;
}

.tp-breadcrumb-title {
  max-width: 20em;
}

.tp-breadcrumb-content p {
  max-width: 36em;
}

@media (max-width: 767px) {
  .tp-breadcrumb-ptb::after {
    background:
      linear-gradient(
        180deg,
        rgba(247, 247, 245, 0.94) 0%,
        rgba(247, 247, 245, 0.9) 70%,
        rgba(247, 247, 245, 0.58) 100%
      );
  }

  .tp-breadcrumb-title {
    max-width: none;
  }
}

/* Mid-page photo banner — keep the existing white panel, just lift it off the image */
.tp-fi-banner-content {
  background: rgba(247, 247, 245, 0.96);
  box-shadow: 0 18px 40px rgba(34, 47, 48, 0.12);
}

.tp-footer-area {
  background-color: #E4E4E0;
}

.tp-fi-value-graph {
  width: 260px;
  height: auto;
  min-height: 160px;
}

.tp-fi-value-graph-count span {
  font-size: 22px;
  white-space: nowrap;
  margin-right: 8px;
}

.tp-footer-copyright-link {
  gap: 20px;
}

.tp-fi-value-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.tp-fi-value-heading .tp-section-title {
  margin-bottom: 0;
}

.tp-fi-value-content > .tp-fade-anim p {
  margin-bottom: 0;
}

.tp-fi-value-list ul {
  margin-bottom: 0;
}

.tp-fi-value-list ul li:last-child {
  margin-bottom: 0;
}

.tp-fi-value-ptb.tp-sec-ptb {
  padding-bottom: 50px;
}

@media (max-width: 767px) {
  .tp-fi-value-ptb.tp-sec-ptb {
    padding-bottom: 40px;
  }

  .tp-fi-value-thumb-wrapper {
    margin-top: 10px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .tp-footer-copyright-link {
    gap: 20px;
  }
}

.tp-fi-value-thumb-main img,
.tp-fi-about-thumb-wrap img,
.tp-about-thumb-wrap img,
.tp-about-thumb img,
.tp-contact-banner-thumb img,
.tp-fi-banner-wrapper > img,
.tp-fi-cta-thumb img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.tp-contact-banner-thumb iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  .tp-contact-banner-thumb iframe {
    height: 300px;
  }
}

.tp-contact-city-item-thumb img {
  width: 260px;
  height: 260px;
  object-fit: cover;
}

.tp-offcanvas-gallery-img img {
  height: 110px;
  object-fit: cover;
}

.tp-fi-brand-slider-item img {
  width: auto;
  height: auto;
  object-fit: contain;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .tp-footer-copyright-link {
    gap: 16px;
  }
}

/* Legal pages — text only */
.fb-legal-ptb {
  padding-top: 40px;
  padding-bottom: 110px;
}

.fb-legal {
  max-width: 760px;
}

.fb-legal-note {
  background-color: #f7f7f5;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.fb-legal-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #222f30;
}

.fb-legal h3 {
  font-size: 22px;
  line-height: 1.35;
  margin: 36px 0 12px;
  color: #222f30;
}

.fb-legal p,
.fb-legal li {
  font-size: 16px;
  line-height: 1.75;
  color: #3a4546;
}

.fb-legal p {
  margin-bottom: 14px;
}

.fb-legal ul,
.fb-legal ol {
  margin: 0 0 16px;
  padding-left: 1.2rem;
}

.fb-legal li {
  margin-bottom: 8px;
}

.fb-legal a {
  color: #222f30;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fb-legal-updated {
  font-size: 14px;
  color: #6b7576;
  margin-bottom: 24px;
}
