/*
Theme Name: Avocha
Theme URI: https://avocha.com
Author: Andrew
Description: Custom WordPress theme for Avocha using scroll-based storytelling animations.
Version: 1.0
*/

/* Performance optimizations */
*,
*::before,
*::after {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-perspective: 1000;
  perspective: 1000;
}

/* ================= BASE STYLES ================= */
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #080b1a;
  color: #ffffff;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* Add for smoother text */
  -moz-osx-font-smoothing: grayscale; /* Add for smoother text */
}

/* Add this for better performance */
* {
  box-sizing: border-box;
  -webkit-backface-visibility: hidden; /* Prevents flickering */
  backface-visibility: hidden;
}

/* Prevent horizontal scroll on mobile only */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    position: relative;
  }
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ed5659;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #871c52;
  color: #ffffff;
}

.btn-primary {
  background-color: #ed5659;
  color: #ffffff;
  padding: 16px 40px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 30px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #d04b4f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(237, 86, 89, 0.3);
}

/* CTA Section Button Specific Styling */
.showcase-cta .btn-primary:hover {
  background-color: #871c52;
  transform: none;
  box-shadow: 0 10px 20px rgba(135, 28, 82, 0.3);
}

/* ================= ANIMATIONS ================= */
[data-animate] {
  opacity: 0;
  transform: translateY(40px) translateZ(0); /* Add translateZ for GPU */
  transition: all 0.8s ease-out;
  will-change: transform, opacity; /* Optimize for animation */
}

[data-animate].active {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.hidden {
  display: none;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= CONTAINER ================= */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ================= HEADER STYLES ================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #080b1a;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  transform: translateY(0);
  will-change: transform;
}

.site-header.hide {
  transform: translateY(-100%) !important;
}

.site-header.show {
  transform: translateY(0) !important;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(8, 11, 26, 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 80px;
  padding-top: 20px;
}

.logo.centered-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.logo img {
  max-height: 60px;
  width: auto;
}

/* ================= HAMBURGER MENU ================= */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 9999;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

#menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

#menu-close {
  display: none !important;
}

/* ================= MENU OVERLAY ================= */
.menu-overlay {
  position: fixed;
  top: 120px;
  left: 0;
  width: 100%;
  height: calc(100vh - 120px);
  background: #080b1a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 25px;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-overlay li {
  margin: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.open li {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay a {
  color: #ffffff;
  text-decoration: none;
  font-size: 2rem;
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.menu-contact-info {
  margin-top: 40px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

.menu-contact-info .contact-label {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 500;
}

.menu-contact-info a {
  color: #cccccc;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  transition: color 0.3s ease;
}

.menu-contact-info a:hover,
.menu-overlay a:hover {
  color: #ed5659;
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  background: #080b1a;
  /* Simplified background for better performance */
  padding-top: 120px;
  padding-bottom: 60px;
  overflow-x: hidden;
  will-change: transform;
}

.split-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 60px;
  position: relative;
  z-index: 2;
}

.hero-left {
  flex: 1 1 55%;
  max-width: 55%;
  text-align: left;
}

.hero-left h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 8rem;
  line-height: 0.9;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  text-align: left;
}

.hero-right {
  flex: 1 1 45%;
  max-width: 45%;
  align-self: flex-end;
  padding-bottom: 12px;
}

.hero-right p {
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
  font-weight: 300;
  margin: 0;
  text-align: left;
}

.hero-video-wrapper {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

.hero-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  max-height: 90vh;
  transform: translateZ(0); /* GPU acceleration */
  will-change: transform;
}

/* ================= HOME WELCOME SECTION ================= */
.home-welcome {
  background-color: #080b1a;
  padding: 80px 60px;
  color: #fff;
  overflow: visible !important; /* Fix for unexpected scrollbars */
  will-change: transform;
}

.welcome-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  gap: 60px;
}

.welcome-left {
  flex: 1;
}

.welcome-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.welcome-right {
  flex: 2;
  max-width: 700px;
  overflow: visible !important; /* Prevent nested scroll */
}

.welcome-right p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 20px;
}

.welcome-right .btn {
  margin-top: 20px;
}

/* ================= SERVICES SECTION ================= */
.home-services {
  position: relative;
  padding: 120px 60px;
  background-color: #841e4f;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 12px
  );
  /* CRITICAL: No overflow hidden on sticky parent */
}

