/* Modern Dual Header & Turner-Style Mega Menu Styles for Stoon Theme */

/* Header Wrapper & Navbar Base */
.turner-header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  width: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.turner-header-wrapper.turner-subpage-header {
  position: relative !important;
}

.turner-header-wrapper.is-sticky,
.turner-header-wrapper.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.modern-header {
  padding: 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* Header Grid Row & Vertical Divider Borders */
.header-grid-row {
  min-height: 64px;
  position: static !important;
}

.modern-header-shell {
  position: static !important;
}

.header-cell {
  position: static !important;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0.75rem 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.header-cell:last-child {
  border-right: none;
}

/* Light Header State (Default Transparent Over Hero Video/Banner) */
.modern-header.light-header {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #ffffff;
}

.modern-header.light-header .modern-brand-title {
  color: #ffffff;
}

.modern-header.light-header .nav-link-top {
  color: #f1f5f9;
}

.modern-header.light-header .nav-link-top:hover,
.modern-header.light-header .nav-item-root.is-active > .nav-link-top {
  color: #0f172a;
}

/* Dark Header State (Scrolled or Light Surface Pages) */
.modern-header.dark-header,
.modern-header.scrolled-header {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e2e8f0;
}

.modern-header.dark-header .header-cell,
.modern-header.scrolled-header .header-cell {
  border-right: 1px solid #e2e8f0;
}

.modern-header.dark-header .modern-brand-title,
.modern-header.scrolled-header .modern-brand-title {
  color: #0f172a;
}

.modern-header.dark-header .nav-link-top,
.modern-header.scrolled-header .nav-link-top {
  color: #334155;
}

/* Brand Styling */
.modern-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0;
}

.modern-brand.brand-title-only,
.modern-brand.logo-mode-name_only {
  gap: 0;
}

.modern-brand.logo-mode-name_only .modern-brand-mark {
  display: none;
}

.modern-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-monogram {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0055b8, #003e85);
  color: #ffffff;
  font-family: var(--font-display, 'Marcellus', serif);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 85, 184, 0.25);
}

