/* Maverick front overrides */

/* Contact page — full dark canvas like Acjon contact-me */
body.page-contact-dark,
body.page-contact-dark #smooth-wrapper,
body.page-contact-dark #smooth-content,
body.page-contact-dark main {
  background-color: #110C04;
}

/* Contact dark page: keep white nav links + menu button */
body.page-contact-dark .tp-header-menu > nav > ul > li > a {
  color: var(--tp-common-white);
}
body.page-contact-dark .tp-header-8-bar span {
  color: var(--tp-common-white);
}
body.page-contact-dark.header-sticky .tp-header-menu > nav > ul > li > a,
body.page-contact-dark #header-sticky.header-sticky .tp-header-menu > nav > ul > li > a {
  color: var(--tp-common-white);
}

/* Contact footer-10: social arrow as link (matches template button position) */
.tp-footer-10-input > a {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--tp-common-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tp-footer-10-input input[readonly] {
  cursor: default;
  pointer-events: none;
}

/* Home custom offer — dark band (matches contact-me #110C04) */
.ma-offer-heading .tp-section-subtitle {
  color: rgba(245, 247, 245, 0.65);
}
.ma-offer-heading .tp-section-title {
  margin-bottom: 16px;
  color: var(--tp-common-white);
}
.ma-offer-heading p {
  max-width: 360px;
  color: rgba(245, 247, 245, 0.75);
  line-height: 1.7;
}
.ma-offer-form.tp-contact-me-form-wrap {
  padding: 40px;
  border: 1px solid rgba(245, 247, 245, 0.1);
}
@media (max-width: 767px) {
  .ma-offer-form.tp-contact-me-form-wrap {
    padding: 24px;
  }
}
.ma-offer-form .tp-contact-me-form-input {
  margin-bottom: 16px;
}
.ma-offer-form .tp-contact-me-form-category-wrap {
  margin-bottom: 24px;
  padding-top: 8px;
}
.ma-offer-form .tp-contact-me-form-category-title {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--tp-common-white);
}
.ma-offer-form textarea {
  min-height: 110px;
}

/* Timeline range slider (home offer + contact) */
.ma-timeline-slider {
  width: 100%;
}
.ma-timeline-slider-head {
  margin-bottom: 14px;
  gap: 12px;
}
.ma-timeline-slider-value {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tp-theme-primary);
  white-space: nowrap;
}
.ma-timeline-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--tp-theme-primary) 0%,
    var(--tp-theme-primary) var(--ma-timeline-pct, 40%),
    rgba(245, 247, 245, 0.18) var(--ma-timeline-pct, 40%),
    rgba(245, 247, 245, 0.18) 100%
  );
}
.ma-timeline-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tp-theme-primary);
  border: 2px solid #110C04;
  box-shadow: 0 0 0 1px rgba(245, 247, 245, 0.2);
  cursor: pointer;
}
.ma-timeline-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tp-theme-primary);
  border: 2px solid #110C04;
  box-shadow: 0 0 0 1px rgba(245, 247, 245, 0.2);
  cursor: pointer;
}
.ma-timeline-slider-input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}
.ma-timeline-slider-scale {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 247, 245, 0.45);
}

/* Contact connect band above shared footer */
.tp-contact-connect-ptb .tp-footer-10-wrapper {
  padding-bottom: 0;
}

/* Header CTA — Get in touch (light pages) */
.tp-header-pp-btn.tp-header-cta-light {
  color: var(--tp-common-black);
  border-color: rgba(17, 12, 4, 0.15);
}
.tp-header-pp-btn.tp-header-cta-light:hover {
  color: var(--tp-common-white);
  background-color: var(--tp-theme-primary);
  border-color: var(--tp-theme-primary);
}

