/* ================================================================
   CUBED Interior Projects — Mega Navigation
   File:    css/nav-mega.css
   Replaces: .cd-header desktop + mobile blocks on all pages
   ================================================================ */


/* ── Scoped reset ──────────────────────────────────────────── */
.nmh-header,
.nmh-header *,
.nmh-header *::before,
.nmh-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ── Header shell ──────────────────────────────────────────── */
/*    position:absolute keeps the same behaviour as the old
      .cd-header — it floats over the hero slider            */
.nmh-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: #ffffff;
  border-bottom: 3px solid #cf4842;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nmh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 140px;
  gap: 20px;
}


/* ── Logo ──────────────────────────────────────────────────── */
.nmh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nmh-logo img {
  height: 100px;
  width: auto;
  display: block;
}


/* ── Desktop nav (visible ≥ 1101px) ───────────────────────── */
.nmh-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
  list-style: none;
}

.nmh-nav > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 140px;
}

.nmh-nav > li > a,
.nmh-nav > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  height: auto;        /* sits naturally around text, not full li height */
  padding: 6px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;    /* explicit value locks <a> and <button> to same baseline */
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #4d4a49;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.nmh-nav > li > a:hover,
.nmh-nav > li > button:hover,
.nmh-nav > li > button.nmh-open {
  color: #cf4842;
  border-bottom-color: #cf4842;
}

/* Active page indicator */
.nmh-nav > li.nmh-active > a,
.nmh-nav > li.nmh-active > button {
  color: #cf4842;
  border-bottom-color: #cf4842;
}

/* Dropdown arrow */
.nmh-arrow {
  font-size: 8px;
  display: inline-block;
  transition: transform 0.2s;
  line-height: 1;
}

.nmh-nav > li > button.nmh-open .nmh-arrow {
  transform: rotate(180deg);
}


/* ── Desktop right: phone + CTA ────────────────────────────── */
.nmh-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nmh-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
}

.nmh-phone-label {
  font-size: 8.5px;
  color: #aaaaaa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nmh-phone-num {
  font-size: 14px;
  font-weight: 700;
  color: #4d4a49;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}

.nmh-phone-num:hover {
  color: #cf4842;
}

.nmh-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #cf4842;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s;
  flex-shrink: 0;
}

.nmh-cta:hover {
  background: #b33c37;
}


/* ── Mega menu dropdown ─────────────────────────────────────── */
.nmh-mega {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-top: 3px solid #cf4842;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.13);
  z-index: 300;
}

.nmh-mega.nmh-open {
  display: flex;
}

/* Columns */
.nmh-mega-col {
  flex: 1;
  padding: 26px 22px;
  border-right: 1px solid #f0f0f0;
}

.nmh-mega-col:last-child {
  border-right: none;
}

.nmh-mega-head {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cf4842;
  margin-bottom: 13px;
  padding-bottom: 9px;
  border-bottom: 2px solid #f0f0f0;
}

.nmh-mega-head.nmh-blue {
  color: #43c7e7;
}

.nmh-mega-list {
  list-style: none;
}

.nmh-mega-list li {
  margin-bottom: 1px;
}

.nmh-mega-list a {
  display: block;
  font-size: 11px;
  color: #4d4a49;
  text-decoration: none;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: color 0.14s, border-color 0.14s, padding-left 0.14s;
}

.nmh-mega-list a:hover {
  color: #cf4842;
  border-left-color: #cf4842;
  padding-left: 14px;
}

/* Hub link (bold, coloured) */
.nmh-mega-list a.nmh-hub {
  font-weight: 700;
  color: #cf4842;
}

.nmh-mega-list a.nmh-hub:hover {
  color: #b33c37;
}

/* Glass column overrides */
.nmh-mega-col.nmh-glass .nmh-mega-list a:hover {
  color: #2bb5d0;
  border-left-color: #43c7e7;
}

.nmh-mega-col.nmh-glass .nmh-mega-list a.nmh-hub {
  color: #43c7e7;
}

.nmh-mega-col.nmh-glass .nmh-mega-list a.nmh-hub:hover {
  color: #2bb5d0;
}

/* Divider inside list */
.nmh-mega-divider {
  height: 1px;
  background: #f5f5f5;
  margin: 7px 0;
}


/* ── Hamburger button (hidden on desktop) ───────────────────── */
.nmh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nmh-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #4d4a49;
  border-radius: 1px;
  transition: transform 0.28s, opacity 0.28s;
}

