/* ==========================================================================
   The Angus Barn - Global Header & Compact Dropdown Navigation Styles
   ========================================================================== */

/* Top Disclaimer Banner */
.site-top-disclaimer {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-bottom: 2px solid #e67e22;
  padding: 8px 18px;
  text-align: center;
  font-size: 12.5px;
  color: #2c2c2c;
  line-height: 1.4;
  position: relative;
  z-index: 1001;
}
.site-top-disclaimer strong {
  color: #c0392b;
  font-weight: 700;
}
.site-top-disclaimer a {
  color: #8B4513;
  font-weight: 600;
  text-decoration: underline;
}

/* Sticky Main Navigation Header */
.site-header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1a1a1a;
  border-bottom: 3px solid #D4AF37;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

/* Brand / Logo */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-brand:hover {
  color: #D4AF37;
}
.site-brand .brand-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.site-brand .brand-text {
  background: linear-gradient(135deg, #ffffff 0%, #D4A574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop Navigation Links (Compact) */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav > li {
  position: relative;
}

.desktop-nav > li > a,
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: #e0dcd5;
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.desktop-nav > li > a:hover,
.nav-dropdown-btn:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-btn,
.nav-dropdown-wrapper.is-open .nav-dropdown-btn {
  color: #ffffff;
  background-color: rgba(212, 175, 55, 0.16);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.desktop-nav > li > a.active,
.nav-dropdown-btn.active {
  color: #D4AF37;
  font-weight: 700;
  background-color: rgba(212, 175, 55, 0.12);
  border-bottom: 2px solid #D4AF37;
}

/* ==========================================================================
   Menus & Guides Dropdown (Desktop)
   ========================================================================== */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.nav-dropdown-wrapper:hover .nav-arrow,
.nav-dropdown-wrapper.is-open .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #1e1e1e;
  border: 2px solid #D4AF37;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  min-width: 250px;
  padding: 8px 0;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  list-style: none;
  margin: 0;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 18px !important;
  color: #e0dcd5 !important;
  text-decoration: none !important;
  font-family: 'Georgia', serif;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
}

.nav-dropdown-menu li a:hover {
  background-color: rgba(212, 175, 55, 0.15) !important;
  color: #D4AF37 !important;
  border-left-color: #D4AF37;
  padding-left: 22px !important;
}

.nav-dropdown-menu li a.active {
  background-color: rgba(212, 175, 55, 0.2) !important;
  color: #D4AF37 !important;
  font-weight: 700 !important;
  border-left-color: #D4AF37;
}

/* Call CTA Button */
.nav-cta-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #8B4513 0%, #C41E3A 100%) !important;
  color: #ffffff !important;
  padding: 8px 15px !important;
  border-radius: 20px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  transition: all 0.25s ease !important;
  margin-left: 5px;
}