/* Service Two subtitle + line — bar sits fixed 10px after the text */
.tp-section-subtitle.tp-subtitle-line,
.tp-service-inner-2-title .tp-section-subtitle {
  font-family: var(--tp-ff-unbounded);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--tp-common-black);
  opacity: 0.8;
  position: relative;
  display: inline-block !important;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
}
.tp-section-subtitle.tp-subtitle-line::before,
.tp-service-inner-2-title .tp-section-subtitle::before {
  position: absolute;
  content: "";
  background: #000;
  width: 39px;
  height: 1px;
  left: 100%;
  right: auto;
  margin-left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.tp-section-subtitle.tp-subtitle-line.white-style,
.ma-offer-heading .tp-section-subtitle.tp-subtitle-line {
  color: var(--tp-common-white);
}
.tp-section-subtitle.tp-subtitle-line.white-style::before,
.ma-offer-heading .tp-section-subtitle.tp-subtitle-line::before {
  background: #fff;
}

/* Match breadcrumb labels to same 10px gap */
.tp-breadcrumb-s1-subtitle::after {
  margin-left: 10px;
}

/* Contact page — same fonts/sizes as rest of site; keep dark theme */
.tp-contact-me-heading .tp-section-title {
  font-family: var(--tp-ff-unbounded) !important;
  font-size: 62px !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}
@media (max-width: 767px) {
  .tp-contact-me-heading .tp-section-title {
    font-size: 40px !important;
  }
}
.tp-contact-me-wrap {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.tp-contact-me-wrap .tp-section-subtitle.tp-subtitle-line {
  margin-bottom: 0;
}

/* Home about — Startup layout, Maverick spacing (margin only) */
.ma-about-ptb,
.ma-home-about.sa-about-ptb {
  padding-top: 0;
  padding-bottom: 0;
}
.ma-home-about .sa-about-counter-title {
  color: var(--tp-common-black);
}
.ma-home-about .sa-about-right-text p {
  color: #717171;
}

/* Home ribbons under hero — bottom spacing via margin */
.ma-home-ribbons.tp-text-slider-ptb {
  padding-bottom: 0;
}

/* Home services — Design Studio cards on white */
.ma-home-ds-service {
  padding-top: 0;
  padding-bottom: 0;
}
.ma-home-ds-service .tp-section-subtitle,
.ma-home-ds-service .tp-section-title {
  color: var(--tp-common-black);
}
.ma-home-ds-service .ds-service-heading-wrap .tp-section-subtitle {
  display: block;
  margin-bottom: 12px;
}
.ma-home-ds-service .ds-service-item::before {
  background-color: var(--tp-theme-primary);
}
.ma-home-ds-service .ds-service-item:hover .ds-service-item-title a,
.ma-home-ds-service .ds-service-item:hover .ds-service-item-btn a {
  color: var(--tp-common-black);
}
.ma-home-ds-service .ds-service-item:hover .ds-service-item-btn-icon {
  color: var(--tp-common-white);
  background-color: var(--tp-common-black);
}

/* Service icons — same footprint as Acjon template, slightly larger */
.ds-service-item-icon img,
.tp-service-item-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: inline-block;
}

/* Services page cards — black + white content; hover = theme + black content */
.tp-service-area .tp-service-item {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: var(--tp-common-black);
  border-color: var(--tp-common-black);
}
.tp-service-area .tp-service-item::before {
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  width: 100%;
  z-index: 0;
  content: "";
  background-color: var(--tp-theme-primary);
  transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  pointer-events: none;
}
.tp-service-area .tp-service-item:hover::before {
  top: auto;
  bottom: 0;
  height: 100%;
}
.tp-service-area .tp-service-item > * {
  position: relative;
  z-index: 1;
}

/* Default: white content on black cards (icons stay white — no invert) */
.tp-service-area .tp-service-item-icon img,
.tp-service-item-box .tp-service-item-icon img {
  filter: none;
}
.tp-service-area .tp-service-item-title,
.tp-service-area .tp-service-item-title a,
.tp-service-area .tp-service-item-btn a {
  color: var(--tp-common-white);
}
.tp-service-area .tp-service-item p {
  color: rgba(245, 247, 245, 0.72);
}
.tp-service-area .tp-service-item-btn a::before {
  background-color: var(--tp-common-white);
}

/* Hover: theme fill + black content (icons invert to black) */
.tp-service-area .tp-service-item:hover {
  border-color: var(--tp-theme-primary);
  background-color: transparent;
}
.tp-service-area .tp-service-item:hover .tp-service-item-icon img,
.tp-service-item-box .tp-service-item:hover .tp-service-item-icon img {
  filter: invert(1);
}
.tp-service-area .tp-service-item:hover .tp-service-item-title,
.tp-service-area .tp-service-item:hover .tp-service-item-title a,
.tp-service-area .tp-service-item:hover p,
.tp-service-area .tp-service-item:hover .tp-service-item-btn a {
  color: var(--tp-common-black);
}
.tp-service-area .tp-service-item:hover .tp-service-item-btn a::before {
  background-color: var(--tp-common-black);
}

/* Home — strip section padding; spacing via margin utilities only */
.ma-project-area,
.ma-testimonial-ptb,
.ma-faq-ptb {
  padding-top: 0;
  padding-bottom: 0;
}

/* Home blog — keep inner top/bottom padding (section has background) */
.ma-blog-ptb {
  padding-top: 120px;
  padding-bottom: 120px;
}

.ma-blog-ptb .ma-blog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Home testimonials — proper photo crop (replaces theme placeholders) */
.ma-testimonial-thumb img {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}

/* Portfolio / home project cards — lock 4:3 (800×600) so mixed sources stay even */
.ds-portfolio-item-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ds-portfolio-item-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.ds-portfolio-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Project detail prev/next — match Acjon nav.jpg size (193×148) when using cover images */
.tp-project-navigation-thumb {
  color: inherit;
  text-decoration: none;
}
.tp-project-navigation-thumb:hover {
  color: inherit;
}
.tp-project-navigation-thumb img {
  width: 193px;
  height: 148px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .tp-project-navigation-thumb img {
    width: 100px;
    height: 76px;
    margin-right: 10px;
  }
  .tp-project-navigation-thumb img.ml-30 {
    margin-right: 0;
    margin-left: 10px;
  }
}
.tp-project-navigation-thumb .tp-project-navigation-title {
  margin-bottom: 0;
}

/* Blog detail — Quill / semantic HTML inside Acjon postbox shell */
.postbox-body {
  text-align: left;
}
.postbox-body > *:first-child {
  margin-top: 0;
}
.postbox-body h2,
.postbox-body h3 {
  font-weight: 500;
  color: var(--tp-common-black);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}
.postbox-body h2 {
  font-size: 1.75rem;
}
.postbox-body h3 {
  font-size: 1.35rem;
}
.postbox-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--tp-text-body);
}
.postbox-body ul,
.postbox-body ol {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
  color: var(--tp-text-body);
  line-height: 1.8;
}
.postbox-body li {
  margin-bottom: 0.5rem;
}
.postbox-body a {
  color: var(--tp-common-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.postbox-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--tp-theme-primary);
  background: rgba(1, 1, 3, 0.03);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tp-common-black);
}
.postbox-body blockquote p:last-child {
  margin-bottom: 0;
}
.postbox-body pre,
.postbox-body .ql-syntax {
  display: block;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  background: #110C04;
  color: #F5F7F5;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.postbox-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem 0;
}
.postbox-body .ql-align-center {
  text-align: center;
}
.postbox-body .ql-align-right {
  text-align: right;
}
.postbox-body .ql-align-justify {
  text-align: justify;
}

