/* ═══════════════════════════════════════════════════════
   YUVANTAR HEADER FOOTER PLUGIN — HEADER STYLES
   All selectors namespaced with yhf- prefix to avoid
   conflicts with the active WordPress theme.
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────── */
:root {
  --yhf-navy:        #1B2A6B;
  --yhf-gold:        #C8972A;
  --yhf-orange:      #E8502A;
  --yhf-white:       #FFFFFF;
  --yhf-light:       #F8F8F8;
  --yhf-dark-navy:   #0D1A4A;
  --yhf-text:        #333333;
  --yhf-text-light:  #666666;

  --yhf-font-heading: 'Playfair Display', Georgia, serif;
  --yhf-font-sub:     'Montserrat', sans-serif;
  --yhf-font-body:    'Inter', system-ui, sans-serif;

  --yhf-transition:  0.35s ease;
  --yhf-radius:      12px;
  --yhf-shadow-sm:   0 4px 20px rgba(27,42,107,0.08);
  --yhf-shadow-md:   0 12px 40px rgba(27,42,107,0.14);
  --yhf-shadow-lg:   0 24px 60px rgba(27,42,107,0.18);
  --yhf-container:   1200px;
  --yhf-gutter:      clamp(1.25rem, 5vw, 2rem);
}

/* ── Skip Link ───────────────────────────────────────── */
.yhf-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--yhf-gold);
  color: var(--yhf-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--yhf-font-sub);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
}
.yhf-skip-link:focus {
  top: 1rem;
}

/* ── Container ───────────────────────────────────────── */
.yhf-container {
  width: 100%;
  max-width: var(--yhf-container);
  margin: 0 auto;
  padding: 0 var(--yhf-gutter);
  box-sizing: border-box;
}

/* ── Site Header ─────────────────────────────────────── */
.yhf-site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--yhf-white);
  box-shadow: 0 2px 30px rgba(27, 42, 107, 0.1);
  transition: background var(--yhf-transition), box-shadow var(--yhf-transition);
}
.yhf-site-header.yhf-transparent-mode {
  background: transparent;
  box-shadow: none;
}
.yhf-site-header.yhf-scrolled {
  background: var(--yhf-white);
  box-shadow: 0 2px 30px rgba(27, 42, 107, 0.1);
}
body.admin-bar .yhf-site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .yhf-site-header {
    top: 46px;
  }
}

/* ── Header Inner ────────────────────────────────────── */
.yhf-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

/* ── Logo ────────────────────────────────────────────── */
.yhf-site-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.yhf-logo-image {
  width: var(--yhf-logo-width, auto);
  height: var(--yhf-logo-height, auto);
  max-height: 50px; /* Crucial: Prevents oversized logos */
  display: block;
  object-fit: contain;
}

/* ── Logo Swapping Logic ── */
.yhf-sticky-logo {
  display: none !important;
}

.yhf-scrolled .yhf-has-sticky .yhf-main-logo {
  display: none !important;
}

.yhf-scrolled .yhf-has-sticky .yhf-sticky-logo {
  display: block !important;
}

.yhf-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.yhf-logo-name {
  font-family: var(--yhf-font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--yhf-navy);
  transition: color var(--yhf-transition);
}
.yhf-logo-tagline {
  font-family: var(--yhf-font-sub);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yhf-text-light);
  transition: color var(--yhf-transition);
}

/* Transparent Mode Overrides - Removed as per user request for solid header */
/*
.yhf-transparent-mode:not(.yhf-scrolled) .yhf-logo-name {
  color: var(--yhf-white);
}
.yhf-transparent-mode:not(.yhf-scrolled) .yhf-logo-tagline {
  color: rgba(255, 255, 255, 0.7);
}
*/

