/* nav and footer styles for /fitted pages, written by tools/fitted/build.py from /gallery */

:root {
  --ivory: #D9EFF3;
  --warm-white: #EEF7F9;
  --stone: #9BA0A5;
  --clay: #5A5F63;
  --charcoal: #2E3235;
  --soft-black: #1A3A4A;
  --mist: #D4D6D8;
  --blush: #E8D5A8;
  --hera-teal: #6FB5C4;
  --hera-teal-deep: #3D8B9E;
  --hera-teal-dark: #3D8B9E;
  --hera-peach: #C8A96E;
  --gold: #C8A96E;
  --gold-light: #E8D5A8;
  --gold-dark: #A68B4B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; background: var(--soft-black); }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--soft-black);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { background: var(--warm-white); }
h1, h2, h3 { text-wrap: balance; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px; display: flex; justify-content: space-between;
  align-items: center; transition: all 0.5s ease;
}
nav.scrolled {
  background: rgba(250,250,247,0.92); backdrop-filter: blur(20px);
  padding: 16px 48px; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img {
  height: 80px; width: auto; transition: all 0.5s ease;
  filter: brightness(0) invert(1);
}
nav.scrolled .nav-logo-img { filter: brightness(0) invert(0.25); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; text-decoration: none; font-weight: 500; transition: color 0.5s, opacity 0.3s;
}
.nav-links a:hover { opacity: 0.6; }
nav.scrolled .nav-links a { color: var(--charcoal); }
.nav-cta {
  background: var(--hera-teal-dark) !important; color: #fff !important;
  padding: 10px 28px; border-radius: 999px; font-weight: 600;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--hera-teal-deep) !important; opacity: 1 !important; }
.nav-dropdown-trigger { cursor: default; }
.nav-dropdown-trigger > a::after {
  content: ''; display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor; vertical-align: middle;
  transition: transform 0.3s ease;
}
.nav-dropdown-trigger:hover > a::after { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 28px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-dropdown-trigger:hover .nav-dropdown,
.nav-dropdown-trigger:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: 28px; left: 0; right: 0; bottom: 0;
  background: rgba(250,250,247,0.92); backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.06); border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.nav-dropdown a {
  display: block; position: relative; z-index: 1;
  padding: 12px 24px; white-space: nowrap;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--charcoal) !important; font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  opacity: 1 !important;
}
.nav-dropdown a:first-child { border-radius: 4px 4px 0 0; }
.nav-dropdown a:last-child { border-radius: 0 0 4px 4px; }
.nav-dropdown a:hover { background: var(--ivory); color: var(--hera-teal-dark) !important; }
.nav-mobile-cta { display: none; gap: 10px; align-items: center; }
.nav-mobile-btn-shop {
  display: flex; align-items: center; gap: 6px; padding: 9px 20px;
  font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: all 0.3s ease;
  background: var(--hera-teal-dark); color: #fff; border: none; border-radius: 999px;
}
.nav-mobile-btn-shop:hover { background: var(--hera-teal-deep); }
nav.scrolled .nav-mobile-btn-shop { background: var(--hera-teal-dark); color: #fff; }
.nav-mobile-btn-wa {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none; cursor: pointer; transition: all 0.3s ease;
}
.nav-mobile-btn-wa svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); flex-shrink: 0; transition: fill 0.3s; }
.nav-mobile-btn-wa:hover { border-color: #25D366; }
.nav-mobile-btn-wa:hover svg { fill: #25D366; }
nav.scrolled .nav-mobile-btn-wa { border-color: var(--mist); }
nav.scrolled .nav-mobile-btn-wa svg { fill: var(--clay); }
nav.scrolled .nav-mobile-btn-wa:hover { border-color: #25D366; }
nav.scrolled .nav-mobile-btn-wa:hover svg { fill: #25D366; }
.nav-hamburger {
  display: none; width: 36px; height: 36px; padding: 0; border: none;
  background: transparent; cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-line {
  display: block; width: 20px; height: 1.5px; background: #fff;
  transition: all 0.3s ease; border-radius: 1px;
}
nav.scrolled .hamburger-line { background: var(--charcoal); }
.nav-hamburger.open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 199;
  background: rgba(42,42,42,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.visible { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: 320px; max-width: 85vw;
  background: var(--warm-white); box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 20px; border-bottom: 1px solid var(--mist);
}
.drawer-logo { height: 40px; width: auto; filter: brightness(0) invert(0.2); }
.drawer-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--mist); border-radius: 50%;
  cursor: pointer; color: var(--clay); transition: all 0.3s;
}
.drawer-close:hover { border-color: var(--charcoal); color: var(--charcoal); }
.drawer-links { list-style: none; padding: 20px 0; margin: 0; }
.drawer-links li { padding: 0; }
.drawer-links a {
  display: flex; align-items: center; padding: 16px 28px;
  font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 500;
  color: var(--charcoal); text-decoration: none; letter-spacing: 0.02em;
  transition: all 0.2s ease; border-left: 3px solid transparent;
}
.drawer-links a:hover { background: var(--ivory); color: var(--hera-teal-dark); border-left-color: var(--hera-teal); }
.drawer-links a.drawer-active { color: var(--hera-teal-dark); font-weight: 600; border-left-color: var(--hera-teal); background: rgba(140,200,196,0.06); }
.drawer-links-secondary a { font-size: 0.95rem; font-weight: 400; color: var(--clay); padding: 14px 28px; }
.drawer-links-secondary a:hover { color: var(--hera-teal-dark); }
.drawer-divider { height: 1px; background: var(--mist); margin: 0 28px; }
.drawer-footer { padding: 24px 28px; margin-top: auto; border-top: 1px solid var(--mist); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  background: var(--hera-teal-dark); color: #fff; border: none;
  border-radius: 999px; cursor: pointer; transition: background 0.3s;
}
.btn-primary:hover { background: var(--hera-teal-deep); }

/* ─── FOOTER ─── */
footer { padding: 80px 48px 100px; background: var(--soft-black); color: var(--stone); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 300; letter-spacing: 0.45em; color: var(--ivory); margin-bottom: 16px; text-transform: uppercase; }
.footer-tagline { font-size: 1rem; font-weight: 300; line-height: 1.7; color: var(--stone); max-width: 300px; }
.footer-col h4 { font-size: 0.875rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ivory); font-weight: 600; margin-bottom: 20px; }
.footer-col a { display: block; font-size: 1rem; color: var(--stone); text-decoration: none; font-weight: 300; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--hera-teal); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 32px; border-top: 1px solid rgba(245,240,235,0.08); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.875rem; color: var(--stone); font-weight: 300; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: var(--stone); text-decoration: none; font-size: 0.875rem; transition: color 0.3s; }
.footer-socials a:hover { color: var(--hera-teal); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--stone); text-decoration: none; font-size: 0.8rem; transition: color 0.3s; font-weight: 300; }
.footer-legal a:hover { color: var(--hera-teal); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-mobile-cta { display: flex; }
  .nav-hamburger { display: flex; }
  .fitted-strip { padding: 40px 24px 0; }
  .fitted-strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .fitted-picks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 120px; overflow-x: auto; padding-bottom: 6px; }
  footer { padding: 48px 24px 100px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: 0.01s; opacity: 1; transform: none; }
}