.services-container {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  gap: 200px;
  align-items: flex-start;
  position: relative;
}

.services-left {
  flex: 0 0 400px;
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
  height: fit-content;
  background: transparent;
  will-change: transform; /* Add this */
  transform: translateZ(0); /* Force GPU acceleration */
}

.services-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.services-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 30px;
}

.services-left .btn {
  background-color: #ed5659;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 12px 24px;
  display: inline-block;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.services-left .btn:hover {
  background-color: #080b1a;
}

.services-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
  min-height: 100vh;
}

.service-block h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  letter-spacing: -0.5px;
  line-height: 0.85;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: -10px;
  margin-bottom: 5px;
}

.service-columns {
  columns: 2;
  column-gap: 60px;
  padding-left: 10px;
  margin-top: 16px;
}

.service-columns p {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
  color: #cccccc;
  margin: 0 0 12px;
}

.service-columns p:hover {
  color: #ffffff;
  text-decoration: underline;
  cursor: default;
}

/* ================= CLIENT HIGHLIGHTS SECTION ================= */
.client-highlights {
  padding: 120px 60px;
  background-color: #080b1a;
  /* Simplified background for better performance */
  overflow-x: hidden;
  will-change: transform;
}

.highlights-container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.client-highlights h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.section-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #FFFFFF;
}