/* ── Primary Navigation ──────────────────────────────── */
.yhf-primary-nav {
  display: flex;
}
@media screen and (max-width: 768px) {
  .yhf-primary-nav {
    display: none;
  }
}
.yhf-nav-list,
ul.yhf-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.yhf-nav-item {
  position: relative;
}
.yhf-nav-link,
a.yhf-nav-link {
  font-family: var(--yhf-font-sub);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  color: var(--yhf-navy);
  border-radius: 6px;
  transition: color var(--yhf-transition);
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.yhf-nav-link::after,
a.yhf-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--yhf-gold);
  transition: transform var(--yhf-transition);
  border-radius: 2px;
}
.yhf-nav-link:hover::after,
a.yhf-nav-link:hover::after,
.yhf-nav-link.active::after,
a.yhf-nav-link.active::after,
.yhf-nav-item.current .yhf-nav-link::after {
  transform: translateX(-50%) scaleX(1);
}
.yhf-nav-link:hover,
a.yhf-nav-link:hover,
.yhf-scrolled .yhf-nav-link:hover,
.yhf-scrolled a.yhf-nav-link:hover {
  color: var(--yhf-gold);
}

/* Transparent Nav Colours - Removed as per user request */
/*
.yhf-transparent-mode:not(.yhf-scrolled) .yhf-nav-link,
.yhf-transparent-mode:not(.yhf-scrolled) a.yhf-nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.yhf-transparent-mode:not(.yhf-scrolled) .yhf-nav-link:hover,
.yhf-transparent-mode:not(.yhf-scrolled) a.yhf-nav-link:hover {
  color: var(--yhf-white);
}
*/

/* ── Buttons ─────────────────────────────────────────── */
.yhf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--yhf-font-sub);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  transition: all var(--yhf-transition);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.yhf-btn-primary {
  background: var(--yhf-gold);
  color: var(--yhf-white);
  border-color: var(--yhf-gold);
}
.yhf-btn-primary:hover {
  background: #b8841f;
  border-color: #b8841f;
  transform: translateY(-2px);
  box-shadow: var(--yhf-shadow-md);
  color: var(--yhf-white);
  text-decoration: none;
}
.yhf-btn-cta {
  background: var(--yhf-gold);
  color: var(--yhf-white);
  border-color: var(--yhf-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.7rem 1.8rem;
}
.yhf-btn-cta:hover {
  background: #b8841f;
  border-color: #b8841f;
  color: var(--yhf-white);
  transform: translateY(-1px);
}
.yhf-site-header.yhf-scrolled .yhf-btn-cta,
.yhf-site-header:not(.yhf-transparent-mode) .yhf-btn-cta {
  background: var(--yhf-navy);
  border-color: var(--yhf-navy);
}
.yhf-site-header.yhf-scrolled .yhf-btn-cta:hover,
.yhf-site-header:not(.yhf-transparent-mode) .yhf-btn-cta:hover {
  background: var(--yhf-dark-navy);
  border-color: var(--yhf-dark-navy);
}

/* ── Hamburger ───────────────────────────────────────── */
.yhf-hamburger {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  .yhf-hamburger {
    display: flex !important;
  }
}
.yhf-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yhf-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.yhf-scrolled .yhf-hamburger span { background: var(--yhf-navy); }

.yhf-hamburger.yhf-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.yhf-hamburger.yhf-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.yhf-hamburger.yhf-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Overlay ──────────────────────────────── */
.yhf-mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--yhf-dark-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.yhf-mobile-nav-overlay.yhf-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.yhf-mobile-nav-overlay nav {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.yhf-mobile-nav-list,
ul.yhf-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.yhf-mobile-nav-list a,
ul.yhf-mobile-nav-list li a {
  font-family: var(--yhf-font-heading);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--yhf-white);
  padding: 0.5rem 1.5rem;
  display: block;
  transition: color var(--yhf-transition);
  text-decoration: none;
}
.yhf-mobile-nav-list a:hover,
ul.yhf-mobile-nav-list li a:hover {
  color: var(--yhf-gold);
}
.yhf-mobile-cta {
  font-family: var(--yhf-font-sub) !important;
  font-size: 1rem !important;
  margin-top: 1rem;
}
.yhf-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--yhf-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.yhf-mobile-close:hover { opacity: 1; }

/* ── Responsive: show hamburger on mobile ────────────── */
@media (max-width: 768px) {
  .yhf-primary-nav,
  .yhf-header-cta {
    display: none;
  }
}

/* ── Keyframes ───────────────────────────────────────── */
@keyframes yhf-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
