/* ─────────────────────────────────────────────
   23 MARTINI — SHARED SITE STYLES
   Loaded on every page. Page-specific layout
   (homepage sections, article template) lives
   in its own stylesheet.
───────────────────────────────────────────── */

:root {
  --black:   #262f36;
  --off-white: #f7f5f1;
  --white:   #ffffff;
  --accent:  #ee4137;
  --blue:    #5fb1d4;
  --mid:     #666666;
  --rule:    #dedbd5;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--black);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ─── NAV ─── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--blue); }

/* ─── HAMBURGER TOGGLE (mobile only) ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
  transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── SECTION WRAPPER (shared across homepage + listing pages) ─── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

/* ─── SECTION HEADS ─── */
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

h2.sh {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  margin-bottom: 20px;
}

h2.sh em {
  font-style: italic;
  font-weight: 400;
}

/* ─── PRE-FOOTER LOGO BAND ─── */
.prefooter {
  background: var(--off-white);
  border-top: 1px solid var(--rule);
  padding: 40px 28px;
  text-align: center;
}

.prefooter img {
  height: 104px;
  width: auto;
  display: inline-block;
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  color: #8a9aa3;
  padding: 28px 28px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

footer a { color: #8a9aa3; text-decoration: none; }
footer a:hover { color: var(--white); }

/* ─── CONTACT-INFO OBFUSCATION ─── */
.obf-phone::before {
  content: '(' attr(data-a) attr(data-b) attr(data-c) ') \00a0' attr(data-d) attr(data-e) attr(data-f) '-' attr(data-g) attr(data-h) attr(data-i) attr(data-j);
}
.contact-aside .obf-phone::before { color: #444; }
footer .obf-phone::before { color: #8a9aa3; }
.obf-email { color: var(--accent); text-decoration: none; }
footer .obf-email { color: #8a9aa3; }
footer .obf-email:hover { color: var(--white); }

/* ─── RESPONSIVE (shared) ─── */
@media (max-width: 600px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }

  .nav-links.is-open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 14px 28px;
  }

  .nav-links li + li a {
    border-top: 1px solid var(--rule);
  }
}
