* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Playfair Display", serif;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: linear-gradient(106.5deg, rgba(0, 0, 139, 0.5) 53.49%, rgba(88, 201, 13, 0.3) 99.34%);
  transition: transform 0.35s ease;
  color: #ffffff;
  font-size: 14px;
  width: 100%;
  position: fixed;
  z-index: 1;
}
.top-bar.hidden {
  transform: translateY(-100%);
}

.top-bar.shrink {
  top: 0;
  height: 56px;
}

.top-bar-inner {
  max-width: 1200px;
  margin: auto;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LEFT */
.top-bar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.top-bar-left a {
  color: #ffffff;
  text-decoration: none;
  /* font-family: "Roboto", sans-serif; */
  font-family: InterUI, sans-serif;
  font-size: 14px;
}

.top-bar-left i {
  font-size: 15px;
  color: #caa45a;
}

/* RIGHT */
.top-bar-right {
  display: flex;
  gap: 14px;
}

.top-bar-right a {
  color: #ffffff;
  font-size: 15px;
  transition: color .2s ease;
}

.top-bar-right a:hover {
  color: #caa45a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .top-bar-left .location {
    display: none;
  }
}

@media (max-width: 600px) {
  .top-bar-inner {
    justify-content: center;
  }

  .top-bar-left span:not(:first-child) {
    display: none;
  }

  .top-bar-right {
    display: none;
  }
}

/* ===== MOBILE TOP BAR (PIXEL-PERFECT) ===== */
@media (max-width: 600px) {
  .top-bar {
    font-size: 13px;
  }

  .top-bar-inner {
    justify-content: space-between;
    padding: 6px 12px;
  }

  .top-bar-left {
    gap: 14px;
  }

  /* Show ONLY phone + email */
  .top-bar-left span {
    display: flex;
    gap: 5px;
  }

  .top-bar-left .location {
    display: none;
  }

  .top-bar-left span:not(:nth-child(1)):not(:nth-child(2)) {
    display: none;
  }

  /* Social icons compact */
  .top-bar-right {
    display: flex;
    gap: 10px;
  }

  .top-bar-right a {
    font-size: 14px;
  }
}

:focus-visible {
  outline: 2px solid #8b5e2b;
}

/* ===== NAVBAR ===== */
/* ===== NAVBAR BASE ===== */
.navbar {
  position: fixed;
  top: 34px; /* because of top bar */
  width: 100%;
  display: inline-block;
  background: transparent;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
  z-index: 1000;
}

#nav-sentinel {
  height: 1px;
}

/* SOLID STATE ON SCROLL */
.navbar.scrolled {
  background-color: #ffffff; /* or your brand color */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  top: -1px;
}

.navbar.shrink {
  top: 0;
  height: 56px;
}

.nav-inner {
  max-width: 1200px;
  height: 50px; 
  margin: auto;
  display: flex;
  gap: clamp(18px, 1.25vw, 48px);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  top: -8px;
  transition: color 0.3s ease;
  position: relative;
  width: 140px; /* match your SVG width */
  height: 40px; /* match your SVG height */
}

.logo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Default (hero / transparent nav) */
.logo-light {
  opacity: 1;
}

.logo-dark {
  opacity: 0;
}

/* Scrolled state */
.navbar.scrolled .logo-light {
  opacity: 0;
}

.navbar.scrolled .logo-dark {
  opacity: 1;
}

.logo,
.logo-icon {
  color: #ffffff;
}

/* Scrolled */
.navbar.scrolled .logo,
.navbar.scrolled .logo-icon {
  color: #8b5e2b;
}

.logo img {
  width: 300px;
  height: auto;
  top: 2px;
  position: absolute; 
}

/* ===== DESKTOP DROPDOWNS ===== */
.nav-links {
  display: flex;
  padding-left: 16rem;
  gap: 30px;
  align-items: center;
  justify-items: center;
  font-family: InterUI, sans-serif;
}

.nav-links a,
.nav-links button {
  color: #ffffff;
  transition: color 0.3s ease;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}

/* On scroll */
.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-links button {
  color: #111111;
}
.dropdown-desktop {
  position: relative;
}

.dropdown-menu{
  position: absolute;
  top: calc(100% + 12px); /* visual spacing */
  left: 0;
}

/* INVISIBLE HOVER BRIDGE */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-menu {
  position: absolute;
  display: inline;
  top: 130%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 250px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.15s;
  visibility: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #111;
}

.dropdown-menu a:hover {
  background: #f4f4f4;
}

.dropdown-desktop:hover .dropdown-menu,
.dropdown-desktop:focus-within .dropdown-menu {
  visibility: visible;
  transition-delay: 0s;
  
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-links a:hover,
.nav-links button:hover {
  color: #c77b2a;
}

.menu-btn {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
}

/* ===== BACKDROP ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1500;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ===== DRAWER ===== */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: 290px;
  background: #d9d9d9;
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 2000;
  padding: 30px 16px;
}

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

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.drawer-header button{
  border: none;
  font-size: 18px;
}

.drawer-header .drawer-logo {
  font-size: 22px;
  color: #8b5e2b;
  display: flex;
  gap: 6px;
}

.drawer-header .drawer-logo img {
  width: 220px;
  height: auto;
  top: 30px;
  position: absolute; 
}

.drawer-nav {
  list-style: none;
  margin-top: 16px;
  margin-bottom: 40px;
  padding-left: 0px;
  font-family: InterUI, sans-serif;
}

.drawer-nav li {
  /* border-bottom: 1px solid #bcbcbc; */
  border-bottom: 1px solid #1f1f1f;
}

.drawer-nav a,
.dropdown-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
/* ===== MOBILE SUBMENU INTERACTION ===== */
.dropdown-btn {
  transition: background-color 0.5s ease;
  padding-right: 8px;
}

/* Chevron icon */
.dropdown-btn i{
  transition: transform 0.5s ease;
  color: #ffffff;
  background-color: #0f0f0f;
  border-radius: 5px;
  padding: 8px;
  font-size: 14px;
}

/* OPEN STATE */
.dropdown.open > .dropdown-btn {
  /* background-color: #c77b2a; law firm orange */
  /* color: #ffffff; */
}
/* Rotate chevron down */
.dropdown.open > .dropdown-btn i{
  transform: rotate(90deg);
}

/* Improve contrast on orange */
.dropdown.open > .dropdown-btn i {
  color: #ffffff;
  background-color: #c77b2a;
}

/* Submenu spacing polish */
.submenu a {
  padding: 10px 0;
  display: block;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 14px;
}

.dropdown.open .submenu {
  max-height: 200px;
}

.drawer-footer {
  margin-top: 20px;
}

.mobile-nav__contact{
  margin-top: 20px;
  margin-bottom: 20px;
}
.list-unstyled{
  padding-left: 0;
  list-style: none;
}
.mobile-nav__contact li{
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
}
.mobile-nav__contact li a{
  font-family: InterUI, sans-serif;
}
.mobile-nav__contact li i{
  width: 30px;
    height: 30px;
    border-radius: clamp(8px, 0.625vw, 48px) !important;
    background-color: #031714;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 16px;
    margin-right: 10px;
    color: #FFFFFF;
}
.mobile-nav__contact i {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  background-color: #1f1f1f;
  padding: 8px;
  border-radius: 8px;
}

.mobile-nav__social{
  display: flex;
  align-items: center;
  color: #0f0f0f;
}

.mobile-nav__social a{
  font-size: 16px;
  color: #0f0f0f;
  transition: 500ms;

}
.mobile-nav__social a + a {
    margin-left: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}
