/*
Theme Name: CME Child Theme
Template: theme
Version: 1.0
*/

body.cme-custom-home {
  --font-baltica: "baltica", serif;
  --font-aktiv: "aktiv-grotesk-ex-hair", "aktiv-grotesk-extended", "Aktiv Grotesk Ex", sans-serif;
}

/* BASE */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

body.cme-custom-home {
  color: #8d969e;
  background: #ffffff;
}

body.cme-custom-home * {
  box-sizing: border-box;
}

/* PAGE OFFSET */
body.cme-custom-home .cme2026-page {
  padding-top: 60px;
}

/* NAV 
body.cme-custom-home .cme2026-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 999999;
  border-bottom: 1px solid #e5e5e5;
  font-family: var(--font-aktiv) !important;
}

body.cme-custom-home .cme2026-nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 22px;
  font-family: var(--font-aktiv) !important;
}*/

@media screen and (max-width: 768px) {

  body.cme-custom-home .cme2026-page {
    padding-top: 52px;
  }

  body.cme-custom-home .cme2026-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100vw !important;
    max-width: 100vw !important;

    z-index: 999999 !important;
    overflow: visible !important;
  }

  body.cme-custom-home .cme2026-nav-inner {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;

    padding: 8px 12px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  body.cme-custom-home .cme2026-logo {
    min-width: 0;
    margin: 0 !important;
  }

  body.cme-custom-home .cme2026-logo img {
    height: 28px !important;
    max-height: 28px !important;
    width: auto !important;
    max-width: 145px !important;
  }

  body.cme-custom-home .cme2026-upload {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 76px !important;
    max-width: none !important;
    padding: 6px 14px !important;

    font-size: 14px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.cme-custom-home .cme2026-toggle {
    display: block !important;
    width: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.cme-custom-home .cme2026-toggle span {
    width: 28px !important;
    height: 3px !important;
    margin: 5px 0 !important;
  }

  body.cme-custom-home .cme2026-menu {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;

    width: 100vw !important;
    max-width: 100vw !important;

    background: #ffffff;
    border-top: 1px solid #dddddd;
    flex-direction: column;
    gap: 0;
    z-index: 999999;
  }

  body.cme-custom-home .cme2026-menu.cme2026-open {
    display: flex !important;
  }
}

body.cme-custom-home .cme2026-logo {
  display: block;
  margin-right: auto;
}

body.cme-custom-home .cme2026-logo img {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  max-width: none !important;
  max-height: 40px !important;
}

/* DESKTOP MENU */
body.cme-custom-home .cme2026-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

body.cme-custom-home .cme2026-menu a {
  color: #111111 !important;
  text-decoration: none !important;
  font-size: 16px;
  transition: color 0.2s ease;
}

body.cme-custom-home .cme2026-menu a:hover,
body.cme-custom-home .cme2026-menu a:focus {
  color: #ff6a5c !important;
  transition: color 0.2s ease;
}

/* UPLOAD BUTTON */
body.cme-custom-home .cme2026-nav a.cme2026-upload,
body.cme-custom-home .cme2026-nav a.cme2026-upload:link,
body.cme-custom-home .cme2026-nav a.cme2026-upload:visited {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ff6a5c !important;
  color: #ffffff !important;
  padding: 8px 22px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  min-width: 88px;
  border: 0 !important;
  box-shadow: none !important;
}

body.cme-custom-home .cme2026-nav a.cme2026-upload:hover,
body.cme-custom-home .cme2026-nav a.cme2026-upload:focus {
  background: #e55a4c !important;
  color: #ffffff !important;
}

/* MOBILE BUTTON */
body.cme-custom-home .cme2026-toggle {
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 5px !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.cme-custom-home .cme2026-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background: #ff6a5c;
  border-radius: 4px;
}

/* TEMP SECTION SPACING */
body.cme-custom-home section {
  padding: 40px 20px;
}

/* FOOTER */
footer {
  display: block !important;
  width: 100% !important;
  background: #1c1c1c !important;
  color: #ffffff !important;
  padding: 40px 20px !important;
  margin: 0 !important;
}

body.cme-custom-home .cme2026-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

body.cme-custom-home .cme2026-footer h3 {
  color: #ffffff !important;
  margin: 0 0 10px !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  font-family: var(--font-baltica) !important;
}

body.cme-custom-home .cme2026-footer p {
  color: #ffffff !important;
  margin: 5px 0 !important;
  font-size: 15px !important;
  letter-spacing: 0.025em !important;
  font-family: var(--font-baltica) !important;
}

body.cme-custom-home .cme2026-footer a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  font-weight:700 !important;
  letter-spacing: 0.05em !important;
  font-family: var(--font-aktiv) !important;
}

body.cme-custom-home .cme2026-footer a:hover {
  color: #cfcfcf !important;
  font-weight:700 !important;
  transition: color 0.2s ease;
}

/* MOBILE */
@media screen and (max-width: 768px) {
  body.cme-custom-home .cme2026-nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
  }
  
  body.cme-custom-home .cme2026-upload {
    padding: 6px 14px !important;
    font-size: 14px !important;
    border-radius: 18px !important;
    width: auto !important;
    max-width: 140px;
    text-align: center;
  }

  body.cme-custom-home .cme2026-logo {
    margin-right: 0;
  }

  body.cme-custom-home .cme2026-logo img {
    height: 34px !important;
    max-height: 34px !important;
  }

  body.cme-custom-home .cme2026-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #dddddd;
    flex-direction: column;
    gap: 0;
    z-index: 999999;
  }

  body.cme-custom-home .cme2026-menu.cme2026-open {
    display: flex !important;
  }

  body.cme-custom-home .cme2026-menu a {
    display: block;
    padding: 15px 22px;
    border-bottom: 1px solid #eeeeee;
  }

  body.cme-custom-home .cme2026-upload {
    padding: 7px 16px !important;
    font-size: 15px !important;
    min-width: auto;
    white-space: nowrap;
  }

  body.cme-custom-home .cme2026-toggle {
    display: block !important;
    justify-self: end;
  }
}

