/* ============================================================
   Happy Days — Header styles for the native Elementor build
   Load via the child theme's functions.php enqueue (see
   functions-snippet.php), from /css/happy-days-header.css
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Prata&family=Figtree:wght@400;500;600;700;800&display=swap");

/* ---------- Root variables ---------- */
:root {
	--hdd-white: #ffffff;
  --hdd-navy: #003082;
  --hdd-gold: #ECBD30;
  --hdd-gold-dark: #B58F11;
  --hdd-page-margin: 64px;
  --card-h: 68px;
}



/* Shrunk state toggled by JS on scroll (see happy-days-header.js) */


.hdd-card.is-scrolled {
  border-radius: 0 !important;
  border-color: rgba(0, 48, 130, 0.16) !important;
  box-shadow: none;
  padding: 0 var(--hdd-page-margin) !important;
  }

.main-header-wrap {
    position: fixed;
    width: 100%;
    z-index: 100;
	transition: 0.3s !important;
}

.main-header-wrap.is-scrolled {
 	transition: 0.3s !important;
	padding:0;
  }

.main-header-wrap.is-scrolled .hdd-card .e-n-menu-content {
     padding: 0 0;
    top: 67px !important;
 }

.logged-in .main-header-wrap.is-scrolled .hdd-card .e-n-menu-content {
  
    top: 99px !important;
 }



/* While any dropdown is open, flatten the bottom corners so the mega
   panel visually connects (mirrored from aria-expanded via JS) */
.hdd-card.has-open {
  border-radius: 12px 12px 0 0 !important;
  box-shadow: none;
}
.hdd-card.is-scrolled.has-open {
  border-radius: 0 !important;
}

/* ---------- Left nav (native Mega Menu widget) ---------- */


