﻿/* ============================================
   HEADER - Transparent Overlay
   ============================================ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 0;
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  gap: 24px;
}

/* Logo – ~100px high */
.logo-link {
  display: block;
  flex-shrink: 0;
  z-index: 1001;
}

.logo-img {
  height: 150px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Right cluster: top row + nav stacked */
.header-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
}

/* Top row: Social + CTA */
.header-top-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.social-link:hover {
  color: #c9a227;
}

.breed-cta {
  font-family: "Google Sans", "EB Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border: 1.5px solid #c9a227;
  padding: 7px 14px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.breed-cta:hover {
  background: #c9a227;
  color: #0a0a0a;
  border-color: #c9a227;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: "Google Sans", "EB Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a227;
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active, .dropdown-toggle[aria-expanded=true] {
  color: #c9a227;
}

.nav-link:hover::after, .nav-link.active::after, .dropdown-toggle[aria-expanded=true]::after {
  width: 100%;
}

/* Dropdown arrow */
.dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.dropdown-toggle[aria-expanded=true] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Desktop dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1002;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.has-dropdown.open .dropdown-menu, .dropdown-toggle[aria-expanded=true] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  font-family: "Google Sans", "EB Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  color: #c9a227;
  background: rgba(201, 162, 39, 0.1);
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.menu-open .hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .hamburger:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: min(320px, 100%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 0 24px;
  box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.site-header.menu-open .mobile-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list > li {
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.mobile-nav-list > li:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: "Google Sans", "EB Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 28px;
  transition: color 0.2s ease, background 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: #c9a227;
  background: rgba(201, 162, 39, 0.08);
}

/* Mobile dropdown */
.mobile-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.35);
}

.mobile-has-dropdown.open .mobile-dropdown-menu {
  max-height: 280px;
}

.mobile-dropdown-link {
  display: block;
  font-family: "Google Sans", "EB Garamond", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 12px 28px 12px 40px;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-dropdown-link:hover {
  color: #c9a227;
  background: rgba(201, 162, 39, 0.08);
}

.mobile-dropdown-toggle .dropdown-arrow {
  transition: transform 0.25s ease;
}

.mobile-has-dropdown.open .mobile-dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-has-dropdown.open .mobile-dropdown-toggle {
  color: #c9a227;
}

/* Social icons inside mobile menu */
.mobile-social-item {
  padding: 18px 28px 8px;
  border-bottom: none !important;
}

.mobile-social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-social-links .social-link {
  color: #ffffff;
}

.mobile-social-links .social-link:hover {
  color: #c9a227;
}

/* Breed CTA inside mobile menu */
.mobile-cta-item {
  padding: 12px 28px 16px;
  border-bottom: none !important;
}

.mobile-breed-cta {
  display: inline-block;
  font-family: "Google Sans", "EB Garamond", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: #c9a227;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.mobile-breed-cta:hover {
  background: #e0b83a;
}

/* ============================================
   RESPONSIVE - Header
   ============================================ */

@media (max-width: 1100px) {
  .nav-list {
    gap: 16px;
  }

  .nav-link {
    font-size: 15px;
  }

  .logo-img {
    height: 85px;
  }
}

@media (max-width: 900px) {
  .header-cluster {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .header-inner {
    padding: 12px 20px;
  }

  .logo-img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 16px;
  }

  .logo-img {
    height: 100px;
  }

  .mobile-nav {
    width: 100%;
  }
}