/* ============================================
   MONLIS Website - Studio Page Header
   3-level header: Top bar, Main nav, Breadcrumbs
   Figma node: 2:2802
   ============================================ */

/* ==========================================
   HEADER CONTAINER
   Figma specs:
   - Background: white
   - Shadow: 0px 4px 20px rgba(0,0,0,0.05)
   - Total height: ~180px
   ========================================== */
.studio-header {
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

/* ==========================================
   TOP BAR
   Dark gradient background with location & phone
   Figma specs:
   - Height: 60px
   - Background: gradient #1a1a1a to #232323
   - Padding: 0 243.5px (container 1440px centered)
   ========================================== */
.studio-header__topbar {
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a 0%, #232323 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-header__topbar-content {
  width: 100%;
  max-width: 1440px;
  padding: 0 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Location selector */
.studio-header__location {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.studio-header__location-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.studio-header__location-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
}

.studio-header__location-text {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.studio-header__location-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.studio-header__location-chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
}

/* Phone */
.studio-header__phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-header__phone-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-header__phone-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  display: block;
}

.studio-header__phone-icon svg path {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
}

.studio-header__phone-number {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 13px;
  line-height: 19.5px;
  color: rgba(255, 255, 255, 0.9);
}

.studio-header__phone-link {
  color: inherit;
  transition: opacity 0.2s ease;
}

.studio-header__phone-link:hover {
  opacity: 0.7;
}

/* Studios Dropdown */
.studio-header__studios-dropdown {
  position: relative;
}

.studio-header__studios-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.studio-header__studios-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.studio-header__studios-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

.studio-header__studios-chevron {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}

.studio-header__studios-btn[aria-expanded="true"] .studio-header__studios-chevron {
  transform: rotate(180deg);
}

.studio-header__studios-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.studio-header__studios-item {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-secondary);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease;
}

.studio-header__studios-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Topbar Right */
.studio-header__topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Phone in topbar */
.studio-header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 0.2s ease;
}

.studio-header__phone:hover {
  opacity: 0.7;
}

.studio-header__phone-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.studio-header__phone-icon svg {
  width: 100%;
  height: 100%;
}

/* Language Dropdown */
.studio-header__lang-dropdown {
  position: relative;
}

