/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

:root {
  /* Brand Tokens */
  --theme-brand-primary: #E03C31;
  --theme-brand-primary-hover: #C83228;
  --theme-brand-primary-subtle: #FFF1F0;
  --theme-brand-accent: #0B72E7;
  --theme-brand-accent-subtle: #EBF8FF;

  /* Neutral Spectrum */
  --theme-text-heading: #1A202C;
  --theme-text-body: #4A5568;
  --theme-text-muted: #718096;
  --theme-text-caption: #A0AEC0;

  /* Canvas & Surface */
  --theme-canvas-page: #F8F9FA;
  --theme-canvas-surface: #FFFFFF;
  --theme-canvas-subtle: #F7FAFC;

  /* Structural Borders */
  --theme-border-default: #E2E8F0;
  --theme-border-subtle: #EDF2F7;
  --theme-border-focus: #E03C31;

  /* Elevation Hierarchy */
  --theme-shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --theme-shadow-hover: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --theme-shadow-popover: 0 12px 24px -6px rgba(0, 0, 0, 0.12), 0 6px 12px -3px rgba(0, 0, 0, 0.05);

}

/* Typography Base */
body, button, input, select, textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
  /* Beat Flatsome #custom-css :root primary (cream) for all descendants */
  --fs-color-primary: var(--theme-brand-primary);
  --fs-color-secondary: var(--theme-brand-primary-hover);
  --primary-color: var(--theme-brand-primary);

  background-color: var(--theme-canvas-page) !important;
  color: var(--theme-text-body) !important;
  -webkit-font-smoothing: antialiased;
}

/* —— Rever header main nav —— */
.header-main {
  background-color: var(--theme-canvas-surface);
}

.header-nav-main.nav > li {
  margin: 0 14px; /* Flatsome default is 7px; ~2x spacing */
}

.header-nav-main.nav > li > a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none !important;
  color: var(--theme-text-heading);
  opacity: 1;
  position: relative;
  transition: color 0.15s ease;
}

.header-nav-main.nav > li > a:hover,
.header-nav-main.nav > li:hover > a,
.header-nav-main.nav > li.active > a,
.header-nav-main.nav > li.current-menu-item > a,
.header-nav-main.nav > li.current-menu-ancestor > a {
  color: var(--theme-brand-primary);
}

/* Underline accent (Rever line-bottom) */
.header-nav-main.nav > li > a:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  top: auto;
  width: 0;
  height: 2px;
  background-color: var(--theme-brand-primary);
  transform: translateX(-50%);
  opacity: 1;
  transition: width 0.2s ease;
}

.header-nav-main.nav > li:hover > a:before,
.header-nav-main.nav > li.active > a:before,
.header-nav-main.nav > li.current-menu-item > a:before,
.header-nav-main.nav > li.current-menu-ancestor > a:before {
  width: calc(100% - 1.5em);
}

/* Dropdown */
.header-nav-main .nav-dropdown {
  background: var(--theme-canvas-surface);
  border: 1px solid var(--theme-border-default);
  border-radius: 8px;
  box-shadow: var(--theme-shadow-popover);
  padding: 6px 0;
}

.header-nav-main .nav-dropdown > li > a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px;
  text-transform: none !important;
  color: var(--theme-text-body);
  letter-spacing: 0;
}

.header-nav-main .nav-dropdown > li > a:hover {
  color: var(--theme-brand-primary);
  background: var(--theme-brand-primary-subtle);
}

/* —— Rever mobile side menu —— */
.off-canvas-right .mfp-content,
.off-canvas-left .mfp-content {
  background-color: var(--theme-canvas-surface) !important;
  box-shadow: var(--theme-shadow-popover);
}

.mobile-sidebar .sidebar-menu {
  padding: 16px 0 24px;
}

.mobile-sidebar .nav-sidebar.nav-vertical > li + li {
  border-top-color: var(--theme-border-subtle);
}

.mobile-sidebar .nav-sidebar.nav-vertical > li.menu-item:hover,
.mobile-sidebar .nav-sidebar.nav-vertical > li.menu-item.active {
  background-color: var(--theme-brand-primary-subtle);
}

.mobile-sidebar .nav-sidebar > li > a,
.mobile-sidebar .nav-sidebar .sub-menu a,
.mobile-sidebar .nav-sidebar .children a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none !important;
  color: var(--theme-text-heading);
}

.mobile-sidebar .nav-sidebar .sub-menu a,
.mobile-sidebar .nav-sidebar .children a {
  font-weight: 500 !important;
  font-size: 14px;
  color: var(--theme-text-body);
}

.mobile-sidebar .nav-sidebar > li > a:hover,
.mobile-sidebar .nav-sidebar > li.active > a,
.mobile-sidebar .nav-sidebar > li.current-menu-item > a,
.mobile-sidebar .nav-sidebar .sub-menu a:hover,
.mobile-sidebar .nav-sidebar .children a:hover {
  color: var(--theme-brand-primary);
}

/* Hide search if still present in drawer */
.mobile-sidebar .header-search-form,
.mobile-sidebar .search-form {
  display: none !important;
}

/* —— Rever-style footer (CTA + dark footer) —— */
#footer.footer-wrapper {
  background: transparent;
  padding: 0;
}