/* Project store CTAs + QR — badges stacked, QR beside */
.tp-project-details-shedule:has(.mv-project-app-cta) ul {
  margin-bottom: 18px;
}
.mv-project-app-cta {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mv-project-app-cta-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
}
.mv-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mv-store-badges--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.mv-store-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 148px;
  height: 44px;
  padding: 0 12px 0 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mv-store-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}
.mv-store-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mv-store-badge-icon img,
.mv-store-badge-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.mv-store-badge-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}
.mv-store-badge-eyebrow {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
  white-space: nowrap;
}
.mv-store-badge-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mv-project-privacy-link {
  font-size: 13px;
  font-weight: 500;
  color: #010103;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mv-project-privacy-link:hover {
  color: #7863FF;
}
.mv-project-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mv-project-qr img {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(1, 1, 3, 0.08);
  background: #fff;
}
.mv-project-qr span {
  font-size: 11px;
  color: #5a5a5a;
  white-space: nowrap;
}
.tp-project-details-2-content p {
  text-transform: none;
}
.tp-project-details-2-title-wrap .tp-section-title.tl-unbounded.fs-42 {
  max-width: 11em;
}
.tp-project-details-shedule {
  padding-bottom: 28px;
}
@media (max-width: 575px) {
  .mv-project-app-cta-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}