.modern-brand-title {
  font-family: var(--font-display, 'Marcellus', serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

/* Main Top Navigation Bar & Active Tab Pop-out */
.main-nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  height: 100%;
  position: static !important;
}

.nav-item-root {
  position: static !important;
  display: flex;
  align-items: stretch;
}

.nav-item-has-mega {
  position: static !important;
}

.nav-link-top {
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1.15rem 1.25rem !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease-in-out;
  border-top: 4px solid transparent;
  height: 100%;
}

.nav-link-arrow {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

/* White Active Tab Pop-out (Turner Construction Benchmark Style) */
.nav-item-root.is-active > .nav-link-top,
.nav-item-root:hover > .nav-link-top {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-top: 4px solid var(--stoon-accent, #d97706) !important;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
  z-index: 1055 !important;
}

.nav-item-root.is-active .nav-link-arrow,
.nav-item-root:hover .nav-link-arrow {
  transform: rotate(180deg);
  color: var(--stoon-accent, #d97706);
}

/* Turner Mega Menu Dropdown Panel (Full-Width 100% across header) */
.modern-header {
  position: relative !important;
}

.turner-mega-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100% !important;
  background: #ffffff;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
  border-bottom: 3px solid #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.turner-mega-menu-panel:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.turner-mega-menu-inner {
  max-width: 100%;
}

/* 1. Left Spotlight Blue Banner (Turner Construction Benchmark Style) */
.turner-mega-spotlight {
  background: linear-gradient(145deg, #0055b8, #003e85);
  color: #ffffff;
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-card-content {
  max-width: 320px;
}

.spotlight-eyebrow {
  display: block;
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.spotlight-title {
  font-family: var(--font-display, 'Marcellus', serif);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #ffffff;
  line-height: 1.25;
}

.spotlight-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

.spotlight-action-btn {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.spotlight-action-btn:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0055b8;
}

/* 2. Middle Categorized Link Columns */
.turner-mega-links-area {
  padding: 2.5rem 2.25rem;
  background-color: #ffffff;
  display: flex;
  align-items: flex-start;
}

.turner-mega-columns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

.turner-mega-col {
  flex: 1 1 28%;
  min-width: 180px;
  border-right: 1px solid #e2e8f0;
  padding-right: 1.75rem;
}

.turner-mega-col:last-child {
  border-right: none;
  padding-right: 0;
}

.turner-col-heading {
  display: block;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #f1f5f9;
}

.turner-col-title {
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.turner-col-title:hover {
  color: #0055b8;
}

.turner-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.turner-sub-item {
  margin: 0;
  padding: 0;
}

.turner-sub-link {
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.turner-sub-link:hover {
  color: #0055b8;
  transform: translateX(4px);
}

/* 3. Right Visual Featured Media Card (Turner Construction Benchmark Style) */
.turner-mega-featured {
  background-color: #ffffff;
  padding: 2.25rem 2rem;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.featured-visual-box {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
}

.featured-visual-heading {
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.85rem;
}

.featured-media-frame {
  height: 155px;
  background-color: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.featured-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-visual-box:hover .featured-bg-img {
  transform: scale(1.06);
}

.featured-placeholder-pattern {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #94a3b8;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.featured-visual-body {
  padding: 0;
}

.featured-visual-cta {
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  color: #0055b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.featured-visual-cta:hover {
  color: #003e85;
}

/* Utility Controls */
.modern-utility-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modern-search-slot .search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-search-slot .search-input {
  width: 150px;
  height: 38px;
  padding-left: 2.25rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.modern-search-slot .search-input::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

.modern-header.dark-header .modern-search-slot .search-input,
.modern-header.scrolled-header .modern-search-slot .search-input {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.modern-header.dark-header .modern-search-slot .search-input::placeholder,
.modern-header.scrolled-header .modern-search-slot .search-input::placeholder {
  color: #64748b !important;
}

.modern-search-slot .search-input:focus {
  width: 200px;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
  outline: none;
}

.modern-search-slot .search-btn {
  position: absolute;
  left: 0.65rem;
  background: transparent;
  border: none;
  color: #ffffff !important;
  font-size: 0.9rem;
  opacity: 0.85;
  cursor: pointer;
  padding: 0;
}

.modern-header.dark-header .modern-search-slot .search-btn,
.modern-header.scrolled-header .modern-search-slot .search-btn {
  color: #475569 !important;
}

.modern-utility-button,
.modern-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.75rem;
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modern-header.dark-header .modern-utility-button,
.modern-header.dark-header .modern-icon-button,
.modern-header.scrolled-header .modern-utility-button,
.modern-header.scrolled-header .modern-icon-button {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.modern-utility-button:hover,
.modern-icon-button:hover {
  background: var(--stoon-accent, #d97706);
  color: #ffffff;
  border-color: var(--stoon-accent, #d97706);
}

.modern-icon-button {
  width: 38px;
  padding: 0;
}

.modern-btn {
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.modern-btn-primary {
  background-color: var(--stoon-accent, #d97706);
  color: #ffffff;
  border: 1px solid var(--stoon-accent, #d97706);
}

.modern-btn-primary:hover {
  background-color: #b45309;
  color: #ffffff;
}

.modern-btn-secondary {
  background-color: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modern-header.dark-header .modern-btn-secondary,
.modern-header.scrolled-header .modern-btn-secondary {
  border-color: #cbd5e1;
  color: #0f172a;
}

.modern-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--stoon-accent, #d97706);
}

/* User Profile Button & Avatar Styling */
.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  color: inherit;
  outline: none !important;
  box-shadow: none !important;
}

.user-profile-btn:focus,
.user-profile-btn:active,
.user-profile-btn:hover {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.user-avatar-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--stoon-accent, #d97706), #b45309) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.user-profile-caret {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Turner Signature Hamburger Button */
.turner-hamburger-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.55rem 0.75rem !important;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  color: inherit;
}

.modern-header.dark-header .turner-hamburger-btn,
.modern-header.scrolled-header .turner-hamburger-btn {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.turner-hamburger-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
}

.turner-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.turner-hamburger-btn:hover {
  border-color: var(--stoon-accent, #d97706) !important;
  color: var(--stoon-accent, #d97706) !important;
}

.modern-search-slot .compact-search-input {
  width: 120px;
  height: 36px;
  font-size: 0.825rem;
}

.modern-search-slot .compact-search-input:focus {
  width: 170px;
}

/* Slide-Out Mobile Overlay Drawer */
.stoon-mobile-drawer,
.modern-menu-shell {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1060;
  overflow-y: auto;
  padding: 1.75rem;
}

.stoon-mobile-drawer.show,
.stoon-mobile-drawer.collapsing,
.modern-menu-shell.show {
  right: 0 !important;
  display: block !important;
}

@media (min-width: 992px) {
  .turner-hamburger-btn,
  .stoon-mobile-drawer,
  .stoon-mobile-drawer.show,
  .stoon-mobile-drawer.collapsing,
  .modern-menu-shell,
  .modern-menu-shell.show {
    display: none !important;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
  font-family: var(--font-display, 'Marcellus', serif);
  font-size: 1.25rem;
  margin: 0;
  color: #ffffff;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.drawer-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
}

.drawer-tab-btn {
  flex: 1;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-ui, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.drawer-tab-btn.active {
  background: var(--stoon-accent, #d97706);
  color: #ffffff;
}

.drawer-tab-content {
  display: none;
}

.drawer-tab-content.active {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.mobile-nav-list .nav-link-top {
  padding: 0.75rem 1rem !important;
  border-top: none !important;
  border-left: 3px solid transparent;
}

.mobile-nav-list .nav-link-top:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--stoon-accent, #d97706) !important;
  border-left-color: var(--stoon-accent, #d97706);
}
}

/* Animated Logo Transparency & Blend Overrides */
.modern-brand-mark.logo-animated-mark {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.modern-brand.logo-mode-rectangle .modern-brand-mark.logo-animated-mark,
.modern-brand.logo-mode-square .modern-brand-mark.logo-animated-mark {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

.logo-animated-video,
.logo-animated-img,
.logo-animated-lottie {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
