/* ═══════════════════════════════════════════════════════════
   OAPPS Shared Components — Header & Footer Styles
   Prefixed with "oapps-" to avoid conflicts with page styles.
   ═══════════════════════════════════════════════════════════ */

/* ── Variables (shared tokens) ───────────────────────────── */
:root {
  --oapps-primary: #596FFF;
  --oapps-primary-dark: #3D52DE;
  --oapps-primary-light: #8898FF;
  --oapps-text: #252427;
  --oapps-text-muted: #8B959E;
  --oapps-white: #ffffff;
  --oapps-dark-section: #222125;
  --oapps-deep-navy: #0A0F31;
  --oapps-font-display: 'Outfit', sans-serif;
  --oapps-font-body: 'Roboto', sans-serif;
  --oapps-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Navigation ──────────────────────────────────────────── */
.oapps-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  height: 72px;
  transition: box-shadow var(--oapps-transition);
}

.oapps-nav--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.oapps-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.oapps-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.oapps-logo-img {
  height: 28px;
  width: auto;
}

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

.oapps-nav__link {
  font-family: var(--oapps-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--oapps-text);
  text-decoration: none;
  transition: color var(--oapps-transition);
  white-space: nowrap;
  position: relative;
}

.oapps-nav__link:hover {
  color: var(--oapps-primary-dark);
}

.oapps-nav__link--active {
  color: var(--oapps-primary);
  font-weight: 500;
}

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

.oapps-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.oapps-btn-outline-nav {
  font-family: var(--oapps-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--oapps-text);
  text-decoration: none;
  border: 1px solid var(--oapps-text);
  border-radius: 30px;
  padding: 8px 20px;
  transition: background var(--oapps-transition), color var(--oapps-transition);
}

.oapps-btn-outline-nav:hover {
  background: var(--oapps-text);
  color: var(--oapps-white);
}

.oapps-btn-solid-nav {
  font-family: var(--oapps-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--oapps-white);
  text-decoration: none;
  background: var(--oapps-text);
  border-radius: 30px;
  padding: 8px 20px;
  transition: box-shadow var(--oapps-transition), transform var(--oapps-transition);
}

.oapps-btn-solid-nav:hover {
  box-shadow: 0 6px 16px rgba(0, 11, 48, 0.2);
  transform: translateY(-1px);
}

/* ── Mobile Toggle ───────────────────────────────────────── */
.oapps-nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}

.oapps-nav__mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--oapps-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile Menu ─────────────────────────────────────────── */
.oapps-nav__mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--oapps-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.oapps-nav__mobile-menu.active {
  display: flex;
}

.oapps-nav__mobile-menu a {
  font-family: var(--oapps-font-body);
  font-size: 16px;
  padding: 8px 0;
  color: var(--oapps-text);
  text-decoration: none;
  transition: color var(--oapps-transition);
}

.oapps-nav__mobile-menu a:hover {
  color: var(--oapps-primary);
}

.oapps-nav__mobile-menu .oapps-nav__link--active {
  color: var(--oapps-primary);
  font-weight: 500;
}

.oapps-btn-primary {
  display: inline-block;
  font-family: var(--oapps-font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--oapps-white);
  text-decoration: none;
  background: var(--oapps-primary);
  border-radius: 48px;
  padding: 12px 28px;
  transition: box-shadow var(--oapps-transition), transform var(--oapps-transition);
}

.oapps-btn-primary:hover {
  box-shadow: 0 10px 20px rgba(0, 11, 48, 0.25);
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────────────── */
.oapps-footer {
  background: var(--oapps-deep-navy);
  padding: 64px 0 40px;
  margin-top: auto;
}

.oapps-container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.oapps-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.oapps-footer__logo {
  margin-bottom: 16px;
}

.oapps-footer__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.oapps-footer__tagline {
  font-family: var(--oapps-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.oapps-footer__heading {
  font-family: var(--oapps-font-display);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.oapps-footer__link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oapps-footer__link {
  font-family: var(--oapps-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--oapps-transition);
}

.oapps-footer__link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.oapps-footer__location {
  font-family: var(--oapps-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}

.oapps-footer__location strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.oapps-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oapps-footer__copyright {
  font-family: var(--oapps-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.oapps-footer__attribution {
  font-family: var(--oapps-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--oapps-transition);
}

.oapps-footer__attribution:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .oapps-nav__links { display: none; }
  .oapps-nav__actions { display: none; }
  .oapps-nav__mobile-toggle { display: flex; }

  .oapps-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .oapps-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .oapps-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
