/* ============================================
   QUARTERMASTER — FINE FOODS PURVEYORS
   Shared Stylesheet v2.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---- TOKENS ---- */
:root {
  --parchment: #F5F2EE;
  --stone: #E9E6E0;
  --charcoal: #1A1A1A;
  --burgundy: #3B2B2D;
  --gold: #8B6F4A;
  --gold-light: #B89A72;
  --white: #FFFFFF;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-h: 72px;
  --section-pad: clamp(64px, 8vw, 120px);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--charcoal);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
.qm-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.qm-h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.qm-h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
}

.qm-h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}

.qm-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: #555;
}

.qm-body-dark {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

/* ---- NAV ---- */
.qm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.qm-nav.scrolled {
  background: rgba(26,26,26,0.96);
  backdrop-filter: blur(12px);
  border-color: rgba(139,111,74,0.2);
}

.qm-nav.light-nav {
  background: rgba(245,242,238,0.96);
  backdrop-filter: blur(12px);
  border-color: rgba(139,111,74,0.15);
}
.qm-nav.light-nav .qm-nav__links a { color: var(--charcoal); }
.qm-nav.light-nav .qm-nav__links a::after { background: var(--gold); }
.qm-nav.light-nav .qm-nav-cta { border-color: rgba(26,26,26,0.4); color: var(--charcoal); }
.qm-nav.light-nav .qm-hamburger span { background: var(--charcoal); }
.qm-nav.light-nav .qm-nav__logo svg text { fill: var(--charcoal); }

.qm-nav__logo { display: flex; align-items: center; }

.qm-nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.qm-nav__links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.qm-nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold-light);
  transition: width 0.3s ease;
}
.qm-nav__links a:hover, .qm-nav__links a.active { color: var(--white); }
.qm-nav.light-nav .qm-nav__links a:hover,
.qm-nav.light-nav .qm-nav__links a.active { color: var(--charcoal); }
.qm-nav__links a:hover::after, .qm-nav__links a.active::after { width: 100%; }

.qm-nav-cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--white);
  padding: 10px 22px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.qm-nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white) !important;
}

/* Hamburger */
.qm-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 10;
  position: relative;
}
.qm-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s, width 0.25s;
  transform-origin: center;
}
.qm-hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.qm-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.qm-hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   FULLSCREEN NAV OVERLAY (desktop ≥ 901px)
   ============================================ */
.qm-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}
.qm-nav-overlay.is-open {
  pointer-events: all;
  opacity: 1;
}

/* BG image layer */
.qm-nav-overlay__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.qm-nav-overlay__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.25);
  transform: scale(1.06);
  transition: transform 9s ease;
}
.qm-nav-overlay.is-open .qm-nav-overlay__bg-img { transform: scale(1); }
.qm-nav-overlay__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,0.55);
}

/* Close button */
.qm-nav-overlay__close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 48px;
  font-weight: 100;
  line-height: 1;
  transition: color 0.3s, transform 0.4s var(--ease-out);
  transform-origin: center;
  background: none;
  border: none;
  font-family: var(--font-display);
}
.qm-nav-overlay__close:hover { color: var(--white); transform: rotate(90deg); }

/* Content */
.qm-nav-overlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 60px 60px;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out);
}
.qm-nav-overlay.is-open .qm-nav-overlay__content { transform: translateY(0); }

.qm-nav-overlay__logo {
  margin-bottom: 52px;
}
.qm-nav-overlay__logo svg text { fill: white; }

.qm-nav-overlay__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qm-nav-overlay__links li { overflow: hidden; }
.qm-nav-overlay__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
  transform: translateY(100%);
}
.qm-nav-overlay.is-open .qm-nav-overlay__link { transform: translateY(0); }
.qm-nav-overlay.is-open .qm-nav-overlay__links li:nth-child(1) .qm-nav-overlay__link { transition: transform 0.65s 0.12s var(--ease-out), color 0.3s; }
.qm-nav-overlay.is-open .qm-nav-overlay__links li:nth-child(2) .qm-nav-overlay__link { transition: transform 0.65s 0.20s var(--ease-out), color 0.3s; }
.qm-nav-overlay.is-open .qm-nav-overlay__links li:nth-child(3) .qm-nav-overlay__link { transition: transform 0.65s 0.28s var(--ease-out), color 0.3s; }
.qm-nav-overlay__link:hover { color: var(--white); }
.qm-nav-overlay__link.active { color: var(--gold-light); }

