/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Avenir';
  src: local('Avenir'), local('Avenir-Book'), local('AvenirLTStd-Book');
  font-weight: 400;
  font-style: normal;
}

html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background-color: #000;
  color: #fff;
  font-family: 'Avenir', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== HEADER / LOGO ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo a {
  display: inline-block;
}

.logo img {
  height: 80px;
  width: auto;
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  cursor: pointer;
  z-index: 200;
  width: 35px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ===== OVERLAY MENU ===== */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.overlay-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 90%;
  max-width: 1200px;
}

.menu-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s;
}

.menu-item:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.menu-item h2 {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
}

/* ===== FULLSCREEN CAROUSEL (Homepage & Why) ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.slide-caption {
  position: relative;
  z-index: 2;
  text-align: center;
}

.slide-caption h1 {
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}

/* Quote-style slides (Why page) */
.slide-quote {
  position: absolute;
  bottom: 60px;
  right: 60px;
  text-align: right;
  max-width: 600px;
  z-index: 2;
}

.slide-quote span {
  display: block;
  font-size: clamp(18px, 2.5vw, 28px);
  color: #fff;
  line-height: 1.4;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.7);
}

.slide-quote span.emphasis {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
}

/* Carousel arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* ===== TEXT PAGE (Bobby statement) ===== */
.text-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
}

.text-content {
  max-width: 750px;
}

.text-content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 1.5em;
  opacity: 0.9;
}

/* ===== PHOTO GALLERY ===== */
.photo-gallery-page {
  padding: 120px 20px 80px;
}

.photo-gallery {
  max-width: 1200px;
  margin: 0 auto;
  columns: 2;
  column-gap: 10px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #161616;
  padding: 8px 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  z-index: 100;
  font-size: 13px;
}

.site-footer p {
  color: #fff;
  margin: 0;
}

.site-footer ul {
  list-style: none;
  display: flex;
  gap: 5px;
}

.site-footer li::before {
  content: '|';
  margin-right: 8px;
  color: #fff;
}

.site-footer a {
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===== NAVIGATION PAGES (Photography, Exhibitions, Archive) ===== */
.nav-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 1200px;
}

.nav-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.nav-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.nav-card:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.nav-card.no-overlay::before {
  background: none;
}

.nav-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.3;
}

/* ===== ACTION PAGE (2x3 grid) ===== */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 80px 0 50px;
}

.action-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s;
}

.action-card:hover::before {
  background: rgba(0, 0, 0, 0.15);
}

.action-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.4;
}

/* ===== CONTENT PAGES (Books, Bio) ===== */
.content-page {
  min-height: 100vh;
  padding: 120px 40px 80px;
}

.content-page h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 50px;
  letter-spacing: 2px;
}

/* Books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.book-item {
  text-align: center;
}

.book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  margin-bottom: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.book-cover:hover {
  transform: scale(1.02);
}

.book-item .btn {
  display: inline-block;
  border: 1px solid #fff;
  padding: 8px 30px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: capitalize;
  transition: all 0.3s;
  margin-top: 10px;
}

.book-item .btn:hover {
  background: #fff;
  color: #000;
  opacity: 1;
}

.books-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== BIO PAGE ===== */
.bio-page {
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-page h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bio-content {
  max-width: 900px;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.7;
}

.bio-content p {
  margin-bottom: 30px;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-page h2 {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
}

.contact-page a {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
}

/* ===== TIMELINE PAGE ===== */
.timeline-page {
  min-height: 100vh;
  padding: 100px 0 80px;
}

.timeline-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding-right: 120px;
}

.timeline-sidebar {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 50;
}

.timeline-sidebar a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 0;
  color: #fff;
  transition: opacity 0.3s;
}

.timeline-sidebar a:hover,
.timeline-sidebar a.active {
  opacity: 0.6;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-year {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-year h2 {
  font-size: 48px;
  font-weight: 700;
}

.timeline-line {
  width: 1px;
  height: 40px;
  background: #fff;
}

.timeline-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-entry img {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.timeline-entry p {
  font-size: 15px;
  line-height: 1.5;
  max-width: 500px;
  margin-top: 10px;
  opacity: 0.85;
}

.timeline-entry img[data-broken] {
  display: none;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 5px 10px;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* ===== PRESS PAGE (Book reviews) ===== */
.press-page {
  min-height: 100vh;
  padding: 120px 40px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.press-page h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-align: center;
}

.press-subtitle {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.6;
  margin-bottom: 60px;
}

.press-quotes {
  max-width: 800px;
  width: 100%;
}

.press-quote {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0 0 0 30px;
  margin-bottom: 50px;
}

.press-quote p {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 15px;
}

.press-quote cite {
  display: block;
  font-size: 14px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.5;
}

.press-cta {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.press-cta .btn {
  display: inline-block;
  border: 1px solid #fff;
  padding: 12px 35px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.press-cta .btn:hover {
  background: #fff;
  color: #000;
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 15px;
  }

  .logo img {
    height: 50px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .menu-item {
    aspect-ratio: 16/7;
  }

  .nav-grid,
  .nav-grid.grid-3 {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .books-grid,
  .books-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 8px 15px;
    gap: 5px;
  }

  .slide-quote {
    bottom: 60px;
    right: 20px;
    left: 20px;
    text-align: center;
  }

  .timeline-wrapper {
    padding: 0 20px;
  }

  .timeline-sidebar {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: auto;
    padding: 0;
    margin-bottom: 30px;
  }

  .timeline-sidebar a {
    font-size: 14px;
  }

  .carousel-btn {
    font-size: 28px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .books-grid,
  .books-grid-3 {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto 30px;
  }
}
