/* ══════════════════════════════════
   SHARED STYLES — Jourier
   Variables, reset, nav, footer, buttons, shared responsive
   ══════════════════════════════════ */

/* ── VARIABLES & RESET ── */
:root {
  --orange: #E8590C;
  --charcoal: #121311;
  --ivory: #FAF8F5;
  --grey: #78716C;
  --slate: #334155;
  --amber: #D97706;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

span.accent { color: var(--orange); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 20, 19, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Transparent nav for homepage — starts transparent, scrolls to opaque */
.nav--transparent {
  background: rgba(20,20,19,0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom-color: transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.nav--transparent.scrolled {
  background: rgba(20, 20, 19, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.06);
}

.nav-logo svg {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  padding: 10px 28px;
  background: var(--orange);
  color: #fff !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: #d14e0a; }

/* Search Button */
.nav-search-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
}

.nav-search-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Region Selector */
.nav-region {
  position: relative;
}

.nav-region-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.nav-region-btn:hover { color: #fff; }

.nav-region-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-region-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 280px;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 20px 24px;
  display: none;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 500;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-region-dropdown.open {
  display: flex;
}

.region-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.region-option {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s;
}

.region-option:hover { color: #fff; }
.region-option.active { color: #fff; font-weight: 600; }

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 22px;
  height: 16px;
  position: relative;
  z-index: 301;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: rgba(255,255,255,0.6);
  transition: all 0.3s;
}

.menu-toggle span:nth-child(1) { top: 1px; }
.menu-toggle span:nth-child(2) { top: 7px; }
.menu-toggle span:nth-child(3) { top: 13px; }

.menu-toggle.open span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ── MOBILE MENU (Showpiece) ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #060605;
  clip-path: inset(0 0 100% 0);
  overflow: hidden;
}

.mm-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mm-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 20, 19, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
}

.mm-topbar-logo svg {
  height: 22px;
  width: auto;
}

.mm-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mm-topbar-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  text-decoration: none;
}

.mm-topbar-btn:active {
  color: #fff;
}

.mm-region-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.mm-close {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.mm-close:active {
  color: var(--orange);
}

.mm-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,89,12,0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  filter: blur(40px);
}

.mm-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 72px 32px 28px;
}

.mm-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 24px;
}

.mm-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-20px);
  position: relative;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s;
}

/* Subtle separator line — reveals with orange */
.mm-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(232,89,12,0.1));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.25;
}

.mm-link.revealed::after {
  transform: scaleX(1);
}

/* Row illumination on touch */
.mm-link:active {
  background: rgba(232,89,12,0.04);
}

.mm-num {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  transition: color 0.3s;
}

.mm-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.025em;
  line-height: 1.1;
  transition: color 0.3s;
}

.mm-link:active .mm-text {
  color: #fff;
}

.mm-link:active .mm-num {
  color: var(--orange);
}

.mm-link.active .mm-text {
  color: #fff;
  font-weight: 400;
}

.mm-link.active .mm-num {
  color: var(--orange);
  opacity: 1;
}

.mm-link.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(232,89,12,0.6);
}

.mm-bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  margin-top: auto;
  padding-top: 32px;
}

.mm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s, border-color 0.3s;
}

.mm-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mm-cta:active {
  color: #fff;
  border-color: rgba(232,89,12,0.4);
}

.mm-cta:active::before {
  transform: scaleX(1);
}

.mm-cta svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.mm-cta:active svg {
  opacity: 1;
  transform: translateX(3px);
}

.mm-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}

.mm-meta span {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.04em;
}

.mm-meta a {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.mm-meta a:active {
  color: rgba(255,255,255,0.5);
}

@media (prefers-reduced-motion: reduce) {
  .mm-cta::before { animation: none; }
  .mm-link { opacity: 1; transform: none; }
  .mm-link::after { transform: scaleX(1); }
  .mm-bottom { opacity: 1; transform: none; }
  .mm-close { opacity: 1; transform: none; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #d14e0a;
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 60px 60px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-logo svg {
  height: 20px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
  position: relative;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-social a:hover { color: #fff; }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  footer { padding: 48px 32px 32px; }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-region-dropdown {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    width: auto;
    border-radius: 0;
    max-height: calc(100vh - 72px);
    padding: 20px;
  }
  footer { padding: 48px 20px 32px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
