/* ==========================================================================
   Photography Portfolio — Base Stylesheet
   Geometric-minimalist, dark, photo-first. Single accent color.
   Edit the custom properties below to reskin the whole site.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-raised: #131315;
  --line: #232326;
  --text: #f2f2f0;
  --text-dim: #9a9a9d;
  --accent: #c98a4b;      /* single warm accent — swap for your brand color */
  --accent-dim: #8a6238;
  --max-width: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --speed: 0.25s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color var(--speed) ease, background var(--speed) ease, color var(--speed) ease;
}

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

.btn.btn-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---------- Site header / nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10,10,11,0.9), rgba(10,10,11,0));
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-mark svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--speed) ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.2rem;
}

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

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.55);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.95) 92%);
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.02;
  max-width: 16ch;
}

.hero-sub {
  max-width: 46ch;
  font-size: 1.05rem;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---------- Section scaffolding ---------- */

.section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin: 0;
}

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

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-raised);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.01);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.gallery-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity var(--speed) ease;
}

.gallery-item:hover .cap { opacity: 1; }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,6,7,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--speed) ease, color var(--speed) ease;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Panorama page ---------- */

.pano-viewer {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  background: var(--bg-raised);
  border-radius: 4px;
  border: 1px solid var(--line);
}

.pano-switcher {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pano-thumb {
  flex: 1 1 180px;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  text-align: left;
  transition: border-color var(--speed) ease;
}

.pano-thumb.is-active,
.pano-thumb:hover {
  border-color: var(--accent);
}

.pano-thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pano-thumb .label {
  display: block;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pano-thumb.is-active .label { color: var(--accent); }

.pano-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  font-size: 0.9rem;
}

.pano-note code {
  background: var(--bg-raised);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

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

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-list a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  display: inline-block;
  transition: border-color var(--speed) ease, color var(--speed) ease;
}

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

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

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

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--bg-raised);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--speed) ease;
  }

  .nav-links.is-open { transform: translateX(0); }

  .nav-toggle { display: block; }
}