/* FORCE UPLOAD BUTTON */
body.cme-custom-home header.cme2026-nav a.cme2026-upload {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background-color: #ff6a5c !important;
  color: #ffffff !important;

  padding: 8px 20px !important;
  border-radius: 999px !important;

  font-size: 16px !important;
  font-weight: 500 !important;

  text-decoration: none !important;
  line-height: 1 !important;

  border: none !important;
  box-shadow: none !important;

  white-space: nowrap !important;
}

/* HOVER */
body.cme-custom-home header.cme2026-nav a.cme2026-upload:hover {
  background-color: #e55a4c !important;
  color: #ffffff !important;
}

@media screen and (max-width: 768px) {

  body.cme-custom-home .cme2026-nav-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  /* LOGO LEFT */
  body.cme-custom-home .cme2026-logo {
    order: 1;
  }

  /* PANCAKE RIGHT */
  body.cme-custom-home .cme2026-toggle {
    order: 3;
    display: block !important;
    margin-left: 10px;
  }

  /* UPLOAD RIGHT (BEFORE OR AFTER PANCAKE) */
  body.cme-custom-home .cme2026-upload {
    order: 2;
    margin-left: auto; /* THIS is the key */
    padding: 6px 14px !important;
    font-size: 14px !important;
    border-radius: 18px !important;
    white-space: nowrap;
  }

  /* HIDE DESKTOP MENU */
  body.cme-custom-home .cme2026-menu {
    display: none !important;
  }

  body.cme-custom-home .cme2026-menu.cme2026-open {
    display: flex !important;
  }

}

/* hide mobile-only line breaks on desktop */
.mobile-break {
  display: none;
}

/* show on mobile */
@media screen and (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
}