/* ─────────────────────────────────────────────────────────────────
   Palette Forward — Shared Navigation + Footer Styles
   ───────────────────────────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4rem;
  background: var(--ivory, #F9F7F3);
  border-bottom: 1px solid var(--border, #E8E0D4);
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.nav-wheel { width: 36px; height: 36px; flex-shrink: 0; }
.nav-wordmark { display: flex; flex-direction: row; align-items: baseline; gap: 0.3rem; line-height: 1; }
.nav-palette {
  font-family: 'Bodoni Moda', serif; font-size: 1.05rem; font-weight: 400;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink, #1C1814); line-height: 1;
}
.nav-forward {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 300;
  font-style: italic; letter-spacing: 0.02em; color: var(--ink, #1C1814); line-height: 1;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 400; color: var(--mid, #6A5C50); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink, #1C1814); }

.nav-cta {
  font-size: 0.63rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; padding: 0.6rem 1.5rem;
  background: var(--terra, #C85F3F); color: white;
  text-decoration: none; transition: opacity 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.86; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  padding: 4px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink, #1C1814);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile overlay ── */
.nav-mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ivory, #F9F7F3); z-index: 199; flex-direction: column;
  justify-content: flex-start; align-items: stretch;
  padding: 5.5rem 2rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu > a,
.nav-mobile-menu .mobile-section-toggle {
  display: block;
  font-size: 1.25rem; font-family: 'Bodoni Moda', serif; font-weight: 300;
  color: var(--ink, #1C1814); text-decoration: none; letter-spacing: 0.04em;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border, #E8E0D4);
  text-align: left;
  width: 100%;
  background: none; border-left: none; border-right: none; border-top: none;
  cursor: pointer;
}
.nav-mobile-menu > a:hover,
.nav-mobile-menu .mobile-section-toggle:hover { color: var(--terra, #C85F3F); }

.nav-mobile-cta {
  margin-top: 1.5rem !important;
  padding: 1rem 2rem !important;
  background: var(--terra, #C85F3F) !important; color: white !important;
  font-family: 'Jost', sans-serif !important; font-size: 0.78rem !important;
  letter-spacing: 0.15em !important; text-transform: uppercase; font-weight: 500 !important;
  border-bottom: none !important;
  text-align: center !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; gap: 1.25rem; }
  .nav-links { gap: 1.25rem; }
}
@media (max-width: 820px) {
  /* Hide desktop nav-links + CTA earlier — they were getting cramped
   * between 640px and the in-between widths where everything still
   * tried to fit. Switch to hamburger menu sooner. */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  nav {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0 1rem;
    height: 52px;
  }
  .nav-logo {
    grid-column: 2;
    justify-content: center;
  }
  .nav-hamburger {
    grid-column: 3;
    justify-self: end;
  }
}
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
}
/* Belt-and-suspenders against horizontal scroll on any page */
html, body { overflow-x: hidden; }

/* ── Author byline — shared across season + guide pages ── */
.author-byline {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--light, #C0B4A8);
  margin-top: 1.25rem;
}
.author-byline a {
  color: var(--mid, #6A5C50);
  text-decoration: none;
  border-bottom: 1px solid var(--border, #E8E0D4);
  transition: color 0.2s, border-color 0.2s;
}
.author-byline a:hover { color: var(--ink, #1C1814); border-bottom-color: var(--ink, #1C1814); }

/* Seasons dropdown — desktop.
 * The trigger is just a regular link; it inherits all .nav-links a
 * styles automatically. Dropdown panel appears below on hover/click. */
.nav-dropdown { position: relative; }

/* The dropdown panel hovers beneath the nav. No box / no top accent /
 * no shadow — feels like a quiet extension of the navbar dropping down,
 * not a separate UI element. */
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 150px;
  background: rgba(245, 242, 236, 0.96);
  backdrop-filter: blur(14px);
  padding: 0.5rem 0 0.75rem;
  margin-top: 1.15rem; /* aligns under nav's bottom border */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
  pointer-events: none;
}
.nav-dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Invisible bridge so the dropdown stays open as the cursor moves from
 * the trigger to the panel (the gap below the navbar would otherwise
 * trigger mouseleave). */
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -1.15rem; left: 0; right: 0; height: 1.15rem;
}

.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.4rem;
  font-family: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--mid, #6A5C50);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-dropdown-panel a:hover { color: var(--ink, #1C1814); }
.nav-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mobile menu — collapsible Seasons section */
.mobile-section { margin: 0; }
.mobile-section-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.mobile-section-chevron {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
  transition: transform 0.25s ease;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.mobile-section-toggle[aria-expanded="true"] .mobile-section-chevron {
  transform: rotate(-135deg) translate(-2px, -1px);
}
.mobile-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-section-toggle[aria-expanded="true"] + .mobile-section-content {
  max-height: 400px;
}
.mobile-section-content a.mobile-sub {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0 0.65rem 1.5rem !important;
  font-size: 1.05rem !important;
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 300 !important;
  color: var(--ink, #1C1814);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 224, 212, 0.5);
}
.mobile-section-content a.mobile-sub:last-child { border-bottom: 1px solid var(--border, #E8E0D4); }
.mobile-section-content a.mobile-sub:hover { color: var(--terra, #C85F3F); }


/* ─────────────────────────────────────────────────────────────────
   Site Footer
   ───────────────────────────────────────────────────────────────── */

.site-footer {
  display: block;
  background: var(--ivory, #F9F7F3);
  border-top: 1px solid var(--border, #E8E0D4);
  padding: 3rem 4rem 2.5rem;
}
.sf-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border, #E8E0D4);
}
.sf-brand {
  font-family: 'Bodoni Moda', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink, #1C1814);
  flex-shrink: 0;
}
.sf-brand em { font-style: italic; }

.sf-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}
.sf-main-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sf-main-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink, #1C1814);
  text-decoration: none;
  transition: color 0.2s;
}
.sf-main-nav a:hover { color: var(--terra, #C85F3F); }

.sf-season-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sf-season-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light, #9A8E82);
}
.sf-season-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--mid, #6A5C50);
  text-decoration: none;
  transition: color 0.2s;
}
.sf-season-nav a:hover { color: var(--ink, #1C1814); }

.sf-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.sf-note {
  font-size: 0.59rem;
  color: var(--light, #9A8E82);
  line-height: 1.65;
  max-width: 520px;
}
.sf-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  align-self: flex-end;
}
.sf-legal a {
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--light, #9A8E82);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.sf-legal a:hover { color: var(--ink, #1C1814); }

@media (max-width: 820px) {
  .site-footer { padding: 2.5rem 2rem 2rem; }
  .sf-inner { flex-direction: column; align-items: stretch; gap: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
  .sf-brand { text-align: center; display: flex; justify-content: center; }
  .sf-right { align-items: center; width: 100%; }
  .sf-main-nav, .sf-season-nav { justify-content: center; gap: 1.25rem; }
  .sf-bottom { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
  .sf-note { max-width: 100%; }
  .sf-legal { justify-content: center; align-self: auto; }
}
