/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Hello Elementor Child Theme
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
*/

/* Navigation Styles (from nav.html) */

.gofo-nav-wrapper {
  position: relative;
  width: 100%;
  z-index: 9999;
  background-color: #ffffff;
}

.gofo-nav-wrapper.gofo-sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gofo-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 15px;
  transition: padding 0.3s ease;
  width: 100%;
}

.gofo-nav-wrapper.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gofo-nav-wrapper.scrolled .gofo-nav-container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.pure-menu {
  background-color: transparent; /* Changed from #ffffff to transparent to inherit from wrapper */
  font-family: 'Poppins', sans-serif;
}

.pure-menu__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pure-menu__item {
  position: relative;
}

.pure-menu__link {
  display: inline-flex;
  align-items: center;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
  color: #161b26;
  text-decoration: none;
  white-space: nowrap;
}

.pure-menu__link:hover {
  color: #000000;
}

.pure-menu__link--dropdown .pure-menu__caret {
  display: inline-block;
  margin-left: 6px;
  width: 10px;
  height: auto;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}

.pure-menu__item--has-dropdown:hover .pure-menu__caret {
  transform: rotate(180deg);
}

.pure-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 0);
  min-width: 180px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.pure-menu__dropdown-item {
  padding: 2px 0;
}

.pure-menu__dropdown-link,
.pure-menu__dropdown-row {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #161b26;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pure-menu__dropdown-link {
  gap: 10px; /* 图标和文字的间距 */
}

.pure-menu__dropdown-link:hover,
.pure-menu__dropdown-link.active,
.pure-menu__dropdown-link.current-menu-item,
.pure-menu__dropdown-row:hover {
  color: #fc4c02 !important;
  background-color: #f8f5f0 !important;
}

.pure-menu__dropdown-inline-link {
  color: inherit !important;
  text-decoration: none;
}

.pure-menu__dropdown-link img,
.pure-menu__dropdown-link svg,
.pure-menu__dropdown-row img,
.pure-menu__dropdown-row svg {
  display: block;
  width: 20px; /* 限制图标宽度，防止过大 */
  height: auto;
  border-radius: 50%; /* 如果是国旗，设为圆形 */
  object-fit: cover;
}

.pure-menu__item--has-dropdown:hover .pure-menu__dropdown,
.pure-menu__item--has-dropdown:focus-within .pure-menu__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  top: 100%;
  transform: translate(-50%, 0);
}

.pure-menu__item--has-dropdown:hover .pure-menu__link--dropdown {
  color: #000000;
}

/* PC Nav Buttons */
.gofo-nav-btn {
  display: inline-block;
  padding: 20px 30px !important;
  border-radius: 50px;
  font-weight: 600;
  line-height: 16px;
  transition: all 0.3s ease;
}

.gofo-nav-btn-track {
  background-color: #fc4c02;
  color: #fff !important;
}

.gofo-nav-btn-quote {
  background-color: #161b26;
  color: #fff !important;
}

.gofo-nav-btn-quote:hover {
  background-color: #000;
  color: #fff !important;
}

/* Global Button Hover Opacity */
.elementor-button:hover,
.gofo-hero-btn:hover,
.track-btn:hover,
.track-btn-new:hover,
.gofo-btn-wrapper:hover,
#tracking-submit-btn:hover,
.view-pod-btn:hover,
.gofo-anim-btn:hover,
.btn-cancel:hover,
.btn-submit:hover {
  opacity: 0.7;
}