.mv-privacy-page {
  max-width: 720px;
  text-align: left;
}
.mv-privacy-lead {
  margin-bottom: 10px;
}
.mv-privacy-lead .tp-breadcrumb-s1-subtitle {
  margin-bottom: 12px;
}
.mv-privacy-page h1 {
  margin-bottom: 12px;
}
.mv-privacy-page .mv-privacy-meta {
  color: #5a6b76;
  margin-bottom: 28px;
}
.mv-privacy-page h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  font-weight: 500;
  color: var(--tp-common-black, #010103);
}
.mv-privacy-page p,
.mv-privacy-page li {
  font-size: 1rem;
  line-height: 1.6;
}
.mv-privacy-page p {
  margin-bottom: 1rem;
}
.mv-privacy-page ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.mv-privacy-page li {
  margin: 6px 0;
}
.mv-privacy-page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mv-privacy-page a:hover {
  color: #7863FF;
}
.tp-breadcrumb-s7-content p {
  margin-bottom: 0;
}
.mv-download-interstitial {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.mv-download-interstitial .mv-store-badges {
  justify-content: center;
  margin-top: 28px;
}
.mv-download-interstitial .mv-store-badges--stack {
  align-items: center;
}

/* Footer bottom — text brand + smaller let's talk */
.mv-footer-brand {
  display: inline-block;
  font-family: var(--tp-ff-unbounded);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.mv-footer-brand:hover {
  color: #fff;
  opacity: 0.85;
}
.tp-footer-7-bottom-wrap .ds-footer-btn .tp-btn-circle {
  width: 112px;
  height: 112px;
  font-size: 14px;
}
.tp-footer-7-bottom-wrap .ds-footer-btn .tp-btn-circle span {
  margin-bottom: 4px;
}
.tp-footer-7-bottom {
  padding-top: 28px;
  padding-bottom: 8px;
}
@media (max-width: 767px) {
  .mv-footer-brand {
    font-size: 28px;
  }
  .tp-footer-7-bottom-wrap .ds-footer-btn .tp-btn-circle {
    width: 96px;
    height: 96px;
    font-size: 13px;
  }
}

/* Home / services image slots — fit generated assets cleanly */
.ma-home-about .sa-about-left-thumb {
  max-width: 320px;
}
.ma-home-about .sa-about-left-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.ma-home-about .sa-about-right-thumb {
  width: 390px;
  max-width: 100%;
  max-height: 380px;
  overflow: hidden;
}
.ma-home-about .sa-about-right-thumb img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.ma-faq-thumb > img {
  display: block;
  width: 360px;
  max-width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.ma-faq-thumb-2 {
  /* keep flush against circular photo */
  margin-left: -2px;
}
.tp-about-banner-ptb .sa-banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-top: 0;
}
@media (max-width: 991px) {
  .ma-home-about .sa-about-left-thumb {
    max-width: 100%;
  }
  .ma-home-about .sa-about-right-thumb img {
    height: auto;
    max-height: 420px;
  }
  .ma-faq-thumb > img {
    width: min(360px, 100%);
    height: auto;
    aspect-ratio: 1;
    max-height: none;
  }
}

/* Blog index pagination — aligned circular controls */
.tp-pagenation-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tp-pagenation-wrap ul li {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.tp-pagenation-wrap ul li a {
  box-sizing: border-box;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--tp-common-black);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.tp-pagenation-wrap ul li a i {
  line-height: 1;
  font-size: 14px;
}
.tp-pagenation-wrap ul li.disabled a {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.tp-pagenation-wrap ul li.disabled a:hover {
  background: transparent;
  color: var(--tp-common-black);
}

/* Blog cards — same tint default + hover; image still zooms on hover */
.tp-blog-area .dgm-blog-item::after,
.ma-blog-ptb .dgm-blog-item::after,
.tp-blog-area .dgm-blog-item:hover::after,
.ma-blog-ptb .dgm-blog-item:hover::after {
  background-color: transparent;
  background-image: linear-gradient(
    to top,
    rgba(1, 1, 3, 0.82) 0%,
    rgba(1, 1, 3, 0.5) 45%,
    rgba(1, 1, 3, 0.4) 100%
  );
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.tp-blog-area .dgm-blog-content,
.ma-blog-ptb .dgm-blog-content {
  z-index: 2;
}

/* Nav brand text */
.mv-nav-brand {
  display: inline-block;
  font-family: var(--tp-ff-unbounded);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tp-common-white);
  text-decoration: none;
  white-space: nowrap;
}
.tp-header-5-menu ~ * .mv-nav-brand,
.header-sticky .mv-nav-brand,
body:not(.page-contact-dark) #header-sticky.header-sticky .mv-nav-brand {
  color: var(--tp-common-black);
}
/* Light pages (non-home/contact): black brand */
body:not(.page-contact-dark) .tp-header-area:not(.header-transparent) .mv-nav-brand,
.tp-header-border .mv-nav-brand {
  color: var(--tp-common-black);
}
/* Offcanvas brand on dark panel */
.mv-nav-brand--offcanvas {
  color: var(--tp-common-white) !important;
  font-size: 20px;
}

.mv-nav-brand--dark,
.header-sticky .mv-nav-brand {
  color: var(--tp-common-black);
}
body.page-contact-dark .header-sticky .mv-nav-brand,
body.page-contact-dark .mv-nav-brand {
  color: var(--tp-common-white);
}
