/* ============================================================
   nav.css — hamburger drawer + shared topbar tweaks + story-page layout
   ============================================================ */

/* Hamburger button — only visible on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s, opacity 0.18s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 720px) {
  .topnav, .topbar-phone, .topbar-cta { display: none; }
  .hamburger { display: inline-flex; }
}

/* Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 20, 0.85);
  z-index: 90;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}
.nav-drawer.is-open {
  display: flex;
}
.nav-drawer-head,
.nav-drawer-links,
.nav-drawer-cta {
  background: var(--bg);
}
.nav-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.nav-drawer-close:hover { color: var(--ink); border-color: var(--ink-soft); }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}
.nav-drawer-links a {
  padding: 18px 24px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.18s, background 0.18s;
}
.nav-drawer-links a:hover {
  color: var(--accent);
  background: var(--surface);
}
.nav-drawer-links a[aria-current="page"] { color: var(--accent); }

.nav-drawer-cta {
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.nav-drawer-open { overflow: hidden; }

@media (min-width: 721px) {
  .nav-drawer { display: none !important; }
}

/* Mobile-friendly drawer width on small screens */
@media (max-width: 720px) {
  .nav-drawer-head, .nav-drawer-links, .nav-drawer-cta {
    width: 100%;
  }
}

/* ============================================================
   Story page (about + process)
   ============================================================ */
.story-page {
  padding: var(--s-7) 0 var(--s-9);
}
.story {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}
.story h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
.story h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--s-6) 0 var(--s-3);
  color: var(--ink);
}
.story-lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 var(--s-5);
}
.story p {
  margin: 0 0 var(--s-3);
  color: var(--ink-soft);
}
.story-portrait {
  display: block;
  width: 240px;
  margin: var(--s-5) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.story-portrait img { display: block; width: 100%; height: auto; }

.promise-list {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promise-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}
.promise-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

.step-tier {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  vertical-align: middle;
}

/* Service area map */
.service-map {
  margin: var(--s-5) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.service-map img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.85);
}
.service-map figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-align: center;
}
.service-map-fallback {
  padding: 60px var(--s-4);
  text-align: center;
}
.service-map-fallback::before {
  content: "📍 Burns Park, Ann Arbor, MI";
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ============================================================
   Photo gallery (/gallery)
   ============================================================ */
.gallery-page {
  padding: var(--s-7) 0 var(--s-9);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0;
}
.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: var(--s-3);
}
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(42, 45, 51, 0.95), transparent);
  color: var(--ink);
  padding: var(--s-4) var(--s-3) var(--s-3);
  font-family: var(--body);
  font-size: 0.9rem;
  text-align: left;
}
.gallery-empty {
  grid-column: 1 / -1;
  padding: var(--s-7) var(--s-4);
  text-align: center;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
