/* Smithgall Photography — dark, noir styling */

:root {
  --bg: #0b0b0b;
  --bg-raised: #141414;
  --line: #2a2a2a;
  --text: #e9e6e1;
  --muted: #8f8b85;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }

em { font-style: italic; }

p + p { margin-top: 1.1em; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: linear-gradient(to bottom, rgba(11,11,11,0.92), rgba(11,11,11,0));
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 34px; }

@media (max-width: 1050px) { .site-nav { gap: 20px; } .wordmark { letter-spacing: 0.22em; } }

.site-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.site-nav a:hover, .site-nav a.active { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header { padding: 18px 16px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; }
  .menu-toggle { position: relative; z-index: 41; }
  .wrap, .narrow { padding: 0 16px; }
  section { padding: 80px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 12vh;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 30% 40%, transparent 20%, rgba(0,0,0,0.75) 85%),
              linear-gradient(to top, var(--bg) 0%, transparent 45%);
}

.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { max-width: 14ch; }
.hero p.lead { max-width: 34rem; margin-top: 1.4rem; color: #c9c5bf; }

.page-hero { padding: 180px 0 60px; }
.page-hero p.lead { max-width: 38rem; margin-top: 1.2rem; color: #c9c5bf; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 15px 34px;
  border: 1px solid var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn:hover { background: var(--text); color: var(--bg); }
.btn + .btn { margin-left: 12px; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }

/* ---------- Homepage pieces ---------- */
.triptych {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 14px;
  align-items: end;
}


@media (max-width: 760px) {
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych img:nth-child(2) { grid-column: span 2; order: -1; }
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  font-style: italic;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

blockquote {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.45;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule { border: 0; border-top: 1px solid var(--line); }

.center { text-align: center; }

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 40px;
}

.filters button {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.filters button.active, .filters button:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.gallery { columns: 3 300px; column-gap: 14px; }

.gallery figure {
  break-inside: avoid;
  margin-bottom: 14px;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery figure img { transition: transform 0.6s ease, opacity 0.4s; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figure.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 50px 16px;
}

.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; }

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 10px 18px;
  opacity: 0.7;
}

.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Experience / FAQ ---------- */
.steps { display: grid; gap: 50px; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--muted);
  line-height: 1;
}

.step p { color: #c9c5bf; }

@media (max-width: 760px) {
  .step { grid-template-columns: 44px 1fr; gap: 12px; }
  .step::before { font-size: 1.8rem; }
}

details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

details:last-of-type { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin-top: 14px; color: #c9c5bf; }

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 36px 30px;
}

.price-card .price {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 8px 0 14px;
}

.price-card ul { list-style: none; color: #c9c5bf; font-size: 0.95rem; }
.price-card li { padding: 6px 0; border-top: 1px solid var(--line); }

/* ---------- Contact form ---------- */
form { display: grid; gap: 26px; }

label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 10px 0;
  border-radius: 0;
}

select option { background: var(--bg); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}

textarea { min-height: 150px; resize: vertical; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #c9c5bf;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox input { width: auto; margin-top: 6px; accent-color: #e9e6e1; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

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

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.age-gate .inner { max-width: 460px; }
.age-gate .wordmark { display: block; margin-bottom: 40px; }
.age-gate p { color: #c9c5bf; }
.age-gate .btn { margin-top: 2rem; }

@media (max-width: 420px) {
  .btn + .btn { margin-left: 0; }
  .age-gate .btn, .hero .btn { display: block; }
}

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Simple dash lists (Beautifully Imperfect page) */
.plain-list { list-style: none; }
.plain-list li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; }
.plain-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.plain-list.muted li { color: var(--muted); }
