@charset "UTF-8";
/* ===========================================
   BRICKELL HEADER BLOCK
   Paridad visual con theme/css/header.css
   =========================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;1,400&display=swap");
/* ---- Local design-token fallbacks ---- */
.wp-block-bl-header {
  --color-bg-light: #f5f4f0;
  --color-bg-dark: #2c2e30;
  --color-text-light: #f5f4f0;
  --color-accent: #8b7d6b;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --spacing-container: 5%;
}

/* ---- Header bar (fixed in front, static in editor) ---- */
.brickell-header-bar {
  position: fixed;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem var(--spacing-container);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  color: var(--color-text-light);
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.brickell-header-bar.scrolled {
  background-color: rgba(44, 46, 48, 0.3607843137);
  backdrop-filter: blur(10px);
  padding: 1rem var(--spacing-container);
}

/* ---- Logo ---- */
.wp-block-bl-header .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1001;
  color: var(--color-text-light);
}

.wp-block-bl-header .logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.wp-block-bl-header .logo-img {
  height: 24px;
  vertical-align: middle;
}

.wp-block-bl-header .logo-svg {
  width: auto;
  fill: currentColor;
}

/* ---- Hamburger Toggle ---- */
.wp-block-bl-header .menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  touch-action: manipulation;
}

.wp-block-bl-header .menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-light);
  transition: all 0.35s ease;
  transform-origin: center;
}

.wp-block-bl-header .menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.wp-block-bl-header .menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.wp-block-bl-header .menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Fullscreen Overlay Menu ---- */
.wp-block-bl-header .menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(44, 46, 48, 0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  overflow-y: auto;
}

.wp-block-bl-header .menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wp-block-bl-header .menu-overlay-inner {
  width: 100%;
  box-sizing: border-box;
  max-width: 900px;
  padding: 6rem var(--spacing-container) 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ---- Nav links grid ---- */
.wp-block-bl-header .menu-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 6rem;
}

.wp-block-bl-header .menu-nav a {
  font-family: var(--font-sans) !important;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 1rem 0;
  display: block;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.wp-block-bl-header .menu-overlay.active .menu-nav a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for each link */
.wp-block-bl-header .menu-nav a:nth-child(1) {
  transition-delay: 0.08s;
}

.wp-block-bl-header .menu-nav a:nth-child(2) {
  transition-delay: 0.14s;
}

.wp-block-bl-header .menu-nav a:nth-child(3) {
  transition-delay: 0.2s;
}

.wp-block-bl-header .menu-nav a:nth-child(4) {
  transition-delay: 0.26s;
}

.wp-block-bl-header .menu-nav a:nth-child(5) {
  transition-delay: 0.32s;
}

.wp-block-bl-header .menu-nav a:nth-child(6) {
  transition-delay: 0.38s;
}

.wp-block-bl-header .menu-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.wp-block-bl-header .menu-nav a:hover {
  color: var(--color-accent);
}

.wp-block-bl-header .menu-nav a:hover::after {
  width: 100%;
}

/* ---- Menu footer ---- */
.wp-block-bl-header .menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.wp-block-bl-header .menu-overlay.active .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Office info ---- */
.wp-block-bl-header .menu-office {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.8;
}

.wp-block-bl-header .menu-office strong,
.wp-block-bl-header .menu-office .brickell-office-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}

.wp-block-bl-header .menu-office .brickell-office-address {
  display: block;
}

/* ---- Menu bottom-right area ---- */
.wp-block-bl-header .menu-bottom-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ---- Menu credit (Misterfront) ---- */
.wp-block-bl-header .menu-credit {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.8px;
  margin-right: auto;
}

.wp-block-bl-header .menu-credit a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.wp-block-bl-header .menu-credit a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Misterfront Container */
.wp-block-bl-header .mf-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.wp-block-bl-header .mf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.wp-block-bl-header .mf-logo-full {
  height: 1.25em;
  width: auto;
  display: inline-block;
  transform-origin: center;
  font-size: 1.25rem;
}

.wp-block-bl-header .mf-svg-white {
  fill: currentColor;
  transition: fill 0.3s ease;
}

.wp-block-bl-header .mf-svg-accent {
  fill: var(--color-accent);
  transition: fill 0.3s ease;
}

.wp-block-bl-header .mf-text {
  font-weight: 500;
  display: inline-flex;
}

.wp-block-bl-header .mf-char {
  display: inline-block;
}

/* Misterfront character reveal animations */
.wp-block-bl-header .menu-overlay .mf-char,
.wp-block-bl-header .menu-overlay .mf-logo-full {
  opacity: 0;
}

@keyframes mfRevealGroup {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(1) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(2) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(3) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(4) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.75s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(5) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(6) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(7) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(8) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.95s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(9) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(10) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.05s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-char:nth-child(11) {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s forwards;
}

.wp-block-bl-header .menu-overlay.active .mf-logo-full {
  animation: mfRevealGroup 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards;
}

/* ---- Language toggle ---- */
.wp-block-bl-header .menu-lang {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.wp-block-bl-header .menu-lang a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.wp-block-bl-header .menu-lang a:hover,
.wp-block-bl-header .menu-lang a.active {
  color: var(--color-text-light);
}

/* ---- Instagram icon ---- */
.wp-block-bl-header .menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.wp-block-bl-header .menu-social a:hover {
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}

.wp-block-bl-header .menu-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* =========================================
   EDITOR-ONLY OVERRIDES
   ========================================= */
/* Show overlay always in editor for editing */
.wp-block-bl-header .menu-overlay.editor-visible {
  position: relative;
  opacity: 1;
  pointer-events: all;
  background-color: rgba(44, 46, 48, 0.97);
  border-radius: 8px;
  margin-top: 1rem;
}

.wp-block-bl-header .menu-overlay.editor-visible .menu-nav a {
  opacity: 1;
  transform: translateY(0);
}

.wp-block-bl-header .menu-overlay.editor-visible .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.wp-block-bl-header .menu-overlay.editor-visible .mf-char,
.wp-block-bl-header .menu-overlay.editor-visible .mf-logo-full {
  opacity: 1;
  animation: none;
}

/* Editor header bar — static instead of fixed for editor preview */
.is-root-container .brickell-header-bar,
.editor-styles-wrapper .brickell-header-bar {
  position: relative;
  background-color: var(--color-bg-dark, #2c2e30);
  border-radius: 8px 8px 0 0;
}

/* =========================================
   RESPONSIVE (mobile)
   ========================================= */
@media (max-width: 600px) {
  .wp-block-bl-header .menu-nav {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .wp-block-bl-header .menu-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .wp-block-bl-header .menu-nav a {
    padding: 0.5rem 0;
    display: inline-block;
  }
}
/* =========================================
   VISIBILITY CLASSES
   ========================================= */
@media (min-width: 1024px) {
  .bl-hide-desktop {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .bl-hide-tablet {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .bl-hide-mobile {
    display: none !important;
  }
}