.nmh-burger.nmh-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nmh-burger.nmh-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nmh-burger.nmh-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── Tablet / mobile slide-down panel ───────────────────────── */
.nmh-panel {
  display: none;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.nmh-panel.nmh-open {
  max-height: 1200px;
}

.nmh-panel-list {
  list-style: none;
  border-top: 1px solid #f0f0f0;
}

.nmh-panel-list > li > a,
.nmh-panel-list > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #4d4a49;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nmh-panel-list > li > a:hover,
.nmh-panel-list > li > button:hover {
  background: #fef8f8;
  color: #cf4842;
}

/* Accordion toggle arrow */
.nmh-panel-arrow {
  font-size: 9px;
  display: inline-block;
  transition: transform 0.25s;
}

.nmh-panel-arrow.nmh-open {
  transform: rotate(180deg);
}

/* Accordion content */
.nmh-accordion {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease;
}

.nmh-accordion.nmh-open {
  max-height: 900px;
}

.nmh-accordion-inner {
  background: #fafaf9;
  padding: 14px 18px 8px;
}

/* Section headings inside accordion */
.nmh-accordion-head {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cf4842;
  margin: 12px 0 8px;
}

.nmh-accordion-head:first-child {
  margin-top: 0;
}

.nmh-accordion-head.nmh-blue {
  color: #43c7e7;
}

/* Links inside accordion */
.nmh-accordion-links {
  list-style: none;
  margin-bottom: 4px;
}

.nmh-accordion-links li a {
  display: block;
  padding: 8px 0 8px 10px;
  font-size: 11.5px;
  color: #4d4a49;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.15s;
}

.nmh-accordion-links li a:hover {
  color: #cf4842;
}

/* Phone + CTA stacked at bottom of panel */
.nmh-panel-bottom {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
  background: #ffffff;
}

.nmh-panel-cta {
  display: block;
  background: #cf4842;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s;
}

.nmh-panel-cta:hover {
  background: #b33c37;
}

.nmh-panel-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nmh-panel-phone a {
  font-size: 13px;
  font-weight: 700;
  color: #4d4a49;
  text-decoration: none;
  transition: color 0.15s;
}

.nmh-panel-phone a:hover {
  color: #cf4842;
}

.nmh-panel-phone-icon {
  color: #cf4842;
  font-size: 12px;
}


/* ── CUBED Glass blue variant (body.blue-menu) ──────────────── */
/*    Applied to the 7 glass pages which have class="blue-menu"
      on their <body> tag                                        */

body.blue-menu .nmh-header {
  border-bottom-color: #43c7e7;
}

body.blue-menu .nmh-nav > li > a:hover,
body.blue-menu .nmh-nav > li > button:hover,
body.blue-menu .nmh-nav > li > button.nmh-open,
body.blue-menu .nmh-nav > li.nmh-active > a,
body.blue-menu .nmh-nav > li.nmh-active > button {
  color: #43c7e7;
  border-bottom-color: #43c7e7;
}

body.blue-menu .nmh-mega {
  border-top-color: #43c7e7;
}

body.blue-menu .nmh-mega-head {
  color: #43c7e7;
}

body.blue-menu .nmh-mega-list a:hover {
  color: #2bb5d0;
  border-left-color: #43c7e7;
}

body.blue-menu .nmh-mega-list a.nmh-hub {
  color: #43c7e7;
}

body.blue-menu .nmh-cta {
  background: #43c7e7;
}

body.blue-menu .nmh-cta:hover {
  background: #2bb5d0;
}

body.blue-menu .nmh-phone-num:hover {
  color: #43c7e7;
}

body.blue-menu .nmh-panel-cta {
  background: #43c7e7;
}

body.blue-menu .nmh-panel-cta:hover {
  background: #2bb5d0;
}

body.blue-menu .nmh-accordion-head {
  color: #43c7e7;
}

body.blue-menu .nmh-panel-phone-icon {
  color: #43c7e7;
}

body.blue-menu .nmh-panel-phone a:hover {
  color: #43c7e7;
}

body.blue-menu .nmh-panel-list > li > a:hover,
body.blue-menu .nmh-panel-list > li > button:hover {
  color: #43c7e7;
  background: #f0fbfd;
}


/* ── Responsive breakpoints ─────────────────────────────────── */

/* Tablet & mobile: hide desktop nav, show hamburger */
@media (max-width: 1100px) {
  .nmh-nav,
  .nmh-right {
    display: none;
  }

  .nmh-burger {
    display: flex;
  }

  .nmh-inner {
    height: 80px;
    gap: 12px;
  }

  .nmh-logo img {
    height: 60px;
  }

  .nmh-panel {
    display: block;
  }
}

/* Desktop: hide panel */
@media (min-width: 1101px) {
  .nmh-panel {
    display: none !important;
  }
}


/* ── Hero slider offset fix ─────────────────────────────────── */
/*    Overrides the top values set in style.css for all screen
      sizes so the hero image sits flush below the new header.
      Desktop header = 140px + 3px border = 143px
      Mobile/tablet header = 80px + 3px border = 83px          */

@media only screen and (max-width: 1100px) {
  .cd-hero-slider li {
    top: 83px;
  }
}

@media only screen and (min-width: 1101px) {
  .cd-hero-slider li {
    top: 143px;
  }
}

/*
   ── Logo note ────────────────────────────────────────────────
   The logo PNG (images/logo.png) has extra white space below
   the "Interior Projects Ltd" text. Trim the image in Photoshop
   or similar — crop tight to the bottom of the text.
   This keeps the header at its intended 140px height on desktop.
   If you cannot edit the image, reduce the value below instead:

   .nmh-logo img { height: 80px; }
*/