.hdd-left .e-n-menu-heading {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hdd-left .e-n-menu-item {
  position: relative;
}

.hdd-left .e-n-menu-title-container,
.hdd-left .e-n-menu-title .e-n-menu-title-text {
  font-family: "Prata", serif;
  font-size: 18px;
  font-weight: 400;
  color: #000 !important;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.hdd-left .e-n-menu-title {
    height: 38px;
    padding: 0 14px !important;
    border-radius: 8px;
    transition: background .2s ease;
}

.hdd-left .e-n-menu-item:hover .e-n-menu-title,
.hdd-left .e-n-menu-title[aria-current="page"]:focus {
  background: rgba(236, 189, 48, 0.18);
}


.hdd-left .e-n-menu-dropdown-icon i {
    border: 1.4px solid #B58F11;
    transform: rotate(0deg) translate(-1px, -1px) !important;
    transition: transform .26s ease !important;
    color: #B58F11 !important;
    border-radius: 100%;
    padding: 0;
    width: 18px !important;
    height: 18px !important;
    font-size: 12px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2px;
    margin-top: 4px;
}


.hdd-left .e-n-menu-dropdown-icon[aria-expanded="true"] {
  transform: rotate(225deg) translate(1px, 1px);
}

/* "For Pets" item (no dropdown) — icon + label inline */
.hdd-left .e-n-menu-item .e-n-menu-icon {
  margin-right: 5px;
  color: var(--hdd-gold-dark);
}
.hdd-left .e-n-menu-item .e-n-menu-title-container {
  gap: 1px;
}

/* ---------- Mega dropdown panels ---------- */
/* IMPORTANT: do not force "display" here — Elementor's own mega-menu
   JS toggles this exact element's visibility to show/hide the active
   panel. Overriding display with !important breaks that toggle and
   makes every panel render at once. Only cosmetic properties below. */
.hdd-mega {
  gap: 20px !important;
  padding: 50px var(--hdd-page-margin) 40px !important;
  background: #fff !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  border-radius: 0 0 12px 12px;
}

.hdd-mega-card {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none;
  cursor: pointer;
}

.hdd-mega-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.hdd-mega-card:hover img {
  transform: scale(1.06);
}

.hdd-mega-card .elementor-heading-title, .hdd-mega-label {
    font-family: "Prata", serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #000 !important;
    text-align: center;
    letter-spacing: -0.01em;
    transition: color .2s ease;
    margin: 0;
    line-height: 28px;
}

.hdd-mega-card:hover .elementor-heading-title {
  color: var(--hdd-gold-dark) !important;
}

/* ---------- Logo (overlaps the card's bottom border) ---------- */
.hdd-logo-wrap {
    position: absolute !important;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 15;
    padding: 0 6px 0px;
    background: #fff;
    border: 1px solid rgba(0, 48, 130, 0.2);
    border-top: none !important;
    border-radius: 0 0 10px 10px;
    width: auto !important;
	z-index:999;
}

.hdd-logo-wrap img {
  height: 99px;
  width: auto;
  display: block;
}

.hdd-card.is-scrolled .hdd-logo-wrap {
  border-color: rgba(0, 48, 130, 0.16);
}



/* Language switcher (rendered as an Icon List widget) */
.hdd-lang-wrap .elementor-icon-list-items {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hdd-lang-wrap .elementor-icon-list-item {
  font-family: "Figtree", sans-serif;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: color .2s ease;
}

.hdd-lang-wrap .elementor-icon-list-item:first-child,
.hdd-lang-wrap .elementor-icon-list-item.is-active {
  color: #000;
  font-weight: 600;
}

.hdd-lang-wrap .elementor-icon-list-item + .elementor-icon-list-item::before {
  content: '/';
  margin: 0 5px;
  color: rgba(0, 0, 0, 0.2);
  font-weight: 300;
}



/* CTA buttons */
.hdd-action-gold .elementor-button,
.hdd-action-navy .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background .2s ease;
}

.hdd-action-gold .elementor-button {
  background: var(--hdd-gold-dark) !important;
  color: #fff !important;
}
.hdd-action-gold .elementor-button:hover {
  background: #8f7009 !important;
}

.hdd-action-navy .elementor-button {
  background: var(--hdd-navy) !important;
  color: #fff !important;
}
.hdd-action-navy .elementor-button:hover {
  background: #002060 !important;
}

.hdd-action-gold .elementor-button svg,
.hdd-action-navy .elementor-button svg,
.hdd-action-gold .elementor-button i,
.hdd-action-navy .elementor-button i {
  font-size: 15px;
}

/* Custom burger Icon widget — hide it: the native Mega Menu widget
   already ships its own mobile toggle (.e-n-menu-toggle). Keeping both
   would duplicate the UI. Remove the Icon widget in the editor, or
   just leave this rule to hide it everywhere. */
.hdd-burger {
  display: none !important;
}

/* Style the Mega Menu widget's own built-in mobile toggle to match
   the original 3-line burger look */
.hdd-left .e-n-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: auto;
  height: auto;
  padding: 8px;
  background: none;
  border: none;
}
.hdd-left .e-n-menu-toggle .eicon-menu-bar,
.hdd-left .e-n-menu-toggle .eicon-close {
  display: none;
}
.hdd-left .e-n-menu-toggle::before,
.hdd-left .e-n-menu-toggle::after,
.hdd-left .e-n-menu-toggle span.e-open::before {
  content: '';
}

.hdd-mega-card .elementor-widget-image .elementor-widget-container {
    overflow: hidden;
    border-radius: 10px;
}

