/*
Theme Name: EightySix Code
Theme URI: https://www.eightysixcode.ae
Author: EightySix Code
Author URI: https://www.eightysixcode.ae
Description: Custom theme for EightySix Code – web design & development agency in Abu Dhabi. Static content ready for ACF/CPT integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eightysixcode
*/

/* Base theme styles are in assets/css/main.css (enqueued in functions.php). */
#menu-close{
  margin-top: -4px;
}

/* Navbar scroll state */
.navbar-static.scrolled {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar-static .navbar-links {
  transition: opacity 0.7s cubic-bezier(0.65, 0.05, 0, 1);
}

/* Footer heading: line break after "To" on mobile only */
.footer-heading-br {
  display: block;
}
@media (min-width: 768px) {
  .footer-heading-br {
    display: none;
  }
}

/* Stats section: center divider under number (match card text alignment) */
#stats .stats-divider {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) and (max-width: 1023px) {
  #stats .stats-divider {
    margin-left: 0;
    margin-right: auto;
  }
}
@media (min-width: 1024px) {
  #stats .stats-divider {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Fullscreen menu overlay: base layout ---- */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  #menu-overlay {
    flex-direction: row;
  }
}
#menu-overlay.open {
  display: flex !important;
  clip-path: circle(150% at calc(100% - 50px) 40px);
}
#menu-overlay:not(.hidden) {
  display: flex;
}
/* Overlay top-right: Let's Talk (desktop only) + close button, aligned like reference */
.menu-overlay-top-right {
  padding-top: 1rem;
  padding-right: 1.5rem;
  padding-bottom: 0;
  padding-left: 0;
}
@media (min-width: 768px) {
  .menu-overlay-top-right {
    padding-top: 1.25rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  .menu-overlay-top-right {
    padding-right: 3rem;
  }
}
/* Ensure close button and Let's Talk stay above overlay columns (clickable) */
.menu-overlay-top-right {
  z-index: 20 !important;
}
/* Tailwind-style hidden + responsive display (so hidden doesn't break md:flex / lg:inline-flex) */
.hidden { display: none !important; }
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }
}
@media (min-width: 1024px) {
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:flex { display: flex !important; }
}

/* ---- Services mega menu: full-width dropdown, centered panel (match screenshot) ---- */
#navbar-mega-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 50;
  padding-top: 8px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 250ms ease, transform 250ms ease, visibility 0s linear 250ms;
  pointer-events: none;
}
@media (min-width: 768px) {
  #navbar-mega-menu {
    top: 5rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
#navbar-mega-menu.mega-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 250ms ease, transform 250ms ease;
}
/* Stagger columns on open */
#navbar-mega-menu.mega-open .navbar-mega-menu-column {
  opacity: 1;
  transform: translateY(0);
}
#navbar-mega-menu .navbar-mega-menu-column {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.65, 0.05, 0, 1), transform 0.4s cubic-bezier(0.65, 0.05, 0, 1);
}
#navbar-mega-menu .navbar-mega-menu-column:nth-child(1) { transition-delay: 50ms; }
#navbar-mega-menu .navbar-mega-menu-column:nth-child(2) { transition-delay: 100ms; }
#navbar-mega-menu .navbar-mega-menu-column:nth-child(3) { transition-delay: 150ms; }
#navbar-mega-menu .navbar-mega-menu-column:nth-child(4) { transition-delay: 200ms; }

/* Inner panel: centered, max 1280px */
#navbar-mega-menu .container {
  max-width: 1280px;
  width: 100%;
  margin: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  #navbar-mega-menu .container {
    padding-left: 0rem;
    padding-right: 0rem;
  }
}
#navbar-mega-menu .container > div {
  width: 100%;
  max-width: 1280px;
  background: #000;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 24px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  #navbar-mega-menu .container > div {
    padding: 40px;
  }
}
#navbar-mega-menu .container .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 60px;
  row-gap: 24px;
}
@media (min-width: 1024px) {
  #navbar-mega-menu .container .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
#navbar-mega-menu .navbar-mega-menu-column h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9FE870;
  margin-bottom: 16px;
}
#navbar-mega-menu .navbar-mega-menu-column ul a {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  display: block;
}
#navbar-mega-menu .navbar-mega-menu-column ul a:hover {
  color: #fff;
}
#navbar-mega-menu .navbar-mega-menu-column > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s ease;
}
#navbar-mega-menu .navbar-mega-menu-column > a:hover {
  color: #9FE870;
}
#navbar-mega-menu .navbar-mega-menu-column > a svg {
  flex-shrink: 0;
}

