/* OZVIA Shared Styles - Edge Compatible */
/* Google Fonts loaded via header.php <link> */

:root {
  --oz-blue: #0D1F3C;
  --oz-blue-dark: #081528;
  --oz-blue-light: #12264F;
  --oz-orange: #FF6B1A;
  --oz-orange-hover: #e55a0f;
  --oz-gold: #D4AF37;
  --oz-white: #FFFFFF;
  --oz-gray: #B8C5D6;
  --oz-light: #E8EAF0;
  --nav-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', -apple-system, 'Microsoft YaHei', sans-serif;
  color: var(--oz-white);
  background: var(--oz-blue);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: var(--oz-orange); text-decoration: none; transition: color 0.3s; }
a:hover { text-decoration: underline; color: var(--oz-orange-hover); }

/* ===== UNIFIED NAV ===== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-height);
  background: rgba(13,31,60,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,107,26,0.12);
  transition: background 0.3s, box-shadow 0.3s;
}
.top-nav.scrolled {
  background: rgba(8,21,40,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Edge compatibility fixes - prevent compression in Edge */
.nav-logo,
.nav-links,
.nav-cta {
  flex-shrink: 0;
}

/* Responsive breakpoint for medium screens */
@media (max-width: 1024px) {
  .top-nav {
    padding: 0 24px;
  }
  .nav-links {
    gap: 8px;
  }
}

.nav-logo {
  font-size: 22px; font-weight: 900; letter-spacing: 2px;
  color: var(--oz-white); text-decoration: none;
}
.nav-logo span { color: var(--oz-orange); }
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: 1px;
  color: var(--oz-gray);
  position: relative; padding: 4px 0;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--oz-orange);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--oz-orange); text-decoration: none;
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-block;
  padding: 8px 22px;
  background: var(--oz-orange); color: #fff;
  font-size: 13px; font-weight: 700; border-radius: 6px;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--oz-orange-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Mobile menu button */
.nav-menu-btn {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .top-nav { padding: 0 20px; }
  .nav-links li { margin: 0 10px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn {
    display: block;
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 20px;
    background: none; border: none; cursor: pointer;
  }
  .nav-menu-btn span {
    display: block; width: 24px; height: 2px;
    background: var(--oz-white); border-radius: 2px;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav-menu-btn.active span:nth-child(2) { opacity: 0; }
  .nav-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  
  .nav-links.mobile-open {
    display: block;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: rgba(8,21,40,0.98);
    padding: 20px;
    border-bottom: 1px solid rgba(255,107,26,0.15);
  }
  .nav-links.mobile-open li {
    display: block;
    margin: 12px 0;
  }
}

/* ===== PAGE LAYOUT ===== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 5% 80px;
}
.section-label {
  font-size: 12px; letter-spacing: 6px;
  color: var(--oz-orange); text-transform: uppercase;
  margin-bottom: 12px; font-weight: 600;
}
h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800; line-height: 1.15; margin-bottom: 40px;
}
h2 {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
p {
  color: rgba(255,255,255,0.75);
  font-size: 16px; margin-bottom: 20px; line-height: 2;
}

/* ===== FOOTER - Edge Safe ===== */
.site-footer {
  margin-top: 120px;
  padding: 60px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  background: rgba(6,15,30,0.5);
}
.footer-logo {
  font-size: 22px; font-weight: 900; letter-spacing: 2px;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--oz-orange); }
.footer-slogan {
  font-size: 13px; color: var(--oz-gray);
  margin-bottom: 24px; letter-spacing: 1px;
}
.footer-links {
  margin-bottom: 24px;
}
.footer-links a {
  display: inline-block;
  color: rgba(255,255,255,0.5); font-size: 14px;
  margin: 0 16px;
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--oz-orange); text-decoration: none; }
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 1px;
}

@media (max-width: 768px) {
  .site-footer { padding: 40px 20px 30px; margin-top: 80px; }
  .footer-links a { margin: 0 10px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--oz-orange), var(--oz-gold));
  border-radius: 2px; margin-bottom: 24px;
}

/* ===== BACK LINK ===== */
.nav-back {
  display: inline-block;
  color: var(--oz-orange); margin-bottom: 40px;
  font-size: 14px; font-weight: 500; letter-spacing: 1px;
}
.nav-back:hover { text-decoration: none; }

/* ===== QUOTE BLOCK ===== */
.quote-block {
  background: rgba(255,107,26,0.08);
  border-left: 4px solid var(--oz-orange);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  line-height: 1.8;
}
.quote-block cite {
  display: block; margin-top: 12px;
  font-size: 13px; color: var(--oz-orange);
  font-style: normal; font-weight: 600;
}

/* ===== GLOW ACCENT ===== */
.glow-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oz-orange), transparent);
  opacity: 0.3;
  margin: 60px 0;
}