/* Button Animations */
.elementor-button.rolling-up .elementor-button-text,
.gofo-hero-btn.rolling-up .gofo-btn-text,
.track-btn.rolling-up .gofo-btn-text,
.track-btn-new.rolling-up .gofo-btn-text,
#tracking-submit-btn.rolling-up .gofo-btn-text,
.gofo-anim-btn.rolling-up .gofo-btn-text,
.view-pod-btn.rolling-up .gofo-btn-text
.btn-cancel.rolling-up .gofo-btn-text,
.btn-submit.rolling-up .gofo-btn-text
{
  animation: gofoRollUp 0.3s ease-in-out forwards;
}
.elementor-button.rolling-down .elementor-button-text,
.gofo-hero-btn.rolling-down .gofo-btn-text,
.track-btn.rolling-down .gofo-btn-text,
.track-btn-new.rolling-down .gofo-btn-text,
#tracking-submit-btn.rolling-down .gofo-btn-text,
.gofo-anim-btn.rolling-down .gofo-btn-text,
.view-pod-btn.rolling-down .gofo-btn-text,
.btn-cancel.rolling-down .gofo-btn-text,
.btn-submit.rolling-down .gofo-btn-text
{
  animation: gofoRollDown 0.3s ease-in-out forwards;
}

/* Nav & Tracking Button Wrapper Styles */
.elementor-button-content-wrapper,
.gofo-nav-btn .gofo-btn-wrapper,
.track-btn .gofo-btn-wrapper,
#tracking-submit-btn .gofo-btn-wrapper,
.view-pod-btn .gofo-btn-wrapper,
.btn-cancel .gofo-btn-wrapper,
.btn-submit .gofo-btn-wrapper {
  display: inline-block;
  overflow: hidden;
  height: 16px; /* Increased to ensure text fits comfortably */
  vertical-align: middle;
  line-height: 16px;
}

.gofo-nav-btn .gofo-btn-text,
.track-btn .gofo-btn-text,
#tracking-submit-btn .gofo-btn-text,
.view-pod-btn .gofo-btn-text,
.btn-cancel .gofo-btn-text,
.btn-submit .gofo-btn-text
 {
  display: block;
}

@keyframes gofoRollUp {
  0% {
    transform: translateY(0);
  }
  49% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes gofoRollDown {
  0% {
    transform: translateY(0);
  }
  49% {
    transform: translateY(100%);
  }
  50% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .elementor-button.rolling-up .elementor-button-text,
  .gofo-hero-btn.rolling-up .gofo-btn-text,
  .track-btn.rolling-up .gofo-btn-text,
  .track-btn-new.rolling-up .gofo-btn-text,
  #tracking-submit-btn.rolling-up .gofo-btn-text,
  .gofo-anim-btn.rolling-up .gofo-btn-text,
  .elementor-button.rolling-down .elementor-button-text,
  .gofo-hero-btn.rolling-down .gofo-btn-text,
  .track-btn.rolling-down .gofo-btn-text,
  .track-btn-new.rolling-down .gofo-btn-text,
  #tracking-submit-btn.rolling-down .gofo-btn-text,
  .gofo-anim-btn.rolling-down .gofo-btn-text {
    animation: none;
  }
}
body {
  background-color: #faf5ed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fix for blurry images during zoom */
img {
  image-rendering: -webkit-optimize-contrast; /* Webkit (Chrome/Safari) */
  image-rendering: crisp-edges;
  backface-visibility: hidden; /* Prevent flickering */
}


/* PC端 Header 占位补偿 (仅在桌面端生效) */
@media (min-width: 1281px) {
  /* Hide Mobile Elements on Desktop */
  .gofo-mobile-controls,
  .gofo-mobile-drawer {
    display: none !important;
  }
}
@media (max-width: 1280px) {
  /* Hide Desktop Menu on Mobile */
  .gofo-desktop-nav {
    display: none !important;
  }
}

/* 文字水平滚动效果 (优化版 - 连贯滚动 + 关闭按钮) */
.gofo-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.gofo-marquee-track {
  color: #ffffff;
  display: flex;
  width: max-content;
  animation-name: gofoMarquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* animation-duration 由行内样式控制 */
}

.gofo-marquee-item {
  flex-shrink: 0;
  padding: 5px 0;
  padding-right: 50px; /* 内容之间的间距 */
  white-space: nowrap;
}

/* 关闭按钮样式 */
.gofo-marquee-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: background-color 0.2s;
}

.gofo-marquee-close:hover {
  color: #000;
  background-color: rgba(255, 255, 255, 0.9);
}

@keyframes gofoMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-25%, 0, 0); /* 移动 1/4 的总宽度（因为复制了4份），实现无缝循环 */
  }
}

