/* MusoMap - shared site styles (nav, footer, legal, base) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:    #F26419;
  --orange-d:  #C94E0A;
  --black:     #141414;
  --charcoal:  #3D3D3D;
  --mid:       #6B6B6B;
  --silver:    #E8E8E8;
  --bg:        #FFFFFF;
  --light-bg:  #F7F7F7;
  --footer-bg: #111111;
  --footer-border: rgba(255,255,255,0.07);
  --footer-text: #9B9B9B;
  --footer-heading: #D0D0D0;
  --red-pin:   #E53935;
  --blue-pin:  #1E88E5;
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAVIGATION ─────────────────────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--silver);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; padding-top: 8px; }
.nav-logo img { width: 25vw; max-width: 320px; min-width: 160px; height: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.88rem; font-weight: 600; color: var(--charcoal);
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
  background: var(--orange); color: #fff;
  padding: 9px 22px; border-radius: var(--radius-lg);
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-d); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 6px; transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--light-bg); }
.nav-hamburger span {
  display: block; height: 2px; background: var(--charcoal);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s, width 0.25s;
  width: 22px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 190;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 5vw 28px;
  flex-direction: column; gap: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem; font-weight: 600; color: #f0f0f0;
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--orange); }
.nav-mobile .nav-cta {
  margin-top: 16px; text-align: center;
  padding: 14px 22px; border-radius: var(--radius-lg); border-bottom: none;
  color: #fff;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */

footer {
  background: var(--footer-bg);
  padding: 60px 5vw 32px;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-brand p {
  font-size: 0.85rem; color: var(--footer-text);
  line-height: 1.65; margin-top: 16px; max-width: 220px;
}

.footer-logo { width: 25vw; max-width: 320px; min-width: 160px; height: auto; filter: brightness(0) invert(1); opacity: 0.85; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--footer-heading);
  margin-bottom: 16px;
}

.footer-col a {
  display: block; font-size: 0.88rem; color: var(--footer-text);
  text-decoration: none; margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px;
}

.footer-bottom p {
  font-size: 0.8rem; color: var(--footer-text);
}

.footer-bottom-links {
  display: flex; gap: 20px; flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.8rem; color: var(--footer-text);
  text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: #fff; }

/* ── LEGAL PAGES ─────────────────────────────────────────────────────────── */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 5vw 80px;
}

.legal-page .legal-badge {
  display: inline-block;
  background: rgba(242,100,25,0.1); color: var(--orange);
  border-radius: 6px; padding: 4px 12px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--black);
  line-height: 1.1; margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.85rem; color: var(--mid); margin-bottom: 48px;
  padding-bottom: 32px; border-bottom: 1px solid var(--silver);
}

.legal-page h2 {
  font-size: 1.25rem; font-weight: 700; color: var(--black);
  margin: 40px 0 12px;
}

.legal-page h3 {
  font-size: 1rem; font-weight: 700; color: var(--charcoal);
  margin: 24px 0 8px;
}

.legal-page p {
  font-size: 0.95rem; line-height: 1.8; color: var(--charcoal);
  margin-bottom: 16px;
}

.legal-page ul, .legal-page ol {
  padding-left: 24px; margin-bottom: 16px;
}

.legal-page li {
  font-size: 0.95rem; line-height: 1.8; color: var(--charcoal);
  margin-bottom: 6px;
}

.legal-page a { color: var(--orange); text-decoration: underline; }

.legal-contact {
  margin-top: 48px; padding: 28px 32px;
  background: var(--light-bg); border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}
.legal-contact h3 { margin-top: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-brand p { max-width: none; }
}

@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
