/* Daniel Chatfield Photography — Option A: Warm & Editorial */

:root {
  --bg: #1C1815;
  --bg-panel: #201A16;
  --text: #F4EEE4;
  --text-muted: #C7BCAE;
  --text-faint: #8A7D70;
  --accent: #C97B4A;
  --border: #332B25;

  --font-head: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 18px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 20px;
}

em, .italic { font-style: italic; }

p { margin: 0 0 16px; color: var(--text-muted); }

.text-faint { color: var(--text-faint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(244, 238, 228, 0.35);
}
.btn-outline:hover {
  border-color: var(--text);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(17, 14, 12, 0.75), rgba(17, 14, 12, 0));
  transition: background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(20, 17, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--text);
}
.wordmark span {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}
.wordmark-mark {
  height: 42px;
  width: auto;
  opacity: 0.85;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }

.site-nav a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 9px 18px;
  border-radius: 2px;
}
.site-nav a.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; }

/* Hero (Home) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f0d0b;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide--cafe { background-image: url('../images/portfolio-cafe-venue.jpg'); }
.hero-slide--portrait { background-image: url('../images/portfolio-profile-portrait.jpg'); }
.hero-slide--street { background-image: url('../images/hero-street-style.jpg'); }
.hero-slide--desk { background-image: url('../images/hero-desk.jpg'); }
.hero-slide--landscape { background-image: url('../images/hero-landscape.jpg'); }
.hero-slide--barbershop { background-image: url('../images/portfolio-barbershop-quartet.jpg'); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 13, 11, 0.92) 0%, rgba(15, 13, 11, 0.45) 45%, rgba(15, 13, 11, 0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 96px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-style: italic;
  font-weight: 500;
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-subhead {
  max-width: 480px;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page hero (Events / Book) */
.page-hero {
  padding: 200px 0 90px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  max-width: 720px;
}
.page-hero .subhead {
  max-width: 560px;
  font-size: 17px;
  margin-top: 8px;
}

/* Sections */
section { padding: 110px 0; }

.section-panel { background: var(--bg-panel); }

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 6px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  grid-column: span 1;
  grid-row: span 1;
}
.portfolio-item.is-large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.85) 0%, rgba(12, 10, 9, 0) 45%);
}

.portfolio-caption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
}

/* CTA banner */
.cta-banner {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-style: italic;
  margin-bottom: 34px;
}

/* Events page list */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.event-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-copy .label { margin-bottom: 12px; }
.event-copy h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-style: italic;
  margin-bottom: 14px;
}
.event-meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.event-copy p { font-size: 15.5px; max-width: 460px; }

/* Book / Contact page */
.book-main {
  text-align: center;
  padding-top: 100px;
}
.book-subhead {
  margin: 0 auto 48px;
}

.book-footer {
  margin-top: 110px;
}

.mailto-link {
  display: inline-block;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(26px, 4.4vw, 46px);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  word-break: break-word;
  transition: opacity 0.2s ease;
}
.mailto-link:hover { opacity: 0.8; }

.next-steps {
  max-width: 640px;
  margin: 80px auto 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 48px;
  text-align: left;
}
.next-steps h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 34px;
}
.next-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.next-steps li {
  counter-increment: steps;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.next-steps li::before {
  content: counter(steps);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.next-steps li p {
  margin: 0;
  color: var(--text-muted);
  padding-top: 5px;
  font-size: 15.5px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-wordmark {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-meta {
  font-size: 12px;
  color: var(--text-faint);
  width: 100%;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .event-row { grid-template-columns: 1fr; gap: 26px; }
  .event-row:nth-child(even) .event-photo { order: 0; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .portfolio-item.is-large { grid-column: span 2; grid-row: span 1; }
  section { padding: 80px 0; }
  .page-hero { padding: 150px 0 70px; }
}

@media (max-width: 720px) {
  .site-nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-panel);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
  }
  .site-nav.is-open ul { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 101; }
  .site-nav a { font-size: 16px; }
  .hero-content { padding-bottom: 64px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .next-steps { padding: 32px 24px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .portfolio-grid { grid-template-columns: repeat(1, 1fr); grid-auto-rows: 260px; }
  .portfolio-item.is-large { grid-column: span 1; grid-row: span 1; }
}
