/* =============================================
   JACOB CHARLES PHOTOGRAPHY
   Clean masonry portfolio, earthy tones
   ============================================= */

:root {
  --cream:      #f7f4ef;
  --parchment:  #ede4d3;
  --warm-brown: #6b4f3a;
  --dark-brown: #2c1f14;
  --terracotta: #b5613a;
  --charcoal:   #1e1a16;
  --gold:       #c9a96e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --nav-height:   100px;
  --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark-brown);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* =============================================
   NAVIGATION
   ============================================= */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(107,79,58,0.1);
}

.nav-left, .nav-right {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-brown);
  transition: color var(--transition);
}

.nav-left a:hover, .nav-right a:hover { color: var(--terracotta); }

.nav-right svg { display: block; }

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  height: 100px;
  width: auto;
  display: block;
  /* logo PNG has dark background, use mix-blend-mode to handle */
  mix-blend-mode: multiply;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  grid-column: 3;
  justify-self: flex-end;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark-brown);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark-brown);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}
.mobile-menu a:hover { color: var(--gold); }

/* =============================================
   GALLERY — CSS COLUMNS MASONRY
   ============================================= */

.gallery {
  padding-top: var(--nav-height);
}

.masonry {
  column-count: 4;
  column-gap: 20px;
  padding: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  cursor: zoom-in;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  opacity: 0.93;
}

.masonry-item:hover img {
  transform: scale(1.03);
  opacity: 1;
}

/* =============================================
   ABOUT
   ============================================= */

.about-section {
  background: var(--parchment);
  padding: 7rem 3rem;
}

.about-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.about-location {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--warm-brown);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-text p {
  color: #4a3728;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.8rem 2rem;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--warm-brown);
  transform: translateY(-2px);
}

/* =============================================
   CONTACT
   ============================================= */

.contact-section {
  background: var(--dark-brown);
  padding: 8rem 3rem;
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  color: var(--cream);
}

.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.contact-inner h2 em {
  font-style: italic;
  color: var(--gold);
}

.contact-inner p {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.55);
  margin-bottom: 2.2rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,169,110,0.35);
  padding-bottom: 0.25rem;
  transition: border-color var(--transition);
  letter-spacing: 0.03em;
}
.contact-email:hover { border-color: var(--gold); }

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--charcoal);
  padding: 1.8rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(245,240,232,0.25);
}
.footer a { color: rgba(245,240,232,0.35); transition: color var(--transition); }
.footer a:hover { color: var(--gold); }

/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,14,8,0.96);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.8rem;
  color: rgba(245,240,232,0.6);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.lightbox-close:hover { color: var(--cream); }

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .masonry { column-count: 2; }

  .nav-left, .nav-right { display: none; }
  .nav-burger { display: flex; }

  #nav { grid-template-columns: 1fr auto 1fr; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .masonry { column-count: 1; }
  .about-section { padding: 4rem 1.5rem; }
  .contact-section { padding: 5rem 1.5rem; }
}
