/* ================================================================
   HEBRON SAFETY NETS — PREMIUM HEADER v2.0
   Palette: Navy #0D1B2A | Gold #C9A96E | White #FFFFFF
   Breakpoints: 320 / 375 / 430 / 768 / 1024 / 1200 / 1280 / 1440
   ================================================================ */

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

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  --hn-navy:        #0D1B2A;
  --hn-navy-light:  #1e3352;
  --hn-gold:        #C9A96E;
  --hn-gold-dark:   #a8844f;
  --hn-white:       #ffffff;
  --hn-off-white:   #f7f5f2;
  --hn-border:      rgba(13, 27, 42, 0.08);
  --hn-border-md:   rgba(13, 27, 42, 0.15);
  --hn-font:        'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --hn-h:           76px;
  --hn-h-sm:        60px;
  --hn-h-mob:       64px;
  --hn-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --hn-dur:         0.25s;
}

/* ----------------------------------------------------------------
   SUPPRESS OLD NAVBAR — avoid duplication
   ---------------------------------------------------------------- */
.navbar-area,
.main-responsive-nav,
.main-navbar,
.others-option-for-responsive {
  display: none !important;
  visibility: hidden !important;
}

/* ----------------------------------------------------------------
   BODY OFFSET — push page below fixed header
   ---------------------------------------------------------------- */
body {
  padding-top: var(--hn-h) !important;
}

/* ----------------------------------------------------------------
   HEADER SHELL
   ---------------------------------------------------------------- */
#hn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--hn-white);
  border-bottom: 1px solid var(--hn-border);
  box-shadow: 0 2px 16px rgba(13, 27, 42, 0.05);
  font-family: var(--hn-font);
  transition:
    box-shadow var(--hn-dur) var(--hn-ease),
    background var(--hn-dur) var(--hn-ease);
}

#hn-header.hn-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.10);
}

/* ----------------------------------------------------------------
   INNER CONTAINER
   ---------------------------------------------------------------- */
.hn-header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--hn-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  transition: height var(--hn-dur) var(--hn-ease);
}

#hn-header.hn-scrolled .hn-header-inner {
  height: var(--hn-h-sm);
}

/* ----------------------------------------------------------------
   LOGO
   ---------------------------------------------------------------- */
.hn-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
  outline-offset: 4px;
}

.hn-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: height var(--hn-dur) var(--hn-ease);
}

#hn-header.hn-scrolled .hn-logo img {
  height: 40px;
}

/* Business Name Typography */
.hn-brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  line-height: 1.1;
  text-align: left;
}

.hn-brand-title {
  font-family: var(--hn-font);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.2px;
  color: var(--hn-navy);
  text-transform: uppercase;
  transition: color var(--hn-dur) var(--hn-ease);
}

.hn-brand-sub {
  font-family: var(--hn-font);
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--hn-gold-dark);
  text-transform: uppercase;
  margin-top: 1px;
}

.hn-logo:hover .hn-brand-title {
  color: var(--hn-gold-dark);
}


/* ----------------------------------------------------------------
   DESKTOP NAV
   ---------------------------------------------------------------- */
.hn-nav {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  height: 100%;
}

.hn-nav > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.hn-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--hn-navy);
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  transition: color var(--hn-dur) var(--hn-ease);
}

/* Gold underline */
.hn-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--hn-gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--hn-ease);
}

.hn-nav > li > a:hover,
.hn-nav > li > a:focus-visible {
  color: var(--hn-gold-dark);
}
.hn-nav > li > a:hover::after,
.hn-nav > li > a:focus-visible::after,
.hn-nav > li.hn-active > a::after {
  transform: scaleX(1);
}
.hn-nav > li.hn-active > a {
  color: var(--hn-gold-dark);
}

/* Chevron */
.hn-chevron {
  display: inline-block;
  font-size: 9px;
  line-height: 1;
  transition: transform 0.2s var(--hn-ease);
  margin-left: 1px;
}
.hn-nav > li:hover > a .hn-chevron,
.hn-nav > li:focus-within > a .hn-chevron {
  transform: rotate(180deg);
}

/* ----------------------------------------------------------------
   DROPDOWN
   ---------------------------------------------------------------- */
.hn-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--hn-white);
  border: 1px solid var(--hn-border-md);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(13, 27, 42, 0.14);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 901;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s var(--hn-ease),
    transform 0.2s var(--hn-ease),
    visibility 0.2s;
}

.hn-nav > li:hover .hn-dropdown,
.hn-nav > li:focus-within .hn-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Gold top-accent */
.hn-dropdown::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  width: 32px;
  height: 2px;
  background: var(--hn-gold);
  border-radius: 0 0 2px 2px;
}

