/* ═══════════════════════════════════════════
   CIRE NAY — Analog Film Photography
   ═══════════════════════════════════════════ */

:root {
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --paper: #f4f1ec;
  --paper-dark: #e8e4dc;
  --muted: #6b655c;
  --line: rgba(26, 26, 26, 0.15);
  --accent: #c9a227;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.section { padding: 6rem 1.5rem; }
.container { max-width: var(--max); margin: 0 auto; }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub { color: var(--muted); margin-bottom: 2.5rem; }

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-light { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(2px); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-dark { color: var(--paper); background: var(--ink); }
.btn-dark:hover { background: var(--ink-soft); }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { background: var(--paper); box-shadow: var(--shadow); }
.nav img, .nav .logo { }

.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}
.nav.scrolled .logo { color: var(--ink); }
.logo-dot { color: var(--accent); }

.nav-links { display: flex; gap: 1.6rem; }
.nav-link {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav.scrolled .nav-link { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: all 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ HERO SLIDESHOW ═══════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.slides, .slide, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }

.slide {
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: transform, opacity;
}
.slide.active { opacity: 1; }

/* Film images are already black & white scans */
.slide img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.slide.active img {
  animation: heroZoom 4s linear forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.45));
  z-index: 2;
}

.hero-content { position: relative; z-index: 5; padding: 0 1.5rem; }
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* Controls */
.slide-controls {
  position: absolute;
  bottom: 3rem; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 1.5rem;
  z-index: 6;
}
.slide-btn {
  color: #fff; font-size: 1.3rem; line-height: 1;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.25s;
}
.slide-btn:hover { background: #fff; color: var(--ink); }
.slide-dots { display: flex; gap: 0.6rem; }
.slide-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.slide-dots button.active { background: #fff; transform: scale(1.3); }

.progress {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 6;
}
.progress span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width 6s linear;
}

/* ═══════════ GALLERY ═══════════ */
.cat-tabs {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.cat-btn {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--muted);
  padding: 0.4rem 0 0.8rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.25s;
}
.cat-btn:hover { color: var(--ink); }
.cat-btn.active { color: var(--ink); border-bottom-color: var(--accent); }

.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.25s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.item { cursor: pointer; animation: fadeUp 0.6s ease both; }
.item.hidden { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  background: var(--paper-dark);
  border: 1px solid #141414;
}
.img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.item.bw .img-wrap img { filter: grayscale(1) contrast(1.05); }
.item:hover .img-wrap img { transform: scale(1.06); }

.viewall-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.item figcaption {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  position: fixed; inset: 0;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-caption { margin-top: 1.2rem; color: #bbb; font-family: var(--serif); font-style: italic; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 2.5rem; color: #fff; line-height: 1;
  transition: transform 0.3s;
}
.lightbox-close:hover { transform: rotate(90deg); }

.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem; line-height: 1;
  color: rgba(255,255,255,0.7);
  padding: 1rem;
  transition: color 0.25s, transform 0.25s;
  background: none; border: none; cursor: pointer;
}
.lightbox-nav:hover { color: #fff; }
.lightbox-nav.prev { left: 0.5rem; }
.lightbox-nav.next { right: 0.5rem; }
.lightbox-nav.prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-nav.next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox-nav:disabled { opacity: 0.3; cursor: default; }

/* ═══════════ ABOUT ═══════════ */
.about-section { background: var(--paper-dark); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { overflow: hidden; border-radius: 4px; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 0.8s ease; }
.about-img:hover img { transform: scale(1.04); }
.about-text p { color: #3a362f; margin-bottom: 1.2rem; }

/* ═══════════ CONTACT ═══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.info-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-item a { font-family: var(--serif); font-size: 1.25rem; position: relative; }
.info-item a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width 0.3s;
}
.info-item a:hover::after { width: 100%; }
.social { display: flex; gap: 1.2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236b655c' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.contact-form textarea { resize: vertical; }
.form-error { color: #c0392b; font-size: 0.85rem; min-height: 1.2em; }
.form-success { display: none; margin-top: 2rem; text-align: center; color: #2d7a4f; font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.form-success.show { display: block; }

/* hidden honeypot field — bots fill it, humans don't see it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ═══════════ FOOTER ═══════════ */
.footer { text-align: center; padding: 2.5rem 1.5rem; background: var(--ink); color: #aaa; font-size: 0.85rem; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 860px) {
  .about-inner, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .f-row { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: 78vw; max-width: 300px;
    background: var(--ink);
    display: none;
    flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem;
    z-index: 140;
    box-shadow: -8px 0 30px rgba(0,0,0,0.35);
  }
  .nav-links.open {
    display: flex;
  }
  #navLinks .nav-link {
    color: #fff !important;
    font-size: 1rem;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    position: relative;
    z-index: 150;
  }
  .section { padding: 4rem 1.2rem; }
}
