/* =========================================
   Zachariah Garner Photography - Model Site
   ========================================= */

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

:root {
  --white: #fff;
  --off-white: #fafafa;
  --text: #1a1a1a;
  --text-light: #666;
  --text-muted: #999;
  --transition: 0.4s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Typography ---- */

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 42em;
}

/* ---- Nav ---- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background var(--transition), color var(--transition);
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color var(--transition);
}

.site-nav.scrolled .nav-logo {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color var(--transition), opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.site-nav.scrolled .nav-links a {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s, background var(--transition);
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.site-nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #111;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-tagline {
  position: absolute;
  bottom: 6rem;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.hero-tagline p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--white);
  letter-spacing: 0.04em;
  max-width: none;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.hero-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}

.hero-prev,
.hero-next {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0.5rem;
}

.hero-prev:hover,
.hero-next:hover {
  opacity: 1;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ---- Work / Projects ---- */

.work {
  padding: 8rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.project-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.project-card:hover .project-thumb img {
  transform: scale(1.03);
}

.project-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.project-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---- Gallery ---- */

.gallery {
  display: none;
  padding: 6rem 2.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery.visible {
  display: block;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.gallery-close {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
}

.gallery-close:hover {
  color: var(--text);
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* ---- About ---- */

.about {
  padding: 6rem 2.5rem 8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 2rem;
}

.about-statement {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

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

/* ---- Contact ---- */

.contact {
  text-align: center;
  padding: 6rem 2.5rem 8rem;
  background: var(--off-white);
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact p {
  margin: 0 auto 2rem;
  color: var(--text-light);
}

.contact-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.contact-link:hover {
  border-color: var(--text);
}

/* ---- Lightbox ---- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 1rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---- Footer ---- */

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open a {
    color: var(--text);
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
    z-index: 110;
  }

  .nav-toggle.open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav-toggle.open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero-slide img {
    object-position: center center;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-thumb {
    aspect-ratio: 3 / 4;
  }

  .gallery-grid {
    columns: 2;
  }

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

  .about-content {
    display: flex;
    flex-direction: column-reverse;
  }

  .about-image img {
    aspect-ratio: 1 / 1;
  }

  .work {
    padding: 5rem 1.5rem;
  }

  .about {
    padding: 4rem 1.5rem 5rem;
  }

  .site-nav {
    padding: 1.2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }

  .hero-tagline p {
    padding: 0 1.5rem;
  }
}
