/**
 * Home Page Styles
 *
 * @package GFX_Theme
 * @since 1.0.0
 */

/* ========================================
   TRANSPARENT HEADER FOR HOME
   ======================================== */

/* Hide header spacer - hero goes full viewport */
.home .gfx-header-spacer,
.page-template-front-page .gfx-header-spacer {
  display: none;
}

/* Hide logo when header is transparent */
.home .gfx-header--transparent .gfx-logo,
.page-template-front-page .gfx-header--transparent .gfx-logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show logo when scrolled */
.home .gfx-header--scrolled .gfx-logo,
.page-template-front-page .gfx-header--scrolled .gfx-logo {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   HERO SECTION - Grid + Rays Design
   ======================================== */

.gfx-hero {
  min-height: auto;
  background: linear-gradient(180deg, #1E88E5 0%, var(--gfx-blue-medium) 100%);
  display: flex;
  align-items: center;
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

/* Grid lines layer */
.gfx-hero-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.035) 30px,
      rgba(255,255,255,0.035) 31px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.035) 30px,
      rgba(255,255,255,0.035) 31px
    );
  background-size: 31px 31px;
  pointer-events: none;
}

/* Subtle rays layer */
.gfx-hero-rays {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gfx-hero-rays::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -200%;
  width: 500%;
  height: 300%;
  background: repeating-linear-gradient(
    120deg,
    transparent 0px,
    transparent 200px,
    rgba(255, 255, 255, 0.015) 200px,
    rgba(255, 255, 255, 0.015) 260px,
    transparent 260px,
    transparent 500px,
    rgba(255, 255, 255, 0.01) 500px,
    rgba(255, 255, 255, 0.01) 540px,
    transparent 540px
  );
  animation: heroRays1 90s linear infinite;
}

.gfx-hero-rays::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -200%;
  width: 500%;
  height: 300%;
  background: repeating-linear-gradient(
    115deg,
    transparent 0px,
    transparent 300px,
    rgba(255, 255, 255, 0.012) 300px,
    rgba(255, 255, 255, 0.012) 380px,
    transparent 380px
  );
  animation: heroRays2 120s linear infinite;
}

@keyframes heroRays1 {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(20%) translateY(-10%); }
}

@keyframes heroRays2 {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(15%) translateY(-7.5%); }
}

/* Subtle glow */
.gfx-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  top: 50%;
  right: 15%;
  transform: translate(50%, -50%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.4; transform: translate(50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(50%, -50%) scale(1.1); }
}

/* Hero Container - wider than default Bootstrap container */
.gfx-hero-container {
  position: relative;
  z-index: 3;
  max-width: 1600px;
  padding-left: 6%;
  padding-right: 6%;
}

/* Hero Row - flexbox layout */
.gfx-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gfx-space-8);
}

/* Content Column - takes ~50% */
.gfx-hero-col-content {
  flex: 0 1 50%;
  max-width: 600px;
}

/* Device Column - takes ~50% */
.gfx-hero-col-device {
  flex: 0 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* iPad device image - positioned to the right of its column */
.gfx-hero-device {
  max-width: 520px;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  pointer-events: none;
}

/* ========================================
   HERO CAROUSEL MORPH (Scale + Blur)
   Pure CSS animation - 6 devices, 18s cycle
   ======================================== */

.gfx-carousel-morph {
  position: relative;
  width: 520px;
  height: 520px;
  margin: 0 auto;
}

.gfx-carousel-morph-item {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  filter: blur(10px);
  animation: gfxMorphCarousel 24s infinite;
}

/* 8 items, 3s each = 24s total cycle */
.gfx-carousel-morph-item:nth-child(1) { animation-delay: 0s; }
.gfx-carousel-morph-item:nth-child(2) { animation-delay: 3s; }
.gfx-carousel-morph-item:nth-child(3) { animation-delay: 6s; }
.gfx-carousel-morph-item:nth-child(4) { animation-delay: 9s; }
.gfx-carousel-morph-item:nth-child(5) { animation-delay: 12s; }
.gfx-carousel-morph-item:nth-child(6) { animation-delay: 15s; }
.gfx-carousel-morph-item:nth-child(7) { animation-delay: 18s; }
.gfx-carousel-morph-item:nth-child(8) { animation-delay: 21s; }

@keyframes gfxMorphCarousel {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
  }
  3% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  10.5% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  12.5%, 100% {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(10px);
  }
}

