/* Sports Photography: holding page styles */

@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --gold: #DDCBA0;          /* UI accent (buttons, links, focus). Signature keeps its own #DFC99B. */
  --line: rgba(255, 255, 255, 0.14);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, nav, .btn, .wordmark { font-weight: 500; }

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--black); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.header-inner { max-width: none; }
.wordmark { text-decoration: none; font-size: 1.125rem; letter-spacing: 0.01em; white-space: nowrap; }
.nav-list {
  display: flex; gap: clamp(16px, 3vw, 32px);
  list-style: none; margin: 0; padding: 0;
}
.nav-list a { text-decoration: none; font-size: 1rem; }
.nav-list a:hover { color: var(--gold); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 2000 / 1429;
  object-fit: cover;
}
.hero-text {
  order: 2;
  padding: 40px var(--gutter) 56px;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
/* Sizing per signature handover README; minimum display width 260px */
.signature {
  width: 85%;
  max-width: 532px;
  min-width: 260px;
  margin: 0 auto 26px;
}
.tagline {
  margin: 0 auto;
  max-width: 34em;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}
.tagline-secondary { color: var(--muted); margin-top: 6px; }

.buttons {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; min-width: 190px; padding: 0 28px;
  border-radius: var(--radius);
  font-size: 1.0625rem; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--black); border: 2px solid var(--gold); }
.btn-gold:hover { background: #e8dbb9; border-color: #e8dbb9; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    min-height: calc(100vh - 65px);
  }
  .hero-text { order: 0; padding: 64px 48px; }
  .hero-image { height: 100%; }
  .hero-image img { height: 100%; aspect-ratio: auto; }
}

@media (max-width: 480px) {
  .signature { width: 100%; }
  .wordmark { font-size: 1rem; }
  .nav-list { gap: 14px; }
  .nav-list a { font-size: 0.9375rem; }
  .btn { width: 100%; }
}

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 32px;
}
.section-narrow .wrap { max-width: 760px; }
.placeholder { color: var(--muted); font-style: italic; }

/* Photo grid: masonry columns keep each photo's original aspect ratio */
.photo-grid { columns: 1; column-gap: 16px; }
.photo-grid figure { break-inside: avoid; margin-bottom: 16px; }
.photo-grid img { width: 100%; border-radius: 4px; }
@media (min-width: 600px) { .photo-grid { columns: 2; } }
@media (min-width: 960px) { .photo-grid { columns: 3; } }

/* Contact */
.contact-email {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-list {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
}
.social-list a { text-decoration: none; color: var(--muted); }
.social-list a:hover { color: var(--gold); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* Full-screen viewer: native HTML popover (no JavaScript, no URL changes, Esc closes) */
.lb-open {
  display: block; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; background: none;
  cursor: zoom-in;
}
.lb-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; color: var(--white);
  background: rgba(0, 0, 0, 0.96);
  padding: clamp(12px, 3vw, 40px);
  overflow: hidden;
}
.lightbox:popover-open { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.96); }
.lb-backdrop {
  position: absolute; inset: 0;
  border: 0; padding: 0; background: transparent;
  cursor: zoom-out;
}
.lightbox img {
  position: relative;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  pointer-events: none;
}
.lb-close {
  position: absolute; top: 12px; right: 16px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 2.25rem; line-height: 1;
  color: var(--white);
}
.lb-close:hover { color: var(--gold); }
.lb-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