.studio-header__lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-header__lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.studio-header__lang-globe {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.studio-header__lang-current {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.studio-header__lang-chevron {
  width: 10px;
  height: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
}

.studio-header__lang-btn[aria-expanded="true"] .studio-header__lang-chevron {
  transform: rotate(180deg);
}

.studio-header__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.studio-header__lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-family: var(--font-secondary);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.studio-header__lang-item:hover {
  background: #f5f5f5;
}

.studio-header__lang-item.is-active {
  background: #f0f0f0;
}

.studio-header__lang-code {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  min-width: 24px;
}

.studio-header__lang-name {
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

/* ==========================================
   MAIN NAVIGATION
   White background with logo centered
   Figma specs:
   - Height: 78px
   - Background: rgba(255,255,255,0.98)
   - Border-bottom: 1px solid rgba(243,244,246,0.8)
   ========================================== */
.studio-header__main {
  width: 100%;
  height: 78px;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(243, 244, 246, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.studio-header__main-content {
  width: 100%;
  max-width: 1440px;
  padding: 0 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left navigation */
.studio-header__nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.studio-header__nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #4a5565;
  transition: color 0.2s ease;
}

.studio-header__nav-link:hover {
  color: var(--color-black);
}

/* Logo (centered) */
.studio-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.studio-header__logo-img {
  height: 37px;
  width: auto;
}

/* Right navigation */
.studio-header__nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* CTA Button */
.studio-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #000 !important;
  border: none !important;
  border-radius: 9999px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff !important;
  transition: all 0.2s ease;
}

.studio-header__cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.studio-header__cta:hover {
  background: #333 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Logo text fallback */
.studio-header__logo-text {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 8px;
  color: #1a1a1a;
}

/* Corner decorations */
.studio-header__corner {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.3;
  pointer-events: none;
}

.studio-header__corner--left {
  left: 0;
  top: 0;
}

.studio-header__corner--right {
  right: 0;
  top: 0;
}

.studio-header__corner::before,
.studio-header__corner::after {
  content: '';
  position: absolute;
  background: linear-gradient(180deg, #99a1af 0%, transparent 100%);
}

.studio-header__corner--left::before {
  width: 80px;
  height: 1px;
  top: 0;
  left: 0;
}

.studio-header__corner--left::after {
  width: 1px;
  height: 80px;
  top: 0;
  left: 0;
}

.studio-header__corner--right::before {
  width: 80px;
  height: 1px;
  top: 0;
  right: 0;
}

.studio-header__corner--right::after {
  width: 1px;
  height: 80px;
  top: 0;
  right: 0;
}

/* ==========================================
   BREADCRUMBS
   Figma specs:
   - Height: 41.5px
   - Background: white
   - Border-bottom: 1px solid gray-100
   ========================================== */
.studio-header__breadcrumbs {
  width: 100%;
  height: 41.5px;
  background-color: var(--color-white);
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 1px;
}

.studio-header__breadcrumbs-content {
  width: 100%;
  max-width: 1440px;
  padding: 0 120px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-header__breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-header__breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.275px;
  text-transform: uppercase;
  color: #6a7282;
  transition: color 0.2s ease;
}

.studio-header__breadcrumb-link:hover {
  color: var(--color-black);
}

.studio-header__breadcrumb-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.studio-header__breadcrumb-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #6a7282;
  stroke-width: 1.5;
}

.studio-header__breadcrumb-separator {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-header__breadcrumb-separator svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #6a7282;
  stroke-width: 1.5;
  display: block;
}

.studio-header__breadcrumb-current {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.275px;
  text-transform: uppercase;
  color: var(--color-black);
  display: flex;
  align-items: center;
}

/* ==========================================
   MOBILE MENU TOGGLE
   ========================================== */
.studio-header__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.studio-header__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-mine-shaft);
  position: relative;
}

.studio-header__mobile-toggle span::before,
.studio-header__mobile-toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-mine-shaft);
  left: 0;
}

.studio-header__mobile-toggle span::before {
  top: -8px;
}

.studio-header__mobile-toggle span::after {
  top: 8px;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Large Desktop (1440px) */
@media (max-width: 1440px) {
  .studio-header__topbar-content,
  .studio-header__main-content {
    padding: 0 60px;
  }
  
  .studio-header__breadcrumbs-content {
    padding: 0 60px;
  }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .studio-header__topbar-content,
  .studio-header__main-content {
    padding: 0 40px;
  }
  
  .studio-header__breadcrumbs-content {
    padding: 0 40px;
  }
  
  .studio-header__nav-left,
  .studio-header__nav-right {
    gap: 20px;
  }
  
  .studio-header__nav-link {
    font-size: 10px;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .studio-header__topbar {
    height: 50px;
  }
  
  .studio-header__topbar-content {
    padding: 0 20px;
  }
  
  .studio-header__location-text {
    font-size: 10px;
  }
  
  .studio-header__phone-number {
    font-size: 11px;
  }
  
  .studio-header__main {
    height: 60px;
  }
  
  .studio-header__main-content {
    padding: 0 20px;
  }
  
  .studio-header__nav-left,
  .studio-header__nav-right {
    display: none;
  }
  
  .studio-header__mobile-toggle {
    display: flex;
  }
  
  .studio-header__logo {
    position: static;
    transform: none;
  }
  
  .studio-header__logo-img {
    height: 30px;
  }
  
  .studio-header__breadcrumbs {
    height: auto;
    padding: 10px 20px;
  }
  
  .studio-header__breadcrumbs-content {
    padding: 0;
    flex-wrap: wrap;
  }
  
  .studio-header__breadcrumb-link,
  .studio-header__breadcrumb-current {
    font-size: 10px;
  }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
  .studio-header__topbar-content {
    flex-direction: column;
    gap: 5px;
    padding: 10px 15px;
  }
  
  .studio-header__topbar {
    height: auto;
  }
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.studio-header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 99999;
  padding: 140px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.studio-header__mobile-menu:not([hidden]) {
  display: flex;
}

.studio-header__mobile-menu[hidden] {
  display: none !important;
}

.studio-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.studio-header__mobile-link {
  display: block;
  padding: 16px 0;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #1a1a1a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: color 0.2s ease;
}

.studio-header__mobile-link:hover {
  color: #666;
}

.studio-header__mobile-studios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-header__mobile-studios-title {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.studio-header__mobile-studio {
  display: block;
  padding: 12px 16px;
  background-color: #f5f5f5;
  border-radius: 10px;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 14px;
  color: #1a1a1a;
  transition: background-color 0.2s ease;
}

.studio-header__mobile-studio:hover {
  background-color: #eee;
}

.studio-header__mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background-color: #1a1a1a;
  border-radius: 12px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-top: auto;
  transition: background-color 0.2s ease;
}

.studio-header__mobile-cta:hover {
  background-color: #333;
}

/* Mobile toggle animation */
.studio-header__mobile-toggle.is-active span {
  background-color: transparent;
}

.studio-header__mobile-toggle.is-active span::before {
  transform: rotate(45deg);
  top: 0;
}

.studio-header__mobile-toggle.is-active span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Keep header above mobile menu */
.studio-header {
  position: relative;
  z-index: 100000;
}

.studio-header__mobile-toggle {
  z-index: 100001;
}
