/**
 * MASCO NAVIGATION STYLES
 * Loaded on ALL pages
 */

.site-nav {
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 16px rgba(58,3,45,0.10);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.nav-links {
  display: flex; align-items: center; gap: 0; list-style: none;
  height: 68px; flex: 1; justify-content: center;
}
.nav-item {
  position: relative; height: 100%;
  display: flex; align-items: center;
}
.nav-item:hover > .mega-menu { display: flex; }

.nav-trigger {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 0 16px;
  height: 100%; display: flex; align-items: center; gap: 5px;
  transition: color .15s; position: relative; cursor: pointer;
  white-space: nowrap; background: none; border: none;
}
.nav-trigger::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.nav-item:hover > .nav-trigger::after { transform: scaleX(1); }
.nav-trigger svg {
  width: 11px; height: 11px; stroke: currentColor; fill: none;
  stroke-width: 2.2; transition: transform .18s; flex-shrink: 0;
}
.nav-item:hover .nav-trigger svg { transform: rotate(180deg); }

.nav-simple {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 0 16px;
  height: 100%; display: flex; align-items: center;
  transition: color .15s; position: relative;
}
.nav-simple::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.nav-simple:hover::after { transform: scaleX(1); }

.nav-cta-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-login {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  text-decoration: none; padding: 9px 18px; transition: all .15s;
  border: 1.5px solid;
}
.nav-cta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.2px; padding: 10px 22px;
  background: var(--yellow); color: var(--text-dark); text-decoration: none;
  transition: background .15s; display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: var(--yellow-dk); }

.site-nav.nav--dark {
  background: var(--bg-hero);
  border-bottom: 1px solid rgba(184,148,192,0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.site-nav.nav--dark .nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px; font-weight: 800;
  color: #FFFFFF; text-decoration: none; letter-spacing: -0.03em; flex-shrink: 0;
}
.site-nav.nav--dark .nav-logo span { color: var(--yellow); }
.site-nav.nav--dark .nav-trigger { color: rgba(255,255,255,0.82); }
.site-nav.nav--dark .nav-item:hover > .nav-trigger { color: #FFFFFF; }
.site-nav.nav--dark .nav-simple { color: rgba(255,255,255,0.75); }
.site-nav.nav--dark .nav-simple:hover { color: #FFFFFF; }
.site-nav.nav--dark .nav-login {
  color: rgba(255,255,255,0.80);
  border-color: rgba(184,148,192,0.35);
}
.site-nav.nav--dark .nav-login:hover {
  background: rgba(184,148,192,0.12);
  border-color: #b894c0;
  color: #FFFFFF;
}

/* ── Mega Menus ── */
.mega-menu {
  display: none;
  position: absolute; top: 68px; left: 50%; transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid #e8ddf0;
  border-top: 3px solid var(--yellow);
  box-shadow: 0 20px 56px rgba(58,3,45,0.20);
  z-index: 300;
  animation: megaIn .14s ease;
  flex-direction: column;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-features { min-width: 680px; }
.mega-features-inner { display: grid; grid-template-columns: 1fr 1fr; }
.mega-col { padding: 24px 28px; }
.mega-col:first-child { border-right: 1px solid #e8ddf0; }
.mega-col-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid #e8ddf0;
}
.mega-feat-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #f0ebf8; text-decoration: none;
}
.mega-feat-item:last-child { border-bottom: none; }
.mega-feat-item:hover .mega-feat-name { color: var(--rose-deep); }
.mega-feat-item:hover .mega-feat-icon { background: var(--yellow); }
.mega-feat-icon {
  width: 34px; height: 34px; background: #EEEEEE; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: background .12s;
}
.mega-feat-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 1px;
  transition: color .12s; line-height: 1.3;
}
.mega-feat-desc { font-size: 12px; color: #5a2a60; line-height: 1.45; }

.mega-industries { min-width: 820px; }
.mega-industries-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.mega-ind-col { padding: 20px 22px; }
.mega-ind-col:not(:last-child) { border-right: 1px solid #e8ddf0; }
.mega-ind-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #f0ebf8;
  text-decoration: none; transition: all .12s;
}
.mega-ind-item:last-child { border-bottom: none; }
.mega-ind-item:hover .mega-ind-name { color: var(--rose-deep); }
.mega-ind-item:hover .mega-ind-dot { background: var(--yellow); transform: scale(1.4); }
.mega-ind-dot {
  width: 5px; height: 5px; background: var(--rose-light); flex-shrink: 0;
  transition: all .12s;
}
.mega-ind-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--text-dark); transition: color .12s; line-height: 1.3;
}
.mega-ind-item.ind-all .mega-ind-dot { background: var(--yellow); }
.mega-ind-item.ind-all .mega-ind-name { color: var(--rose-deep); font-weight: 700; }
.mega-ind-item.ind-all:hover .mega-ind-name { color: var(--text-dark); }

.mega-solutions { min-width: 860px; left: auto; right: -20px; transform: none; }
.mega-roles { min-width: 560px; left: 0; }
.mega-roles-inner { display: grid; grid-template-columns: 1fr 1fr; }
@keyframes megaInRight {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mega-solutions { animation: megaInRight .14s ease; }
.mega-roles { animation: megaIn .14s ease; }
.mega-solutions-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.mega-sol-col { padding: 20px 22px; }
.mega-sol-col:not(:last-child) { border-right: 1px solid #e8ddf0; }
.mega-sol-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #e8ddf0;
}
.mega-sol-item {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 6px 0; border-bottom: 1px solid #f0ebf8;
  text-decoration: none; transition: all .12s;
}
.mega-sol-item:last-child { border-bottom: none; }
.mega-sol-item:hover .mega-sol-name { color: var(--rose-deep); }
.mega-sol-item:hover .mega-sol-arrow { color: var(--yellow); }
.mega-sol-arrow {
  font-size: 12px; flex-shrink: 0; margin-top: 2px;
  color: var(--rose-light); transition: color .12s;
}
.mega-sol-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-dark); line-height: 1.35; transition: color .12s;
}
.mega-sol-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rose-deep); background: var(--rose-light);
  padding: 1px 5px; margin-left: 5px;
  display: inline-block; vertical-align: middle;
}
.mega-sol-item.sol-all .mega-sol-arrow { color: var(--yellow); }
.mega-sol-item.sol-all .mega-sol-name { color: var(--rose-deep); font-weight: 700; }
.mega-sol-item.sol-all {
  border-top: 1px solid #e8ddf0;
  margin-top: 6px; padding-top: 10px;
  border-bottom: none;
}

