/* ── Nav scroll shadow ── */
nav.scrolled {
  box-shadow: 0 2px 24px rgba(26, 26, 26, 0.06);
}

/* ── Mobile nav overlay ── */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: #FAF7F2;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-overlay a {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 200; color: #1A1A1A;
  text-decoration: none; letter-spacing: -1px;
  transition: color 0.2s;
}
.mobile-nav-overlay a:hover { color: #C17A4A; }

/* ── Hamburger button ── */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1px;
  background: #1A1A1A; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links a { display: none; }
  .nav-cta { display: none; }
}

/* ── Typeform modal ── */
.typeform-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26, 26, 26, 0.75);
  display: none; align-items: center; justify-content: center;
}
.typeform-overlay.open { display: flex; }
.typeform-modal {
  background: #FFFFFF;
  width: min(680px, 92vw);
  height: min(580px, 85vh);
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.typeform-modal iframe {
  width: 100%; height: 100%; border: none;
}
.typeform-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none;
  color: white; font-size: 24px;
  cursor: pointer; line-height: 1;
  font-family: 'DM Sans', sans-serif;
  opacity: 0.8; transition: opacity 0.2s;
}
.typeform-close:hover { opacity: 1; }

/* ── FAQ accordion ── */
.faq-item { border-bottom: 0.5px solid #E8E0D5; }
.faq-question {
  width: 100%; background: none; border: none;
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left;
  font-family: 'Fraunces', serif; font-size: 18px;
  font-weight: 300; color: #1A1A1A; letter-spacing: -0.2px;
}
.faq-question .faq-icon {
  font-size: 20px; color: #C17A4A;
  transition: transform 0.3s; flex-shrink: 0;
  font-family: 'DM Sans', sans-serif; font-weight: 300;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 13px; color: #6B6560;
  line-height: 1.9; font-family: 'DM Sans', sans-serif;
  font-weight: 300; max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }

/* ── Work page card hover ── */
.work-card {
  position: relative; overflow: hidden;
  transition: transform 0.3s;
}
.work-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: #C17A4A; transition: width 0.4s ease;
}
.work-card:hover { transform: translateY(-3px); }
.work-card:hover::after { width: 100%; }

/* ── Nav dropdown menu ── */
.nav-menu-wrap { position: relative; }
.nav-menu-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; padding: 6px;
}
.nav-menu-btn span {
  display: block; width: 18px; height: 1.5px;
  background: #1A1A1A; transition: all 0.3s;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: #FAF7F2; border: 0.5px solid #E8E0D5;
  min-width: 180px; padding: 12px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 300; box-shadow: 0 8px 24px rgba(26,26,26,0.08);
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 10px 24px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #6B6560; text-decoration: none; font-weight: 400;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown a:hover { color: #C17A4A; background: rgba(193,122,74,0.04); }

@media (max-width: 768px) {
  .nav-menu-wrap { display: none; }
}

/* ── Active nav link ── */
.nav-links a.active { color: #C17A4A; }
.nav-links a.active::after { width: 100%; }

/* ── Mobile usability refinements ── */
@media (max-width: 768px) {
  .mobile-nav-overlay { gap: 28px; padding: 20px; }
  .mobile-nav-overlay a { font-size: clamp(28px, 10vw, 42px); text-align: center; }

  .typeform-modal {
    width: min(720px, 96vw);
    height: min(88vh, 640px);
  }
  .typeform-close { top: -34px; right: 4px; }

  .chat-bubble {
    bottom: calc(14px + env(safe-area-inset-bottom));
    right: 14px;
  }
  .chat-window {
    width: min(420px, calc(100vw - 24px));
    max-height: min(78vh, 560px);
  }
  .chat-msgs { height: min(42vh, 300px); }
}