.hn-dropdown li a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hn-navy);
  text-decoration: none !important;
  transition:
    color var(--hn-dur) var(--hn-ease),
    background var(--hn-dur) var(--hn-ease),
    padding-left var(--hn-dur) var(--hn-ease);
}

.hn-dropdown li a:hover,
.hn-dropdown li a:focus-visible {
  color: var(--hn-gold-dark);
  background: var(--hn-off-white);
  padding-left: 28px;
}

/* ----------------------------------------------------------------
   CTA GROUP
   ---------------------------------------------------------------- */
.hn-cta-group {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.hn-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hn-navy);
  color: var(--hn-gold) !important;
  text-decoration: none !important;
  font-family: var(--hn-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 5px;
  border: 1.5px solid var(--hn-navy);
  white-space: nowrap;
  transition:
    background var(--hn-dur) var(--hn-ease),
    color var(--hn-dur) var(--hn-ease),
    border-color var(--hn-dur) var(--hn-ease),
    transform 0.15s var(--hn-ease);
}

.hn-cta-btn:hover,
.hn-cta-btn:focus-visible {
  background: var(--hn-gold);
  border-color: var(--hn-gold);
  color: var(--hn-navy) !important;
  transform: translateY(-1px);
}
.hn-cta-btn:active { transform: translateY(0); }

.hn-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--hn-font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hn-navy) !important;
  text-decoration: none !important;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color var(--hn-dur) var(--hn-ease);
}

.hn-phone-link:hover,
.hn-phone-link:focus-visible {
  color: var(--hn-gold-dark) !important;
}

.hn-phone-link svg,
.hn-cta-btn svg { flex-shrink: 0; }

/* ----------------------------------------------------------------
   HAMBURGER BUTTON
   ---------------------------------------------------------------- */
.hn-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--hn-border-md);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    border-color var(--hn-dur) var(--hn-ease),
    background var(--hn-dur) var(--hn-ease);
  -webkit-tap-highlight-color: transparent;
}

.hn-hamburger:hover,
.hn-hamburger:focus-visible {
  border-color: var(--hn-gold);
  background: rgba(201, 169, 110, 0.06);
  outline: none;
}

.hn-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--hn-navy);
  border-radius: 2px;
  transition:
    transform var(--hn-dur) var(--hn-ease),
    opacity var(--hn-dur) var(--hn-ease),
    width var(--hn-dur) var(--hn-ease);
}
.hn-hamburger span:nth-child(1) { width: 20px; }
.hn-hamburger span:nth-child(2) { width: 14px; }
.hn-hamburger span:nth-child(3) { width: 20px; }

.hn-hamburger.hn-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 20px;
}
.hn-hamburger.hn-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hn-hamburger.hn-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 20px;
}

/* ----------------------------------------------------------------
   OVERLAY
   ---------------------------------------------------------------- */
.hn-overlay {
  position: fixed;
  inset: 0;
  z-index: 902;
  background: rgba(13, 27, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--hn-ease), visibility 0.3s;
}

.hn-overlay.hn-visible {
  opacity: 1;
  visibility: visible;
}

/* ----------------------------------------------------------------
   MOBILE DRAWER
   ---------------------------------------------------------------- */
.hn-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(310px, 90vw);
  z-index: 903;
  background: var(--hn-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 40px rgba(13, 27, 42, 0.2);
  overflow: hidden;
}

.hn-drawer.hn-open {
  transform: translateX(0);
}

.hn-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hn-border);
  flex-shrink: 0;
}

.hn-drawer-head img {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.hn-drawer-head .hn-brand-title {
  font-size: 13px;
}

.hn-drawer-head .hn-brand-sub {
  font-size: 7.5px;
}


.hn-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--hn-border-md);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--hn-navy);
  transition:
    border-color var(--hn-dur) var(--hn-ease),
    color var(--hn-dur) var(--hn-ease),
    background var(--hn-dur) var(--hn-ease);
  -webkit-tap-highlight-color: transparent;
}

.hn-drawer-close:hover,
.hn-drawer-close:focus-visible {
  border-color: var(--hn-gold);
  color: var(--hn-gold-dark);
  background: rgba(201, 169, 110, 0.06);
  outline: none;
}

.hn-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hn-mobile-nav::-webkit-scrollbar { width: 3px; }
.hn-mobile-nav::-webkit-scrollbar-track { background: transparent; }
.hn-mobile-nav::-webkit-scrollbar-thumb {
  background: var(--hn-border-md);
  border-radius: 2px;
}

.hn-mobile-nav > li {
  border-bottom: 1px solid var(--hn-border);
}