/* CUSTOM CIRCULAR ARROWS */
.custom-arrows {
  position: absolute;
  top: 20px;
  right: 0;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.custom-arrows .prev,
.custom-arrows .next {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ed5659;
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

/* SLIDER STYLES */
.highlights-slider {
  position: relative;
  margin-top: 60px;
}

.highlights-slider .swiper-slide {
  background: #080b1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

/* Remove the translateY to prevent shifting */
.highlights-slider .swiper-slide:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.highlights-slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* Fix link styles and hover effects */
.highlight-link {
  text-decoration: none !important;
  color: #ffffff !important;
  display: block;
}

/* Make sure all text changes color on hover */
.highlight-link:hover .caption,
.highlight-link:hover .caption strong {
  color: #ed5659 !important;
  transition: color 0.3s ease;
}

/* HIDE DEFAULT SWIPER ARROWS */
.highlights-slider .swiper-button-next,
.highlights-slider .swiper-button-prev,
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

/* Force remove all underlines from highlight links */
.highlight-link,
.highlight-link:hover,
.highlight-link:focus,
.highlight-link:active,
.highlight-link:visited {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
}

/* Ensure no underline on any child elements */
.highlight-link * {
  text-decoration: none !important;
}

/* IMAGE HOVER OVERLAY EFFECT */
.image-wrapper {
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(237, 86, 89, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 2;
}

.overlay-logo {
  max-width: 60%;
  max-height: 60%;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
  transform: scale(1);
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.image-wrapper:hover .overlay-logo {
  transform: scale(1.05);
}

/* Caption styles */
.caption {
  text-align: center;
  margin-top: 0.5rem;
  color: #fff !important;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  line-height: 1.2; /* Tighter line height */
  text-decoration: none !important;
}

/* Company name styling */
.caption strong {
  font-weight: 600;
  display: block;
  margin-bottom: 2px; /* Small gap between name and industry */
}

/* Remove the br styling - not needed */
.caption br {
  display: none; /* Hide the br tag */
}

/* Target the caption inside links */
.highlight-link .caption {
  display: block;
  text-decoration: none !important;
}

/* Style for industry text using span */
.caption .industry {
  font-weight: 300;
  font-size: 14px;
  opacity: 0.85;
  display: block;
  margin-top: 2px; /* Small space from company name */
}

/* Ensure all caption text inherits the color on hover */
.highlight-link:hover .caption,
.highlight-link:hover .caption strong,
.highlight-link:hover .caption .industry {
  color: #ed5659 !important;
}

/* ================= TESTIMONIALS SECTION ================= */
.home-testimonials {
  padding: 120px 60px;
  background-color: #ffffff;
  position: relative;
}

.testimonials-container {
  max-width: 1440px;
  margin: 0 auto;
}

.testimonials-header {
  position: relative;
  margin-bottom: 80px;
}

.home-testimonials h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  color: #080b1a;
  margin-bottom: 10px;
}

.home-testimonials .section-intro {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 0;
}

.testimonial-arrows {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
}

.testimonial-arrows .prev,
.testimonial-arrows .next {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ed5659;
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.testimonial-content {
  max-width: 900px;
}

.testimonial-content blockquote {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  line-height: 1.6;
  color: #080b1a;
  margin: 0 0 40px 0;
  font-weight: 300;
  position: relative;
}

.testimonial-content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: #ed5659;
  position: absolute;
  top: -20px;
  left: -40px;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.author-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #080b1a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.author-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #666;
}

/* ================= PULSE SECTION ================= */
.home-pulse {
  padding: 120px 0 0 0;
  background-color: #f8f8f8;
  overflow: hidden;
}

.pulse-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

.pulse-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.home-pulse h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #871c52;
  text-transform: uppercase;
  margin: 0;
}

.home-pulse h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: #080b1a;
  margin: 0;
}

.home-pulse .section-intro {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  flex: 1;
  padding-left: 40px;
}

.view-all-link {
  font-family: 'Inter', sans-serif;
  background-color: #ee575a;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  background-color: #081328;
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pulse-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pulse-post {
  border-bottom: 1px solid #e0e0e0;
}

.pulse-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* === FULL-WIDTH BREAKOUT WRAPPER === */
.pulse-full-width {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
  background: transparent;
}

/* === MAIN LINK STYLING === */
.post-link {
  display: flex;
  align-items: stretch;
  padding: 40px 60px;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  min-height: 240px;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}

.post-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #080b1a;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.post-link:hover::before {
  opacity: 1;
}

.post-content,
.post-image {
  position: relative;
  z-index: 1;
}

.post-content {
  flex: 1;
  padding-right: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.post-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  line-height: 1.1;
  color: #080b1a;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.post-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 20px 0;
  transition: color 0.4s ease;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.post-category {
  color: #ed5659;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-date {
  color: #999;
}

.read-more {
  font-family: 'Inter', sans-serif;
  color: #ed5659;
  font-weight: 500;
  opacity: 1;
  transform: none;
  transition: none;
  margin-top: auto;
}

.post-link:hover .post-content h3,
.post-link:hover .post-content p,
.post-link:hover .post-date {
  color: #ffffff;
}

.post-link:hover .post-category,
.post-link:hover .read-more {
  color: #ed5659;
}

.post-link:hover .post-image img {
  transform: scale(1.05) translateZ(0);
  transition: transform 0.4s ease;
}

.post-image {
  width: 320px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  background: transparent !important;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* ✅ Fix hover extension for last post */
.pulse-post:last-child .post-link::before {
  transition: opacity 0.4s ease;
  height: 100%;
}

/* ========== MOBILE PULSE STYLES - FIXED ========== */
@media (max-width: 768px) {
  .pulse-container {
    padding: 0;
  }

  .home-pulse {
    padding: 80px 0 0 0;
    overflow: visible; /* Allow background to extend */
    margin-bottom: 0;
  }

  .pulse-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 40px;
    margin-bottom: 40px;
  }

  .home-pulse .section-intro {
    padding-left: 0;
  }

  .pulse-posts {
    width: 100%;
    position: relative;
  }

  .pulse-post {
    position: relative;
    margin: 0;
    padding: 0;
  }

  .post-link {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 40px 20px 40px; /* Consistent left/right padding */
    z-index: 1;
    overflow: visible; /* Allow background to extend */
  }

  .post-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* Full viewport width */
    height: 100%;
    background-color: #080b1a;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
  }

  .post-link:hover::before,
  .post-link:focus-within::before {
    opacity: 1;
  }

  /* CRITICAL: Maintain exact same layout on hover */
  .post-link:hover {
    padding: 30px 40px 20px 40px; /* Same as non-hover */
  }

  .post-content {
    padding: 0;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
  }

  .post-content h3 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .post-image {
    width: calc(100% - 40px); /* Account for container padding */
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 240px;
  }

  /* Prevent any changes on hover */
  .post-link:hover .post-image {
    width: calc(100% - 40px); /* Same as non-hover */
  }

  .post-link:hover .post-image img {
    transform: none !important;
  }

  .pulse-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .pulse-post:last-child .post-link {
    padding-bottom: 20px;
  }

  .home-pulse + * {
    margin-top: 0;
  }
}

/* ================= SHOWCASE CTA SECTION ================= */
.showcase-cta {
  position: relative;
  width: 100%;
  background-color: #080b1a;
}

/* CTA Content Container */
.cta-content {
  background-color: #060b1a;
  text-align: center;
  color: #ffffff;
  padding: 80px 40px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  line-height: 1;
}

.cta-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
}

/* Showcase Image */
.showcase-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.showcase-cta .showcase-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.showcase-cta:hover .showcase-image {
  opacity: 1;
  transform: scale(1.02) translateZ(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cta-content {
    padding: 60px 20px;
  }

  .cta-content h2 {
    font-size: 2.5rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }
}

.home-testimonials,
.home-pulse,
.showcase-cta {
  margin-top: 0;
}

/* ================= FOOTER SECTION ================= */
.site-footer {
  background-color: #ed5659; /* Avocha red */
  color: #ffffff;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden; /* This prevents horizontal scroll */
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 2;
}

/* Large A watermark on the right */
.footer-logo-bg {
  position: absolute;
  top: 50%;
  right: 0; /* Changed from -10% to 0 */
  transform: translate(25%, -50%); /* Added horizontal translate */
  width: 600px;
  height: 600px;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.footer-logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Main tagline */
.footer-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem; /* Reduced from 3.5rem */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 60px;
  max-width: 800px;
  white-space: nowrap; /* Prevents line break */
}

/* Contact section */
.footer-contact {
  margin-bottom: 80px;
}

.footer-contact h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 0.8;
}

/* Copyright section */
.footer-bottom {
  border-top: none;
  padding-top: 0;
  text-align: left;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.footer-bottom p {
  margin: 0;
  max-width: 450px; /* Reduced from 900px - about half */
}

.accessibility-link {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.accessibility-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 40px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-tagline {
    font-size: 1.8rem; /* Smaller on mobile */
    white-space: normal; /* Allow wrapping on mobile */
    margin-bottom: 40px;
  }

  .footer-logo-bg {
    right: -25%;
    width: 350px; /* Slightly larger than before on mobile */
    height: 350px;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    max-width: 100%; /* Full width on mobile */
  }
}

/* ================= OTHER SECTIONS (CLEANUP) ================= */
.hero, .intro, .capabilities, .testimonials, .work, .cta {
  padding: 80px clamp(20px, 5vw, 60px);
  max-width: 100%;
}

.showcase-section {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.showcase-image.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE STYLES ================= */

/* Desktop Adjustments */
@media (min-width: 992px) {
  .logo img {
    max-height: 80px;
  }

  .logo.centered-logo {
    transform: translate(-50%, -50%);
  }

  #menu-toggle,
  .hamburger {
    right: 87px;
  }

  .home-welcome .welcome-right {
    flex: 1 1 60%;
    max-width: none;
  }

  .home-welcome .welcome-left {
    flex: 1 1 40%;
  }
}

/* Tablet Styles */
@media (max-width: 900px) {
  .split-hero {
    flex-direction: column;
    padding: 60px 30px;
    gap: 30px;
    align-items: flex-start;  /* ADD THIS for left alignment */
  }

  .hero-left h1 {
    font-size: 4.5rem;
    line-height: 1;
    text-align: left;  /* CHANGED from center */
  }

  .hero-right {
    max-width: 100%;
  }

  .hero-right p {
    font-size: 1rem;
    text-align: left;  /* CHANGED from center */
  }

  .services-container {
    flex-direction: column;
    gap: 80px;
  }

  .services-left {
    position: relative; /* Disable sticky on tablet */
    flex: 1 1 auto;
    max-width: 100%;
    top: auto;
  }

  .service-columns {
    columns: 1;
  }

  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-logo-bg {
    width: 400px;
    height: 400px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Add back overflow-x: hidden only where needed */
  .hero,
  .home-welcome,
  .client-highlights,
  .showcase-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Services section - no overflow hidden to preserve sticky */
  .home-services {
    width: 100%;
    max-width: 100vw;
    padding: 60px 60px 120px 60px;
  }

  .site-header {
    height: 100px;
    padding: 32px 16px;
  }

  .logo.centered-logo {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* HERO SECTION MOBILE FIXES */
  .hero .container,
  .split-hero {
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
  }

  .hero-left,
  .hero-right {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
  }

  .hero-left h1 {
    font-size: 3.2rem;
    line-height: 0.85;
    letter-spacing: 0.5px;
    margin: 20px 0 10px 0;
    padding: 0;
    text-align: left;
    word-break: normal;
    white-space: normal;
    text-transform: uppercase;
  }

  .hero-left h1 span {
    display: inline;
  }

  .hero-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
    padding: 0;
    width: 100%;
    text-align: left;
    color: #cccccc;
  }

  /* Video styling */
  .hero-video-wrapper {
    padding: 0 16px 0 16px;
    margin-top: -15px;
  }

  .hero-video {
    width: 100%;
    height: 40vh;
    max-height: none;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Reduce spacing above welcome section */
  .home-welcome {
    padding: 40px 60px 80px 60px;
  }

  /* WELCOME SECTION MOBILE */
  .welcome-container {
    flex-direction: column;
    padding: 0;
    gap: 30px;
  }

  .welcome-left,
  .welcome-right {
    width: 100%;
    text-align: left;
  }

  .welcome-right p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .welcome-right .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* SERVICES MOBILE - disable sticky on mobile */
  .services-left {
    position: relative;
    top: auto;
    flex: 1 1 auto;
  }

  .service-block h3 {
    font-size: 2.8rem;
    line-height: 0.9;
  }

  /* TESTIMONIALS MOBILE */
  .home-testimonials {
    padding: 80px 20px;
  }

  .testimonial-arrows {
    position: static;
    justify-content: center;
    margin-top: 30px;
  }

  .testimonial-content blockquote {
    font-size: 1.25rem;
    padding-left: 20px;
  }

  .testimonial-content blockquote::before {
    left: -10px;
    font-size: 3rem;
  }

  .pulse-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-pulse .section-intro {
    padding-left: 0;
  }

  .post-content h3 {
    font-size: 2rem;
  }

  /* SHOWCASE CTA MOBILE */
  .showcase-wrapper {
    max-height: 400px;
  }

  .cta-content h2 {
    font-size: 2.5rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* FOOTER MOBILE */
  .site-footer {
    padding: 60px 0 30px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-logo-bg {
    width: 300px;
    height: 300px;
    position: absolute;
    bottom: 0;
    right: 70px; /* ← Shift it left from the edge */
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
  }


  .footer-bottom {
    font-size: 0.8rem;
  }

  .footer-bottom a {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
}


  /* MOBILE ARROWS POSITIONING */
  .custom-arrows {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
  }

  /* Reduce space below arrows on mobile */
  .highlights-slider {
    margin-top: 30px;
  }

  .custom-arrows .prev,
  .custom-arrows .next {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #ed5659;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
  }
}

/* ================= FORCE STICKY HEADER ANIMATION ================= */
header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  transform: translate3d(0, 0, 0) !important;
  transition: transform 0.3s ease !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  -webkit-transition: -webkit-transform 0.3s ease !important;
  will-change: transform !important;
}

header.site-header.hide {
  transform: translate3d(0, -120%, 0) !important;
  -webkit-transform: translate3d(0, -120%, 0) !important;
}

header.site-header.show {
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
}

/* Remove any conflicting styles */
header.site-header.scrolled {
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
}

header.site-header.scrolled.hide {
  transform: translate3d(0, -120%, 0) !important;
  -webkit-transform: translate3d(0, -120%, 0) !important;
}