/* 静态显示模式 (Scroll = false) */
.gofo-marquee-wrapper.gofo-marquee-static {
  justify-content: center;
}

.gofo-marquee-content-static {
  padding: 10px 40px 10px 20px; /* 右侧留出关闭按钮空间 */
  text-align: center;
  width: 100%;
}

/* Hero Banner Styles */
.gofo-hero-banner-wrapper {
  width: 100%;
  margin: 40px 0px;
}

.gofo-hero-container {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  min-height: 400px;
}

.gofo-hero-col-image {
  flex: 1;
  min-width: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  background-repeat: no-repeat;
  min-height: 300px; /* Ensure visibility on mobile */
}

.gofo-hero-col-text {
  flex: 1;
  min-width: 300px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.gofo-hero-meta {
  margin-bottom: 20px;
}

.gofo-hero-category {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.gofo-hero-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  color: #fff;
}

.gofo-hero-excerpt {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gofo-hero-action .gofo-hero-btn {
  font-size: 16px;
  line-height: 16px;
  display: inline-block;
  padding: 20px 30px;
  background-color: #fff;
  color: #fc4c02;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gofo-hero-action .gofo-btn-wrapper {
  display: inline-block;
  overflow: hidden;
  height: 16px; /* Adjust based on font size */
  vertical-align: middle;
}

.gofo-hero-action .gofo-btn-text {
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gofo-hero-container {
    flex-direction: column;
  }
  .gofo-hero-col-image {
    height: 250px;
    flex: none;
  }
  .gofo-hero-col-text {
    padding: 30px;
  }
  .gofo-hero-title {
    font-size: 28px;
  }
}

/* Navigation Wrapper & Logo */
/* .gofo-nav-wrapper styles moved to top of file */

.gofo-desktop-nav {
  display: flex;
  justify-content: space-between;
  flex: 1;
  align-items: center;
}

.gofo-nav-center {
  margin: 0 auto; 
  gap: 30px;
}

.gofo-nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.gofo-nav-wrapper .logo {
  line-height: 0;
  margin-right: 20px;
}

.gofo-nav-wrapper .logo img {
  height: 25px; /* Adjust based on header height */
  width: auto;
  display: block;
}

/* Responsive Visibility */
@media (min-width: 1281px) {
  .gofo-mobile-controls,
  .gofo-mobile-drawer {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .gofo-desktop-nav {
    display: none;
  }

  /* Mobile/Tablet Nav Styles */
  .gofo-nav-wrapper {
    height: 80px;
    /* justify-content: flex-start; Removed, using container */
    /* position: fixed; Already set globally */
  }

  .gofo-nav-container {
    height: 100%;
    padding: 0 15px !important; /* Force padding on mobile */
  }

  .gofo-nav-wrapper .logo {
    margin-right: 0;
  }

  .gofo-mobile-controls {
    display: flex !important; /* Ensure visibility */
    position: absolute; /* Fixed position */
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
  }
}

/* =========================================
   Mobile Navigation Styles
   ========================================= */

.gofo-mobile-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align right */
  gap: 15px;
  height: 80px;
}

/* Header Track Button */
.gofo-mobile-track-btn {
  display: inline-block;
  background-color: #fc4c02;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}

/* Hamburger Toggle */
.gofo-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.gofo-hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
}

/* Mobile Drawer */
.gofo-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: #faf5ed; /* Match body bg as seen in screenshot */
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.gofo-mobile-drawer.is-open {
  transform: translateX(0);
}

/* Drawer Header */
.gofo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.gofo-drawer-logo img {
  height: 25px;
  width: auto;
}

.gofo-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #333;
}

/* Drawer Content */
.gofo-drawer-content {
  padding: 0px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gofo-mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.gofo-mobile-menu-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gofo-mobile-menu-list li:last-child {
  border-bottom: none;
}

.gofo-mobile-menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  color: #161b26;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

/* Submenu Handling */
.gofo-mobile-menu-list .has-submenu > .submenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
}

.gofo-mobile-menu-list .has-submenu > .submenu-header .submenu-title {
  font-weight: 500;
  font-size: 16px;
}

.gofo-mobile-menu-list .submenu {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 0;
  display: none; /* Hidden by default */
}

.gofo-mobile-menu-list .has-submenu.is-open .submenu {
  display: block;
}

.gofo-mobile-menu-list .has-submenu.is-open .submenu-toggle svg {
  transform: rotate(180deg);
}

/* Language List */
.gofo-mobile-lang-list {
  margin-bottom: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.gofo-mobile-lang-list .lang-item .submenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gofo-mobile-lang-list .lang-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.gofo-mobile-lang-list .submenu {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 0;
  display: none; /* Hidden by default */
}

.gofo-mobile-lang-list .has-submenu.is-open .submenu {
  display: block;
}

.gofo-mobile-lang-list .has-submenu.is-open .submenu-toggle svg {
  transform: rotate(180deg);
}

.gofo-drawer-buttons {
  display: flex;
  gap: 15px;
  padding-bottom: 30px; /* Add some bottom spacing */
}

.gofo-drawer-btn {
  flex: 1;
  text-align: center;
  padding: 15px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}

.gofo-drawer-btn.btn-track {
  background-color: #fc4c02;
  color: #fff;
}

.gofo-drawer-btn.btn-quote {
  background-color: #161b26;
  color: #fff;
}

/* Mobile Language Switcher Styles (Sync with PC) */
.gofo-mobile-lang-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 10px; /* Gap between icon and text */
  padding: 15px 0; /* Match standard menu padding */
  font-size: 16px; /* Match standard menu font size */
  font-weight: 500;
  color: #161b26;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%; /* Full width for mobile */
}

.gofo-mobile-lang-link img {
  width: 20px;
  height: auto;
  border-radius: 50%; /* Circle flags */
  object-fit: cover;
  display: block;
}

.gofo-mobile-lang-link a {
  color: inherit;
  text-decoration: none;
  padding: 0; /* Reset link padding inside */
  display: inline; /* Inline inside flex container */
  font-size: inherit;
  font-weight: inherit;
}

/* Hover state */
/*.gofo-mobile-lang-link:hover,*/
/*.gofo-mobile-lang-link:active {*/
/*  color: #fc4c02;*/
/*}*/

/* Adjust submenu spacing in mobile lang list */
.gofo-mobile-lang-list .submenu li {
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Match standard menu border */
}

.gofo-mobile-lang-list .submenu li:last-child {
  border-bottom: none;
}

.pp-gravity-form .gform_wrapper .pp-gf-select-custom:after {
  content: '' !important;
}
.gform_required_legend {
  display: none;
}

/* Back to Top Button */
#gofo-back-to-top {
  position: fixed;
  right: 38px;
  bottom: 130px;
  width: 50px;
  height: 50px;
  background-color: #fc4c02;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

#gofo-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#gofo-back-to-top:hover {
  background-color: #161b26;
  transform: translateY(-3px);
}

/* Mobile Adjustment for Back to Top */
@media (max-width: 768px) {
  #gofo-back-to-top {
    right: 40px;
    bottom: 110px;
    width: 40px;
    height: 40px;
  }
}

/* Gravity Forms Global Font Family */
body .gform_wrapper,
body .gform_wrapper .gform_body,
body .gform_wrapper .gform_footer,
body .gform_wrapper .gfield_label,
body .gform_wrapper .ginput_complex label,
body .gform_wrapper input,
body .gform_wrapper textarea,
body .gform_wrapper select,
body .gform_wrapper .gform_button,
body .gform_wrapper .gform_page_footer input.button,
body .gform_wrapper .gform_page_footer input[type='submit'] {
  font-family: 'Poppins', sans-serif !important;
}

/* ElementKit Tabs Global Font Family */
.elementskit-tab,
.elementskit-tab *,
.ekit-tab,
.elementskit-tab-title,
.animated.fadeIn,
.elementskit-tab * {
  font-family: 'Poppins', sans-serif !important;
}

/* Override Gravity Forms Checkbox Check Color */
body .gform_wrapper {
  --gf-ctrl-choice-check-color: #ffffff !important;
}
