/* public/css/partials/header.css */

/* --- IMPORT PREMIUM FONTS --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap");

/* --- VARIABLES --- */
:root {
  --primary: #0f172a; /* Deep Navy */
  --gold: #d4af37; /* Metallic Gold */
  --gold-hover: #b5952f;
  --text-dark: #334155;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- RESET & TYPOGRAPHY --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* --- TOP BAR (Thin Strip) --- */
.top-bar {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.top-flex {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.top-link {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-link:hover {
  color: var(--gold);
}
.top-link i {
  color: var(--gold);
  font-size: 0.8rem;
}

/* --- MAIN HEADER --- */
.main-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo Area */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}
.logo-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
}
.logo-text p {
  font-size: 0.7rem;
  color: #64748b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Navigation Links */
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}

/* Login Button */
.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--primary);
  border-radius: 50px; /* Pill shape */
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-login:hover {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* Dropdown Menu */
.dropdown-li {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 160%;
  right: 0;
  width: 240px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 8px 0;
}
.dropdown-li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
}
.dropdown-menu a:hover {
  background-color: #f8fafc;
  color: var(--gold);
}
.dropdown-menu i {
  color: #94a3b8;
  width: 20px;
  text-align: center;
}
.dropdown-menu a:hover i {
  color: var(--gold);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.5rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .top-bar {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 30px;
    gap: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .nav-list.active {
    right: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-link,
  .btn-login {
    display: block;
    width: 100%;
    padding: 15px 0;
    border: none;
    border-radius: 0;
  }
  .btn-login {
    background: transparent;
    color: var(--primary);
    justify-content: space-between;
  }
  .btn-login:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: none;
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: #f8fafc;
    padding-left: 15px;
    width: 100%;
  }
  .dropdown-li.show-dropdown .dropdown-menu {
    display: block;
  }
  .dropdown-li.show-dropdown .fa-chevron-down {
    transform: rotate(180deg);
    transition: 0.3s;
  }
}