.gfx-carousel-morph-item img {
  max-width: 500px;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Animated Labels for Morph Carousel */
.gfx-carousel-morph-labels {
  position: relative;
  width: 100%;
  height: 44px;
  margin-top: 1rem;
}

.gfx-carousel-morph-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: gfxLabelFade 24s infinite;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--gfx-white);
}

.gfx-carousel-morph-label i {
  color: var(--gfx-yellow);
}

/* 8 items, 3s each = 24s total cycle */
.gfx-carousel-morph-label:nth-child(1) { animation-delay: 0s; }
.gfx-carousel-morph-label:nth-child(2) { animation-delay: 3s; }
.gfx-carousel-morph-label:nth-child(3) { animation-delay: 6s; }
.gfx-carousel-morph-label:nth-child(4) { animation-delay: 9s; }
.gfx-carousel-morph-label:nth-child(5) { animation-delay: 12s; }
.gfx-carousel-morph-label:nth-child(6) { animation-delay: 15s; }
.gfx-carousel-morph-label:nth-child(7) { animation-delay: 18s; }
.gfx-carousel-morph-label:nth-child(8) { animation-delay: 21s; }

@keyframes gfxLabelFade {
  0% { opacity: 0; }
  2% { opacity: 1; }
  10.5% { opacity: 1; }
  12.5% { opacity: 0; }
  100% { opacity: 0; }
}

.gfx-hero-content {
  max-width: 600px;
  position: relative;
  z-index: 3;
}

/* Logo in hero */
.gfx-hero-logo {
  width: 220px;
  height: auto;
  margin-bottom: 1rem;
}

.gfx-hero-eyebrow {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gfx-yellow);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gfx-hero-title {
  font-size: calc(24px + 3vw);
  font-weight: 700;
  color: var(--gfx-white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  text-shadow: 0px 0px 7px rgba(0, 0, 0, 0.15);
}

.gfx-hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.gfx-hero-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Badge - below CTA */
.gfx-hero-badge {
  display: inline-flex;
  align-items: stretch;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.gfx-hero-badge > i {
  color: #06B6D4;
  font-size: 1rem;
  padding: 0.6rem 0 0.6rem 0.85rem;
  display: flex;
  align-items: center;
}

.gfx-hero-badge > span:first-of-type {
  padding: 0.6rem 0.6rem;
  display: flex;
  align-items: center;
}

/* Warranty section - light accent */
.gfx-hero-badge-warranty {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  color: var(--gfx-white);
}

/* Yellow CTA Button */
.gfx-btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--gfx-space-3) var(--gfx-space-6);
  background: var(--gfx-yellow);
  color: var(--gfx-primary-dark);
  font-weight: var(--gfx-font-semibold);
  font-size: 1rem;
  border-radius: var(--gfx-radius);
  text-decoration: none;
  transition: all var(--gfx-transition);
  border: 2px solid var(--gfx-yellow);
}

.gfx-btn-yellow:hover {
  background: var(--gfx-primary);
  border-color: var(--gfx-primary);
  color: var(--gfx-white);
  transform: translateY(-1px);
  box-shadow: var(--gfx-shadow);
}

/* Decorative accent bar (for trust stats) */
.gfx-hero-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #06B6D4 0%, var(--gfx-blue-dark) 100%);
  z-index: 3;
}

/* ========================================
   TRUST STATS BAR
   ======================================== */

.gfx-trust-stats {
  background: #004F95;
  padding: var(--gfx-space-6) 0;
  position: relative;
}

.gfx-trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gfx-space-4);
}

.gfx-trust-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gfx-space-3);
  padding: var(--gfx-space-2);
}

.gfx-trust-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.gfx-trust-stat-icon i {
  font-size: 1.25rem;
  color: #06B6D4;
}

.gfx-trust-stat-content {
  display: flex;
  flex-direction: column;
}

.gfx-trust-stat-number {
  font-family: var(--gfx-font-heading);
  font-size: var(--gfx-text-2xl);
  font-weight: var(--gfx-font-bold);
  color: var(--gfx-white);
  line-height: 1.1;
}

