/* ============================================================
   SnapSmith Photography — Shared Stylesheet
   Wireframe pass for Claude Code refinement
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Surface */
  --color-bg:            #1a1715;   /* charcoal, warm-leaning */
  --color-bg-elevated:   #221e1b;
  --color-bg-card:       #2a2522;

  /* Text */
  --color-cream:         #f5e6d3;   /* primary hero / heading text */
  --color-cream-muted:   #b8a99a;
  --color-text-faint:    #6b605a;

  /* Brand accents */
  --color-burnt-orange:  #cc5500;   /* primary brand accent */

  /* Forge CTA palette — swap --color-cta below to change CTA color globally */
  --color-ember:         #ff6b1a;   /* forge ember (default) */
  --color-molten-gold:   #f5a623;
  --color-anvil-spark:   #ffb627;
  --color-white-hot:     #ffedd5;
  --color-forge-iron:    #d62828;
  --color-smolder:       #C74930;

  --color-cta:           var(--color-smolder);
  --color-cta-hover:     var(--color-anvil-spark);

  /* Lines */
  --color-border:        rgba(245, 230, 211, 0.08);
  --color-border-strong: rgba(245, 230, 211, 0.18);

  /* Typography */
  --font-display: 'Cormorant Infant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-width:   1440px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
  --header-h:    72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* Subtle film-grain texture across the whole site (forge atmosphere) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-smolder);
  display: inline-block;
  padding-left: 3rem;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2.25rem; height: 1px;
  background: var(--color-smolder);
}

.italic { font-style: italic; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  color: var(--color-cream);
  flex-shrink: 0;
}
.nav-toggle .bar {
  position: absolute;
  left: 8px;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle .bar:nth-child(1) { top: 10px; }
.nav-toggle .bar:nth-child(2) { top: 18px; }
.nav-toggle .bar:nth-child(3) { top: 26px; }
/* bar centers: 11px, 19px (button center), 27px — each 8px apart */
.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 49;
  background: rgba(26, 23, 21, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-overlay.is-open {
  display: flex;
  animation: nav-drop 0.18s ease-out;
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-overlay a {
  display: block;
  padding: 1.1rem var(--gutter);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}
.nav-overlay a:last-child { border-bottom: none; }
.nav-overlay a:hover,
.nav-overlay a[aria-current="page"] { color: var(--color-cream); }

/* ---------- Lightbox ---------- */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lb-overlay.is-open {
  display: flex;
  animation: lb-fade 0.2s ease;
}
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 15, 0.97);
}
.lb-figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}
.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.lb-caption {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lb-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-smolder);
}
.lb-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-cream);
}
.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--color-cream-muted);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.5rem;
}
.lb-close:hover { color: var(--color-cream); }
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: var(--color-cream-muted);
  font-size: 4rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s ease;
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-prev:hover,
.lb-next:hover { color: var(--color-cream); }

/* ---------- Header (shared) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(26,23,21,0.6), transparent);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-solid {
  background: rgba(26, 23, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  display: block;
  height: 52px;
  width: auto;
}
.site-footer .site-logo img { height: 38px; }

.nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--color-cta);
  transition: width 0.3s ease;
}
.nav a:hover { color: var(--color-cta); }
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--primary {
  background: var(--color-cta);
  color: var(--color-cream);
}
.btn--primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-cream);
  border: 1px solid var(--color-border-strong);
}
.btn--ghost:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
}
.btn__arrow { transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   INDEX — Hero (full-bleed image with left gradient shader)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: url('site_images/flower_full.JPG') center / cover no-repeat;
}

/* Left-side gradient shader so cream hero text remains legible */
.hero__shader {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 17, 15, 0.78) 0%,
    rgba(20, 17, 15, 0.65) 30%,
    rgba(20, 17, 15, 0.38) 55%,
    rgba(20, 17, 15, 0.10) 80%,
    transparent 100%
  );
  mix-blend-mode: multiply;
}

.hero__shader--vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, transparent 35%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__inner {
  max-width: 640px;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
}

.hero__title {
  color: var(--color-cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.70), 0 2px 8px rgba(0,0,0,0.55), 0 4px 20px rgba(0,0,0,0.40);
}

.hero__sub {
  color: var(--color-cream-muted);
  font-size: 1.05rem;
  max-width: 38ch;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65), 0 2px 10px rgba(0,0,0,0.45);
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Mobile ribbon — intentional decorative banner behind hero subtext */
.ribbon__cap { display: none; }