.hdd-card {
    width: 100%;
   
    display: flex;
    align-items: center;
    height: var(--card-h);
    padding: 0 26px;
    background: var(--hdd-white);
    border: 1px solid rgba(0, 48, 130, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: border-radius 0.38s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.38s ease, box-shadow 0.38s ease, height 0.38s ease, padding 0.38s ease;
}

.hdd-card .e-n-menu-content {
    position: fixed !important;
    padding: 0 68px;
    top: 76px !important;
    left: 0 !important;
}


.logged-in .hdd-card .e-n-menu-content {
      top: 110px !important;
   }



/* Оверлей затемнення body під шапкою */
.hdd-body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5; /* нижче за .hdd-card, вище за решту контенту */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hdd-body-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hdd-btn-wrap .elementor-button-icon svg {
    height: auto;
    width: 18px;
}

/* Mobile language switcher: hidden on desktop, shown inside the burger menu */
.hdd-lang-mobile {
  display: none;
}

/* Mobile CTA buttons: hidden by default, shown inside the burger menu on small screens */
.hdd-actions-mobile {
  display: none;
}










































/* ── Responsive ── */
@media (max-width: 1350px) {

.hdd-left .e-n-menu-title {
     padding: 0 11px !important;
  
}


	
	
	

}








/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hdd-card { padding: 0 40px !important; }
  .hdd-card.is-scrolled { padding: 0 40px !important; }
	
.hdd-left .e-n-menu-title {
    border-radius: 0;
 }	
	
.hdd-card .e-n-menu-wrapper {
    padding: 0 24px;
}	
	
.hdd-card.is-scrolled .e-n-menu-wrapper {
    padding: 0;
}		
	
	
	
.hdd-left .e-n-menu-item:last-child .e-n-menu-title {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}	
	
.hdd-left .e-n-menu-title {
    padding: 10px 40px !important;
    height: auto;
}
	
.hdd-card .e-n-menu-content {
    position: relative !important;
    padding: 0;
    top: 0 !important;
    left: 0 !important;
}
	
.logged-in .hdd-card .e-n-menu-content {
    top: 0 !important;
}	
	
	
.hdd-mega {
    padding: 40px !important;
    border-radius: 0;
}
	
	.main-header-wrap.is-scrolled .hdd-card .e-n-menu-content {
       top: 0 !important;
}
	
	
	

html.hdd-menu-locked,
html.hdd-menu-locked body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

  .hdd-left .e-n-menu-wrapper {
    max-height: var(--hdd-menu-max-h, calc(100dvh - 80px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;          /* скрол не "протікає" на сторінку */
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
	
  /* Hide the original switcher in the right part of the header */
  .hdd-card .hdd-lang-wrap {
    display: none;
  }

  /* Language block at the bottom of the dropdown, styled as part of the menu */
  .hdd-lang-mobile {
    display: flex;
    align-items: center;
    padding: 14px 24px 20px; /* same horizontal padding as menu titles */
    background: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  /* Bottom rounding now belongs to the language block, not the last menu item */
  .hdd-left .e-n-menu-item:last-child .e-n-menu-title {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .hdd-lang-mobile__item {
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.35);
  }

  .hdd-lang-mobile__item.is-active {
    color: #000;
    font-weight: 600;
  }

  /* Slash separator between languages */
  .hdd-lang-mobile__item + .hdd-lang-mobile__item::before {
    content: "/";
    margin: 0 8px;
    color: rgba(0, 0, 0, 0.2);
    font-weight: 300;
  }	
	
	.hdd-left .e-n-menu-title {
    padding: 10px 24px !important;
  
}
	
	
	
	
	
	
	
}

@media (max-width: 1024px) {
  .hdd-mega { gap: 12px !important; }
  .hdd-action-gold span.elementor-button-text,
  .hdd-action-navy span.elementor-button-text { display: none; }
  .hdd-action-gold .elementor-button,
  .hdd-action-navy .elementor-button { padding: 0 10px !important; }
	
	.hdd-btn-wrap span.elementor-button-text {
    display: none;
}
	
	
	
	
}

@media (max-width: 769px) {
  .hdd-left .e-n-menu-heading { display: none; }
  .hdd-left .e-n-menu-toggle { display: flex; }
  .hdd-right .hdd-action-gold,
  .hdd-right .hdd-action-navy,
  .hdd-vdivider { display: none !important; }
	
.hdd-card {
    padding: 0 24px !important;
}	
	
.hdd-mega {
    padding: 15px 24px !important;
   }	
	
	  /* Hide the original CTA buttons in the header */
  .hdd-card .hdd-btn-wrap {
    display: none;
  }

  /* CTA buttons block between menu items and the language switcher */
  .hdd-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px 4px; /* same horizontal padding as menu titles */
    background: #fff;
  }

  .hdd-actions-mobile__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 8px;
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
  }

  .hdd-actions-mobile__btn--gold {
    background: var(--hdd-gold-dark);
  }

  .hdd-actions-mobile__btn--navy {
    background: var(--hdd-navy);
  }

  .hdd-actions-mobile__icon svg {
    display: block;
    width: 18px;
    height: auto;
  }
	
	.hdd-left li.e-n-menu-item:first-of-type .e-n-menu-title {
    padding-top: 50px !important;
}
	
	
	
	
	
}

@media (max-width: 479px) {
  .hdd-card { height: 60px !important; }
  .hdd-logo-wrap img { height: 40px; }
}