.gfx-trust-stat-label {
  font-size: var(--gfx-text-sm);
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

/* ========================================
   BRAND LOGOS SECTION - CSS Marquee
   ======================================== */

.gfx-brand-logos {
  padding: var(--gfx-space-10) 0;
  background-color: var(--gfx-white);
  overflow: hidden;
}

.gfx-brand-logos-title {
  text-align: center;
  color: var(--gfx-gray);
  font-size: var(--gfx-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--gfx-space-6);
}

/* Marquee wrapper with fade edges */
.gfx-brand-logos-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Animated track - pauses on hover for better UX */
.gfx-brand-logos-track {
  display: flex;
  align-items: center;
  gap: var(--gfx-space-8);
  width: max-content;
  animation: brandMarquee 60s linear infinite;
}

/* No pause on hover - animation continues */

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

/* Logo item */
.gfx-brand-logo-box {
  flex-shrink: 0;
  padding: var(--gfx-space-3);
}

.gfx-brand-logo-box img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gfx-brand-logo-box:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.gfx-testimonials {
  padding: var(--gfx-space-20) 0;
  background: var(--gfx-white);
}

.gfx-section-subtitle {
  font-size: var(--gfx-text-lg);
  color: var(--gfx-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Carousel Container */
.gfx-testimonials-carousel {
  position: relative;
  overflow: hidden;
  margin-top: var(--gfx-space-12);
  padding: 0 var(--gfx-space-12);
}

.gfx-testimonials-track {
  display: flex;
  gap: var(--gfx-space-6);
  transition: transform 0.3s ease;
  user-select: none;
}

.gfx-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gfx-space-6);
  margin-top: var(--gfx-space-12);
}

.gfx-testimonial-card {
  flex: 0 0 calc((100% - var(--gfx-space-6) * 2) / 3);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  height: 280px;
  background: var(--gfx-white);
  border-radius: var(--gfx-radius-xl);
  padding: var(--gfx-space-6);
  box-shadow: var(--gfx-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--gfx-light);
}

.gfx-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.gfx-testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--gfx-space-3);
  margin-bottom: var(--gfx-space-4);
}

.gfx-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gfx-primary);
  color: var(--gfx-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gfx-font-heading);
  font-size: var(--gfx-text-lg);
  font-weight: var(--gfx-font-bold);
  flex-shrink: 0;
}

.gfx-testimonial-meta {
  flex-grow: 1;
}

.gfx-testimonial-name {
  font-size: var(--gfx-text-base);
  font-weight: var(--gfx-font-bold);
  color: var(--gfx-primary-dark);
  margin: 0;
}

.gfx-testimonial-location {
  font-size: var(--gfx-text-sm);
  color: var(--gfx-gray);
  display: flex;
  align-items: center;
  gap: var(--gfx-space-1);
}

.gfx-testimonial-rating {
  display: flex;
  gap: 2px;
  color: var(--gfx-gold);
  font-size: var(--gfx-text-sm);
}

.gfx-testimonial-text {
  margin: 0;
  border: none;
  padding: 0;
  flex-grow: 1;
  overflow: hidden;
}

.gfx-testimonial-text p {
  font-size: var(--gfx-text-base);
  color: var(--gfx-gray-dark);
  line-height: var(--gfx-leading-relaxed);
  margin: 0;
}

.gfx-testimonial-device {
  display: inline-flex;
  align-items: center;
  gap: var(--gfx-space-2);
  padding: var(--gfx-space-2) var(--gfx-space-3);
  background: var(--gfx-light);
  border-radius: var(--gfx-radius);
  font-size: var(--gfx-text-sm);
  color: var(--gfx-primary-dark);
  font-weight: var(--gfx-font-medium);
}

.gfx-testimonial-device i {
  color: var(--gfx-primary);
}

