/* ============================================================
   AEGIS — Global: Typography, Navigation, Footer
   ============================================================ */

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

.section-label {
  font-family: 'Noto Sans', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title { margin-bottom: 16px; }

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

/* --- Layout --- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding: var(--section-py) 0;
}

.section--navy {
  background: var(--navy);
  color: var(--text-on-dark);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--text-on-dark); }
.section--navy .section-desc { color: var(--text-on-dark-s); }

.section--cream {
  background: var(--cream);
}

.section--gradient {
  background: linear-gradient(145deg, var(--navy-deeper) 0%, var(--navy-dark) 40%, var(--navy) 100%);
  color: var(--text-on-dark);
}
.section--gradient h2,
.section--gradient h3 { color: var(--text-on-dark); }

/* --- Navigation --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(16, 38, 104, .82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.nav__logo:hover { opacity: .85; }

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

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--t-fast) var(--ease);
  position: relative;
  padding: 4px 0;
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Services dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.5);
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease), visibility var(--t-fast) var(--ease);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: .875rem;
  color: var(--text-primary);
  transition: background var(--t-fast) var(--ease);
}

.nav__dropdown-item:hover {
  background: var(--cream);
  color: var(--navy);
}

/* Right side: lang + CTA */
.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__lang {
  display: flex;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  overflow: hidden;
}

.nav__lang-btn {
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  transition: all var(--t-fast) var(--ease);
}

.nav__lang-btn--active {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.nav__cta {
  padding: 8px 20px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold);
  border-radius: 6px;
  transition: background var(--t-fast) var(--ease);
}

.nav__cta:hover {
  background: var(--gold-light);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav__hamburger--open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__hamburger--open span:nth-child(2) { opacity: 0; }
.nav__hamburger--open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile overlay */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 74, .88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  z-index: calc(var(--z-nav) - 1);
  padding: calc(var(--nav-h) + 32px) var(--section-px) 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
}

.nav__mobile--open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  display: block;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav__mobile-link:hover { color: #fff; }

.nav__mobile-sub {
  padding-left: 20px;
}

.nav__mobile-sub .nav__mobile-link {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
}

.nav__mobile-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--r-md);
}

.nav__mobile-lang {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* --- Footer --- */

.footer {
  background: var(--navy-deeper);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-logo {
  height: 32px;
  margin-bottom: 16px;
}

.footer__brand-tagline {
  font-size: .9375rem;
  font-style: italic;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px;
}

.footer__brand-contact {
  font-size: .8125rem;
  line-height: 1.8;
}

.footer__brand-contact a {
  color: rgba(255,255,255,.7);
  transition: color var(--t-fast) var(--ease);
}
.footer__brand-contact a:hover {
  color: var(--gold-light);
}

.footer__heading {
  font-family: 'Noto Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  padding: 6px 0;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  transition: color var(--t-fast) var(--ease);
}

.footer__link:hover {
  color: var(--gold-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}

/* --- Page Hero (inner pages) --- */

.page-hero {
  background: linear-gradient(145deg, var(--navy-deeper) 0%, var(--navy-dark) 40%, var(--navy) 100%);
  padding: calc(var(--nav-h) + 64px) 0 64px;
  color: var(--text-on-dark);
  text-align: center;
}

.page-hero h1 { color: var(--text-on-dark); margin-bottom: 16px; }
.page-hero .section-label { margin-bottom: 12px; }
.page-hero .section-desc {
  color: var(--text-on-dark-s);
  margin: 0 auto;
  font-size: 1.0625rem;
  max-width: 600px;
  line-height: 1.7;
}
