/*
Theme Name:  AshTech | Divi Child
Template: Divi
Version: 1.2.0
Description: Child theme for Divi 5 with per-page and post-type file management system. Supports automatic file loading, admin file manager, and Divi builder.
Author: AshTech
Author URI: https://ashtech.site/
Text Domain: divi-child
*/

/* ============================================
   PART 1: GLOBAL / LAYOUT
   ============================================ */

/* ============================================
   PAGE FADE-IN (flicker fix)
   ============================================ */

body {
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.done {
  opacity: 1;
}
.et_pb_text_inner ul {
  padding-bottom: 0 !important;
}
.ul-frist-p .et_pb_text_inner p:first-of-type {
  padding-bottom: 15px;
}

.et_pb_text_inner ul {
  list-style: none;
  padding-left: 0;
}

.et_pb_text_inner ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.et_pb_text_inner ul li::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 100%;
  flex-shrink: 0;
  margin-right: 14px;
  margin-top: calc((1.5em - 4px) / 2);
}

@media (max-width: 380px) {
  .social-linkedin .et_pb_blurb_content.et_flex_module .et_pb_main_blurb_image {
    width: fit-content;
  }
  .social-linkedin .et_pb_blurb_content.et_flex_module {
    gap: 0;
  }
}

/* ============================================
   SCROLL FADE ANIMATION
   Usage: add  data-fade="up"  (or down/left/right/fade)
   Optional delay: data-fade-delay="200"
   ============================================ */

