:root {
  --ftech-container: 1240px;
  --ftech-header-bg: #fff;
  --ftech-header-text: #172033;
  --ftech-accent: #2563eb;
  --ftech-footer-bg: #0b1220;
  --ftech-footer-text: #aeb9c8;
  --ftech-footer-heading: #fff;
}

.ftech-header, .ftech-header *, .ftech-footer, .ftech-footer * { box-sizing: border-box; }
.ftech-header { position: relative; z-index: 9999; width: 100%; color: var(--ftech-header-text); background: var(--ftech-header-bg); border-bottom: 1px solid rgba(127,127,127,.18); box-shadow: 0 4px 20px rgba(15,23,42,.06); }
.ftech-header__inner { width: 100%; max-width: var(--ftech-container); min-height: 78px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.ftech-brand { flex: 0 0 auto; }
.ftech-brand .custom-logo-link, .ftech-brand__text { display: inline-flex; align-items: center; color: var(--ftech-header-text); font-size: 22px; font-weight: 800; text-decoration: none; }
.ftech-brand .custom-logo { display: block; width: auto; height: auto; max-width: 190px; max-height: 58px; }
.ftech-header__navigation { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-left: auto; }
.ftech-primary-nav ul { list-style: none; }
.ftech-menu { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; }
.ftech-menu li { position: relative; margin: 0; padding: 0; }
.ftech-menu > li > a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 10px 13px; color: var(--ftech-header-text); border-radius: 7px; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s; }
.ftech-menu-style-underline .ftech-menu > li > a::before { content: ''; position: absolute; right: 13px; bottom: 5px; left: 13px; height: 2px; background: var(--ftech-accent); transform: scaleX(0); transition: transform .2s; }
.ftech-menu-style-underline .ftech-menu > li:hover > a::before, .ftech-menu-style-underline .ftech-menu > .current-menu-item > a::before, .ftech-menu-style-underline .ftech-menu > .current-menu-ancestor > a::before { transform: scaleX(1); }
.ftech-menu-style-pill .ftech-menu > li:hover > a, .ftech-menu-style-pill .ftech-menu > .current-menu-item > a, .ftech-menu-style-pill .ftech-menu > .current-menu-ancestor > a { color: #fff; background: var(--ftech-accent); }
.ftech-menu-style-minimal .ftech-menu > li:hover > a, .ftech-menu-style-minimal .ftech-menu > .current-menu-item > a, .ftech-menu-style-minimal .ftech-menu > .current-menu-ancestor > a, .ftech-menu-style-underline .ftech-menu > li:hover > a { color: var(--ftech-accent); }
.ftech-menu .sub-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 10; min-width: 230px; margin: 0; padding: 8px; background: var(--ftech-header-bg); border: 1px solid rgba(127,127,127,.2); border-radius: 10px; box-shadow: 0 16px 40px rgba(15,23,42,.14); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, visibility .2s, transform .2s; }
.ftech-menu li:hover > .sub-menu, .ftech-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ftech-menu .sub-menu .sub-menu { top: 0; left: calc(100% + 8px); }
.ftech-menu .sub-menu a { display: block; padding: 10px 12px; color: var(--ftech-header-text); border-radius: 7px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ftech-menu .sub-menu a:hover, .ftech-menu .sub-menu a:focus { color: #fff; background: var(--ftech-accent); }
.ftech-header__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 21px; color: #fff; background: var(--ftech-accent); border-radius: 8px; box-shadow: 0 7px 18px color-mix(in srgb, var(--ftech-accent) 24%, transparent); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s, filter .2s; }
.ftech-header__cta:hover { color: #fff; filter: brightness(.92); transform: translateY(-1px); }
.ftech-layout-centered .ftech-header__inner { justify-content: space-between; }
.ftech-layout-centered .ftech-header__navigation { flex: 1; justify-content: center; margin-left: 0; }
.ftech-nav-toggle, .ftech-submenu-toggle { display: none; }

.ftech-footer { width: 100%; color: var(--ftech-footer-text); background: var(--ftech-footer-bg); }
.ftech-footer__main { padding: 66px 24px 52px; }
.ftech-footer__grid { width: 100%; max-width: var(--ftech-container); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; }
.ftech-footer__logo .custom-logo { display: block; width: auto; height: auto; max-width: 180px; max-height: 58px; padding: 8px 12px; background: #fff; border-radius: 8px; }
.ftech-footer__site-name { color: var(--ftech-footer-heading); font-size: 23px; font-weight: 800; text-decoration: none; }
.ftech-footer__brand p { max-width: 330px; margin: 20px 0; font-size: 15px; line-height: 1.75; }
.ftech-footer__column h2 { position: relative; margin: 4px 0 22px; padding-bottom: 13px; color: var(--ftech-footer-heading); font-size: 17px; }
.ftech-footer__column h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 38px; height: 3px; background: var(--ftech-accent); border-radius: 9px; }
.ftech-footer-menu { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ftech-footer-menu li { margin: 0; list-style: none; }
.ftech-footer-menu a { display: inline-flex; padding: 5px 0; color: var(--ftech-footer-text); font-size: 14px; text-decoration: none; transition: color .2s, transform .2s; }
.ftech-footer-menu a:hover { color: var(--ftech-footer-heading); transform: translateX(3px); }
.ftech-footer-menu .sub-menu { margin: 2px 0 2px 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.16); list-style: none; }
.ftech-footer__contact p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.ftech-footer__contact strong { color: var(--ftech-footer-heading); }
.ftech-footer__contact a { color: var(--ftech-footer-text); text-decoration: none; }
.ftech-footer__contact a:hover { color: var(--ftech-footer-heading); }
.ftech-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.ftech-socials a { padding: 7px 10px; color: var(--ftech-footer-text); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; font-size: 12px; text-decoration: none; }
.ftech-socials a:hover { color: #fff; background: var(--ftech-accent); border-color: var(--ftech-accent); }
.ftech-footer__bottom { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.1); }
.ftech-footer__bottom-inner { width: 100%; max-width: var(--ftech-container); min-height: 68px; margin: 0 auto; padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ftech-footer__bottom p { margin: 0; font-size: 13px; }
.ftech-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.ftech-footer__bottom a { color: var(--ftech-footer-text); font-size: 13px; text-decoration: none; }
.ftech-footer__bottom a:hover { color: var(--ftech-footer-heading); }

@media (max-width: 1024px) {
  .ftech-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 42px 35px; }
}

@media (max-width: 900px) {
  .ftech-header__inner { min-height: 70px; padding: 9px 18px; flex-wrap: wrap; }
  .ftech-brand .custom-logo { max-width: 150px; max-height: 50px; }
  .ftech-nav-toggle { display: block; width: 44px; height: 44px; margin-left: auto; padding: 9px; color: var(--ftech-header-text); background: transparent; border: 1px solid rgba(127,127,127,.3); border-radius: 8px; cursor: pointer; }
  .ftech-nav-toggle > span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s, opacity .2s; }
  .ftech-nav-open .ftech-nav-toggle > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .ftech-nav-open .ftech-nav-toggle > span:nth-of-type(3) { opacity: 0; }
  .ftech-nav-open .ftech-nav-toggle > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .ftech-header__navigation { display: none; width: 100%; margin: 0; padding: 12px 0 10px; flex-direction: column; align-items: stretch; border-top: 1px solid rgba(127,127,127,.18); }
  .ftech-nav-open .ftech-header__navigation { display: flex; }
  .ftech-menu { width: 100%; flex-direction: column; align-items: stretch; }
  .ftech-menu li { width: 100%; }
  .ftech-menu > li > a { width: 100%; padding: 12px 42px 12px 10px; white-space: normal; }
  .ftech-menu .sub-menu, .ftech-menu .sub-menu .sub-menu { position: static; display: none; min-width: 0; margin: 2px 0 5px 12px; padding: 3px 0 3px 12px; background: transparent; border: 0; border-left: 2px solid var(--ftech-accent); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .ftech-menu .ftech-submenu-open > .sub-menu { display: block; }
  .ftech-menu .sub-menu a { white-space: normal; }
  .ftech-submenu-toggle { position: absolute; top: 4px; right: 0; z-index: 2; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; color: var(--ftech-header-text); background: transparent; border: 0; cursor: pointer; }
  .ftech-submenu-toggle span { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .ftech-submenu-open > .ftech-submenu-toggle span { transform: translateY(2px) rotate(225deg); }
  .ftech-header__cta { width: 100%; }
}

@media (max-width: 640px) {
  .ftech-footer__main { padding: 48px 18px 40px; }
  .ftech-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .ftech-footer__bottom-inner { padding: 20px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* Desktop: menu centered between logo and CTA */
@media screen and (min-width: 901px) {
    .ftech-header__navigation {
        flex: 1;
        justify-content: space-between;
        margin-left: 0;
    }

    .ftech-primary-nav {
        margin-left: auto;
        margin-right: auto;
    }

    .ftech-header__cta {
        margin-left: 20px;
    }
}



/* Fix Hello Elementor overriding mobile hamburger color */
@media screen and (max-width: 900px) {

    .ftech-header .ftech-nav-toggle,
    .ftech-header .ftech-nav-toggle:hover,
    .ftech-header .ftech-nav-toggle:focus,
    .ftech-header .ftech-nav-toggle:active {
        color: #ffffff !important;
        background-color: var(--ftech-accent) !important;
        border-color: var(--ftech-accent) !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .ftech-header .ftech-nav-toggle > span:not(.screen-reader-text) {
        background-color: #ffffff !important;
    }
}


/* =========================================
   Footer logo and link color conflict fix
========================================= */

/* Footer text logo */
.ftech-footer .ftech-footer__site-name,
.ftech-footer .ftech-footer__site-name:visited,
.ftech-footer .ftech-footer__site-name:hover,
.ftech-footer .ftech-footer__site-name:focus,
.ftech-footer .ftech-footer__site-name:active {
    color: var(--ftech-footer-heading) !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

/* Uploaded image logo */
.ftech-footer .custom-logo-link,
.ftech-footer .custom-logo-link:hover,
.ftech-footer .custom-logo-link:focus {
    opacity: 1 !important;
    filter: none !important;
    background: transparent !important;
}

/* Footer menu links */
.ftech-footer .ftech-footer-menu a,
.ftech-footer .ftech-footer-menu a:visited {
    color: var(--ftech-footer-text) !important;
}

.ftech-footer .ftech-footer-menu a:hover,
.ftech-footer .ftech-footer-menu a:focus,
.ftech-footer .ftech-footer-menu .current-menu-item > a {
    color: var(--ftech-footer-heading) !important;
}

/* Contact links */
.ftech-footer .ftech-footer__contact a,
.ftech-footer .ftech-footer__contact a:visited {
    color: var(--ftech-footer-text) !important;
}

.ftech-footer .ftech-footer__contact a:hover,
.ftech-footer .ftech-footer__contact a:focus {
    color: var(--ftech-footer-heading) !important;
}

/* Copyright and legal links */
.ftech-footer .ftech-footer__bottom a,
.ftech-footer .ftech-footer__bottom a:visited {
    color: var(--ftech-footer-text) !important;
}

.ftech-footer .ftech-footer__bottom a:hover,
.ftech-footer .ftech-footer__bottom a:focus {
    color: var(--ftech-footer-heading) !important;
}

/* Social buttons */
.ftech-footer .ftech-socials a,
.ftech-footer .ftech-socials a:visited {
    color: var(--ftech-footer-text) !important;
    background: transparent !important;
}

.ftech-footer .ftech-socials a:hover,
.ftech-footer .ftech-socials a:focus {
    color: #ffffff !important;
    background: var(--ftech-accent) !important;
    border-color: var(--ftech-accent) !important;
}


