.head1
{
    margin: 0;
    align-items: center;
    display: flex;
    gap: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    padding: 2px 0;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    height: 120px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}
.head1 * { line-height: 1; }
main, .page-content, #content {
  padding-top: 0px; /* set to your header's height */
}

#logo
{
    display: block;    
    width: 400px !important;     
    height: 400px !important;
    cursor: pointer;
    margin-left: 8px;
    object-fit: contain;
    flex-shrink: 0;
    max-width: 200px;
    max-height: 1505px;
    min-width: 120px;
    min-height: 60px;
}
button
{
  border: none;
  background: transparent;
  display: inline-block;
  padding: 0;
}
.navbar ul
{
    list-style-type: none;
    font-size: 17px;
    gap: 40px;
    text-align: right;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    padding-right: 12px;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: auto;
}
.navbar a
{
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    color: #1a1a1a;
    border-bottom: 1px solid transparent;
    padding: 3px 6px;
    font-family: 'Calibri', sans-serif;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.15s ease;
    font-size: 19px;
    border-radius: 6px;
    -webkit-tap-highlight-color: rgba(29, 43, 83, 0.12);
}
/* No browser purple for visited; tap/active stays on-brand */
.navbar a:link,
.navbar a:visited {
    color: #1a1a1a;
}
.navbar a:hover
{
    border-bottom-color: #1d2b53;
    color: #1d2b53;
}

.navbar a.current-page
{
    border-bottom-color: #1d2b53;
    color: #1d2b53;
}
.navbar a.current-page:link,
.navbar a.current-page:visited {
    color: #1d2b53;
    border-bottom-color: #1d2b53;
}
/* Press / tap: light navy wash (readable, on-brand) */
.navbar a:active:not(.current-page) {
    color: #1d2b53;
    border-bottom-color: #1d2b53;
    background-color: rgba(29, 43, 83, 0.11);
}
.navbar a.current-page:active {
    color: #1d2b53;
    border-bottom-color: #1d2b53;
    background-color: rgba(197, 143, 47, 0.14);
}
.navbar li {
  white-space: nowrap;    
  align-items: center;
}


@media (max-width: 768px){
  .head1{
    height: auto;
    padding: 6px 0;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  #logo{
    width: 140px !important;
    height: auto !important;
    max-width: 140px;
    min-width: 80px !important;
    min-height: 0 !important;
  }
  .navbar{ position: relative; }
  .navbar ul{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    width: min(72vw, 300px);
    background: #ffffff;
    box-shadow: -6px 0 20px rgba(0,0,0,.15);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 5001;
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .mobile-menu{ list-style: none; margin: 0; padding: 0; }
  .mobile-menu li{ margin: 0; padding: 0; }
  .mobile-menu a{ 
    display: block; 
    padding: 16px 18px; 
    text-decoration: none; 
    color: #000; 
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    -webkit-tap-highlight-color: rgba(29, 43, 83, 0.12);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 5002;
    touch-action: manipulation;
    transition: color 0.15s ease, background-color 0.15s ease;
  }
  .mobile-menu a:active {
    color: #1d2b53;
    background-color: rgba(29, 43, 83, 0.09);
  }
  .mobile-menu a.current-page{ 
    color: #1d2b53; 
    font-weight: 600; 
  }
  .mobile-menu a.current-page:active {
    color: #1d2b53;
    background-color: rgba(197, 143, 47, 0.12);
  }
  .menu-close-btn{
    margin-top: 120px;
    text-align: center;
    padding-top: 60px;
  }
  .close-menu{
    background: #fff;
    border: 2px solid #e0e0e0;
    font-size: 24px;
    color: #666;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .close-menu:hover{
    color: #1d2b53;
    border-color: #1d2b53;
    transform: scale(1.1);
  }
  html.nav-open .navbar ul{ transform: translateX(0%); }
  .menu-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    z-index: 4000;
    pointer-events: none;
    /* Don't cover the menu area - only left side */
    clip-path: polygon(0 0, calc(100% - min(72vw, 300px)) 0, calc(100% - min(72vw, 300px)) 100%, 0 100%);
  }
  html.nav-open .menu-backdrop{
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }
  .head1{ position: relative; }
  .navbar a{
    font-size: 16px;
    padding: 6px 4px;
  }
}

@media (max-width: 480px){
  .navbar ul{ gap: 10px; }
  .navbar a{ font-size: 15px; }
}

/* hamburger button */
.menu-toggle{
  display: none;
  width: 48px;
  height: 42px;
  margin-right: 10px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0,0,0,.12);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
  font-size: 28px;
  color: #222;
  font-weight: 900;
  font-family: Arial, sans-serif;
}
@media (max-width: 900px){
  .menu-toggle{ display: inline-flex; margin-left: auto; }
}

/* focus styles — logo navy, not red/brick */
.menu-toggle:focus-visible,
.navbar a:focus-visible{
  outline: 3px solid #1d2b53;
  outline-offset: 2px;
}

/* menu toggle when open */
.head1.open .menu-toggle{ 
  color: #1d2b53; 
  border-color: #1d2b53; 
}

/* sticky header shadow when scrolled */
.head1.scrolled{ box-shadow: 0 6px 20px rgba(0,0,0,0.2), 0 3px 10px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1); }