/* Global Styling, Reset, and Navigation/Footer Layouts */
@import url('variables.css');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--nh-blue-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Common Layout Components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--nh-blue-dark);
  color: var(--text-light);
}

.section-dark h2 {
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--nh-yellow);
  border-radius: var(--radius-full);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-dark .section-header p {
  color: #94A3B8;
}

/* Button & Link UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--nh-yellow);
  color: var(--nh-blue-dark);
}

.btn-primary:hover {
  background-color: var(--nh-yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--nh-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--nh-blue-dark);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--nh-blue-medium);
  border-color: var(--nh-blue-medium);
}

.btn-outline-blue:hover {
  background-color: var(--nh-blue-medium);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
  }
}

/* Sticky Glass Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.header-scrolled {
  background-color: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-dark);
}

.header-scrolled .nav-link {
  color: #ffffff;
}

.header-scrolled .logo-text {
  color: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-divider {
  color: rgba(0, 32, 91, 0.2);
  font-size: 1.25rem;
  font-weight: 300;
}

.header-scrolled .logo-divider {
  color: rgba(255, 255, 255, 0.2);
}

.logo-details {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--nh-yellow);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-btn {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-switcher-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
}

.header-scrolled .lang-switcher-container {
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-opt {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.lang-opt:hover {
  color: var(--nh-yellow);
}

.lang-opt.active {
  color: var(--nh-yellow);
  pointer-events: none; /* disable clicking active lang */
}

.lang-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}


/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.header-scrolled .menu-toggle span {
  background-color: var(--text-light);
}

/* Footer styling */
.footer {
  background-color: #040914;
  color: #94A3B8;
  padding: 80px 0 30px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info .logo-text {
  color: #ffffff;
}

.footer-desc {
  margin-top: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-title {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-weight: 600;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--nh-yellow);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--nh-yellow);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-contact-icon {
  color: var(--nh-yellow);
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

#export-regs-link {
  display: none;
}

.footer-legal-links a:hover {
  color: var(--nh-yellow);
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 184, 19, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(253, 184, 19, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(253, 184, 19, 0);
  }
}

.pulse-btn {
  animation: pulse 2s infinite;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-info {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 60px;
  }
  .container {
    padding: 0 20px !important;
  }
  .section {
    padding: 60px 0;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    align-items: flex-start;
    transition: all var(--transition-normal);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--border-dark);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    color: #ffffff;
    font-size: 1.25rem;
    width: 100%;
  }
  
  .header-scrolled .nav-menu {
    background-color: rgba(8, 14, 26, 0.95);
  }
  
  .nav-btn {
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }
  
  /* Menu Hamburger Animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-info {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Nav Menu gap optimization for French on small desktop viewports (1024px to 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
  html[lang="fr"] .nav-menu {
    gap: 16px;
  }
}