@media (max-width: 680px) {
  .hero__ribbon {
    position: relative;
    background: var(--color-bg);
    padding: 0.5rem 0 0.5rem var(--gutter);
    margin-left: calc(-1 * var(--gutter));
    margin-right: 1.5rem;
    margin-bottom: 2.5rem;
    border-top: 1.5px solid var(--color-cream);
    border-bottom: 1.5px solid var(--color-cream);
  }
  /* Inline SVG cap — overflow:visible lets the stroke bleed exactly onto the border centerline
     regardless of the ribbon's computed height, giving a seamless join. */
  .ribbon__cap {
    display: block;
    position: absolute;
    left: 100%;
    top: -0.75px;
    width: 35px;
    height: calc(100% + 1.5px);
    overflow: visible;
    pointer-events: none;
  }
  .hero__ribbon .hero__sub {
    text-shadow: none;
    margin-bottom: 0;
  }
}


/* ============================================================
   INDEX — About section
   ============================================================ */
.about {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: url('https://picsum.photos/id/64/800/1000') center / cover no-repeat;
  /* TODO(claude-code): replace with portrait photograph */
}
.about__image::after {
  content: '';
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--color-smolder);
  z-index: -1;
}

.about__copy h2 {
  margin-bottom: 1.5rem;
  font-style: italic;
  font-weight: 300;
}

.about__copy p {
  color: var(--color-cream-muted);
  margin-bottom: 1.25rem;
  max-width: 52ch;
}

.about__signoff {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-cream);
}

/* ---------- Featured work strip on index ---------- */
.featured {
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
  background: var(--color-bg-elevated);
}
.featured__head {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.featured__head h2 {
  font-style: italic;
  font-weight: 300;
}
.featured__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.featured__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
}
.featured__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured__item:hover img { transform: scale(1.05); }
.featured__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 50%);
  pointer-events: none;
}

/* ============================================================
   GALLERY page
   ============================================================ */
.page-head {
  padding: calc(var(--header-h) + 4rem) var(--gutter) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-head h1 {
  font-style: italic;
  font-weight: 300;
  margin: 1rem 0 1.5rem;
}
.page-head p {
  color: var(--color-cream-muted);
  max-width: 60ch;
}

.gallery-filters {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}
.gallery-filters::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-smolder);
  min-width: 2rem;
}
.gallery-filters button {
  background: transparent;
  border: none;
  color: var(--color-cream-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.25s ease;
}
.gallery-filters button.is-active,
.gallery-filters button:hover { color: var(--color-cta); }
.gallery-filters button.is-active::after {
  content: '';
  position: absolute;
  bottom: -1.5rem; left: 0; right: 0;
  height: 1px;
  background: var(--color-cta);
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 6rem;
  columns: 3;
  column-gap: 1rem;
}
.gallery-grid__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-grid__item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.92) contrast(1.05);
}
.gallery-grid__item:hover img {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.1);
}
.gallery-grid__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--color-cream);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-grid__item:hover .gallery-grid__caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-grid__caption .label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-smolder);
}
.gallery-grid__caption .title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}
.gallery-grid__item--hidden { display: none; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-wrap {
  padding: calc(var(--header-h) + 4rem) var(--gutter) 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-intro h1 {
  font-style: italic;
  font-weight: 300;
  margin: 1rem 0 1.5rem;
}
.contact-intro p {
  color: var(--color-cream-muted);
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.contact-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.contact-meta__row:last-child { text-align: right; }
.contact-meta__row a {
  color: inherit;
  transition: color 0.25s ease;
}
.contact-meta__row a:hover { color: var(--color-cta); }
.contact-meta__row .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-smolder);
  margin-bottom: 0.4rem;
}
.contact-meta__row .value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-cream);
}

/* ---------- Form ---------- */
.contact-form {
  background: var(--color-bg-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border-strong);
}
.contact-form__row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}
.contact-form__row--two { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-strong);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0;
  transition: border-color 0.25s ease;
  color-scheme: dark;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-cta);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--color-bg); color: var(--color-cream); }

/* Honeypot — must never be visible to real users */
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__bottom {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--color-cream-muted);
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--color-smolder);
}
.consent-label a {
  color: var(--color-cream-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}
.consent-label a:hover { color: var(--color-cta); }

.form-status {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-cream-muted);
}
.form-status--success { color: #7cbf8e; }
.form-status--error   { color: #e07070; }

/* ============================================================
   Footer (shared)
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem var(--gutter) 2rem;
  background: var(--color-bg);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer__meta {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.site-footer__social { display: flex; gap: 1.5rem; }
.site-footer__social a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  transition: color 0.25s ease;
}
.site-footer__social a:hover { color: var(--color-cta); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about__grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about__image { max-width: 480px; }
  .featured__grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .contact-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-meta__row:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.7rem; letter-spacing: 0.15em; }
  .featured__grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .contact-form__row--two { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr; }
  .contact-form__bottom { flex-direction: column; align-items: flex-start; }
}
