/* ==========================================
   layout.css - Navbar, Footer, Mobile Drawer
   ========================================== */

/* NAVBAR */
.nav-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0 16px;
  transition: transform 0.3s ease;
}
.island-nav {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(26, 23, 24, 0.1);
  box-shadow: 0 16px 36px -12px rgba(16, 27, 43, 0.08);
  border-radius: 9999px;
  padding: 8px 10px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--night-900);
}
.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(232, 121, 26, 0.4);
}
.brand-icon-box svg {
  width: 22px;
  height: 22px;
}
.nav-menu {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
}
@media (min-width: 860px) {
  .nav-menu { display: flex; }
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--terracota-dark);
}

.btn-island {
  background: var(--night-900);
  color: #FFFFFF;
  padding: 8px 8px 8px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--spring);
  box-shadow: 0 8px 20px -6px rgba(16, 27, 43, 0.35);
}
.btn-island .btn-circle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--terracota);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: transform 0.3s var(--spring);
}
.btn-island:hover {
  background: var(--night-800);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(232, 121, 26, 0.4);
}
.btn-island:hover .btn-circle-icon {
  transform: rotate(45deg);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(26, 23, 24, 0.05);
  z-index: 95;
}
@media (min-width: 860px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--night-900);
  border-radius: 2px;
  transition: transform 0.3s var(--spring), opacity 0.2s ease;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 43, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 85;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: all 0.4s var(--spring);
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-drawer a {
  color: var(--text-light);
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* FOOTER */
footer {
  background: var(--night-950);
  color: var(--text-light-muted);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 420px;
  height: 420px;
  opacity: 0.04;
  pointer-events: none;
  stroke: #FFFFFF;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 36ch;
}
.footer-links h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--terracota-light); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-night);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}