/* CTA band (= Rever .s-bg-subcription) */
.klk-footer-cta {
  background: var(--theme-text-heading);
  color: #fff;
  text-align: center;
  padding: 60px 18px;
}

.klk-footer-cta__inner {
  max-width: 920px;
  margin: 0 auto;
}

.klk-footer-cta__heading {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: #fff !important;
  line-height: 1.4;
}

.klk-footer-cta__title {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.67;
  color: rgba(255, 255, 255, 0.9);
}

.klk-footer-cta__btn-wrap {
  display: flex;
  justify-content: center;
}

.klk-footer-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 50px;
  padding: 0 24px;
  background: var(--theme-brand-primary);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.klk-footer-cta__btn:hover {
  background: var(--theme-brand-primary-hover);
  color: #fff !important;
}

/* Dark footer (= Rever #footer) */
.klk-site-footer {
  background: #000111;
  color: #fff;
  width: 100%;
}

.klk-site-footer__inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

@media (min-width: 1176px) {
  .klk-site-footer__inner {
    padding: 0;
  }
}

.klk-ft-row {
  display: flex;
  flex-flow: row nowrap;
  margin: 0;
  padding: 30px 0;
}

.klk-ft-row--info {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.klk-ft-row--bottom {
  align-items: center;
  justify-content: space-between;
}

/* Contact group */
.klk-ft-contact {
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.klk-ft-contact__item {
  width: 20%;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: 10px;
  padding-right: 8px;
  box-sizing: border-box;
}

.klk-ft-contact__icon {
  flex-shrink: 0;
  width: 20px;
  color: #fff;
  line-height: 0;
  margin-top: 2px;
}

.klk-ft-contact__detail {
  min-width: 0;
  flex: 1;
}

.klk-ft-contact__label {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
}

.klk-ft-contact__link {
  margin: 0;
}

.klk-ft-contact__link a {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--theme-brand-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.klk-ft-contact__link a:hover {
  color: #80b8f0;
}

/* Info columns */
.klk-ft-info {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.klk-ft-info > li {
  width: 15%;
  box-sizing: border-box;
}

.klk-ft-info__address {
  width: 40% !important;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.klk-ft-info__logo {
  display: block;
  margin-bottom: 20px;
  line-height: 0;
}

.klk-ft-info__logo img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.klk-ft-info__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.klk-ft-info__company {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.klk-ft-info__address > p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.klk-ft-info__ico {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 0;
}

.klk-ft-info__address a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.klk-ft-info__address a:hover {
  color: #fff;
}

.klk-ft-info__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: default;
}

.klk-ft-info__toggle .klk-ft-chevron {
  display: none;
}

.klk-ft-info__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.klk-ft-info__links li {
  height: 32px;
  line-height: 32px;
}

.klk-ft-info__links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.klk-ft-info__links a:hover {
  color: #fff;
}

/* Bottom bar */
.klk-ft-bottom__left {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.klk-ft-bottom__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.klk-ft-bottom__right > a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.klk-ft-bottom__right > a:hover {
  color: #fff;
}

.klk-ft-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
}

.klk-ft-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.klk-ft-social a:hover {
  color: #fff !important;
  border-color: #fff;
}

/* Tablet */
@media screen and (max-width: 992px) {
  .klk-ft-contact {
    flex-flow: row wrap;
  }

  .klk-ft-contact__item {
    width: 25%;
    margin-bottom: 15px;
  }

  .klk-ft-info {
    flex-flow: row wrap;
  }

  .klk-ft-info > li {
    width: 25%;
    margin-bottom: 15px;
  }

  .klk-ft-info__address {
    order: 5;
    width: 100% !important;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 30px 0 0;
  }

  .klk-ft-info__address > p {
    justify-content: center;
  }

  .klk-ft-row--bottom {
    flex-direction: column;
    align-items: center;
  }

  .klk-ft-bottom__left {
    margin-bottom: 5px;
  }
}

/* Mobile SP */
@media only screen and (max-width: 640px) {
  .klk-footer-cta {
    padding: 40px 18px;
  }

  .klk-footer-cta__heading {
    font-size: 18px;
  }

  .klk-footer-cta__title {
    font-size: 15px;
  }

  .klk-ft-row--info {
    padding-top: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .klk-ft-contact__item {
    width: 50%;
  }

  .klk-ft-info > li {
    width: 100%;
    margin-bottom: 0;
  }

  .klk-ft-info__address {
    margin-top: 0;
    border-top: 0;
    padding: 20px 0;
  }

  .klk-ft-info__toggle {
    height: 50px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
  }

  .klk-ft-info__toggle .klk-ft-chevron {
    display: block;
    transition: transform 0.2s ease;
  }

  .klk-ft-info > li.is-open .klk-ft-info__toggle .klk-ft-chevron {
    transform: rotate(180deg);
  }

  .klk-ft-info__links {
    display: none;
    margin-bottom: 10px;
  }

  .klk-ft-info > li.is-open .klk-ft-info__links {
    display: flex;
  }

  .klk-ft-row--bottom {
    flex-flow: row wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .klk-ft-bottom__left,
  .klk-ft-bottom__right {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .klk-ft-bottom__left {
    margin-bottom: 8px;
  }

  .klk-ft-bottom__right {
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
}