/* M&B MEET — foundation: reset, container, header, navigation, footer */

:root {
  --paper: #f4f1ea;
  --paper-deep: #eae4d9;
  --ink: #1a1a17;
  --ink-soft: #2a2925;
  --white: #fffdf8;
  --orange: #f15a2b;
  --orange-deep: #d94418;
  --muted: #6f6a61;
  --line: #dcd6ca;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, address, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--white); }

.container {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 6px 6px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 88px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height .35s ease, background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(26, 26, 23, .95);
  border-bottom-color: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(26, 26, 23, .12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 3px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26, 26, 23, .12); }
.brand img { width: 104px; height: auto; }

.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.header-cta span { color: var(--orange); font-size: 15px; }
.header-cta:hover { background: var(--orange); border-color: var(--orange); color: var(--white); transform: translateY(-2px); }
.header-cta:hover span { color: var(--white); }

.site-header.is-scrolled .desktop-nav a,
.site-header.is-scrolled .header-cta { color: var(--white); }
.site-header.is-scrolled .header-cta { border-color: rgba(255, 255, 255, .45); }
.site-header.is-scrolled .header-cta:hover { border-color: var(--orange); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(26, 26, 23, .25);
  border-radius: 50%;
  background: transparent;
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, background-color .3s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.site-header.is-scrolled .menu-toggle { border-color: rgba(255, 255, 255, .4); }
.site-header.is-scrolled .menu-toggle span { background: var(--white); }

.mobile-menu {
  position: absolute;
  top: 70px;
  inset-inline: 0;
  padding: 22px 28px 32px;
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.mobile-menu a span { font-size: 11px; letter-spacing: .16em; color: var(--orange); }
.mobile-menu p { margin-top: 24px; color: rgba(255, 255, 255, .6); font-size: 14px; }

/* Footer */

.site-footer {
  background: #11110f;
  color: rgba(255, 255, 255, .55);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  letter-spacing: .04em;
}
.footer-brand { padding: 6px 10px; background: var(--white); border-radius: 2px; }
.footer-brand img { width: 88px; }
.back-top { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--white); }
.back-top:hover { color: var(--orange); }

@media (max-width: 1000px) {
  .desktop-nav { gap: 22px; }
  .header-cta { display: none; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 70px; }
  .site-header { height: 70px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .brand img { width: 92px; }
  .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-inner p { order: 3; width: 100%; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .brand img { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