/* Kinetic headings: perspective for 3D rotateX */
.js-kinetic-block {
  perspective: 1200px;
}
.js-kinetic-block .kinetic-char {
  transform-origin: bottom;
}

/* ---- Preloader ---- */
.preloader-outer.preloader-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.preloader-top { transform: translateY(0); }
.preloader-bottom { transform: translateY(0); }
@media (min-width: 768px) {
  #custom-cursor-wrap,
  #custom-cursor-dot { display: block !important; }
}

/* Custom cursor: hide default when active */
body.cursor-custom,
body.cursor-custom * {
  cursor: none !important;
}
@media (max-width: 767px) {
  body.cursor-custom * { cursor: auto !important; }
}

/* Navbar entrance: initial state (preloader.js animates to 0) */
.navbar-entrance { transform: translateY(-100%); }
body.preloader-complete .navbar-entrance {
  transform: translateY(0);
}

/* bg-noise (preloader, sections) */
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* TextSlideButton (reference index.css) */
.btn-text-slide {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.65, 0.05, 0, 1), box-shadow 0.4s cubic-bezier(0.65, 0.05, 0, 1);
}
.btn-text-slide:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px hsl(87 75% 60% / 0.15);
}
.clip-text-line {
  clip-path: polygon(0 -5%, 0 105%, 100% 105%, 100% -5%);
}

/* Hero: scroll indicator bounce */
.scroll-pill {
  animation: scroll-pill-bounce 2s ease-in-out infinite;
}
@keyframes scroll-pill-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Hero: visible by default so it shows instantly after loader (no animation) */
.hero-word,
.hero-eyebrow,
.hero-subtext,
.hero-ctas,
.hero-card,
.hero-scroll-indicator {
  opacity: 1;
  transform: none;
}

/* Hero insights carousel */
.hero-insights {
  position: relative;
  z-index: 10;
}
.hero-insights-slide {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-insights-slide.hero-insights-slide-active {
  opacity: 1;
  transform: translateY(0);
}
.hero-insights-slide.hero-insights-enter-next {
  transform: translateY(10px);
}
.hero-insights-slide.hero-insights-enter-prev {
  transform: translateY(-10px);
}
.hero-insights-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  z-index: 5;
}
.hero-insights-arrow svg{
  color: #fff;
}
.hero-insights-arrow-left {
  left: -40px;
}
.hero-insights-arrow-right {
  right: -40px;
}
.hero-insights-arrow:hover svg{
  fill: green;
}

/* Breadcrumb bar – subtle fade-in after hero */
.breadcrumbs-bar {
  opacity: 0;
  transform: translateY(8px);
  animation: breadcrumb-fade-in 0.45s ease-out 0.25s forwards;
}
.breadcrumbs-list a {
  text-decoration: none;
}
@keyframes breadcrumb-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Client logo marquees */
.animate-marquee-left {
  animation: marquee-left 40s linear infinite;
}
.animate-marquee-right {
  animation: marquee-right 40s linear infinite;
}
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-33.333%); }
  100% { transform: translateX(0); }
}
.group-marquee:hover .animate-marquee-left,
.group-marquee:hover .animate-marquee-right {
  animation-play-state: paused;
}

/* Marquee text-stroke */
.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
}