/* Google Rating Summary */
.gfx-google-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--gfx-space-2);
  margin-top: var(--gfx-space-4);
  padding: var(--gfx-space-3) var(--gfx-space-5);
  background: var(--gfx-white);
  border-radius: var(--gfx-radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gfx-google-icon {
  flex-shrink: 0;
}

.gfx-google-rating-stars {
  display: flex;
  gap: 2px;
  color: #FBBC05;
  font-size: var(--gfx-text-sm);
}

.gfx-google-rating-text {
  font-size: var(--gfx-text-sm);
  color: var(--gfx-gray-dark);
}

.gfx-google-rating-text strong {
  color: var(--gfx-dark);
}

/* Testimonial Badge (Local Guide, etc) */
.gfx-testimonial-badge {
  display: inline-block;
  margin-left: var(--gfx-space-2);
  padding: 2px 8px;
  background: var(--gfx-light);
  border-radius: var(--gfx-radius);
  font-size: var(--gfx-text-xs);
  font-weight: var(--gfx-font-medium);
  color: var(--gfx-primary);
}

/* Testimonial Source */
.gfx-testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: var(--gfx-space-2);
  margin-top: auto;
  padding-top: var(--gfx-space-3);
  border-top: 1px solid var(--gfx-gray-light);
  font-size: var(--gfx-text-xs);
  color: var(--gfx-gray);
}

/* Carousel Navigation Buttons */
.gfx-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gfx-white);
  border: 1px solid var(--gfx-gray-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  color: var(--gfx-dark);
}

.gfx-carousel-btn:hover:not(:disabled) {
  background: var(--gfx-primary);
  color: var(--gfx-white);
  border-color: var(--gfx-primary);
}

.gfx-carousel-btn:disabled {
  cursor: not-allowed;
}

.gfx-carousel-prev {
  left: 0;
}

.gfx-carousel-next {
  right: 0;
}

/* Carousel Dots */
.gfx-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--gfx-space-2);
  margin-top: var(--gfx-space-6);
}

.gfx-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gfx-gray-light);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.gfx-carousel-dot:hover {
  background: var(--gfx-gray);
}

.gfx-carousel-dot.active {
  background: var(--gfx-primary);
  width: 24px;
  border-radius: 5px;
}

/* Testimonials CTA */
.gfx-testimonials-cta {
  margin-top: var(--gfx-space-10);
}

.gfx-testimonials-cta .gfx-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gfx-space-2);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.gfx-faq {
  padding: var(--gfx-space-20) 0;
  background-color: var(--gfx-gray-lightest);
  background-image: radial-gradient(#DFDFDF 1px, transparent 1px);
  background-size: 24px 24px;
}

.gfx-faq-accordion {
  max-width: 800px;
  margin: var(--gfx-space-12) auto 0;
}

.gfx-faq-item {
  background: var(--gfx-white);
  border-radius: var(--gfx-radius-lg);
  margin-bottom: var(--gfx-space-3);
  overflow: hidden;
  box-shadow: var(--gfx-shadow-sm);
  border: 2px solid transparent;
  transition: border-color var(--gfx-transition), box-shadow var(--gfx-transition);
}

.gfx-faq-item:hover {
  border-color: var(--gfx-primary);
  box-shadow: var(--gfx-shadow-md);
}

.gfx-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gfx-space-5) var(--gfx-space-6);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--gfx-text-base);
  font-weight: var(--gfx-font-semibold);
  color: var(--gfx-primary-dark);
  cursor: pointer;
  transition: all var(--gfx-transition);
}

.gfx-faq-question[aria-expanded="true"] {
  background: rgba(var(--gfx-primary-rgb), 0.05);
}

.gfx-faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gfx-light);
  color: var(--gfx-primary);
  flex-shrink: 0;
  transition: all var(--gfx-transition);
}

.gfx-faq-question[aria-expanded="true"] .gfx-faq-icon {
  background: var(--gfx-primary);
  color: var(--gfx-white);
  transform: rotate(45deg);
}

.gfx-faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.gfx-faq-answer[hidden] {
  display: block;
  max-height: 0;
}

.gfx-faq-answer:not([hidden]) {
  max-height: 500px;
}

.gfx-faq-answer-content {
  padding: 0 var(--gfx-space-6) var(--gfx-space-5);
}

.gfx-faq-answer-content p {
  font-size: var(--gfx-text-base);
  color: var(--gfx-gray-dark);
  line-height: var(--gfx-leading-relaxed);
  margin: 0;
}

.gfx-faq-cta {
  margin-top: var(--gfx-space-10);
}

.gfx-faq-cta p {
  color: var(--gfx-gray);
  margin-bottom: var(--gfx-space-4);
}

/* Outline primary button */
.gfx-btn-outline-primary {
  background: transparent;
  border: 2px solid var(--gfx-primary);
  color: var(--gfx-primary);
}

