/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px max(40px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,241,233,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,114,91,0.12);
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-dot {
  width: 10px; height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.nav-links {
  display: flex; gap: 32px; list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--charcoal-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--terracotta);
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--terracotta-dark) !important;
  transform: translateY(-1px);
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
  position: relative;
  z-index: 200;
  width: 40px; height: 40px;
}
.nav-hamburger:hover { background: var(--oat-dark); }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 22px; }
.nav-hamburger.open span:nth-child(1) { width: 22px; transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { width: 22px; transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245,241,233,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.mobile-nav-overlay a {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  padding: 14px 40px;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.2s, opacity 0.35s ease, transform 0.35s ease;
  border-bottom: 1px solid rgba(221,213,194,0.3);
}
.mobile-nav-overlay.open a { opacity: 1; transform: translateY(0); }
.mobile-nav-overlay.open a:nth-child(1) { transition-delay: 0.06s; }
.mobile-nav-overlay.open a:nth-child(2) { transition-delay: 0.10s; }
.mobile-nav-overlay.open a:nth-child(3) { transition-delay: 0.14s; }
.mobile-nav-overlay.open a:nth-child(4) { transition-delay: 0.18s; }
.mobile-nav-overlay.open a:nth-child(5) { transition-delay: 0.22s; }
.mobile-nav-overlay.open a:nth-child(6) { transition-delay: 0.26s; }
.mobile-nav-overlay a:hover { color: var(--terracotta); background: rgba(226,114,91,0.05); }
.mobile-nav-overlay .mob-cta {
  background: var(--terracotta);
  color: white !important;
  margin: 24px auto 0;
  width: auto;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 40px;
  border-bottom: none;
  box-shadow: 0 4px 16px rgba(226,114,91,0.35);
  transition-delay: 0.30s !important;
}
.mobile-nav-overlay .mob-cta:hover { background: var(--terracotta-dark) !important; }
.mob-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: 2px solid var(--oat-darker);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--charcoal-faint);
  transition: all 0.2s;
}
.mob-nav-close:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ── NAV SMALL MOBILE (≤ 440px) ── */
@media (max-width: 440px) {
  .mobile-nav-overlay a {
    font-size: 1.2rem;
    padding: 12px 32px;
  }
  .mobile-nav-overlay .mob-cta {
    font-size: 0.85rem;
    padding: 13px 32px;
    margin-top: 16px;
  }
}

/* ── NAV IPHONE SE (≤ 375px) ── */
@media (max-width: 375px) {
  .mobile-nav-overlay a {
    font-size: 1.1rem;
    padding: 11px 24px;
  }
  .mobile-nav-overlay .mob-cta {
    font-size: 0.82rem;
    padding: 12px 28px;
  }
}

/* ── NAV IPHONE SE 1ST GEN (≤ 320px) ── */
@media (max-width: 320px) {
  .mobile-nav-overlay a {
    font-size: 1rem;
    padding: 10px 20px;
  }
  .mobile-nav-overlay .mob-cta {
    font-size: 0.8rem;
    padding: 11px 24px;
    margin-top: 12px;
  }
  .mob-nav-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
