/* ============================================================
   NAVIGATION & FOOTER
   ============================================================ */

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-inline: var(--s-8);
  transition: background var(--t-slow) var(--ease-out),
              border-color var(--t-slow),
              backdrop-filter var(--t-slow);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(253, 251, 246, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--ink-200);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wordmark */
.nav-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.nav-wordmark-main {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: 0.01em;
}
.nav-wordmark-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-600);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--vermillion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-900);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.nav-phone {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-600);
  letter-spacing: 0.04em;
  transition: color var(--t-fast);
}
.nav-phone:hover { color: var(--vermillion); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink-700);
  transition: all var(--t-base) var(--ease-out);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 490;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow) var(--ease-out);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 300;
  color: var(--ink-700);
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.nav-mobile a:hover { color: var(--vermillion); }
.nav-mobile-contact {
  margin-top: var(--s-8);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.08em;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink-950);
  color: var(--ink-300);
  padding-top: var(--s-32);
  padding-bottom: var(--s-8);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: 'RC';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--font-display);
  font-size: 280px;
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-10);
  padding-bottom: var(--s-16);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-8);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--s-4);
  line-height: 1;
}
.footer-brand-tagline {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.7;
  margin-bottom: var(--s-6);
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--s-5);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-links a {
  font-size: 14px;
  color: var(--ink-400);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-4);
}
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.footer-contact-value {
  font-size: 14px;
  color: var(--ink-300);
  transition: color var(--t-fast);
}
.footer-contact-value:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-8);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer-bottom-copy {
  font-size: 12px;
  color: var(--ink-700);
}
.footer-bottom-links {
  display: flex;
  gap: var(--s-6);
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--ink-700);
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: var(--white); }
.footer-gst {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-800);
  letter-spacing: 0.06em;
}

/* ── Responsive nav ── */
@media (max-width: 900px) {
  .nav-links, .nav-phone, .nav .btn { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
