@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css');

/* ==========================================================================
   Common Header & Navigation Styles (MD Overseas FZCO)
   ========================================================================== */

@font-face {
  font-family: 'NormalAmp';
  font-style: normal;
  font-weight: 100 900;
  src: local('Inter'), local('DM Sans'), local('Roboto'), local('Segoe UI'), local('Helvetica Neue'), local('Arial');
  unicode-range: U+0026;
}

@font-face {
  font-family: 'NormalAmp';
  font-style: italic;
  font-weight: 100 900;
  src: local('Inter Italic'), local('DM Sans Italic'), local('Roboto Italic'), local('Segoe UI Italic'), local('Helvetica Neue Italic'), local('Arial Italic');
  unicode-range: U+0026;
}

:root {
  --header-gold: #d8aa45;
  --header-gold-light: #f1d28a;
  --header-serif: 'NormalAmp', 'Cormorant Garamond', Georgia, serif;
  --header-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-container: min(1240px, calc(100% - 48px));
}

.site-header {
  width: 100%;
  position: relative;
  z-index: 1000;
  font-family: var(--header-sans);
}

/* Utility Bar (Top Strip) */
.utility-bar {
  background: #090908;
  border-bottom: 1px solid #25231f;
  color: #b7b3aa;
  font-size: 10px;
  letter-spacing: .12em;
  font-family: var(--header-sans);
  width: 100%;
  overflow: hidden;
}

.utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.utility-links i {
  color: var(--header-gold);
  margin-right: 5px;
}

.utility-links a {
  color: var(--header-gold-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.utility-links a:hover {
  color: #ffffff;
}

/* Navbar */
.navbar {
  height: 86px;
  background: rgba(8, 8, 7, .97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #27251f;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: var(--header-sans);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Brand Logo & Typography */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}

.brand img {
  max-height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 45px;
  height: 45px;
  border: 1px solid var(--header-gold);
  display: grid;
  place-items: center;
  color: var(--header-gold);
  font-family: var(--header-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  position: relative;
  flex-shrink: 0;
}

.brand-mark:after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(216, 170, 69, .35);
  pointer-events: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: var(--header-serif);
  font-size: 24px;
  letter-spacing: .07em;
  line-height: 1;
  color: #fff;
  font-weight: 700;
}

.brand-copy small {
  font-family: var(--header-sans);
  font-size: 8px;
  color: #a8a59e;
  letter-spacing: .22em;
  margin-top: 6px;
  display: block;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link {
  color: #e8e5de;
  padding: 32px 12px 29px;
  font-size: 11px;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color .25s ease;
  font-family: var(--header-sans);
}

.nav-link:after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 19px;
  height: 2px;
  background: var(--header-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--header-gold-light);
}

.nav-link:hover:after,
.nav-link.active:after {
  transform: scaleX(1);
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  align-items: center;
  justify-content: center;
}

.menu-toggle:focus-visible {
  outline: 1px solid var(--header-gold);
}

/* ==========================================================================
   Responsive Header Styles
   ========================================================================== */

@media (max-width: 1180px) {
  .nav-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 32px 8px 29px;
    font-size: 10.5px;
  }

  .nav-link:after {
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 991px) {
  .utility-inner {
    justify-content: center;
    padding: 6px 0;
  }

  .utility-inner > span {
    display: none;
  }

  .utility-links {
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .navbar {
    height: 72px;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0b0b09;
    border-bottom: 1px solid #302c24;
    padding: 12px 24px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-menu.is-open,
  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 4px;
    font-size: 13px;
    border-bottom: 1px solid #25231f;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-link:last-child {
    border: 0;
  }

  .nav-link:after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .brand img {
    max-height: 42px;
    max-width: 170px;
  }
}

@media (max-width: 680px) {
  .utility-bar {
    font-size: 9px;
  }

  .utility-links span {
    display: none;
  }

  .utility-links a {
    font-size: 9.5px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 66px;
  }

  .nav-menu {
    top: 66px;
    padding: 8px 18px 20px;
  }

  .brand img {
    max-height: 36px;
    max-width: 145px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .utility-bar {
    font-size: 8px;
  }

  .utility-links a {
    font-size: 8.5px;
    letter-spacing: 0.05em;
  }

  .menu-toggle {
    font-size: 24px;
    padding: 4px;
  }
}

@media (max-width: 360px) {
  .brand img {
    max-height: 32px;
    max-width: 125px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .brand-copy strong {
    font-size: 15px;
  }
}
