/* shared.css - Axvik Group IR Website */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Mulish', sans-serif; font-weight: 300; color: #333333; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6, p, span, div, a, li { font-weight: 300; }

/* ── Variables ── */
:root {
  --gold: #CEB04E;
  --navy: #2E3A44;
  --dark: #2E3A44;
  --text: #333333;
  --muted: #666666;
  --light: #F8F7F5;
  --box: #E8ECF0;
  --max-width: 1200px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 22px; width: auto; display: block; transition: opacity 0.2s; }
.nav-logo .logo-default { display: none; }
nav.scrolled .nav-logo .logo-inverted { display: none; }
nav.scrolled .nav-logo .logo-default { display: block; }
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-menu > li > a:hover { color: var(--gold); }
.nav-menu > li > a.active { color: #fff; }
nav.scrolled .nav-menu > li > a { color: var(--navy); }
nav.scrolled .nav-menu > li > a:hover { color: var(--gold); }
nav.scrolled .nav-menu > li > a.active { color: var(--navy); }
.nav-menu > li > a.active:hover { color: var(--gold); }
nav.scrolled .nav-menu > li > a.active:hover { color: var(--gold); }

/* ── Dropdown ── */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 230px;
  border-top: 2px solid var(--navy);
  padding: 6px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  list-style: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--navy);
  transition: color 0.2s, padding-left 0.2s;
}
.dropdown-menu a:hover { color: var(--gold); padding-left: 28px; }
.dropdown-menu a.active { color: var(--gold); }

/* ── Language switcher ── */
.lang-switcher { display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.lang-option {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.lang-option.active { color: rgba(255,255,255,0.9); border-bottom-color: rgba(255,255,255,0.7); }
.lang-option:hover { color: var(--gold); }
.lang-sep { color: rgba(255,255,255,0.3); font-size: 12px; }
nav.scrolled .lang-option { color: rgba(46,58,68,0.4); border-bottom-color: transparent; }
nav.scrolled .lang-option.active { color: var(--navy); border-bottom-color: var(--navy); }
nav.scrolled .lang-sep { color: rgba(46,58,68,0.2); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.3s; }
nav.scrolled .hamburger span { background: var(--navy); }

/* ── Page hero (subpages) ── */
.page-hero {
  position: relative;
  height: 42vh;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(46,58,68,0.05) 0%, rgba(46,58,68,0.75) 100%),
    linear-gradient(to right, rgba(46,58,68,0.35) 0%, rgba(46,58,68,0) 60%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  padding: 0 24px 40px;
}
.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); margin: 0 6px; }
.page-title {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  overflow-wrap: break-word;
}
.page-hero-line { width: 40px; height: 2px; background: var(--gold); animation: goldLineExpand 0.6s ease 0.55s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes goldLineExpand {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}
.page-hero-inner .breadcrumb { animation: heroFadeUp 0.6s ease 0.05s both; }
.page-hero-inner .page-title  { animation: heroFadeUp 0.7s ease 0.2s both; }

/* ── Footer ── */
footer { background: var(--navy); padding: 24px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}
.footer-logo img { height: 18px; width: auto; }
.footer-contact { font-size: 13px; color: #fff; line-height: 1.7; text-align: right; }
.footer-contact a { color: #fff; }

.menu-logo { display: none; }

/* ── Mobile ── */
@media (max-width: 900px) {
  nav { padding: 0 16px; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 99;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .menu-logo { display: flex; justify-content: center; width: 100%; padding: 0 0 32px 0; list-style: none; border: none !important; }
  .menu-logo img { height: 40px; width: auto; display: block; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.5px;
  }
  .nav-menu > li:first-child > a { border-top: 1px solid rgba(255,255,255,0.08); }
  nav.scrolled .nav-menu > li > a,
  nav.scrolled .nav-menu > li > a.active { color: #fff; }
  nav.scrolled .nav-menu > li > a:hover,
  nav.scrolled .nav-menu > li > a.active:hover { color: var(--gold); }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown-menu {
    display: none;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { font-size: 14px; color: rgba(255,255,255,0.65); padding: 8px 0; }
  .dropdown-menu a:hover { color: var(--gold); padding-left: 0; }
  .lang-switcher { margin-top: 24px; border: none !important; }
  .lang-option { font-size: 14px !important; color: rgba(255,255,255,0.5) !important; }
  .lang-option.active { color: #fff !important; }
  .lang-sep { color: rgba(255,255,255,0.3) !important; }
  .hamburger { display: flex; z-index: 100; }
  .hamburger.open span,
  nav.scrolled .hamburger.open span { background: #fff; }

  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .page-hero { height: 32vh; }
  .page-hero-inner { padding: 0 16px 24px; }
  .page-title { font-size: 26px; letter-spacing: 0.5px; }
  footer { padding: 20px 0; }
  .footer-inner { padding: 0 16px; flex-direction: column; gap: 16px; }
  .footer-contact { text-align: left; }
}
