/* ==========================================================================
   ONCALLALERT - LAYOUT MODULE (NAVBAR, BUTTONS, FOOTER)
   ========================================================================== */

/* Navigation */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

nav#main-nav.scrolled {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 14px rgba(0, 242, 254, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.65));
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 55%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
}

/* Buttons */
.btn-ghost-sm {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-ghost-sm:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary-sm {
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  color: #07090e;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  filter: brightness(1.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  color: #07090e;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 242, 254, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 242, 254, 0.55);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

/* Footer */
footer#site-footer {
  border-top: 1px solid var(--border);
  background: #040609;
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Scroll to top & Toast Notice */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 21, 34, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(12, 16, 26, 0.95);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-cyan);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}
