/*
Theme Name: Ekko Child
Template: ekko
Theme URI: http://www.ekko-wp.com
Author: Key-Design
Author URI: http://themeforest.net/user/Key-Design
Description: Flexible Multi-Purpose Responsive WordPress Theme
Version: 1.0
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-menu, featured-images, flexible-header, post-formats, sticky-post, translation-ready

/* Below you can write your style */

/* =====================================================
   Madxel custom enhancements — buttons, hovers, hero motion
   ===================================================== */

/* --- Buttons: stronger contrast + microinteractions --- */
.tt_button.tt_primary_button.btn_primary_color {
  background-color: #4B94A9 !important;
  border-color: #4B94A9 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(75,148,169,0.35);
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.tt_button.tt_primary_button.btn_primary_color:hover {
  background-color: #0b2341 !important;
  border-color: #0b2341 !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(11,35,65,0.45);
}

.tt_button.tt_secondary_button.btn_secondary_color {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #0b2341 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.tt_button.tt_secondary_button.btn_secondary_color:hover {
  background-color: #4B94A9 !important;
  border-color: #4B94A9 !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(75,148,169,0.5);
}

/* --- Nav link hover underline sweep --- */
.navbar-nav > li > a {
  position: relative;
}
.navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: #4B94A9;
  transition: width 0.3s ease;
}
.navbar-nav > li > a:hover::after,
.navbar-nav > li.active > a::after {
  width: 100%;
}

/* --- Brand / product image hover: lift + zoom + glow --- */
.vc_single_image-wrapper {
  overflow: hidden;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.vc_single_image-wrapper img {
  transition: transform 0.5s ease, filter 0.5s ease;
}
.vc_single_image-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(11,35,65,0.2);
}
.vc_single_image-wrapper:hover img {
  transform: none;
}

/* --- Feature section image zoom on hover --- */
.featured-image {
  overflow: hidden;
}
.featured-image img {
  transition: transform 0.6s ease;
}
.side-featured-wrapper:hover img {
  transform: none;
}

/* =====================================================
   Hero: punchier Ken Burns zoom + tech grid + light sweep
   ===================================================== */
.madxel-hero-row {
  position: relative;
  overflow: hidden;
  animation: madxelHeroZoom 14s ease-in-out infinite alternate;
}
@keyframes madxelHeroZoom {
  0%   { background-size: 105% !important; }
  100% { background-size: 128% !important; }
}
.madxel-hero-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(115deg, rgba(75,148,169,0.22) 0px, rgba(75,148,169,0.22) 1px, transparent 1px, transparent 54px);
  background-size: 220% 220%;
  animation: madxelGridDrift 10s linear infinite;
  mix-blend-mode: screen;
}
.madxel-hero-row::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 45%;
  height: 140%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.16) 45%, rgba(75,148,169,0.35) 55%, transparent 100%);
  transform: skewX(-18deg);
  animation: madxelHeroSweep 6s ease-in-out infinite;
}
@keyframes madxelHeroSweep {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
.madxel-hero-row > .wpb_column {
  position: static;
}
@keyframes madxelGridDrift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .madxel-hero-row,
  .madxel-hero-row::after,
  .madxel-hero-row::before {
    animation: none !important;
  }
}

/* Hero CTA buttons: separate them with a gap, side-by-side on desktop */
.madxel-hero-buttons .wpb_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Hero background video */
.madxel-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.madxel-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.madxel-hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11,35,65,0.75), rgba(11,35,65,0.85));
}

/* Hero content must stack above the background video overlay */
.madxel-hero-row .vc_custom_heading,
.madxel-hero-row .hero-subtitle,
.madxel-hero-row .vc_empty_space,
.madxel-hero-row > .wpb_column .vc_row.vc_inner {
  position: relative;
  z-index: 1;
}

/* Taller hero on desktop/tablet only — mobile height stays as-is */
@media (min-width: 768px) {
  .madxel-hero-row.vc_custom_1780000000001 {
    padding-top: 320px !important;
    padding-bottom: 220px !important;
  }
}

/* Missing hover for the mismatched primary-shape/secondary-color button combo (CTA + header) */
.tt_button.tt_primary_button.btn_secondary_color {
  box-shadow: 0 4px 16px rgba(11,35,65,0.3);
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s ease, background-color 0.3s ease;
}
#wrapper.btn-hover-2 .tt_button.tt_primary_button.btn_secondary_color:hover,
.tt_button.tt_primary_button.btn_secondary_color:hover {
  background-color: #062038 !important;
  border-color: #062038 !important;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(6,32,56,0.5);
}

/* Brand logos: white card background so dark logos stay legible on navy */
.madxel-brands-row .vc_single_image-wrapper {
  background: #ffffff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* 3D tilt on brand cards: disable the generic lift/zoom for these so only the tilt (JS) applies */
.madxel-brands-row .vc_single_image-wrapper {
  transform-style: preserve-3d;
}
.madxel-brands-row .vc_single_image-wrapper:hover {
  transform: none;
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}
.madxel-brands-row .vc_single_image-wrapper:hover img {
  transform: none;
  filter: none;
}

/* CTA contact form: white card so labels/fields stay legible on the teal background */
.madxel-cta-form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px !important;
  max-width: 640px;
  margin: 0 auto !important;
  float: none !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Remove default trailing whitespace before the footer on full-bleed sections */
#primary.content-area {
  padding-bottom: 0 !important;
}

/* Sticky feature-tabs bar: navy background for contrast against surrounding white sections */
.feature-sections-wrapper .feature-sections-tabs {
  background: #0b2341 !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}
.feature-sections-wrapper .feature-sections-tabs .nav-tabs a {
  color: rgba(255,255,255,0.7) !important;
}
.feature-sections-wrapper .feature-sections-tabs .nav-tabs a:hover {
  color: #ffffff !important;
  border-bottom-color: rgba(75,148,169,0.6) !important;
}
.feature-sections-wrapper .feature-sections-tabs .nav-tabs li.active a {
  color: #ffffff !important;
  border-bottom: 3px solid #4b94a9 !important;
}

/* Thin brand-blue border on the organic-shaped feature images, following the same curve */
.feature-sections-wrapper .featured-image img {
  border: 3px solid #4b94a9;
  box-sizing: border-box;
}

/* Text-only brand/service chips for catalog entries without a logo file */
.madxel-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.madxel-brand-chip {
  display: inline-block;
  background: #ffffff;
  color: #0b2341;
  border: 1px solid #dde3e7;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
a.madxel-brand-chip:hover {
  background: #4b94a9;
  color: #ffffff;
  border-color: #4b94a9;
  transform: translateY(-2px);
}
