/* NAVBAR: responsive, accessible */
/* Merge variables if you already have them */
:root{
  --nav-bg: #ffffff;
  --accent: #2a9baf;        /* contact button fill */
  --accent-contrast: #ffffff;
  --muted: #6b6b6b;
  --max-width: 1100px;
  --container-pad: 20px;
  --radius: 10px;
  --shadow-sm: 0 6px 18px rgba(20,20,20,0.06);
  --nav-height: 72px;
  --focus: 3px solid rgba(43,138,111,0.18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset basics for nav area */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* inner container */
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px var(--container-pad);
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-height);
}

/* brand / logo */
.nav-brand { display:flex; align-items:center; }
.nav-logo {
  display:block;
  max-height: 48px;
  width: auto;
  height: auto;
}

/* links - desktop */
.nav-links {
  margin-left: auto;             /* pushes links to right */
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
}

/* link styles */
.nav-link {
  font-family: var(--font);
  color: #111;
  text-decoration: none;
  padding: 6px 4px;  /* clickable area but no border */
  font-weight: 600;
  opacity: 0.95;
  transition: opacity .18s ease, transform .12s ease;
}
.nav-link:hover,
.nav-link:focus {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
  box-shadow: none;
}

/* Contact button (desktop) */
.btn {
  display: inline-block;
  font-family: var(--font);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}

/* Filled button style for Contact */
.btn-contact {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn-contact:hover,
.btn-contact:focus {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 8px 24px rgba(43,138,111,0.12);
}

/* keyboard focus */
.nav-link:focus, .btn-contact:focus, .nav-toggle:focus {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* HAMBURGER (mobile) */
.nav-toggle {
  display: none; /* shown on mobile only */
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle .hamburger {
  display:inline-block;
  width:20px;
  height:16px;
  position:relative;
}
.nav-toggle .hamburger span {
  display:block;
  height:2px;
  background:#111;
  border-radius:2px;
  position:absolute;
  left:0;
  right:0;
}
.nav-toggle .hamburger span:nth-child(1){ top:0; }
.nav-toggle .hamburger span:nth-child(2){ top:7px; }
.nav-toggle .hamburger span:nth-child(3){ top:14px; }

/* MOBILE MENU (hidden by default) */
.mobile-menu {
  display: none;
  background: var(--nav-bg);
  border-top: 1px solid rgba(0,0,0,0.04);
}
.mobile-menu ul { list-style:none; margin:0; padding: 12px var(--container-pad); display:flex; flex-direction:column; gap:10px; }
.mobile-menu a {
  display:block;
  padding: 12px;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}
.mobile-link { font-weight:700; }
.mobile-link:hover, .mobile-link:focus { background: rgba(0,0,0,0.03); }

/* Mobile contact style */
.btn-mobile-contact {
  display:block;
  text-align:center;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}

/* RESPONSIVE BREAKPOINTS */
/* Desktop (default) */
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .mobile-menu { display: none !important; }
}

/* Tablet & Mobile */
@media (max-width: 879px) {
  .nav-links { display: none; }   /* hide desktop links */
  .nav-toggle { display: inline-block; margin-left: auto; }

  /* show mobile menu when not hidden (JS toggles hidden attribute) */
  .mobile-menu[hidden] { display: none; }
  .mobile-menu:not([hidden]) { display: block; }

  /* shrink logo slightly */
  .nav-logo { max-height: 40px; }

  /* ensure header height comfortable on mobile */
  .nav-inner { height: 60px; padding-top: 8px; padding-bottom: 8px; }
}

/* small accessibility tweak for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-link, .btn-contact { transition: none !important; }
}
