/* ==========================================================================
   HEADER / NAV styles (moved here)

   NOTE:
   - These rules were extracted from index.html and centralized here.
   - mobile-logo-fixes.css now contains ONLY the header/navigation/logo rules.
   - Do not duplicate header/nav/logo styles in index.html or catalogue.html.
 ========================================================================= */

/* Base header */
header {
  background: transparent;
  /* backdrop-filter intentionally handled separately if needed */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 10px 0;
  padding-top: 1px;
  padding-bottom: 1px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  padding-left: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #017f7c;
  margin-left: 1px;
  max-width: 600px;
  cursor: pointer;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-square {
  width: 100px;
  height: 100px;
  max-width: 100px;
  max-height: 100px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;  max-height: 100px;
  max-width: 100%;
  margin-left: 0;
}

.logo-text {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial;
  color: #ffffff !important;
  font-weight: 700 !important;
  max-width: 500px;
  line-height: 1.05;
  font-size: 1.4rem;
  display: inline-block;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-left: 2px;
  text-align: left;
  text-shadow:  2px 2px 4px rgba(0, 0, 0, 0.8),
                -1px -1px 2px rgba(0, 0, 0, 0.6),
                0 0 8px rgba(1, 127, 124, 0.6);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 800 !important;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid grey;
  padding: 5px 10px;
  border-radius: 5px;
              text-shadow:  2px 2px 4px rgba(0, 0, 0, 0.8),
                -1px -1px 2px rgba(0, 0, 0, 0.6),
                0 0 8px rgba(1, 127, 124, 0.6);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(105deg, #7d8fdf, #dfe7e7);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 4px;
  background: #ffffff;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(1,127,124,0.6);
}

/* Mobile overlay & active menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.nav-overlay.active { display: block; }

.nav-links.mobile-active {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: rgba(64,64,64,0.98);
  flex-direction: column;
  gap: 0;
  padding: 60px 20px 20px 20px;
  box-shadow: -2px 0 15px rgba(0,0,0,0.2);
  z-index: 1001;
  overflow-y: auto;
}

.nav-links.mobile-active::before {
  content: '✕';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #ffffff;
  z-index: 10;
}

/* Responsive */
@media (max-width: 1024px) {
  .logo-square { width: 75px; height: 75px; }
  .logo-img { height: 75px; }
  .logo-text { font-size: 0.95rem; max-width: 115px; }
  .nav-links a { font-size: 1.05rem; padding-left: 2px; padding-right: 2px; }
}

@media (max-width: 920px) {
  .logo-square { width: 70px; height: 70px; }
  .logo-img { height: 70px; }
  .logo-text { font-size: 0.80rem; max-width: 165px; }
  .nav-links a { font-size: 0.75rem; padding-left: 1px; padding-right: 1px; }
  .nav-links.mobile-active { right: auto !important; left: 0 !important; width: 280px; }
  .nav-links.mobile-active::before { right: auto !important; left: 20px !important; }
}

@media (max-width: 768px) {
  .logo-square { width: 60px; height: 60px; }
  .logo-img { height: 60px; }
  .logo-text { font-size: 0.80rem; max-width: 140px; }
  .nav-links { display: none; }
  .mobile-menu { display: flex; margin-right: 15px; }
  .nav-links.mobile-active a { padding: 12px 10px; border-bottom: 1px solid #e5e5e5; font-size: 1rem; line-height: 1.2; display: block; width: 100%; }
}

@media (max-width: 600px) {
  .logo-square { width: 50px; height: 50px; }
  .logo-img { height: 50px; }
  .logo-text { font-size: 0.70rem; max-width: 130px; }
}

@media (max-width: 480px) {
  .logo-square { width: 55px; height: 55px; }
  .logo-img { height: 55px; }
  .logo-text { font-size: 0.8rem; max-width: 150px; }
}

@media (max-width: 360px) {
  .logo-square { width: 40px; height: 40px; }
  .logo-img { height: 40px; }
  .logo-text { font-size: 0.60rem; max-width: 90px; line-height: 1.08; }
  header { padding-left: 8px; padding-right: 8px; }
}