.hn-mobile-nav > li > a,
.hn-mobile-nav > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--hn-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--hn-navy);
  text-decoration: none !important;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--hn-dur) var(--hn-ease), background var(--hn-dur) var(--hn-ease);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.hn-mobile-nav > li > a:hover,
.hn-mobile-nav > li > button:hover {
  color: var(--hn-gold-dark);
  background: var(--hn-off-white);
}

.hn-mobile-chevron {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.22s var(--hn-ease);
  margin-left: 6px;
}

.hn-mobile-nav > li.hn-sub-open > button .hn-mobile-chevron {
  transform: rotate(180deg);
}

.hn-mobile-sub {
  display: none;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  background: var(--hn-off-white);
  border-top: 1px solid var(--hn-border);
}

.hn-mobile-nav > li.hn-sub-open > .hn-mobile-sub {
  display: block;
}

.hn-mobile-sub li a {
  display: block;
  padding: 11px 18px 11px 30px;
  font-family: var(--hn-font);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hn-navy-light);
  text-decoration: none !important;
  border-bottom: 1px solid var(--hn-border);
  transition:
    color var(--hn-dur) var(--hn-ease),
    padding-left var(--hn-dur) var(--hn-ease),
    background var(--hn-dur) var(--hn-ease);
  -webkit-tap-highlight-color: transparent;
}

.hn-mobile-sub li:last-child a { border-bottom: none; }

.hn-mobile-sub li a:hover,
.hn-mobile-sub li a:focus-visible {
  color: var(--hn-gold-dark);
  background: rgba(201, 169, 110, 0.08);
  padding-left: 36px;
}

.hn-drawer-foot {
  border-top: 1px solid var(--hn-border);
  padding: 18px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--hn-white);
}

.hn-drawer-foot .hn-cta-btn {
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  font-size: 12px;
  border-radius: 6px;
}

.hn-drawer-foot .hn-phone-link {
  justify-content: center;
  font-size: 13px;
}

.hn-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--hn-font);
  font-size: 13px;
  font-weight: 600;
  color: #128C7E !important;
  text-decoration: none !important;
  transition: opacity var(--hn-dur) var(--hn-ease);
  -webkit-tap-highlight-color: transparent;
}

.hn-whatsapp-link:hover { opacity: 0.8; }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */

/* Mobile / Tablet: up to 1199px */
@media (max-width: 1199px) {
  body { padding-top: var(--hn-h-mob) !important; }
  .hn-header-inner {
    height: var(--hn-h-mob);
    padding: 0 20px;
  }
  #hn-header.hn-scrolled .hn-header-inner { height: var(--hn-h-mob); }
  .hn-header-inner > nav { display: none !important; }
  .hn-cta-group { display: none !important; }
  .hn-hamburger { display: flex !important; }
  .hn-logo img { height: 50px; }
  #hn-header.hn-scrolled .hn-logo img { height: 44px; }
}

/* Tablet 768–1199px */
@media (min-width: 768px) and (max-width: 1199px) {
  .hn-header-inner { padding: 0 28px; }
  .hn-logo img { height: 52px; }
}

/* Small mobile: ≤ 375px */
@media (max-width: 375px) {
  .hn-header-inner { padding: 0 14px; }
  .hn-logo img { height: 44px; max-width: 150px; }
}

/* Very small: ≤ 320px */
@media (max-width: 320px) {
  .hn-logo img { height: 40px; max-width: 130px; }
  .hn-hamburger { width: 40px; height: 40px; }
}

/* Desktop: ≥ 1200px */
@media (min-width: 1200px) {
  .hn-hamburger { display: none !important; }
  .hn-header-inner > nav { display: flex !important; }
  .hn-cta-group { display: flex !important; }
}

/* Large desktop: ≥ 1440px */
@media (min-width: 1440px) {
  .hn-header-inner { padding: 0 48px; }
  .hn-nav > li > a { padding: 0 14px; font-size: 12.5px; }
}

/* ----------------------------------------------------------------
   ACCESSIBILITY — focus outlines
   ---------------------------------------------------------------- */
.hn-logo:focus-visible,
.hn-cta-btn:focus-visible,
.hn-phone-link:focus-visible,
.hn-hamburger:focus-visible,
.hn-drawer-close:focus-visible,
.hn-nav a:focus-visible,
.hn-dropdown a:focus-visible,
.hn-mobile-nav a:focus-visible,
.hn-mobile-nav button:focus-visible,
.hn-mobile-sub a:focus-visible,
.hn-whatsapp-link:focus-visible {
  outline: 2px solid var(--hn-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ----------------------------------------------------------------
   PRINT
   ---------------------------------------------------------------- */
@media print {
  #hn-header, .hn-overlay, .hn-drawer { display: none !important; }
  body { padding-top: 0 !important; }
}