/* ---- Fullscreen menu: left image column (55%, never overflow) ---- */
#menu-overlay-left {
  width: 55% !important;
  max-width: 55vw !important;
  flex-shrink: 0 !important;
  display: none;
  align-items: center;
  padding: 120px 40px 120px 60px !important;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  #menu-overlay-left {
    display: flex;
  }
}
.menu-overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
}
.menu-overlay-col-2 {
  margin-top: -48px;
}
#menu-overlay .menu-img,
#menu-overlay .menu-img-entrance {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  filter: grayscale(100%);
  transition: filter 0.5s ease, opacity 0.75s cubic-bezier(0.65, 0.05, 0, 1), transform 0.75s cubic-bezier(0.65, 0.05, 0, 1);
}
#menu-overlay .menu-img img,
#menu-overlay .menu-img-entrance img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#menu-overlay .menu-img:hover,
#menu-overlay .menu-img-entrance:hover {
  filter: grayscale(0%);
}

/* ---- Fullscreen menu: right navigation column ---- */
#menu-overlay-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0 !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  #menu-overlay-right {
    padding-left: 80px !important;
    padding-right: 60px !important;
  }
}
#menu-overlay-right nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
#menu-overlay #menu-overlay-right .menu-link,
#menu-overlay #menu-overlay-right .menu-link span {
  font-family: var(--font-display) !important;
  font-size: 40px !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  transition: color 0.5s ease;
}
#menu-overlay #menu-overlay-right .menu-link:hover span {
  color: hsl(var(--primary)) !important;
}
@media (min-width: 768px) {
  #menu-overlay #menu-overlay-right .menu-link,
  #menu-overlay #menu-overlay-right .menu-link span {
    font-size: 64px !important;
  }
}
@media (min-width: 1280px) {
  #menu-overlay #menu-overlay-right .menu-link,
  #menu-overlay #menu-overlay-right .menu-link span {
    font-size: 96px !important;
  }
}
#menu-overlay-right .menu-cta {
  margin-top: 60px;
}
#menu-overlay-right .menu-cta .btn-text-slide {
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
#menu-overlay-right .menu-cta .flex-wrap {
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Services stacked cards: sticky + GSAP (see services-scroll.js) */
.service-card-wrapper {
  position: relative;
}
.service-card {
  transform-origin: top center;
  will-change: transform;
}

.type-post .blog-single-lead{
  color: #fff !important;
}

.blog-single-content a{
    color: #a1e64c;
    border-bottom: 1px dotted #a1e64c;
}

.blog-single-content p{
  color: #bbb;
  margin:30px 0px !important;
}

.blog-single-content strong{
  color:#fff;
}

.wp-block-heading{
    margin:40px 0px !important;
    -webkit-background-clip: text;
    background-clip: text;
    color: #a1e64c !important;
    background-image: linear-gradient(135deg, #a1e64c, #6ee830);
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
}

h2.wp-block-heading{
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.wp-block-heading:before{
height: 1px;
content: '';
background: green;
}

.wp-block-list{
    list-style: circle;
    margin: 0px 20px 0px 20px;
    color: #bbb;
    font-size: 1rem;
}

/* ---- WP-PageNavi: theme-matched pagination ---- */
.eightysix-pagination .wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.eightysix-pagination .wp-pagenavi a,
.eightysix-pagination .wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  background: hsl(0 0% 6%);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.eightysix-pagination .wp-pagenavi a:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / 0.5);
}
.eightysix-pagination .wp-pagenavi .current {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.eightysix-pagination .wp-pagenavi .pages {
  color: hsl(var(--muted-foreground));
  margin-right: 0.25rem;
}
.eightysix-pagination .wp-pagenavi .first,
.eightysix-pagination .wp-pagenavi .last,
.eightysix-pagination .wp-pagenavi .prev,
.eightysix-pagination .wp-pagenavi .next {
  min-width: 2.75rem;
}
.eightysix-pagination .wp-pagenavi .extend {
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

/* ---- Contact Form 7: theme-matched validation & response messages ---- */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.25;
  color: hsl(var(--destructive));
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  border-radius: 0.5rem;
  border-width: 1px;
}

.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng {
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.5);
  background: hsl(var(--destructive) / 0.08);
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.08);
}


