/* Marribella Benz - shared brand tokens */
:root {
  --bone: #F5F0E8;
  --black: #0D0B0B;
  --maroon: #A20101;
  --charcoal: #3A3A3A;
  --tan: #C4A574;
  --stone: #E8DFD2;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html, body {
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Editorial photo placeholder - subtly-striped bone with monospace note */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      #ece5d6 0 2px,
      #e6dfcf 2px 22px
    );
  overflow: hidden;
  color: #6b6357;
}
.ph::after {
  content: attr(data-note);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #847a6a;
  line-height: 1.7;
  white-space: pre-line;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, #1a1714 0 2px, #221d18 2px 22px);
  color: #b8ad99;
}
.ph.dark::after { color: #9c907a; }

/* Film grain overlay for full-bleed hero photos */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.86  0 0 0 0 0.78  0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Warm cast overlay applied to dark placeholders to mimic Portra warmth */
.warm {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196,165,116,0.18), transparent 60%),
    linear-gradient(180deg, rgba(162,1,1,0.05), rgba(13,11,11,0.18));
  mix-blend-mode: multiply;
}

/* Shared menu styles */
.menu {
  display: flex;
  gap: 28px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}
.menu a { position: relative; padding: 2px 0; }
.menu a.active { color: var(--maroon); }
.menu .sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .4;
  align-self: center;
}

/* Logo wordmark - substitute for paid LUIMP-Light */
.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--maroon);
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Nav right group - menu + social */
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-div {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: currentColor;
  opacity: 0.22;
}
.social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social a {
  display: inline-flex;
  color: inherit;
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}
.social a:hover { opacity: 1; color: var(--maroon); }
.social svg { width: 18px; height: 18px; display: block; }
/* Menu button: phones only. The contact item lives in the phone menu only;
   on desktop it is in the footer, keeping the top menu to five words. */
.nav-toggle { display: none; }
.menu .menu-contact { display: none; }

@media (max-width: 900px) {
  .nav-div { display: none; }
  /* Phones: menu button on the left, wordmark in the middle, social icons on
     the right. The links drop down under the bar when the button is tapped. */
  body > nav {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
  }
  body > nav .wordmark-link { grid-column: 2; grid-row: 1; justify-self: center; }
  body > nav .nav-right { display: contents; }
  body > nav .social { grid-column: 3; grid-row: 1; justify-self: end; gap: 18px; }
  body > nav .social a { padding: 8px; margin: -8px; }

  .nav-toggle {
    grid-column: 1; grid-row: 1; justify-self: start;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin: -10px 0 -10px -12px; padding: 0 12px;
    background: none; border: 0; color: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block; height: 1.5px; width: 20px; background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
  }
  body > nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body > nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body > nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  body > nav .menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    display: flex; flex-direction: column; gap: 0;
    padding: 6px 22px 18px;
    background: var(--bone, #F5F0E8);
    color: var(--black, #0D0B0B) !important;
    border-top: 1px solid rgba(13, 11, 11, .08);
    box-shadow: 0 18px 30px rgba(13, 11, 11, .14);
    font-size: 24px; letter-spacing: 0.06em;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  body > nav.nav-open .menu {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  body > nav .menu a { padding: 14px 0; border-bottom: 1px solid rgba(13, 11, 11, .08); }
  body > nav .menu a:last-child { border-bottom: 0; }
  body > nav .menu a.active { color: var(--maroon, #A20101); }
  body > nav .menu .menu-contact { display: block; }
}

/* CTA - maroon */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--maroon);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background .25s;
}
.cta:hover { background: #7a0101; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--maroon);
  color: var(--maroon);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Direction switcher (shared shell) */
.direction-bar {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  background: rgba(13,11,11,0.86);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.18);
}
.direction-bar a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.direction-bar a:hover { color: var(--bone); }
.direction-bar a.active {
  background: var(--maroon);
  color: var(--bone);
}
@media (max-width: 700px) {
  .direction-bar a { padding: 8px 12px; font-size: 10px; letter-spacing: 0.14em; }
}

/* A copy field left blank renders nothing, rather than an empty heading or
   paragraph that still takes up its margins. Placeholder boxes (.ph) are
   divs and are deliberately not covered. */
p:empty, h1:empty, h2:empty, h3:empty, h4:empty,
small:empty, figcaption:empty, cite:empty, blockquote:empty { display: none; }

/* A slot with a real photo: the photo fills the box the placeholder held, so
   the layout never moves. The stripes and shot brief go, and so do the fake
   warm-cast and grain overlays - a real photograph carries its own look.
   Anything that was drawn over the placeholder (the hero's shade for the
   headline) stays above the photo. */
.ph.ph-filled { background: #1a1714; }
.ph.ph-filled::after { content: none; }
.ph-filled > .ph-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ph-filled::before { z-index: 1; }
.ph-filled > .warm, .ph-filled > .grain,
.ph-filled ~ .warm, .ph-filled ~ .grain { display: none; }
