/*!
Theme Name: CeTools
Theme URI: https://cetools.com
Author: Apex Web Studios
Description: Professional custom WordPress theme for CeTools
Version: 1.0.0
*/

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: 'Semplicita';
  src: url('../fonts/SEMPLICITA LIGHT.OTF') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Semplicita';
  src: url('../fonts/SEMPLICITA LIGHT ITALIC.OTF') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Semplicita';
  src: url('../fonts/SEMPLICITA MEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Semplicita';
  src: url('../fonts/SEMPLICITA MEDIUM ITALIC.OTF') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Semplicita';
  src: url('../fonts/SEMPLICITA BOLD.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Semplicita';
  src: url('../fonts/SEMPLICITA BOLD ITALIC.OTF') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Palatino Linotype';
  src: url('../fonts/PalatinoLTStd-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Palatino Linotype';
  src: url('../fonts/PalatinoLTStd-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Palatino Linotype';
  src: url('../fonts/PalatinoLTStd-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../fonts/Helvetica.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../fonts/Helvetica-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ==========================================================================
   Top-bar layout knobs — single source of truth.
   Change these two values and ALL bar/logo dimensions update everywhere
   (inner-page block + @media homepage block + content offsets + nav-panel
   top + backdrop top + max-height).
   ========================================================================== */
:root {
  --cetools-bar-height: 86px;
  --cetools-bar-logo-height: 50px;
}

body {
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #142F6C;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Semplicita", sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 45.303px;
  letter-spacing: 6.7955px;
  text-transform: uppercase;
}

h2 {
  font-size: 25.84px;
  letter-spacing: 5.4264px;
  text-transform: uppercase;
}

h3 {
  font-size: 20px;
  letter-spacing: 4.0677px;
  text-transform: uppercase;
}

h4 {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

p {
  margin: 0;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.8;
}

.cetools-nav-section:hover,
.cetools-hero__link:hover {
  opacity: 1;
}

.cetools-text--small {
  font-size: 11.5px;
  letter-spacing: 1.265px;
}

.cetools-text--uppercase {
  text-transform: uppercase;
}

.cetools-text--capitalize {
  text-transform: capitalize;
}

.cetools-text--center {
  text-align: center;
}

.cetools-text--white {
  color: #FFFFFF;
}

.cetools-text--gray {
  color: #C2C2C2;
}

.cetools-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.cetools-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 493px;
  background-color: #FFFFFF;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cetools-sidebar__main {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.cetools-sidebar__toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  padding: 10px;
  flex-shrink: 0;
}

.cetools-sidebar__brand {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.cetools-nav-panel {
  position: fixed;
  left: 493px;
  top: 0;
  bottom: 0;
  width: 580px;
  background-color: #FFFFFF;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 30px 0;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cetools-nav-panel__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-left: 1px solid #B5B5B5;
  padding: 0 30px;
  gap: 25px;
}

.cetools-nav-panel__sections {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 25px;
}

.cetools-nav-panel__links {
  flex-shrink: 0;
}

.cetools-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.nav-is-open .cetools-nav-panel {
  transform: translateX(0);
}

body.nav-is-open .cetools-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-is-open .cetools-menu-btn__icon--open {
  display: none;
}

body.nav-is-open .cetools-menu-btn__icon--close {
  display: flex;
}

.cetools-content {
  margin-left: 493px;
  width: calc(100% - 493px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border-left: 1px solid #B5B5B5;
  transition: margin-left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cetools-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cetools-container {
  max-width: 1362px;
  margin: 0 auto;
  padding: 0 25px;
  width: 100%;
}

/* ==========================================================================
   Inner-page DESKTOP layout — 125px collapsed sidebar (Figma Variant3).
   Restored from the original design. At ≤ 1024px this is overridden by
   the top-bar @media block below.
   ========================================================================== */

.cetools-inner-page .cetools-sidebar {
  width: 125px;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cetools-inner-page .cetools-content {
  margin-left: 125px;
  width: calc(100% - 125px);
  transition: margin-left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cetools-inner-page .cetools-nav-panel {
  left: 125px;
}

.cetools-inner-page .cetools-menu-btn__text {
  display: none;             /* narrow sidebar fits only the icon */
}

.cetools-inner-page .cetools-sidebar__toggle-wrap {
  justify-content: center;
}

/* Logo: collapsed inner-page sidebar shows the C mark, not the wordmark. */
.cetools-inner-page .cetools-logo__full {
  display: none;
}

.cetools-inner-page .cetools-logo__short {
  display: block;
  max-width: 80px;
}

/* ==========================================================================
   Top-bar Layout — applies to:
   • All pages at ≤ 1024px (mobile + tablet) — overrides desktop sidebars
     for both homepage (493px) and inner pages (125px) into a single 86px
     horizontal top bar. Logo is the full Cetool wordmark, hamburger is
     pinned right, nav-panel drops down from below the bar.
   The .cetools-bar-mode helper class is unmediafied — opt-in for any
   layout that wants the top bar at desktop too (currently unused).
   ========================================================================== */

.cetools-bar-mode .cetools-sidebar {
  width: 100%;
  height: var(--cetools-bar-height);
  bottom: auto;
  transform: none;
  background-color: #FFFFFF;
  border-bottom: 1px solid #B5B5B5;
  z-index: 100;
  transition: none;
}

.cetools-bar-mode .cetools-sidebar__main {
  position: relative;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
}

.cetools-bar-mode .cetools-sidebar__toggle-wrap {
  width: auto;
  height: 100%;
  padding: 0 22px;
  margin-left: auto;
  z-index: 2;
}

.cetools-bar-mode .cetools-sidebar__brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.cetools-bar-mode .cetools-logo {
  pointer-events: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {

/* --- Sidebar becomes the top bar (homepage AND inner pages) ---------- */
.cetools-inner-page .cetools-sidebar,
.cetools-bar-mode .cetools-sidebar {
  width: 100%;
  height: var(--cetools-bar-height);
  bottom: auto;
  transform: none;
  background-color: #FFFFFF;
  border-bottom: 1px solid #B5B5B5;
  z-index: 100;
  transition: none;
}

.cetools-inner-page .cetools-sidebar__main,
.cetools-bar-mode .cetools-sidebar__main {
  position: relative;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Hamburger toggle: pinned top-right, normal flex flow + auto-margin */
.cetools-inner-page .cetools-sidebar__toggle-wrap,
.cetools-bar-mode .cetools-sidebar__toggle-wrap {
  width: auto;
  height: 100%;
  padding: 0 22px;
  margin-left: auto;
  z-index: 2;
}

/* Brand fills the whole bar in absolute positioning so the logo is
   *exactly* centered regardless of the toggle's intrinsic width. */
.cetools-inner-page .cetools-sidebar__brand,
.cetools-bar-mode .cetools-sidebar__brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;       /* let clicks fall through to the toggle */
}

.cetools-inner-page .cetools-logo,
.cetools-bar-mode .cetools-logo {
  pointer-events: auto;       /* re-enable on the logo link only */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * Logo: full "Cetool" wordmark, 70px tall, natural square aspect ratio
 * preserved (no cropping). With a 1:1 source PNG and width:auto, the
 * browser renders 70×70.
 */
.cetools-inner-page .cetools-logo__full,
.cetools-bar-mode .cetools-logo__full {
  display: block;
  height: var(--cetools-bar-logo-height);
  width: auto;
  max-height: var(--cetools-bar-logo-height);
  /* Reserve ~110px on the right for the hamburger; prevents the wide
     wordmark from sliding under the toggle on narrow phones. */
  max-width: calc(100vw - 110px);
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
}

.cetools-inner-page .cetools-logo__short,
.cetools-bar-mode .cetools-logo__short {
  display: none;              /* always hide the C mark — full wordmark on bar */
}

/* No "Menu" text — icon only on the bar */
.cetools-inner-page .cetools-menu-btn__text,
.cetools-bar-mode .cetools-menu-btn__text {
  display: none;
}

/* Page content drops below the top bar */
.cetools-inner-page .cetools-content,
.cetools-bar-mode .cetools-content {
  margin-left: 0;
  margin-top: var(--cetools-bar-height);
  width: 100%;
  border-left: none;
}

/*
 * Nav-panel: drops down from below the bar. Height is AUTO (= content
 * height) with a max-height cap so it scrolls within itself if it would
 * exceed the viewport. The rest of the page stays visible behind the
 * backdrop instead of being covered by a full-screen white panel.
 */
.cetools-inner-page .cetools-nav-panel,
.cetools-bar-mode .cetools-nav-panel {
  top: var(--cetools-bar-height);
  left: 0;
  right: 0;
  bottom: auto;
  height: auto;
  max-height: calc(100vh - var(--cetools-bar-height));
  width: 100%;
  padding: 0;
  border-left: none;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

body.nav-is-open .cetools-inner-page .cetools-nav-panel,
body.nav-is-open .cetools-bar-mode .cetools-nav-panel {
  transform: translateY(0);
}

.cetools-inner-page .cetools-nav-panel__content,
.cetools-bar-mode .cetools-nav-panel__content {
  padding: 0;
  border-left: none;
  gap: 0;
  flex: 0 0 auto;             /* don't stretch — content height only */
}

.cetools-inner-page .cetools-nav-panel__sections,
.cetools-bar-mode .cetools-nav-panel__sections {
  gap: 0;
  flex: 0 0 auto;
}

/* Nav sections become plain text rows (no hover-image overlay on touch).
   Bumped to 70px padding for a more substantial feel. */
.cetools-inner-page .cetools-nav-section,
.cetools-bar-mode .cetools-nav-section {
  flex: 0 0 auto;
  min-height: 0;
  padding: 70px 24px;
  border-bottom: 1px solid #B5B5B5;
  background-color: #FFFFFF;
  align-items: center;
  justify-content: center;
}

.cetools-inner-page .cetools-nav-section__hover-bg,
.cetools-inner-page .cetools-nav-section__hover-overlay,
.cetools-inner-page .cetools-nav-section__bg,
.cetools-inner-page .cetools-nav-section__overlay,
.cetools-bar-mode .cetools-nav-section__hover-bg,
.cetools-bar-mode .cetools-nav-section__hover-overlay,
.cetools-bar-mode .cetools-nav-section__bg,
.cetools-bar-mode .cetools-nav-section__overlay {
  display: none !important;
}

.cetools-inner-page .cetools-nav-section__label,
.cetools-inner-page .cetools-nav-section__title,
.cetools-bar-mode .cetools-nav-section__label,
.cetools-bar-mode .cetools-nav-section__title {
  position: static;
  color: #142F6C;
  transition: none;
  text-align: center;
}

.cetools-inner-page .cetools-nav-section__label,
.cetools-bar-mode .cetools-nav-section__label {
  font-size: 16px;
  letter-spacing: 1.6px;
  margin-bottom: 4px;         /* tight gap between subheading and main heading */
}

/* Backdrop covers below the bar when menu is open */
.cetools-inner-page .cetools-backdrop,
.cetools-bar-mode .cetools-backdrop {
  top: var(--cetools-bar-height);
}

/* 4-link row at bottom of panel — tighter top/bottom for a closer feel
   to the divider above. Each link still has its own padded hit area. */
.cetools-inner-page .cetools-nav-panel__links,
.cetools-bar-mode .cetools-nav-panel__links {
  flex-shrink: 0;
  padding: 14px 16px;          /* reduced from 28px so links sit closer */
}

.cetools-inner-page .cetools-nav-panel__links .cetools-nav-menu,
.cetools-bar-mode .cetools-nav-panel__links .cetools-nav-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cetools-inner-page .cetools-nav-panel__links .cetools-nav-menu li,
.cetools-bar-mode .cetools-nav-panel__links .cetools-nav-menu li {
  display: flex;
}

.cetools-inner-page .cetools-nav-panel__links .cetools-nav-menu a,
.cetools-bar-mode .cetools-nav-panel__links .cetools-nav-menu a {
  font-family: "Semplicita", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #142F6C;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 16px;          /* clickable area around each link */
  display: inline-block;
}

}  /* end @media (max-width: 1024px) — inner-page top-bar block */

/* ==========================================================================
   Apply top bar to homepage at ≤ 1024px (mobile + tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Homepage at mobile/tablet uses the same top-bar layout (mirrors the
     .cetools-inner-page block above). Updated to match: 90px bar, 70px
     full-wordmark logo, taller sections (54px padding), bigger label
     (16px), content-height nav panel with max-height. */
  .cetools-homepage .cetools-sidebar {
    width: 100%;
    height: var(--cetools-bar-height);
    bottom: auto;
    transform: none;
    background-color: #FFFFFF;
    border-bottom: 1px solid #B5B5B5;
    z-index: 100;
    transition: none;
  }
  .cetools-homepage .cetools-sidebar__main {
    position: relative;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  .cetools-homepage .cetools-sidebar__toggle-wrap {
    width: auto;
    height: 100%;
    padding: 0 22px;
    margin-left: auto;
    z-index: 2;
  }
  .cetools-homepage .cetools-sidebar__brand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: none;
  }
  .cetools-homepage .cetools-logo {
    pointer-events: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cetools-homepage .cetools-logo__full {
    display: block;
    height: 50px;
    width: auto;
    max-height: 80px;
    max-width: calc(100vw - 110px);
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
  }
  .cetools-homepage .cetools-logo__short {
    display: none;
  }
  .cetools-homepage .cetools-menu-btn__text {
    display: none;
  }
  .cetools-homepage .cetools-content {
    margin-left: 0;
    margin-top: var(--cetools-bar-height);
    width: 100%;
    border-left: none;
  }
  .cetools-homepage .cetools-nav-panel {
    top: var(--cetools-bar-height);
    left: 0;
    width: 100%;
    bottom: auto;
    height: auto;
    max-height: calc(100vh - var(--cetools-bar-height));
    padding: 0;
    border-left: none;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  }
  body.nav-is-open .cetools-homepage .cetools-nav-panel {
    transform: translateY(0);
  }
  .cetools-homepage .cetools-nav-panel__content {
    padding: 0;
    border-left: none;
    gap: 0;
    flex: 0 0 auto;
  }
  .cetools-homepage .cetools-nav-panel__sections {
    gap: 0;
    flex: 0 0 auto;
  }
  .cetools-homepage .cetools-nav-section {
    flex: 0 0 auto;
    min-height: 0;
    padding: 70px 24px;
    border-bottom: 1px solid #B5B5B5;
    background-color: #FFFFFF;
    align-items: center;
    justify-content: center;
  }
  .cetools-homepage .cetools-nav-section__hover-bg,
  .cetools-homepage .cetools-nav-section__hover-overlay,
  .cetools-homepage .cetools-nav-section__bg,
  .cetools-homepage .cetools-nav-section__overlay {
    display: none !important;
  }
  .cetools-homepage .cetools-nav-section__label,
  .cetools-homepage .cetools-nav-section__title {
    position: static;
    color: #142F6C;
    transition: none;
    text-align: center;
  }
  .cetools-homepage .cetools-nav-section__label {
    font-size: 16px;
    letter-spacing: 1.6px;
    margin-bottom: 4px;
  }
  .cetools-homepage .cetools-backdrop {
    top: var(--cetools-bar-height);
  }
  .cetools-homepage .cetools-nav-panel__links {
    flex-shrink: 0;
    padding: 14px 16px;
  }
  .cetools-homepage .cetools-nav-panel__links .cetools-nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .cetools-homepage .cetools-nav-panel__links .cetools-nav-menu li {
    display: flex;
  }
  .cetools-homepage .cetools-nav-panel__links .cetools-nav-menu a {
    font-family: "Semplicita", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #142F6C;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 16px;
    display: inline-block;
  }

  /* Belt-and-suspenders against horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .cetools-wrapper,
  .cetools-content,
  .cetools-main {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  /*
   * Phones — slightly tighter section padding than tablets but still
   * taller than the original 30px. Labels stay big (15px) so the
   * "Serving / Introducing / Exceeding" stay readable.
   */
  .cetools-inner-page .cetools-nav-section,
  .cetools-homepage .cetools-nav-section {
    padding: 56px 20px;
  }
  .cetools-inner-page .cetools-nav-section__label,
  .cetools-homepage .cetools-nav-section__label {
    font-size: 15px;
    letter-spacing: 1.4px;
    margin-bottom: 4px;
  }

  /*
   * 4-link footer row at the bottom of the panel: 2×2 grid on phones
   * (About Us / Our Products on row 1; Our Services / Contact Us on
   * row 2). Tablets stay on the single horizontal row defined above.
   */
  .cetools-inner-page .cetools-nav-panel__links,
  .cetools-homepage .cetools-nav-panel__links {
    padding: 12px 16px;
  }
  .cetools-inner-page .cetools-nav-panel__links .cetools-nav-menu,
  .cetools-homepage .cetools-nav-panel__links .cetools-nav-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    flex-wrap: nowrap;
  }
  .cetools-inner-page .cetools-nav-panel__links .cetools-nav-menu li,
  .cetools-homepage .cetools-nav-panel__links .cetools-nav-menu li {
    display: flex;
    justify-content: center;
  }
  .cetools-inner-page .cetools-nav-panel__links .cetools-nav-menu a,
  .cetools-homepage .cetools-nav-panel__links .cetools-nav-menu a {
    font-size: 13px;
    letter-spacing: 1.6px;
    padding: 14px 12px;
    text-align: center;
    width: 100%;
  }
}

.cetools-menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.cetools-menu-btn:hover {
  opacity: 0.8;
}

.cetools-menu-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cetools-menu-btn__icon--close {
  display: none;
}

.cetools-menu-btn__text {
  font-family: "Semplicita", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #142F6C;
  text-transform: capitalize;
  letter-spacing: 0.9px;
}

.cetools-logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

/* Desktop (homepage + inner pages): brand area spans the FULL sidebar
   height (overrides toggle-wrap's 125px slot) so its align-items: center
   positions the logo at the sidebar's TRUE vertical center, not the center
   of the smaller area below the toggle. Toggle stays in normal flow on
   top with z-index + pointer-events handling. */
@media (min-width: 1025px) {
  .cetools-sidebar__main {
    position: relative;
  }
  .cetools-sidebar__brand {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .cetools-logo {
    pointer-events: auto;
  }
  .cetools-sidebar__toggle-wrap {
    position: relative;
    z-index: 2;
  }
}

.cetools-logo__full,
.cetools-logo__short {
  display: block;
  height: auto;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

.cetools-logo__full {
  width: 193px;
}

.cetools-logo__short {
  width: 100%;
  max-width: 105px;
}

.cetools-nav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background-color: #FFFFFF;
  border-bottom: 1px solid #B5B5B5;
}

.cetools-nav-section__bg,
.cetools-nav-section__overlay {
  display: none;
}

.cetools-nav-section__label {
  position: relative;
  z-index: 3;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: #142F6C;
  text-transform: capitalize;
  text-align: center;
  letter-spacing: 1.265px;
  margin-bottom: 4.443px;
  transition: color 0.3s ease;
}

.cetools-nav-section__title {
  position: relative;
  z-index: 3;
  font-family: "Semplicita", sans-serif;
  font-size: 19.37px;
  font-weight: 500;
  color: #142F6C;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 4.0677px;
  transition: color 0.3s ease;
}

.cetools-nav-section.is-hovered .cetools-nav-section__label,
.cetools-nav-section.is-hovered .cetools-nav-section__title {
  color: #FFFFFF;
}

/* Mobile + tablet: cancel the white-on-tap flash. Mobile browsers fire
   mouseenter on tap so the JS-driven .is-hovered class kicks in just
   before the page navigates — looks like a white text flicker because
   there's no blue background underneath (the hover-bg layers are hidden
   on mobile). Keep the label + title at the brand blue regardless. */
@media (max-width: 1024px) {
  .cetools-nav-section.is-hovered .cetools-nav-section__label,
  .cetools-nav-section.is-hovered .cetools-nav-section__title {
    color: #142F6C;
  }
}

.cetools-nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.cetools-nav-menu li {
  margin: 0;
  padding: 0;
}

.cetools-nav-menu a {
  font-family: "Semplicita", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #142F6C;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  line-height: 20px;
  display: block;
}

.cetools-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  background-color: #142F6C;
  padding: 45px;
  position: relative;
  overflow: hidden;
}

.cetools-banner--popup-trigger {
  cursor: pointer;
}

.cetools-banner--popup-trigger:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -6px;
}

.cetools-banner__frame {
  position: absolute;
  inset: 15px;                  /* equal on all 4 sides */
  display: flex;
  flex-direction: column;
  z-index: 1;
  pointer-events: none;
}

.cetools-banner__border {
  flex: 1;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
}

.cetools-banner__bottom {
  display: flex;
  align-items: center;
  width: 100%;
  height: 2px;
  overflow: visible;
}

.cetools-banner__line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.cetools-banner__arrow {
  flex-shrink: 0;
  padding: 0 14px;
}

.cetools-banner__arrow img {
  width: 19px;
  height: 15px;
  display: block;
}

.cetools-banner__content {
  position: relative;
  z-index: 2;
}

.cetools-banner__text {
  font-family: "Semplicita", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  text-align: center;
}

.cetools-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 598px;
  overflow: hidden;
}

.cetools-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cetools-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cetools-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 47, 108, 0.3);
  z-index: 10;
  transition: background-color 0.15s ease;
}

.cetools-hero--product-range .cetools-hero__overlay,
.cetools-hero--industrial-standard .cetools-hero__overlay {
  background-color: rgba(20, 47, 108, 0.45);
}

.cetools-hero__content {
  position: absolute;
  inset: 15px;                  /* equal on all 4 sides */
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 11;
  pointer-events: none;
}

.cetools-hero__frame {
  flex: 1;
  width: 100%;
  border: 2px solid #FFFFFF;
  border-bottom: none;
}

.cetools-hero__frame-bottom {
  display: flex;
  align-items: center;
  width: 100%;
  height: 2px;
  overflow: visible;
}

.cetools-hero__line {
  flex: 1;
  height: 2px;
  background: #FFFFFF;
}

.cetools-hero__arrow {
  flex-shrink: 0;
  padding: 0 14px;
}

.cetools-hero__arrow img {
  width: 19px;
  height: 15px;
  display: block;
}

.cetools-hero__text {
  position: relative;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  text-align: center;
  will-change: transform;
}

.cetools-hero__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 499px;
}

.cetools-hero__label {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: #FFFFFF;
  text-transform: capitalize;
  letter-spacing: 1.265px;
}

/* Responsive: match the nav-menu subheading sizes (Serving / Introducing /
   Exceeding) so the hero labels line up with what the menu shows. */
@media (max-width: 1024px) {
  .cetools-hero__label {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .cetools-hero__label {
    font-size: 15px;
  }
}

.cetools-hero__title {
  font-family: "Semplicita", sans-serif;
  font-size: 25.84px;
  font-weight: 500;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 5.4264px;
}

.cetools-hero__reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.cetools-hero__desc {
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #FFFFFF;
  text-transform: capitalize;
  text-align: center;
  padding-top: 15px;
}

.cetools-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-bottom: 1px solid #FFFFFF;
  padding-bottom: 2px;
  font-family: "Semplicita", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  text-transform: capitalize;
  letter-spacing: 1.8px;
  pointer-events: auto;
}

.cetools-hero__link img {
  width: 15px;
  height: 6px;
  display: block;
}

.cetools-hero:hover .cetools-hero__overlay {
  background-color: rgba(20, 47, 108, 0.7);
}

.cetools-hero--product-range:hover .cetools-hero__overlay {
  background-color: rgba(20, 47, 108, 0.8);
}

.cetools-hero--industrial-standard:hover .cetools-hero__overlay {
  background-color: rgba(20, 47, 108, 0.7);
}

/* .cetools-hero__reveal hover state driven by JS initHeroReveal() */

.cetools-about {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #142F6C;
  padding: 96px 0;
}

.cetools-about__container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 25px;
}

.cetools-about__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.cetools-about__intro {
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 24px;
  font-style: italic;
  color: #FFFFFF;
  text-align: center;
  line-height: 39px;
  max-width: 847.893px;
}

.cetools-about__divider {
  width: 111.1px;
  height: 2px;
  background-color: #FFFFFF;
}

.cetools-about__text {
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: #C2C2C2;
  text-align: center;
  line-height: 20px;
  max-width: 683.582px;
}

.cetools-footer {
  border-left: 1px solid #B5B5B5;
}

.cetools-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #B5B5B5;
  min-height: 190px;
  padding: 27px 0;
}

.cetools-footer__column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-right: 1px solid #B5B5B5;
  cursor: pointer;
  text-decoration: none;
}

.cetools-footer__column:last-child {
  border-right: none;
}

.cetools-footer__column:hover .cetools-footer__title {
  transform: translateY(-4px);
}

.cetools-footer__column:hover .cetools-footer__arrow {
  max-height: 20px;
  opacity: 1;
  margin-top: 20px;
}

.cetools-footer__title {
  font-family: "Semplicita", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #142F6C;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2.71px;
  line-height: 15px;
  margin: 0;
  transition: transform 0.15s ease;
}

.cetools-footer__arrow {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.15s ease, opacity 0.15s ease, margin-top 0.15s ease;
}

.cetools-footer__arrow img {
  width: 19px;
  height: 15px;
  display: block;
}

.cetools-footer__copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-bottom: 1px solid #B5B5B5;
}

.cetools-footer__copyright p {
  font-family: "Semplicita", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  text-align: center;
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .cetools-hero {
    height: 450px;
  }
  .cetools-nav-panel {
    left: 0;
    width: 100%;
    padding: 20px 0;
  }
  .cetools-hero__title {
    font-size: 20px;
  }
  .cetools-about {
    padding: 30px 0;
  }
  .cetools-about__intro {
    font-size: 20px;
    line-height: 30px;
  }
  .cetools-about__text {
    font-size: 16px;
  }
  .cetools-footer__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Forminator Forms - Force Outfit font per Figma */
.forminator-ui,
.forminator-custom-form,
.forminator-custom-form *,
.forminator-custom-form input,
.forminator-custom-form textarea,
.forminator-custom-form select,
.forminator-custom-form button,
.forminator-custom-form label,
.forminator-label,
.forminator-input,
.forminator-textarea,
.forminator-select,
.forminator-button,
.forminator-button-submit {
  font-family: 'Outfit', sans-serif !important;
}

/* Popup */
.cetools-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 47, 108, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cetools-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cetools-popup__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  background-color: #142F6C;
  padding: 50px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(16px);
  transition: transform 0.35s ease;
}

.cetools-popup.is-visible .cetools-popup__box {
  transform: translateY(0);
}

.cetools-popup__close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.cetools-popup__close:hover {
  opacity: 1;
}

.cetools-popup__heading {
  font-family: "Semplicita", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
}

.cetools-popup__subtext {
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

.cetools-popup__form {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .cetools-hero {
    height: 350px;
  }
  .cetools-hero__title {
    font-size: 18px;
  }
  .cetools-footer__columns {
    grid-template-columns: 1fr;
    min-height: 0;            /* drop the desktop 190px floor — each column owns its height */
    padding: 0;               /* remove container vertical padding so the per-column padding is the only spacing */
    gap: 0;
  }
  .cetools-footer__column {
    border-right: none;
    border-bottom: 1px solid #B5B5B5;
    padding: 26px 10px;       /* symmetric top+bottom space — every row matches Contact Us */
    min-height: 0;
  }
  .cetools-footer__column:last-child {
    border-bottom: none;
  }
  .cetools-popup__box {
    max-width: 90vw;
    padding: 40px 24px 32px;
  }
}

/* ==========================================================================
   Page Transitions (Barba.js)
   ========================================================================== */

[data-barba="container"] {
  will-change: opacity;
}

.cetools-sidebar,
.cetools-content,
.cetools-nav-panel {
  will-change: width, margin-left, left;
}

/* ==========================================================================
   Logo visibility — single source of truth.
   We always show the full "Cetool" wordmark (logo__full) everywhere.
   The collapsed "C" mark (logo__short) is no longer used in any layout.
   ========================================================================== */
.cetools-logo__short {
  display: none;
}

.cetools-logo__full {
  display: block;
}

/* Footer top border for inner pages */
.cetools-inner-page .cetools-footer {
  border-top: 1px solid #B5B5B5;
}

/* ==========================================================================
   Scroll Reveal Animation - Fade In From Bottom
   ========================================================================== */

/* Initial state - hidden, translated down */
.cetools-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Revealed state */
.cetools-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for sequential reveals */
.cetools-reveal--delay-1 { transition-delay: 0.15s; }
.cetools-reveal--delay-2 { transition-delay: 0.3s; }
.cetools-reveal--delay-3 { transition-delay: 0.45s; }
.cetools-reveal--delay-4 { transition-delay: 0.6s; }