.qm-nav-overlay__sub {
  margin-top: 52px;
  display: flex;
  gap: 36px;
  justify-content: center;
}
.qm-nav-overlay__sub a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.qm-nav-overlay__sub a:hover { color: var(--white); }

/* ============================================
   MOBILE NAV OVERLAY (≤ 900px)
   ============================================ */
.qm-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10,8,6,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.qm-mobile-nav.is-open { opacity: 1; pointer-events: all; }

.qm-mobile-nav__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 40px;
  font-weight: 100;
  font-family: var(--font-display);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}
.qm-mobile-nav__close:hover { color: var(--white); }

.qm-mobile-nav__logo { margin-bottom: 48px; }

.qm-mobile-nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.qm-mobile-nav__links li { overflow: hidden; }
.qm-mobile-nav__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 60px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  transform: translateY(100%);
  transition: color 0.3s;
}
.qm-mobile-nav.is-open .qm-mobile-nav__link {
  animation: qmSlideUp 0.6s var(--ease-out) forwards;
}
.qm-mobile-nav.is-open .qm-mobile-nav__links li:nth-child(1) .qm-mobile-nav__link { animation-delay: 0.08s; }
.qm-mobile-nav.is-open .qm-mobile-nav__links li:nth-child(2) .qm-mobile-nav__link { animation-delay: 0.14s; }
.qm-mobile-nav.is-open .qm-mobile-nav__links li:nth-child(3) .qm-mobile-nav__link { animation-delay: 0.20s; }
.qm-mobile-nav__link:hover,
.qm-mobile-nav__link.active { color: var(--white); }
.qm-mobile-nav__link.active { color: var(--gold-light); }

.qm-mobile-nav__cta {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 36px;
  margin-bottom: 40px;
  transition: border-color 0.3s, color 0.3s;
}
.qm-mobile-nav__cta:hover { border-color: var(--gold-light); color: var(--gold-light); }

.qm-mobile-nav__footer {
  display: flex;
  gap: 28px;
}
.qm-mobile-nav__footer a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.qm-mobile-nav__footer a:hover { color: var(--white); }

@keyframes qmSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ---- PROVENANCE STRIP ---- */
.qm-provenance-strip {
  background: var(--burgundy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 14px 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  overflow: hidden;
}
.qm-provenance-strip .strip-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-strip 28s linear infinite;
}
@keyframes marquee-strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- BUTTONS ---- */
.qm-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--gold);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.qm-btn-primary:hover { background: transparent; color: var(--gold); }

.qm-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid rgba(255,255,255,0.45);
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}
.qm-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); }

.qm-btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--charcoal);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--charcoal);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.qm-btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }

/* ---- GOLD RULE ---- */
.qm-rule {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 20px auto;
}
.qm-rule-left {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 20px 0;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- FOOTER ---- */
.qm-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 64px clamp(20px, 6vw, 80px) 32px;
}
.qm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.qm-footer__tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 260px;
}
.qm-footer__heading {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.qm-footer__links li + li { margin-top: 12px; }
.qm-footer__links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.qm-footer__links a:hover { color: var(--white); }
.qm-footer__contact-item {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.qm-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 11px;
  font-weight: 300;
  flex-wrap: wrap;
  gap: 12px;
}
.qm-footer__credit a {
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.qm-footer__credit a:hover { color: var(--gold-light); }

/* ---- WHATSAPP FAB ---- */
.qm-fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.qm-fab-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--burgundy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.qm-fab-btn:hover { background: var(--gold); transform: scale(1.05); }
.qm-fab-btn svg { width: 26px; height: 26px; }
.qm-fab-bubble {
  position: absolute;
  bottom: 64px;
  right: 0;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 16px;
  width: 240px;
  display: none;
}
.qm-fab-bubble.open { display: block; }
.qm-fab-bubble-header {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.qm-fab-option {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--charcoal);
  padding: 10px 14px;
  background: var(--stone);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.4;
  border-radius: 1px;
}
.qm-fab-option:hover { background: var(--parchment); }
.qm-fab-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  cursor: pointer;
  font-size: 16px;
  color: #aaa;
  line-height: 1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .qm-nav__links, .qm-nav-cta { display: none; }
  .qm-hamburger { display: flex; }
  .qm-nav-overlay { display: none; }
  .qm-mobile-nav { display: flex; }
  .qm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .qm-footer__bottom { flex-direction: column; text-align: center; }
}
@media (min-width: 901px) {
  .qm-mobile-nav { display: none !important; }
}