.gfx-btn-outline-primary:hover,
.gfx-btn-outline-primary:focus {
  background: var(--gfx-primary);
  border-color: var(--gfx-primary);
  color: var(--gfx-white);
  transform: translateY(-1px);
  box-shadow: var(--gfx-shadow);
}

/* ========================================
   SERVICES PREVIEW SECTION
   ======================================== */

.gfx-services-preview {
  padding: var(--gfx-space-20) 0;
  background-color: var(--gfx-gray-lightest);
  background-image: radial-gradient(#DFDFDF 1px, transparent 1px);
  background-size: 24px 24px;
}

.gfx-section-header {
  text-align: center;
  margin-bottom: var(--gfx-space-12);
}

.gfx-section-header .gfx-eyebrow {
  margin-bottom: var(--gfx-space-3);
}

.gfx-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--gfx-primary-dark);
  margin-bottom: var(--gfx-space-4);
}

.gfx-section-description {
  font-size: var(--gfx-text-lg);
  color: var(--gfx-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Service card styles are in shared service-cards.css */

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.gfx-how-it-works {
  padding: var(--gfx-space-20) 0;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.gfx-how-it-works::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gfx-how-it-works::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(11, 57, 249, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.gfx-how-it-works .container {
  position: relative;
  z-index: 1;
}

.gfx-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--gfx-space-12);
}

.gfx-step {
  position: relative;
  text-align: center;
  flex: 1;
  max-width: 260px;
}

/* Step Icon - Circular outline */
.gfx-step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--gfx-space-4);
  border: 2px solid var(--gfx-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gfx-gray);
  background: var(--gfx-white);
  position: relative;
  z-index: 2;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.gfx-step:hover .gfx-step-icon {
  border-color: var(--gfx-primary-dark);
  color: var(--gfx-primary-dark);
  animation: wobble 0.5s ease-in-out;
}

@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* Connecting dashed line */
.gfx-step-line {
  position: absolute;
  top: 40px;
  left: calc(50% + 45px);
  width: calc(100% - 90px);
  height: 2px;
  background: transparent;
  z-index: 1;
  border-top: 2px dashed var(--gfx-gray);
  opacity: 0.4;
}

.gfx-step-title {
  font-size: var(--gfx-text-lg);
  font-weight: var(--gfx-font-bold);
  color: var(--gfx-gray-dark);
  margin-bottom: var(--gfx-space-2);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.gfx-step:hover .gfx-step-title {
  color: var(--gfx-primary-dark);
}

.gfx-step-description {
  font-size: var(--gfx-text-sm);
  color: var(--gfx-gray);
  margin-bottom: 0;
  line-height: var(--gfx-leading-relaxed);
}

/* ========================================
   CTA2 SECTION - White background with cross pattern
   ======================================== */

.gfx-cta2 {
  padding: 4rem 0;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle, transparent 20%, #ffffff 20%, #ffffff 80%, transparent 80%, transparent),
    radial-gradient(circle, transparent 20%, #ffffff 20%, #ffffff 80%, transparent 80%, transparent),
    linear-gradient(rgba(0,0,0,0.02) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 2px, transparent 2px);
  background-size: 60px 60px, 60px 60px, 30px 30px, 30px 30px;
  background-position: 0 0, 30px 30px, 0 0, 0 0;
}

.gfx-cta2-content {
  padding-right: 2rem;
}

.gfx-cta2-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gfx-navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gfx-cta2-title-accent {
  color: var(--gfx-blue-dark);
}

.gfx-cta2-description {
  font-size: 1rem;
  color: var(--gfx-gray-medium);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.gfx-cta2-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gfx-cta2-image {
  text-align: center;
}

.gfx-cta2-image img {
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 10px;
}

/* CTA2 Buttons */
.gfx-btn2-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--gfx-space-3) var(--gfx-space-6);
  background: var(--gfx-yellow);
  color: var(--gfx-primary-dark);
  font-weight: var(--gfx-font-semibold);
  font-size: 1rem;
  border-radius: var(--gfx-radius);
  text-decoration: none;
  transition: all var(--gfx-transition);
  border: 2px solid var(--gfx-yellow);
}

.gfx-btn2-primary:hover {
  background: var(--gfx-primary);
  border-color: var(--gfx-primary);
  color: var(--gfx-white);
  transform: translateY(-1px);
  box-shadow: var(--gfx-shadow);
}

.gfx-btn2-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--gfx-space-3) var(--gfx-space-6);
  background: transparent;
  color: var(--gfx-blue-dark);
  font-weight: var(--gfx-font-semibold);
  font-size: 1rem;
  border-radius: var(--gfx-radius);
  text-decoration: none;
  transition: all var(--gfx-transition);
  border: 2px solid var(--gfx-blue-dark);
}