.nav-cta-btn:hover {
  background: linear-gradient(135deg, #C41E3A 0%, #8B4513 100%) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

/* ==========================================================================
   Language Selector (Desktop & Mobile)
   ========================================================================== */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.1);
  color: #e0dcd5;
  border: 1px solid #D4AF37;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: 'Georgia', serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.lang-selector-btn:hover,
.lang-selector-wrapper:hover .lang-selector-btn,
.lang-selector-wrapper.is-open .lang-selector-btn {
  background: #D4AF37;
  color: #1a1a1a;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-arrow {
  font-size: 0.72rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.lang-selector-wrapper:hover .lang-arrow,
.lang-selector-wrapper.is-open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e1e1e;
  border: 2px solid #D4AF37;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  min-width: 170px;
  padding: 6px 0;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.lang-selector-wrapper:hover .lang-dropdown-menu,
.lang-selector-wrapper.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-menu a.lang-opt {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 15px !important;
  color: #e0dcd5 !important;
  text-decoration: none !important;
  font-family: 'Georgia', serif;
  font-size: 0.88rem !important;
  border-radius: 0 !important;
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
}

.lang-dropdown-menu a.lang-opt:hover {
  background-color: rgba(212, 175, 55, 0.15) !important;
  color: #D4AF37 !important;
  border-left-color: #D4AF37;
  padding-left: 18px !important;
}

.lang-dropdown-menu a.lang-opt.active {
  background-color: rgba(212, 175, 55, 0.22) !important;
  color: #D4AF37 !important;
  font-weight: 700;
  border-left-color: #D4AF37;
}

/* ==========================================================================
   Mobile Navigation Drawer (Collapsible Group)
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1010;
  border-radius: 6px;
  outline: none;
}
.mobile-menu-toggle:focus-visible {
  outline: 2px solid #D4AF37;
}

.hamburger-box {
  width: 24px;
  height: 20px;
  position: relative;
  display: block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2.5px;
  background-color: #D4AF37;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.3s ease, background-color 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -8px;
}

.hamburger-inner::after {
  content: '';
  bottom: -8px;
}

/* Active Hamburger */
.mobile-menu-toggle.is-active .hamburger-inner {
  background-color: transparent;
}
.mobile-menu-toggle.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #ffffff;
}
.mobile-menu-toggle.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: -340px;
  width: 88%;
  max-width: 340px;
  height: 100%;
  background: #1a1a1a;
  border-left: 3px solid #D4AF37;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 70px 18px 30px;
}

.mobile-drawer.is-open .mobile-drawer-content {
  right: 0;
}

.mobile-drawer-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  text-align: left;
}

.mobile-drawer-title {
  color: #D4AF37;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 4px 0;
}

.mobile-drawer-subtitle {
  color: #aaa;
  font-size: 0.78rem;
  margin: 0;
}

/* Mobile Language Grid */
.mobile-lang-section {
  padding: 10px 12px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.mobile-lang-header {
  font-size: 0.82rem;
  color: #D4AF37;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.mobile-lang-grid a.lang-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: #252525;
  color: #ccc;
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-lang-grid a.lang-opt:hover,
.mobile-lang-grid a.lang-opt:active {
  background: rgba(212, 175, 55, 0.2);
  color: #ffffff;
  border-color: #D4AF37;
}

.mobile-lang-grid a.lang-opt.active {
  background: #8B4513;
  color: #ffffff;
  font-weight: 700;
  border-color: #D4AF37;
}

/* Mobile Nav Links */
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #e0dcd5;
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a:active {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.15);
  border-left-color: #D4AF37;
  padding-left: 18px;
}

.mobile-nav-list li a.active {
  color: #D4AF37;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.2);
  border-left-color: #D4AF37;
}

/* Mobile Dropdown / Group Section */
.mobile-nav-group {
  margin: 4px 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #D4AF37;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(212, 175, 55, 0.08);
  cursor: pointer;
}

.mobile-nav-group-header .group-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.mobile-nav-group.is-open .mobile-nav-group-header .group-arrow {
  transform: rotate(180deg);
}

.mobile-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 4px 0 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-sublist li a {
  padding: 8px 12px;
  font-size: 0.86rem;
  background: transparent;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #8B4513 0%, #C41E3A 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 11px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid #D4AF37;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-drawer {
    display: block;
  }
}

@media (max-width: 480px) {
  .site-brand {
    font-size: 1.05rem;
  }
  .nav-container {
    height: 58px;
    padding: 0 15px;
  }
  .site-top-disclaimer {
    font-size: 11px;
    padding: 7px 10px;
  }
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #8B4513;
  color: #ffffff;
  border: 2px solid #D4AF37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  font-size: 20px;
  text-decoration: none;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #C41E3A;
  color: #ffffff;
}

/* Hide Google Translate top toolbar if loaded dynamically */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0px !important;
}
#goog-gt-tt {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Scroll Offset for TOC targets */
html {
  scroll-padding-top: 80px;
}
