/* ==========================================================================
   J.W.Photostory — Editorial Minimalist Photography Portfolio
   Faithfully styled after jwphotostory.com with modern responsive polish
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --ink: #414141;
  --ink-light: #6d6d6d;
  --ink-muted: #999997;
  --divider: #e8e6e6;
  --border: #c7c7c7;
  --accent: #8f6b54;
  --accent-active: #b49e8f;
  --accent-blush: #dac7bc;
  --accent-dark: #5f4738;

  --font-display: "Barlow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-ui: "Jost", "Avenir Next", "Avenir", -apple-system, sans-serif;

  --header-height: 140px;
  --container-max: 1200px;
  --content-narrow: 980px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font-family: inherit;
  color: inherit;
}

main {
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(232, 230, 230, 0.7);
}

.header-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo img {
  height: 112px;
  width: auto;
  border-radius: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 2px;
  transition: color 0.4s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a.is-active {
  color: var(--accent-active);
}

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Homepage — Full-Bleed Hero Strip Showcase
   ========================================================================== */
.hero-showcase {
  position: relative;
  width: 100%;
  height: min(755px, calc(100vh - var(--header-height)));
  min-height: 460px;
  overflow: hidden;
  background: #f5f4f2;
  user-select: none;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease-smooth), visibility 0.9s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  transition: transform 6.5s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(4px);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

/* ==========================================================================
   Homepage — Intro & 2-Column Staggered Editorial Showcase
   ========================================================================== */
.home-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: 58px 24px 52px;
  text-align: center;
}

.home-intro h1,
.page-header h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 34px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.home-intro p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
}

.portfolio-stagger {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 32px 110px;
  display: grid;
  grid-template-columns: 452px 480px;
  justify-content: space-between;
  gap: 64px 48px;
}

.stagger-col {
  display: flex;
  flex-direction: column;
}

.stagger-col--left {
  gap: 88px;
}

.stagger-col--right {
  padding-top: 96px;
  gap: 108px;
}

.feature-card {
  display: flex;
  flex-direction: column;
}

.feature-card__index {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-card__media {
  display: block;
  overflow: hidden;
  background: #f3f2f0;
  position: relative;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-smooth), filter 0.5s ease;
}

.feature-card__media:hover img {
  transform: scale(1.03);
}

.feature-card--weddings .feature-card__media {
  aspect-ratio: 452 / 612;
}

.feature-card--family .feature-card__media {
  aspect-ratio: 480 / 384;
}

.feature-card--pets .feature-card__media {
  aspect-ratio: 452 / 304;
  background: #ffffff;
}

.feature-card--landscape .feature-card__media {
  aspect-ratio: 465 / 492;
  max-width: 465px;
}

.feature-card__caption {
  text-align: center;
  padding-top: 24px;
}

.feature-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.35s ease;
}

.feature-card__title a:hover {
  color: var(--accent);
}

.feature-card__link {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.feature-card__link:hover {
  color: var(--accent-dark);
  opacity: 0.85;
}

/* ==========================================================================
   Subpage Header (Wedding, Family, Landscape, Pets, Contact, Album)
   ========================================================================== */
.page-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  text-align: center;
}

.page-header h1 {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-header p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-back:hover {
  color: var(--accent-dark);
  transform: translateX(-3px);
}

/* ==========================================================================
   Album Index Masonry Grid (Wedding & Family pages)
   ========================================================================== */
.album-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.album-masonry {
  column-count: 3;
  column-gap: 28px;
}

.album-card {
  break-inside: avoid;
  margin-bottom: 34px;
  display: block;
  background: #ffffff;
  border: 1px solid #f0eeee;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.album-card:hover {
  border-color: var(--divider);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.album-card__media {
  overflow: hidden;
  background: #f5f4f2;
  position: relative;
}

.album-card__media img {
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease-smooth);
}

.album-card:hover .album-card__media img {
  transform: scale(1.035);
}

.album-card__body {
  padding: 18px 18px 20px;
  text-align: center;
}

.album-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s ease;
}

.album-card:hover .album-card__title {
  color: var(--accent);
}

.album-card__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Full-Bleed 3-Column Pro Gallery (Landscape & Pets)
   ========================================================================== */
.pro-gallery-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

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

.pro-gallery-item {
  position: relative;
  overflow: hidden;
  background: #f6f5f3;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}

.pro-gallery-grid--pets .pro-gallery-item {
  background: #ffffff;
}

.pro-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-smooth), opacity 0.4s ease;
}

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

/* Individual Album Masonry Gallery */
.album-photos-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

.album-photos-grid {
  column-count: 2;
  column-gap: 16px;
}

.album-photo-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  background: #f6f5f3;
  cursor: zoom-in;
}

.album-photo-item img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-smooth);
}

.album-photo-item:hover img {
  transform: scale(1.018);
}

/* ==========================================================================
   Contact / Bio Page
   ========================================================================== */
.bio-section {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 28px 96px;
}

.bio-hero {
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #f4f3f1;
  margin-bottom: 56px;
}

.bio-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 48%;
}

.bio-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid var(--divider);
}

.bio-row:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.bio-row__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 25px;
  line-height: 1.4;
  color: var(--ink);
}

.bio-row__content p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}

.award-item__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.award-item__org {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-meta {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.contact-meta a {
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-meta a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Minimal Underline-Only Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 2px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-muted);
  font-weight: 200;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-form__actions {
  text-align: center;
  padding-top: 8px;
}

.contact-form__submit {
  background: transparent;
  border: none;
  padding: 8px 24px;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.35s ease;
}

.contact-form__submit:hover {
  color: var(--accent);
}

.form-status {
  text-align: center;
  font-size: 14px;
  color: var(--accent);
  min-height: 22px;
}

.hidden-honeypot {
  display: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  background: var(--bg);
  border-top: 1px solid rgba(232, 230, 230, 0.55);
}

.footer-inner {
  max-width: 1280px;
  min-height: 102px;
  margin: 0 auto;
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 17px;
  color: var(--ink-light);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-social a {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 17px;
  color: var(--ink);
  transition: color 0.35s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Full-Screen Editorial Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img-wrap {
  max-width: 88vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.lightbox__close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 200;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.25s ease;
}

.lightbox__close:hover {
  color: var(--accent);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 18px;
  transition: color 0.25s ease;
}

.lightbox__nav:hover {
  color: var(--accent);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__nav svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.lightbox__counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .header-inner,
  .footer-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .portfolio-stagger {
    grid-template-columns: 1fr 1fr;
    gap: 56px 40px;
  }

  .album-masonry {
    column-count: 2;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 92px;
  }

  .site-logo img {
    height: 70px;
    width: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
    padding: 24px 32px 32px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-smooth), opacity 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-showcase {
    height: 62vh;
    min-height: 360px;
  }

  .portfolio-stagger {
    grid-template-columns: 1fr;
    padding: 12px 24px 72px;
    gap: 64px;
  }

  .stagger-col--left,
  .stagger-col--right {
    padding-top: 0;
    gap: 64px;
  }

  .feature-card--landscape .feature-card__media {
    max-width: 100%;
  }

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

  .bio-hero {
    height: 300px;
  }

  .bio-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 0;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .album-masonry,
  .album-photos-grid {
    column-count: 1;
  }

  .pro-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-intro h1,
  .page-header h1 {
    font-size: 26px;
  }

  .home-intro p {
    font-size: 17px;
  }
}