.mega-templates { min-width: 600px; }
.mega-templates-inner { display: grid; grid-template-columns: 1fr 1fr; }
.mega-tpl-col { padding: 20px 24px; }
.mega-tpl-col:first-child { border-right: 1px solid #e8ddf0; }
.mega-tpl-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #e8ddf0;
}
.mega-tpl-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #f0ebf8;
  text-decoration: none; transition: all .12s;
}
.mega-tpl-item:last-child { border-bottom: none; }
.mega-tpl-item:hover .mega-tpl-name { color: var(--rose-deep); }
.mega-tpl-item:hover .mega-tpl-icon { background: var(--yellow); }
.mega-tpl-icon {
  width: 28px; height: 28px; background: #EEEEEE; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background .12s;
}
.mega-tpl-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--text-dark); transition: color .12s;
}
.mega-tpl-count {
  font-size: 11px; color: var(--rose-mid);
  margin-left: auto; white-space: nowrap;
}
.mega-tpl-item.tpl-all {
  border-top: 1px solid #e8ddf0;
  margin-top: 6px; padding-top: 10px;
  border-bottom: none;
}
.mega-tpl-item.tpl-all .mega-tpl-name { color: var(--rose-deep); font-weight: 700; }

.nav-item .nav-trigger[aria-expanded="true"] + .mega-menu { display: flex; }
.nav-trigger[aria-expanded="true"] { color: #FFFFFF; }
.nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  transition: all .2s;
}
.hamburger:hover span { background: var(--yellow); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-hero);
  z-index: 500;
  padding: 80px 32px 40px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav-close:hover { color: var(--yellow); }
.mobile-nav-links { list-style: none; }
.mobile-nav-links li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav-links a {
  display: block;
  padding: 18px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color .15s;
}
.mobile-nav-links a:hover { color: var(--yellow); }
.mobile-nav-ctas {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-cta-login {
  display: block;
  text-align: center;
  padding: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.20);
}
.mobile-nav-cta-trial {
  display: block;
  text-align: center;
  padding: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--text-dark);
  text-decoration: none;
}

/* ── Responsive Nav ── */
@media (max-width: 960px) {
  .nav-links, .nav-cta-group { display: none; }
  .nav-inner { justify-content: space-between; }
  .hamburger { display: flex; }
  .mega-menu { display: none !important; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta-group { display: none; }
  .hamburger { display: flex; }
  .mega-menu { display: none !important; }
}