/* ============================================================
   PhotoX — styles.css
   photox.ca · Life, honestly framed.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg:           #0f0f0f;
  --bg-deep:      #080808;
  --bg-mid:       #141414;
  --bg-card:      #1a1a1a;
  --border:       rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.14);
  --text:         #f0ece6;
  --text-muted:   rgba(240,236,230,0.45);
  --text-dim:     rgba(240,236,230,0.25);
  --accent:       #f0ece6;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --nav-h:        64px;
  --max-w:        1200px;
  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  width: min(100% - 48px, 760px);
  margin: 0 auto;
}
.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}
.not-found p:not(.section-label) {
  color: var(--text-muted);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: calc(100vh - 120px);
  height: calc(100svh - 120px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-optimised.jpg');
  background-size: 75%;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.65);
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}
.hero-bg.loaded { transform: scale(1); }
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.2) 55%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 64px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.hero-content.visible { opacity: 1; transform: translateY(0); }
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-title em { color: rgba(240,236,230,0.55); font-style: normal; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(240,236,230,0.35);
  padding: 14px 28px;
  transition: background 0.25s, border-color 0.25s;
}
.btn:hover {
  background: rgba(240,236,230,0.07);
  border-color: rgba(240,236,230,0.6);
}
.btn-solid {
  background: var(--text);
  color: var(--bg-deep);
  border-color: var(--text);
}
.btn-solid:hover {
  background: rgba(240,236,230,0.88);
  border-color: rgba(240,236,230,0.88);
  color: var(--bg-deep);
}

/* ── Page Header (non-hero pages) ─────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 64px) 40px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-intro {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section-link {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.section-link:hover { color: var(--text); }
.divider { border: none; border-top: 1px solid var(--border); }

/* ── Gallery Preview (homepage) ───────────────────────────── */
.gallery-preview {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3px;
}
.gallery-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}
.gallery-cell:first-child { aspect-ratio: 4/3; }
.gallery-cell:not(:first-child) { aspect-ratio: 3/4; }
.gallery-cell-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(240,236,230,0.08);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gallery-cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background 0.25s;
}
.gallery-cell:hover .gallery-cell-overlay { background: rgba(8,8,8,0.45); }
.gallery-cell-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,236,230,0);
  transition: color 0.25s;
}
.gallery-cell:hover .gallery-cell-label { color: rgba(240,236,230,0.8); }

/* ── About Strip (homepage) ───────────────────────────────── */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-left {
  padding: 64px 40px;
  border-right: 1px solid var(--border);
}
.about-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 24px;
}
.about-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-right {
  padding: 64px 40px;
}
.services-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; }
.service-num { font-size: 11px; color: var(--text-dim); width: 22px; flex-shrink: 0; }
.service-name { font-size: 13px; color: rgba(240,236,230,0.65); }
.service-geo { font-size: 11px; color: var(--text-dim); margin-left: auto; font-style: italic; }

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 56px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band-text {}
.cta-band-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 6px;
}
.cta-band-sub { font-size: 13px; color: var(--text-muted); }

/* ── About Page ───────────────────────────────────────────── */
.about-body-section {
  max-width: 680px;
}
.about-para {
  font-size: 16px;
  color: rgba(240,236,230,0.75);
  line-height: 1.9;
  margin-bottom: 28px;
}
.about-para em { color: var(--text); font-style: italic; }
.pull-quote {
  border-left: 2px solid rgba(240,236,230,0.15);
  padding: 6px 0 6px 28px;
  margin: 48px 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  font-weight: 300;
  color: rgba(240,236,230,0.88);
  line-height: 1.55;
}
.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.fact-item {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}
.fact-item:last-child { border-right: none; }
.fact-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}
.fact-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; }

/* ── Portfolio Page ───────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: rgba(240,236,230,0.3); color: var(--text); }
.filter-btn.active { background: rgba(240,236,230,0.08); border-color: rgba(240,236,230,0.35); color: var(--text); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}
.cat-card {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  cursor: pointer;
  overflow: hidden;
}
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.25s;
}
.cat-card:hover .cat-card-overlay { background: rgba(8,8,8,0.55); }
.cat-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.06;
}
.cat-name { font-size: 14px; font-weight: 400; color: var(--text); margin-bottom: 4px; }
.cat-sub { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240,236,230,0.4); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item.wide { aspect-ratio: 3/2; grid-column: span 2; }
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0);
  transition: background 0.25s;
}
.portfolio-item:hover .portfolio-item-overlay { background: rgba(8,8,8,0.35); }
.portfolio-item-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.05;
}
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 40px;
  border-top: 1px solid var(--border);
}

/* ── Commission Page ──────────────────────────────────────── */
.commission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.commission-left {
  padding: 64px 40px;
  border-right: 1px solid var(--border);
}
.commission-right { padding: 64px 40px; }

.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
}
.step-num {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-title { font-size: 14px; font-weight: 400; color: var(--text); margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.detail-list { list-style: none; margin-bottom: 48px; }
.detail-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.detail-item:last-child { border-bottom: none; }
.detail-title { color: var(--text); min-width: 140px; flex-shrink: 0; }
.detail-desc { color: var(--text-muted); line-height: 1.6; }

/* ── Contact Form ─────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: span 2; }
.form-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: rgba(240,236,230,0.35); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--bg-mid); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.form-note { font-size: 12px; color: var(--text-dim); font-style: italic; max-width: 340px; line-height: 1.6; }
.form-note.is-success { color: #b8d9c0; }
.form-note.is-error { color: #f1aaa2; }
.form-honeypot {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}
.form-consent {
  align-items: flex-start;
  color: var(--text-muted);
  display: flex;
  font-size: 12px;
  gap: 10px;
  line-height: 1.6;
  margin-top: 20px;
}
.form-consent input { margin-top: 4px; }
.form-consent a,
.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#contact-turnstile { margin-top: 20px; min-height: 65px; }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 11px; color: var(--text-dim); }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: var(--text-dim);
}

/* ── Scroll to top ────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-mid);
  background: var(--bg-deep);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, color 0.2s;
  z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { color: var(--text); }

/* ── Fade-in animation ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .gallery-preview { grid-template-columns: 1fr 1fr; }
  .gallery-cell:not(:first-child) { aspect-ratio: 1; }
  .about-strip { grid-template-columns: 1fr; }
  .about-left { border-right: none; border-bottom: 1px solid var(--border); }
  .commission-layout { grid-template-columns: 1fr; }
  .commission-left { border-right: none; border-bottom: 1px solid var(--border); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.wide { grid-column: span 1; aspect-ratio: 3/4; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-item { border-right: none; border-bottom: 1px solid var(--border); }
  .fact-item:last-child { border-bottom: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .hero-content { padding: 0 20px 48px; }
  .page-header { padding: calc(var(--nav-h) + 40px) 20px 40px; }
  .section { padding: 56px 20px; }
  .about-left, .about-right, .commission-left, .commission-right { padding: 40px 20px; }
  .filter-bar { padding: 16px 20px; }
  .cta-band { padding: 40px 20px; }
  .footer { padding: 20px; }
  .scroll-top { bottom: 20px; right: 20px; }
  .gallery-preview { grid-template-columns: 1fr; }
  .gallery-cell, .gallery-cell:first-child, .gallery-cell:not(:first-child) { aspect-ratio: 16/9; }
  .category-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
