/* ===========================
   Jake's Photography Portfolio
   Colours: White / Orange #F07820 / Dark #2A2A28
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --white:  #FFFFFF;
  --orange: #F07820;
  --dark:   #2A2A28;
  --orange-light: #F9A05A;
  --orange-dark:  #C85E10;
  --grey:   #F4F4F2;
  --mid:    #888884;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--orange); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── PAGE WRAPPER ── */
.page { display: none; padding-top: 68px; min-height: 100vh; }
.page.active { display: block; }

/* ── HOME ── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
}

.hero-left {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.12;
}

.hero-left::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.08;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-title em {
  color: var(--orange);
  font-style: normal;
}

.hero-desc {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 50%;
  text-align: center;
}

.btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.hero-right {
  background: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.hero-photo-grid div {
  background: #ddd;
  overflow: hidden;
}

.hero-photo-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-photo-grid img:hover { transform: scale(1.05); }

.home-tagline {
  background: var(--orange);
  text-align: center;
  padding: 32px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ── ABOUT ── */
.about-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 32px;
}

.page-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.page-heading span { color: var(--orange); }

.heading-rule {
  width: 60px; height: 4px;
  background: var(--orange);
  margin: 16px 0 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.about-photo-box {
  position: relative;
}

.about-photo-box::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 3px solid var(--orange);
  z-index: -1;
}

.about-photo-box img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.about-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

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

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--orange);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
}

/* ── PORTFOLIO LIST ── */
.portfolio-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.category-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grey);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.08); }

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,42,40,0.85) 0%, rgba(42,42,40,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(240,120,32,0.88) 0%, rgba(240,120,32,0.2) 70%);
}

.category-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-transform: capitalize;
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
}

/* ── CATEGORY DETAIL ── */
.category-header {
  background: var(--dark);
  padding: 64px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-btn {
  background: none;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.back-btn:hover { background: var(--orange); color: var(--white); }

.category-header-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  text-transform: capitalize;
}

.category-description {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 48px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  border-bottom: 1px solid #eee;
}

.photo-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.photo-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--grey);
  position: relative;
}

.photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-thumb:hover img { transform: scale(1.06); }

.photo-thumb::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(240,120,32,0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-thumb:hover::after { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(42,42,40,0.96);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.lb-btn {
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.lb-btn:hover { border-color: var(--orange); background: var(--orange); }

.lb-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lb-close:hover { opacity: 1; color: var(--orange); }

.lb-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

footer span { color: var(--orange); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }
.fade-up-4 { animation: fadeUp 0.6s 0.45s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 60px 28px; }
  .btn { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { gap: 16px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .category-header { padding: 40px 24px; }
  .category-description { padding: 32px 24px; }
}
