/* Meta Reva — layout + readability fixes over theme */

/* ========== HEADER ========== */
.tf-header {
  padding-top: 28px;
  margin-bottom: -100px;
  z-index: 100;
  position: relative;
}
.tf-header .header-inner,
.tf-header.header2 .header-inner {
  max-width: min(1180px, calc(100% - 48px)) !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 10px 8px 20px !important;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}
.tf-header .logo-site {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  max-width: var(--logo-max-w, 400px) !important;
  min-width: calc(var(--logo-h, 40px) * 5.5) !important;
  min-height: var(--logo-h, 40px) !important;
  overflow: visible !important;
  z-index: 5 !important;
  position: relative !important;
  margin-right: 8px;
}
/* img OR inlined svg */
.tf-header .logo-site img,
.tf-header .logo-site img.site-logo,
.tf-header .logo-site svg,
.tf-header .logo-site svg.site-logo-svg {
  height: var(--logo-h, 40px) !important;
  width: auto !important;
  max-height: none !important;
  max-width: var(--logo-max-w, 400px) !important;
  object-fit: contain !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}
.tf-header .logo-site .logo-text {
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #09090b;
  white-space: nowrap;
}
.tf-header .logo-site .logo-text span {
  color: var(--brand, #fd3a25);
}
.tf-header .box-navigation {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.tf-header .nav-menu-main {
  gap: 6px !important;
  flex-wrap: nowrap;
  justify-content: center;
}
.tf-header .nav-menu-main .item-link {
  font-size: 14px !important;
  line-height: 20px !important;
  padding: 6px 8px;
  white-space: nowrap;
  color: #18181b !important;
  -webkit-text-fill-color: #18181b !important;
}
.tf-header .nav-menu-main .item-link.active,
.tf-header .nav-menu-main .item-link:hover {
  color: var(--brand, #fd3a25) !important;
  -webkit-text-fill-color: var(--brand, #fd3a25) !important;
}
.tf-header .tf-btn.d-lg-flex {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  min-height: 40px;
}

.page-pad {
  padding-top: 160px;
  padding-bottom: 80px;
}
@media (max-width: 991px) {
  .page-pad { padding-top: 120px; }
  .tf-header .header-inner,
  .tf-header.header2 .header-inner {
    max-width: unset !important;
    margin: 0 16px !important;
  }
}

/* ========== GRADIENT TITLES — solid readable colors (no invisible text) ========== */
.text-gradient-1,
.text-gradient-2,
.text-gradient-3,
.heading-section .heading-title,
.section-hero .title,
.section-hero .title1,
.section-hero .title2 span {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #18181b !important;
  color: #18181b !important;
  -webkit-text-stroke: 0 !important;
}
.section-hero .sub,
.section-hero .text {
  color: #3f3f46 !important;
  -webkit-text-fill-color: #3f3f46 !important;
}
.heading-section .heading-sub {
  color: var(--brand, #fd3a25) !important;
  -webkit-text-fill-color: var(--brand, #fd3a25) !important;
}

/* ========== FAQ / ACCORDION — open = dark bg, light text ========== */
.accordion-faq_item .accordion-title {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
}
.accordion-faq_item .accordion-action:not(.collapsed) .accordion-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Answer body — force light gray on dark open state */
.accordion-faq_item .collapse .text,
.accordion-faq_item .collapse .text-body-3,
.accordion-faq_item .collapse .text-neutral-300,
.accordion-faq_item .accordion-content .text,
.accordion-faq_item .accordion-content .text-body-3,
.accordion-faq_item .accordion-content .text-neutral-300,
.accordion-faq_item .accordion-content p {
  color: #f4f4f5 !important;
  -webkit-text-fill-color: #f4f4f5 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
}
.accordion-faq_item .accordion-content .text {
  padding-top: 20px !important;
  padding-bottom: 28px !important;
}
.accordion-faq_item .list-tags .tags-item {
  color: #f4f4f5 !important;
  -webkit-text-fill-color: #f4f4f5 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Closed FAQ title stays readable on light card */
.accordion-faq_item .accordion-action.collapsed .accordion-title {
  color: #3f3f46 !important;
  -webkit-text-fill-color: #3f3f46 !important;
}

/* Dedicated answer class (used in markup) */
.mr-answer,
.mr-answer * {
  color: #f4f4f5 !important;
  -webkit-text-fill-color: #f4f4f5 !important;
}

/* Pricing / cards body text */
.pricing-item .text,
.pricing-item .text-body-3,
.pricing-item p {
  color: #3f3f46 !important;
  -webkit-text-fill-color: #3f3f46 !important;
}
.pricing-item.style-black .text,
.pricing-item.style-black .text-body-3,
.pricing-item.style-black p,
.pricing-item.style-black .text-neutral-400 {
  color: #d4d4d8 !important;
  -webkit-text-fill-color: #d4d4d8 !important;
}
.pricing-item.style-black .fw-semibold.text,
.pricing-item.style-black h3,
.pricing-item.style-black h4,
.pricing-item.style-black h5,
.pricing-item.style-black .text-white {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Featured works */
.featured-works-item .content .heading {
  color: #18181b !important;
  -webkit-text-fill-color: #18181b !important;
}
.featured-works-item .content .text-body-3 {
  color: #3f3f46 !important;
  -webkit-text-fill-color: #3f3f46 !important;
}

/* Footer */
footer .title,
footer .text {
  color: #18181b !important;
  -webkit-text-fill-color: #18181b !important;
}

/* Contact form */
.mr-contact-form input.form-control,
.mr-contact-form textarea.form-control {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #18181b;
  font-family: inherit;
}
.mr-contact-form input.form-control:focus,
.mr-contact-form textarea.form-control:focus {
  outline: none;
  border-color: var(--brand, #fd3a25);
  box-shadow: 0 0 0 3px rgba(253, 58, 37, 0.12);
}
.mr-contact-form label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #3f3f46;
}
.mr-alert-ok { color: var(--brand, #fd3a25); font-weight: 700; margin-bottom: 16px; }
.mr-alert-err { color: #b91c1c; font-weight: 600; margin-bottom: 16px; }

.footer-content .tf-social-1 { flex-wrap: wrap; gap: 10px; }
.footer-bottom { flex-wrap: wrap; gap: 12px; }

html, body { overflow-x: hidden; }
#wrapper { overflow-x: clip; }

/* ========== HERO VIDEO — küçük kart, metni bozmaz ========== */
.section-hero {
  position: relative;
  overflow: hidden;
}
/* restore readable dark hero text (theme default look) */
.section-hero .sub,
.section-hero .sub * {
  color: #3f3f46 !important;
  -webkit-text-fill-color: #3f3f46 !important;
  text-shadow: none !important;
}
.section-hero .title1,
.section-hero .title2 > span.fw-semibold,
.section-hero .title .fw-semibold {
  color: #18181b !important;
  -webkit-text-fill-color: #18181b !important;
  text-shadow: none !important;
}
.section-hero .text {
  color: #3f3f46 !important;
  -webkit-text-fill-color: #3f3f46 !important;
  text-shadow: none !important;
  max-width: min(720px, 92vw);
  margin-left: auto;
  line-height: 1.65;
  font-size: clamp(15px, 1.35vw, 18px);
  margin-right: auto;
}
.section-hero .scroll-more .link1 {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
}

/* Video as compact card under hero copy */
.mr-hero-video-card {
  position: relative;
  z-index: 4;
  width: min(800px, 92vw);
  margin: 32px auto 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 56px rgba(9, 9, 11, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  background: #0a0a0c;
  aspect-ratio: 16 / 9;
}
.mr-hero-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mr-hero-video-card .mr-video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  letter-spacing: 0.02em;
}
@media (max-width: 767px) {
  .mr-hero-video-card {
    width: min(100%, 92vw);
    margin-top: 22px;
    border-radius: 16px;
  }
}

/* Site-wide logo — height from admin --logo-h (img + inline svg) */
img.site-logo,
.logo-site img.site-logo,
.footer-logo img.site-logo,
svg.site-logo,
svg.site-logo-svg,
.logo-site svg,
.footer-logo svg {
  height: var(--logo-h, 40px) !important;
  width: auto !important;
  max-width: var(--logo-max-w, 400px) !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.footer-logo img,
.footer-logo img.site-logo,
.footer-logo svg,
.footer-logo svg.site-logo-svg {
  height: max(var(--logo-h, 40px), 44px) !important;
  max-width: min(320px, 80vw) !important;
  margin-left: auto;
  margin-right: auto;
}
/* Mobile offcanvas */
.offcanvas-menu .logo-site {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 120px;
}
.offcanvas-menu .logo-site img.site-logo,
.offcanvas-menu .logo-site svg {
  height: var(--logo-h, 40px) !important;
  filter: none;
}

/* Custom Meta Reva photos — soft, realistic section assets */
.section-hero .content-wrap .title-icon .title-icon-wrap img {
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.section-about-us .box-quotes .image img,
.services-image img,
.featured-works-item .image img {
  object-fit: cover;
}
/* Footer watermark (Aigocy layout): large wordmark behind content, fadeUp */
footer {
  position: relative;
  overflow: hidden;
  background: transparent;
}
footer .footer-image {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: calc(100vw - 24px) !important;
  width: 1296px !important;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
footer .footer-image img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
  opacity: 1 !important;
  display: block;
  /* no dark full-bleed photo look */
  border-radius: 0 !important;
  filter: none !important;
}
footer .container {
  position: relative;
  z-index: 1;
}
/* content readable on light page over soft watermark */
footer .footer-content .title,
footer .footer-content .text {
  color: #18181b;
}
footer .footer-content .text.text-secondary {
  color: #71717a !important;
}
/* Aigocy earth.png — tema gibi scroll fadeRotateX + hafif sürekli float */
.section-about-us .col-left {
  perspective: 800px;
}
.section-about-us .col-left img.mr-earth,
.section-about-us .col-left img.effectFade.fadeRotateX {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 38px;
  margin-top: -25px;
  object-fit: contain;
  will-change: transform;
  transform-style: preserve-3d;
}
/* GSAP scroll animasyonu bittikten sonra yumuşak süzülme */
.section-about-us .col-left img.mr-earth.mr-earth-live {
  animation: mrEarthFloat 8s ease-in-out infinite;
}
@keyframes mrEarthFloat {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50% { transform: translateY(-12px) rotateZ(1.2deg); }
}