.gfx-btn2-secondary:hover {
  background: var(--gfx-blue-dark);
  color: var(--gfx-white);
  transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Larger screens - more internal padding */
@media (min-width: 1400px) {
  .gfx-hero-container {
    padding-left: 8%;
    padding-right: 8%;
  }
}

/* Large screens - ensure proper proportions */
@media (min-width: 1400px) {
  .gfx-hero-title {
    font-size: 4.5rem;
  }

  .gfx-hero-col-content {
    max-width: 650px;
  }

  .gfx-hero-device {
    max-width: 580px;
  }

  .gfx-hero-logo {
    width: 280px;
  }

  .gfx-hero-eyebrow {
    font-size: 1.35rem;
  }

  .gfx-hero-description {
    font-size: 1.25rem;
  }

  /* Carousel Morph - larger on big screens */
  .gfx-carousel-morph {
    width: 580px;
    height: 580px;
  }

  .gfx-carousel-morph-item img {
    max-width: 560px;
    max-height: 560px;
  }
}

/* Medium-large screens - balance proportions */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .gfx-hero-device {
    max-width: 550px;
  }
}

/* Between tablet and desktop - iPad visible but smaller */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gfx-hero-device {
    max-width: 450px;
  }

  .gfx-hero-col-content {
    max-width: 480px;
  }

  .gfx-hero-title {
    font-size: calc(20px + 2.5vw);
  }

  /* Carousel Morph - adjusted for medium screens */
  .gfx-carousel-morph {
    width: 450px;
    height: 450px;
  }

  .gfx-carousel-morph-item img {
    max-width: 430px;
    max-height: 430px;
  }

  .gfx-carousel-morph-labels {
    margin-top: 0.75rem;
  }

  .gfx-carousel-morph-label {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 991.98px) {
  .gfx-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 6rem 0 4rem;
  }

  .gfx-hero-container {
    padding-left: var(--gfx-space-4);
    padding-right: var(--gfx-space-4);
  }

  .gfx-hero-row {
    flex-direction: column;
    justify-content: center;
  }

  .gfx-hero-col-content {
    flex: none;
    max-width: 100%;
    text-align: center;
  }

  /* Device column is hidden via d-none d-lg-flex in HTML */

  .gfx-hero-content {
    max-width: 100%;
  }

  .gfx-hero-logo {
    width: 220px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .gfx-hero-title {
    font-size: calc(20px + 3vw);
  }

  .gfx-hero-actions {
    justify-content: center;
  }

  .gfx-hero-badge {
    font-size: 0.7rem;
  }

  .gfx-hero-badge > i {
    padding: 0.5rem 0 0.5rem 0.65rem;
    font-size: 0.85rem;
  }

  .gfx-hero-badge > span:first-of-type {
    padding: 0.5rem 0.5rem;
  }

  .gfx-hero-badge-warranty {
    padding: 0.5rem 0.85rem;
  }

  /* CTA2 responsive */
  .gfx-cta2-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 2rem;
  }

  .gfx-cta2-actions {
    justify-content: center;
  }

  .gfx-cta2-image {
    text-align: center;
  }

  .gfx-cta2-image img {
    margin: 0 auto;
  }

  /* How It Works - Single column on tablet */
  .gfx-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .gfx-step {
    flex: none;
    width: 100%;
    max-width: 320px;
    padding-bottom: 40px;
    margin-bottom: 0;
  }

  .gfx-step-line {
    display: none;
  }

  /* Vertical connector lines */
  .gfx-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 40px;
    border-left: 2px dashed var(--gfx-gray);
    opacity: 0.4;
  }

  /* Hide connector on last step */
  .gfx-step:last-child {
    padding-bottom: 0;
  }

  .gfx-step:last-child::after {
    display: none;
  }

  .gfx-step-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  /* Trust Stats - horizontal scroll on tablet */
  .gfx-trust-stats-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--gfx-space-4);
    padding-bottom: var(--gfx-space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gfx-trust-stats-grid::-webkit-scrollbar {
    display: none;
  }

  .gfx-trust-stat {
    flex: 0 0 auto;
    min-width: 160px;
    justify-content: flex-start;
    padding: var(--gfx-space-3);
  }

  /* Brand logos carousel - adjust padding */
  .gfx-brand-logo-box {
    padding: var(--gfx-space-3) var(--gfx-space-4);
  }

  .gfx-brand-logo-box img {
    max-width: 110px;
    max-height: 38px;
  }

  /* Testimonials - Tablet: 2 cards */
  .gfx-testimonials-carousel {
    padding: 0 var(--gfx-space-16);
  }

  .gfx-testimonial-card {
    flex: 0 0 calc((100% - var(--gfx-space-6)) / 2);
  }

  .gfx-testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .gfx-carousel-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767.98px) {
  .gfx-hero-title {
    font-size: calc(18px + 4vw);
  }

  .gfx-hero-logo {
    width: 180px;
  }

  .gfx-cta2-title {
    font-size: 2rem;
  }

  .gfx-cta2-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  .gfx-hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .gfx-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .gfx-hero-actions .gfx-btn-yellow {
    width: auto;
  }

  .gfx-services-preview,
  .gfx-how-it-works {
    padding: var(--gfx-space-12) 0;
  }

  /* How It Works - Single column on mobile */
  .gfx-step {
    max-width: 280px;
    padding-bottom: 32px;
  }

  .gfx-step::after {
    height: 32px;
  }

  .gfx-step:last-child {
    padding-bottom: 0;
  }

  .gfx-step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .gfx-step-title {
    font-size: var(--gfx-text-sm);
  }

  .gfx-how-description {
    font-size: var(--gfx-text-base);
  }

  .gfx-cta-section {
    padding: var(--gfx-space-10) 0;
  }

  /* Trust Stats - single column on mobile */
  .gfx-trust-stats {
    padding: var(--gfx-space-4) 0;
  }

  .gfx-trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gfx-space-2);
  }

  .gfx-trust-stat {
    flex-direction: column;
    text-align: center;
    gap: var(--gfx-space-2);
    padding: var(--gfx-space-2);
  }

  .gfx-trust-stat-icon {
    width: 40px;
    height: 40px;
  }

  .gfx-trust-stat-icon i {
    font-size: 1rem;
  }

  .gfx-trust-stat-number {
    font-size: var(--gfx-text-xl);
  }

  .gfx-trust-stat-label {
    font-size: var(--gfx-text-xs);
  }

  /* Brand logos carousel */
  .gfx-brand-logos {
    padding: var(--gfx-space-6) 0;
  }

  .gfx-brand-logo-box {
    padding: var(--gfx-space-2) var(--gfx-space-3);
  }

  .gfx-brand-logo-box img {
    max-width: 90px;
    max-height: 32px;
  }

  /* Testimonials */
  .gfx-testimonials {
    padding: var(--gfx-space-12) 0;
  }

  .gfx-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .gfx-testimonial-card {
    padding: var(--gfx-space-5);
  }

  .gfx-google-rating {
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--gfx-space-2) var(--gfx-space-4);
  }

  .gfx-testimonial-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gfx-space-1);
  }

  .gfx-testimonials-cta {
    margin-top: var(--gfx-space-6);
  }

  /* Carousel Mobile */
  .gfx-testimonials-carousel {
    padding: 0 var(--gfx-space-10);
  }

  .gfx-testimonial-card {
    flex: 0 0 100%;
    min-width: 280px;
    height: auto;
    min-height: 240px;
  }

  .gfx-carousel-btn {
    width: 36px;
    height: 36px;
  }

  .gfx-carousel-prev {
    left: 0;
  }

  .gfx-carousel-next {
    right: 0;
  }

  /* FAQ */
  .gfx-faq {
    padding: var(--gfx-space-12) 0;
  }

  .gfx-faq-question {
    padding: var(--gfx-space-4);
    font-size: var(--gfx-text-sm);
  }

  .gfx-faq-answer-content {
    padding: 0 var(--gfx-space-4) var(--gfx-space-4);
  }

  .gfx-faq-answer-content p {
    font-size: var(--gfx-text-sm);
  }
}
