/* Header styles for Domfurnex */

.df-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.df-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.df-header__brand {
  display: flex;
  align-items: center;
}

.df-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #111827;
}

.df-header__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f97316, #b45309);
  position: relative;
}

.df-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.df-header__logo-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.df-header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.df-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.df-header__nav-link {
  position: relative;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 0.25rem 0;
}

.df-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  transition: width 0.2s ease-out;
}

.df-header__nav-link:hover::after,
.df-header__nav-link:focus-visible::after {
  width: 100%;
}

.df-header__nav-link:hover,
.df-header__nav-link:focus-visible {
  color: #111827;
}

.df-header__nav-link:focus-visible,
.df-header__cta:focus-visible,
.df-header__toggle:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.df-header__cta-wrap {
  display: flex;
  align-items: center;
}

.df-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.df-header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.df-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.df-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.df-header__toggle-bar + .df-header__toggle-bar {
  margin-top: 3px;
}

.df-header__toggle--active .df-header__toggle-bar:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.df-header__toggle--active .df-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.df-header__toggle--active .df-header__toggle-bar:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

/* Mobile & tablet */
@media (max-width: 768px) {
  .df-header__inner {
    padding-inline: 1rem;
  }

  .df-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .df-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s ease-out;
  }

  .df-header__nav--open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
    visibility: visible;
  }

  .df-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .df-header__nav-link {
    padding-block: 0.35rem;
  }

  .df-header__cta-wrap {
    margin-top: 0.5rem;
    justify-content: flex-start;
  }

  .df-header__cta {
    width: auto;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .df-header__inner {
    padding-inline: 1.75rem;
  }

  .df-header__nav-list {
    gap: 1.75rem;
  }
}