[data-fade] {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

[data-fade="up"] {
  transform: translateY(20px);
}
[data-fade="down"] {
  transform: translateY(-20px);
}
[data-fade="left"] {
  transform: translateX(20px);
}
[data-fade="right"] {
  transform: translateX(-20px);
}
[data-fade="fade"] {
  transform: none;
}

[data-fade].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Disable on tablet & mobile (≤ 980px) */
@media (max-width: 980px) {
  [data-fade],
  [data-fade="up"],
  [data-fade="down"],
  [data-fade="left"],
  [data-fade="right"],
  [data-fade="fade"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Disable fade animation inside Divi Visual Builder */
.et-fb [data-fade],
.et-fb [data-fade="up"],
.et-fb [data-fade="down"],
.et-fb [data-fade="left"],
.et-fb [data-fade="right"],
.et-fb [data-fade="fade"] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-fade] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Hero load animation */
.hero-animate {
  animation: heroFadeUp 0.8s ease both;
}

.delay-1 {
  animation-delay: 0ms;
}
.delay-2 {
  animation-delay: 150ms;
}
.delay-3 {
  animation-delay: 300ms;
}
.delay-4 {
  animation-delay: 450ms;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header loads with subtle fade — once, on page load only */
.header-section {
  animation: headerFadeIn 0.6s ease forwards;
}

@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PART 2: HEADER
   ============================================ */

.et_pb_menu__menu.c-menu-text nav.et-menu-nav li {
  padding-left: clamp(22px, 1.823vw, 35px) !important;
  padding-right: clamp(22px, 1.823vw, 35px) !important;
}

/* desktop active / current page */
body .c-menu nav.et-menu-nav li.current-menu-item a {
  color: #15539e !important;
}
/* ── Header — Fixed Position ─────────────────── */
.header-section {
  position: fixed !important;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  min-height: clamp(80px, calc(4.26vw + 38.2px), 120px);
  transition:
    min-height 0.3s ease,
    box-shadow 0.3s ease;
}

.header-section.scrolled {
  min-height: clamp(56px, calc(1.49vw + 41.4px), 70px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

/* Tablet */
@media (max-width: 980px) {
  .header-section {
    min-height: 85px;
  }
  .header-section.scrolled {
    min-height: 70px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header-section {
    min-height: 70px;
  }
  .header-section.scrolled {
    min-height: 60px;
  }
}

.header-section .et_pb_row {
  position: static;
}
.header-section .et_pb_row .et_pb_column {
  position: static;
}
.header-section .et_pb_row .et_pb_column .c-menu {
  position: static;
}
.header-section .et_pb_row .et_pb_column .c-menu .et_pb_menu_inner_container {
  position: static;
}
/* ============================================
   PART 3: MOBILE MENU
   ============================================ */

/* Mobile menu container */
.c-mobile-menu .et_mobile_menu {
  background-color: #001041 !important;
  border-top: 2px solid #15539e !important;
  padding: 8px 0 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu items */
.c-mobile-menu .et_mobile_menu li a {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 14px 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: block !important;
  text-decoration: none !important;
  transition:
    background-color 0.2s ease,
    padding-left 0.2s ease !important;
  border-left: 3px solid transparent !important;
}

/* Mobile hover */
.c-mobile-menu .et_mobile_menu li a:hover {
  background-color: rgba(21, 83, 158, 0.15) !important;
  padding-left: 28px !important;
  border-left-color: #15539e !important;
  opacity: 1 !important;
}

/* Mobile active / current page */
.c-menu .c-mobile-menu .et_mobile_menu li.current-menu-item > a,
.c-mobile-menu .et_mobile_menu li.current_page_item > a,
.c-mobile-menu .et_mobile_menu li.current-menu-ancestor > a {
  background-color: rgba(21, 83, 158, 0.2) !important;
  border-left: 3px solid #15539e !important;
  padding-left: 28px !important;
  color: #ffffff !important;
}

/* Last item — remove bottom border */
.c-mobile-menu .et_mobile_menu li:last-child a {
  border-bottom: none !important;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .c-mobile-menu .et_mobile_menu li a {
    transition: none !important;
  }
}
/* ============================================
  HEADER END
   ============================================ */
/* ============================================
   FOOTER START
   ============================================ */

.c-footer__cookie {
  display: flex;
  align-items: center;
}
.c-footer__cookie,
.c-footer__copyright {
  padding: 0;
  color: #001144;
}
img.c-footer__cookie-icon {
  margin-right: 6px;
}
.c-footer__container.c-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.social-linkedin .et_pb_blurb_content.et_flex_module {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
@media (max-width: 640px) {
  .c-footer__container.c-footer__bottom-inner {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .c-footer__cookie {
    justify-content: center;
    flex-direction: column;
    --vertical-gap: 0 !important;
  }
  .c-footer__cookie .cookies-text {
    text-align: center;
  }
}

/* ============================================
   Footer End
   ============================================ */
/* ============================================
   HOME PAGE START
   ============================================ */
@media screen and (min-width: 981px) {
  .home-ul-1 {
    width: 740px;
  }
}

/* ============================================
   HOME PAGE END
============================================ */
/* ============================================
   CONTACT PAGE START
   ============================================ */
.c-contact-blurb .et_pb_image_wrap img {
  opacity: 1 !important;
}
.c-contact-blurb .et_pb_blurb_content {
  display: flex;
  flex-direction: row;
  column-gap: 25px;
  align-items: center;
}
.c-contact-blurb .et_pb_blurb_content .et_pb_main_blurb_image {
  width: 50px !important;
}
.c-contact-blurb .et_pb_blurb_description p a {
  word-wrap: break-word;
}
a.download-btn {
  width: 225px;
  text-align: center;
}
@media (max-width: 480px) {
  .c-contact-blurb .et_pb_blurb_content {
    column-gap: 0px;
  }
}
@media (max-width: 640px) {
  a.download-btn {
    width: 100%;
    text-align: center;
  }
}
/* ============================================
   CONTACT PAGE END
============================================ */
/* ============================================
   BUTTONS START
   ============================================ */

/* 1. Base style for the primary Divi button */
.et_pb_button.download-btn {
  /* Smooth transitions for shadow, transform, and background color */
  transition:
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.3s ease !important;
}

/* 2. Hover state: Elevates the button and applies a depth shadow */
.et_pb_button.download-btn:hover {
  /* Modern transform: lifts the button 4px up along the Y-axis */
  transform: translateY(-4px) !important;

  /* Technical 3D depth shadow effect */
  box-shadow:
    0 10px 20px rgba(26, 58, 107, 0.3),
    0 6px 6px rgba(0, 0, 0, 0.15) !important;
}

/* 3. Click state (Active): Provides a tactile bounce and push-down feedback */
.et_pb_button.download-btn:active {
  /* Snaps the button down and scales it down slightly for a tactile click feel */
  transform: translateY(-1px) scale(0.97) !important;

  /* Reduces the shadow depth during the click action */
  box-shadow: 0 4px 8px rgba(26, 58, 107, 0.4) !important;
}

/* ============================================
   BUTTONS END
============================================ */
