/* ZOO HEADER — approved Plaiul Cucului desktop concept.
   Desktop only. Mobile navigation remains governed by mobile-menu.css. */

@media (min-width: 1051px) {
  header {
    position: sticky;
    top: 0;
    isolation: isolate;
    overflow: hidden;
    background:
      radial-gradient(circle at 10% 0%, rgba(85,145,92,.12), transparent 25%),
      radial-gradient(circle at 92% 8%, rgba(216,185,93,.075), transparent 22%),
      linear-gradient(180deg, rgba(5,42,30,.985) 0%, rgba(5,48,34,.985) 100%) !important;
    border-bottom: 1px solid rgba(216,185,93,.22) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
  }

  /* Foliage in the corners — intentionally subtle so the menu stays readable. */
  header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .42;
    background:
      radial-gradient(ellipse at 1% 0%, rgba(66,120,71,.55) 0 7%, transparent 8%),
      radial-gradient(ellipse at 4% 3%, rgba(60,112,67,.42) 0 6%, transparent 7%),
      radial-gradient(ellipse at 98% 0%, rgba(66,120,71,.52) 0 7%, transparent 8%),
      radial-gradient(ellipse at 95% 4%, rgba(60,112,67,.38) 0 6%, transparent 7%);
  }

  header .nav {
    position: relative;
    z-index: 2;
    min-height: 112px !important;
    padding: 7px 0 26px !important;
    gap: 12px !important;
  }

  /* Soft forest ridge along the lower edge. */
  header .nav::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 112px;
    right: 270px;
    bottom: 0;
    height: 22px;
    opacity: .34;
    background: rgba(42,104,70,.72);
    clip-path: polygon(
      0 100%, 0 78%, 3% 78%, 4% 58%, 5% 78%, 8% 78%, 9% 48%, 10% 78%,
      13% 78%, 15% 60%, 16% 78%, 20% 78%, 22% 44%, 24% 78%, 28% 78%,
      30% 62%, 31% 78%, 35% 78%, 37% 50%, 39% 78%, 43% 78%, 45% 64%,
      47% 78%, 51% 78%, 53% 45%, 55% 78%, 60% 78%, 62% 58%, 64% 78%,
      68% 78%, 70% 51%, 72% 78%, 77% 78%, 79% 62%, 81% 78%, 86% 78%,
      88% 48%, 90% 78%, 94% 78%, 96% 60%, 97% 78%, 100% 78%, 100% 100%
    );
  }

  /* Localized nature motto, centered under the navigation. */
  header .nav::after {
    content: "🐾  APROAPE DE NATURĂ";
    position: absolute;
    left: 50%;
    bottom: 3px;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    height: 24px;
    padding: 0 16px;
    border: 1px solid rgba(216,185,93,.50);
    border-radius: 999px;
    background: rgba(6,46,33,.96);
    color: #e2c45f;
    box-shadow: 0 5px 18px rgba(0,0,0,.14);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .17em;
    white-space: nowrap;
  }

  html[lang="hu"] header .nav::after { content: "🐾  KÖZEL A TERMÉSZETHEZ"; }
  html[lang="en"] header .nav::after { content: "🐾  CLOSER TO NATURE"; }

  header .brand {
    min-width: 92px !important;
    width: 92px;
    justify-content: flex-start;
    align-self: center;
    position: relative;
    z-index: 4;
  }

  header .brand-logo {
    width: 82px !important;
    height: 82px !important;
    border-radius: 50% !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.28));
    transition: transform .22s ease, filter .22s ease;
  }

  header .brand:hover .brand-logo {
    transform: scale(1.035);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.32));
  }

  header .menu {
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    position: relative;
    z-index: 4;
  }

  header .menu a {
    --menu-icon: none;
    position: relative;
    min-height: 76px;
    padding: 34px 13px 12px !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-right: 1px solid rgba(216,185,93,.13);
    border-radius: 13px;
    color: #f0f4ef !important;
    font-size: 16.5px !important;
    line-height: 1.05 !important;
    font-weight: 780 !important;
    letter-spacing: -.015em;
    text-align: center;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
  }

  html[lang="hu"] header .menu a,
  html[lang="en"] header .menu a {
    font-size: 16px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
  }

  header .menu a:last-child { border-right-color: transparent; }

  header .menu a::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 25px;
    height: 25px;
    transform: translateX(-50%);
    background: #d9b94e;
    -webkit-mask: var(--menu-icon) center / contain no-repeat;
    mask: var(--menu-icon) center / contain no-repeat;
    opacity: .90;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
  }

  header .menu a:nth-child(1) {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 11.2 12 3l9 8.2v9.3h-6.2v-6h-5.6v6H3v-9.3Zm2 1v6.3h2.2v-6h9.6v6H19v-6.3l-7-6.4-7 6.4Z'/%3E%3C/svg%3E");
  }
  header .menu a:nth-child(2) {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 4.1 5h-2.5l4.2 5.2h-3l4.2 5.3h-6v4.5h-2v-4.5H5l4.2-5.3h-3L10.4 7H7.9L12 2Z'/%3E%3C/svg%3E");
  }
  header .menu a:nth-child(3) {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse fill='black' cx='8' cy='7' rx='2.2' ry='3'/%3E%3Cellipse fill='black' cx='16' cy='7' rx='2.2' ry='3'/%3E%3Cellipse fill='black' cx='5' cy='12' rx='2' ry='2.7'/%3E%3Cellipse fill='black' cx='19' cy='12' rx='2' ry='2.7'/%3E%3Cpath fill='black' d='M12 10.3c3.3 0 6 3.2 6 6 0 2-1.5 3.7-3.7 3.7-1.1 0-1.7-.5-2.3-.5s-1.2.5-2.3.5C7.5 20 6 18.3 6 16.3c0-2.8 2.7-6 6-6Z'/%3E%3C/svg%3E");
  }
  header .menu a:nth-child(4) {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4.2C6.4 3.5 9.1 4 12 5.7 14.9 4 17.6 3.5 21 4.2v14.9c-3.2-.5-5.8 0-9 1.8-3.2-1.8-5.8-2.3-9-1.8V4.2Zm2 2v10.7c2.3-.1 4.2.3 6 1.2V7.4C9.1 6.3 7.3 5.9 5 6.2Zm14 0c-2.3-.3-4.1.1-6 1.2v10.7c1.8-.9 3.7-1.3 6-1.2V6.2Z'/%3E%3C/svg%3E");
  }
  header .menu a:nth-child(5) {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v5a3 3 0 0 0 0 6v5H4v-5a3 3 0 0 0 0-6V4Zm2 2v2.1a5 5 0 0 1 0 7.8V18h12v-2.1a5 5 0 0 1 0-7.8V6H6Zm5 1h2v2h-2V7Zm0 4h2v2h-2v-2Zm0 4h2v2h-2v-2Z'/%3E%3C/svg%3E");
  }
  header .menu a:nth-child(6) {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.3 5 8.8 3h6.4l1.5 2H21a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4.3ZM3 7v12h18V7H3Zm9 2.2a4.4 4.4 0 1 1 0 8.8 4.4 4.4 0 0 1 0-8.8Zm0 2a2.4 2.4 0 1 0 0 4.8 2.4 2.4 0 0 0 0-4.8Z'/%3E%3C/svg%3E");
  }
  header .menu a:nth-child(7) {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 4h20v16H2V4Zm2 2v1.1l8 5.7 8-5.7V6H4Zm16 12V9.6l-8 5.7-8-5.7V18h16Z'/%3E%3C/svg%3E");
  }

  /* Replace the original underline animation with the gold zoo-style marker. */
  header .menu a::after {
    content: "" !important;
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 5px !important;
    height: 3px !important;
    border-radius: 999px;
    background: #dfbd52 !important;
    opacity: 0;
    transform: scaleX(.45);
    transform-origin: center;
    transition: opacity .2s ease, transform .2s ease !important;
  }

  header .menu a:hover,
  header .menu a:focus-visible {
    color: #fff8df !important;
    background: rgba(216,185,93,.075);
    border-right-color: rgba(216,185,93,.20);
    transform: translateY(-1px);
  }

  header .menu a:hover::before,
  header .menu a:focus-visible::before {
    background: #f0d36f;
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }

  header .menu a:hover::after,
  header .menu a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
  }

  /* Active section without extra JavaScript. Chrome/modern browsers support :has(). */
  body:not(:has(:target)) header .menu a[href="#acasa"],
  body:has(#acasa:target) header .menu a[href="#acasa"],
  body:has(#experienta:target) header .menu a[href="#experienta"],
  body:has(#animale:target) header .menu a[href="#animale"],
  body:has(#poveste:target) header .menu a[href="#poveste"],
  body:has(#vizita:target) header .menu a[href="#vizita"],
  body:has(#galerie:target) header .menu a[href="#galerie"],
  body:has(#contact:target) header .menu a[href="#contact"] {
    color: #fff9e6 !important;
    background: linear-gradient(180deg, rgba(216,185,93,.12), rgba(216,185,93,.055));
    box-shadow: inset 0 0 0 1px rgba(216,185,93,.17), 0 8px 20px rgba(0,0,0,.08);
  }

  body:not(:has(:target)) header .menu a[href="#acasa"]::after,
  body:has(#acasa:target) header .menu a[href="#acasa"]::after,
  body:has(#experienta:target) header .menu a[href="#experienta"]::after,
  body:has(#animale:target) header .menu a[href="#animale"]::after,
  body:has(#poveste:target) header .menu a[href="#poveste"]::after,
  body:has(#vizita:target) header .menu a[href="#vizita"]::after,
  body:has(#galerie:target) header .menu a[href="#galerie"]::after,
  body:has(#contact:target) header .menu a[href="#contact"]::after {
    opacity: 1;
    transform: scaleX(1);
  }

  header .nav-actions {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    gap: 10px !important;
    align-self: center;
    margin-bottom: 14px;
  }

  header .lang-switch {
    padding: 5px !important;
    border-color: rgba(255,255,255,.15) !important;
    background: rgba(255,255,255,.065) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  }

  header .lang-switch button {
    width: 40px !important;
    height: 36px !important;
    font-size: 13px !important;
  }

  header .nav-actions .btn-primary {
    min-height: 50px;
    padding: 12px 20px !important;
    border: 1px solid rgba(245,220,126,.40) !important;
    background: linear-gradient(135deg, #dcb94e 0%, #efd36e 100%) !important;
    color: #173126 !important;
    font-size: 15.5px !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35) !important;
  }

  header .nav-actions .btn-primary::after {
    content: "🌿";
    font-size: 15px;
    line-height: 1;
    margin-left: 2px;
  }

  header .nav-actions .btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e4c45b 0%, #f3da7d 100%) !important;
  }
}

/* The test intentionally leaves tablet/mobile untouched. */
