/* ================================================
   NOMADIC TRAVELLERS — v2
   Luxury editorial photography site
   Cormorant Garamond display · Montserrat body
   Jet black · warm white · gold accent
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Montserrat:wght@200;300;400;500&family=Cinzel:wght@400;500&family=Dancing+Script:wght@500&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
  --black:        #060606;
  --off-black:    #0e0e0e;
  --white:        #f4f1ec;
  --white-dim:    rgba(244,241,236,0.55);
  --white-faint:  rgba(244,241,236,0.18);
  --gold:         #c8a86b;
  --gold-dim:     rgba(200,168,107,0.45);
  --gold-faint:   rgba(200,168,107,0.15);
  --border:       rgba(244,241,236,0.08);
  --border-gold:  rgba(200,168,107,0.25);
  --nav-h:        64px;
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --t:            0.32s;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Montserrat', sans-serif;
  --font-caps:    'Cinzel', serif;
}

/* ── RESET ──────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--black); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ── PHOTO PROTECTION ───────────────────────── */
img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.photo-shield {
  position: relative;
  overflow: hidden;
  display: block;
}
.photo-shield::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background var(--t) var(--ease), border-bottom var(--t) var(--ease);
}
.nav.filled {
  background: rgba(6,6,6,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Logo */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-text .main {
  font-family: var(--font-caps);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white);
}
.nav-logo-text .by {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Category nav links */
.nav-cats {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-cats li a {
  display: block;
  padding: 0 20px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--t);
  position: relative;
}
.nav-cats li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20px; right: 20px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.nav-cats li a:hover,
.nav-cats li a.active { color: var(--white); }
.nav-cats li a.active::after,
.nav-cats li a:hover::after { transform: scaleX(1); }

/* Sub-nav — slides in below nav when category active */
.sub-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 490;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(6,6,6,0.94);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  transform: translateY(-100%);
  transition: transform 0.28s var(--ease), opacity 0.28s;
  opacity: 0;
  pointer-events: none;
}
.sub-nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.sub-nav-btn {
  padding: 0 18px;
  height: 44px;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  cursor: pointer;
  transition: color var(--t);
  position: relative;
}
.sub-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.sub-nav-btn:hover,
.sub-nav-btn.active { color: var(--white); }
.sub-nav-btn.active::after,
.sub-nav-btn:hover::after { transform: scaleX(1); }

/* Right nav — about/contact */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-right a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--t);
}
.nav-right a:hover { color: var(--white); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 510;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: var(--t) var(--ease);
  border-radius: 1px;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 505;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: var(--white-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 12px 0;
  transition: color var(--t);
  display: block;
  text-align: center;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu-divider {
  width: 40px;
  height: 1px;
  background: var(--border-gold);
  margin: 20px 0;
}

/* ── GRID LAYOUT ────────────────────────────── */
/* Top padding accounts for nav + possible sub-nav */
.grid-wrap {
  padding-top: var(--nav-h);
  transition: padding-top 0.28s var(--ease);
}
.grid-wrap.sub-active {
  padding-top: calc(var(--nav-h) + 44px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  background: var(--off-black);
}

/* Featured/hero item — spans 2 columns */
.grid-item.featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.grid-item .photo-shield {
  width: 100%;
  height: 100%;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: brightness(0.92);
}

.grid-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Hover caption overlay */
.grid-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(to top, rgba(6,6,6,0.88) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 3;
  pointer-events: none;
}
.grid-item:hover .grid-item-caption {
  opacity: 1;
  transform: translateY(0);
}
.grid-item-caption .title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  display: block;
  line-height: 1.3;
}
.grid-item-caption .meta {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  display: block;
}

/* Skeleton loading */
.grid-item.skeleton {
  background: var(--off-black);
  animation: shimmer 1.6s ease-in-out infinite;
  cursor: default;
}
@keyframes shimmer {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.75; }
}

/* Empty / error state */
.grid-empty {
  grid-column: 1/-1;
  padding: 120px 40px;
  text-align: center;
  color: var(--white-faint);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* Photo count */
.grid-count {
  position: fixed;
  bottom: 24px;
  left: 40px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  z-index: 100;
  pointer-events: none;
  transition: opacity var(--t);
}

/* ── LIGHTBOX ───────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(4,4,4,0.98);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Image area */
.lb-img-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 80px 12px;
  overflow: hidden;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Caption bar */
.lb-caption {
  flex-shrink: 0;
  padding: 16px 80px 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid var(--border-gold);
  background: rgba(6,6,6,0.6);
}
.lb-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  letter-spacing: 0.02em;
}
.lb-divider {
  width: 1px;
  height: 14px;
  background: var(--border-gold);
  flex-shrink: 0;
  align-self: center;
}
.lb-location {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Controls */
.lb-close {
  position: fixed;
  top: 20px; right: 28px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), color var(--t);
  z-index: 910;
}
.lb-close:hover { border-color: var(--white); color: var(--white); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 80px;
  background: none;
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), color var(--t), background var(--t);
  z-index: 910;
}
.lb-prev:hover, .lb-next:hover {
  border-color: var(--white-dim);
  color: var(--white);
  background: rgba(244,241,236,0.04);
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Counter */
.lb-counter {
  position: fixed;
  top: 28px; left: 40px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  z-index: 910;
}

/* ── INNER PAGES ────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 60px) 40px 48px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}
.page-header h1 em {
  font-style: italic;
  color: var(--gold);
}
.page-header p {
  font-size: 13px;
  color: var(--white-dim);
  margin-top: 14px;
  max-width: 560px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}
.about-photo {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.about-photo .photo-shield {
  width: 100%;
  height: 100%;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #111 0%, #0a0a0a 100%);
}
.about-text {
  padding: calc(var(--nav-h) + 60px) 60px 80px;
  border-left: 1px solid var(--border);
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 36px;
  color: var(--white);
}
.about-text h2 em { font-style: italic; color: var(--gold); }
.about-text p {
  font-size: 14px;
  line-height: 1.95;
  color: rgba(244,241,236,0.72);
  margin-bottom: 22px;
}
.about-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 36px 0;
}
.gear-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gear-list li {
  font-size: 13px;
  color: var(--white-dim);
  padding-left: 16px;
  position: relative;
}
.gear-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}
.contact-left {
  padding: 80px 60px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-left h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 32px;
}
.contact-left h1 em { font-style: italic; color: var(--gold); }
.contact-left p {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.85;
  max-width: 380px;
  margin-bottom: 48px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-item a,
.contact-item span {
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  transition: color var(--t);
}
.contact-item a:hover { color: var(--gold); }
.contact-right {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-right h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--white);
}
.form-row { margin-bottom: 28px; }
.form-row label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 10px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color var(--t);
  -webkit-appearance: none;
  border-radius: 0;
}
.form-row textarea {
  height: 110px;
  resize: none;
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin-top: 2px;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--gold); }
.form-row select option { background: #111; }
.btn-submit {
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  margin-top: 8px;
}
.btn-submit:hover { background: var(--gold); color: var(--black); }

/* Articles coming soon */
.coming-soon {
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 80px;
  max-width: 640px;
}
.coming-soon-rule { width: 40px; height: 1px; background: var(--gold); margin-bottom: 48px; }
.coming-soon h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}
.coming-soon h1 em { font-style: italic; color: var(--gold); }
.coming-soon p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--white-dim);
  margin-bottom: 48px;
}
.btn-outline {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--t), border-color var(--t);
}
.btn-outline:hover { background: var(--gold-faint); border-color: var(--gold); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: var(--white-dim);
}
.footer-right {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(2,1fr); }
  .grid-item.featured { grid-column: span 2; }
  .about-grid { grid-template-columns: 280px 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 20px; }
  .nav-cats { display: none; }
  .nav-right { display: none; }
  .nav-burger { display: flex; }

  .photo-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .grid-item.featured { grid-column: span 2; }
  .grid-item { aspect-ratio: 3/2; }
  .grid-item.featured { aspect-ratio: 16/9; }

  .sub-nav { overflow-x: auto; justify-content: flex-start; padding: 0 16px; }
  .sub-nav::-webkit-scrollbar { display: none; }

  .lb-img-wrap { padding: 52px 12px 8px; }
  .lb-caption { padding: 12px 16px 14px; flex-direction: column; gap: 6px; align-items: center; }
  .lb-divider { display: none; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; height: 50vw; top: 0; }
  .about-text { padding: calc(var(--nav-h) + 32px) 24px 60px; border-left: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 40px 24px; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--border); }
  .coming-soon { padding: 0 24px; }
  .footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 24px; }
  .grid-count { left: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .photo-grid { grid-template-columns: 1fr; }
  .grid-item, .grid-item.featured { aspect-ratio: 4/3; grid-column: span 1; }
}
