/* ==========================================================================
   Patrick Hall Photography — static rebuild stylesheet
   Hand-written, no framework, no preprocessor.
   Colors/type sizes are eyeball-matched to reference/*-desktop.png screenshots
   per docs/design-spec.md (screenshot wins over the spec's own estimates).
   ========================================================================== */

:root {
  --color-bg: #2B2B2A;
  --color-text: #FFFFFF;
  --color-muted: #8B96A3;
  --color-gold: #C79A3A;
  --color-breadcrumb-bg: #FFFFFF;
  --color-breadcrumb-text: #4A4A4A;
  --color-red: #C0392B;

  --font-display: 'Oswald', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-max: 1020px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout shell ---------- */
.content-column {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1440px) {
  .content-column { padding: 0 220px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--color-bg);
  position: static;
  width: 100%;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.nav-list > li { position: relative; }

.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  white-space: nowrap;
  padding: 8px 2px;
  display: inline-block;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-gold);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--color-gold);
}

/* Portfolio dropdown - desktop: hover or keyboard focus-within */
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-caret {
  font-size: 10px;
  transform: translateY(1px);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg);
  border: 1px solid rgba(255,255,255,0.12);
  min-width: 240px;
  display: none;
  z-index: 50;
}

.nav-item-portfolio:hover .nav-dropdown,
.nav-item-portfolio:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown li { width: 100%; }

.nav-dropdown .nav-link {
  display: block;
  padding: 10px 20px;
  white-space: normal;
  font-size: 14px;
}

/* Hamburger toggle - CSS-only checkbox pattern */
.nav-toggle-checkbox { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  z-index: 60;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Breadcrumb bar ---------- */
.breadcrumb-bar {
  background: var(--color-breadcrumb-bg);
  padding: 26px 24px;
}

.breadcrumb-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (min-width: 1440px) {
  /* The inner block supplies its own 220px gutters at this width, so the bar's
     own 24px side padding must go — otherwise 1440px + 48px overflows a 1440px
     viewport and every breadcrumb page gets a horizontal scrollbar. */
  .breadcrumb-bar { padding-left: 0; padding-right: 0; }
  .breadcrumb-inner { padding: 0 220px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

.breadcrumb-rule {
  width: 3px;
  align-self: stretch;
  min-height: 40px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.breadcrumb-label {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-breadcrumb-text);
  font-size: 30px;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg);
  text-align: center;
  padding: 70px 24px 40px;
  position: relative;
}

.footer-address {
  color: var(--color-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  margin: 0 0 24px;
}

.footer-social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 0 20px;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text);
}

.footer-social a:hover svg { fill: var(--color-gold); }

.back-to-top {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--color-gold);
  display: inline-flex;
}

@media (min-width: 1440px) {
  .back-to-top { right: 220px; }
}

.back-to-top svg { width: 20px; height: 20px; stroke: var(--color-gold); fill: none; }

/* ---------- Home page ---------- */
.hero-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
}

@media (min-width: 1440px) {
  .hero-wrap { padding: 0 220px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

.hero-image { width: 100%; height: auto; }

.title-block {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px 24px 50px;
}

@media (min-width: 1440px) {
  .title-block { padding: 30px 220px 50px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

.title-block h1 {
  font-size: 44px;
  margin: 0;
  line-height: 1;
}

.title-block .name-first { color: var(--color-text); }
.title-block .name-last { color: var(--color-red); }

.title-block .subtitle {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text);
  margin-top: 10px;
}

/* ---------- Page heading (generic H1 under breadcrumb, used sparingly) ---------- */
.page-heading {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 24px 20px;
  color: var(--color-text);
  font-size: 40px;
}

/* ---------- About page ---------- */
.about-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1440px) {
  .about-body { padding: 60px 220px 80px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

@media (min-width: 880px) {
  .about-body { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
}

.about-body h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.about-quote {
  font-style: italic;
  color: #B08D5B;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  margin: 0 0 24px;
}

.about-body p.body-copy {
  color: #C9CBCE;
  font-size: 16px;
  margin: 0 0 20px;
}

.about-signoff {
  margin: 0 0 16px;
}

.about-signature {
  width: 220px;
  height: auto;
}

.about-portrait img {
  width: 100%;
  height: auto;
}

/* ---------- Contact page ---------- */
.contact-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 60px 24px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1440px) {
  .contact-body { padding: 60px 220px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

@media (min-width: 880px) {
  .contact-body { grid-template-columns: 1fr 1fr; gap: 60px; }
}

.contact-body h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.contact-intro {
  color: var(--color-muted);
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid #6B6B6B;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  width: 100%;
  border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9A9A9A;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.field-phone { max-width: 280px; }

/* Honeypot - hidden from sighted users and should be left blank by humans;
   not display:none so it still traps naive bots that skip hidden fields */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-gold {
  align-self: flex-end;
  background: var(--color-gold);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  font-size: 15px;
  border: none;
  padding: 14px 40px;
  cursor: pointer;
}

.btn-gold:hover { background: #B78A2E; text-decoration: none; }

.map-embed {
  width: 100%;
}

.map-embed iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

/* ---------- Showcases page ---------- */
.showcases-heading {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 60px 24px 10px;
  font-size: 40px;
}

@media (min-width: 1440px) {
  .showcases-heading { padding: 60px 220px 10px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

.showcases-row {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px 24px 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 1440px) {
  .showcases-row { padding: 30px 220px 70px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

@media (max-width: 700px) {
  .showcases-row { grid-template-columns: 1fr; }
}

.showcases-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ---------- 404 page ---------- */
.notfound-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.notfound-body h1 { font-size: 40px; }

.notfound-body a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* ==========================================================================
   Gallery classes — reserved for a later ticket, included now so that
   ticket can drop markup straight in.
   ========================================================================== */

.gallery-masonry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1440px) {
  .gallery-masonry { padding: 0 220px; max-width: 1440px; width: 100%; margin: 0 auto; }
}

.gallery-masonry .gallery-row {
  display: flex;
  gap: 6px;
}

.gallery-masonry .gallery-row img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex: 1 1 auto;
}

.gallery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.gallery-grid-square {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-grid-square img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-single {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-single img {
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .gallery-grid-square { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .gallery-masonry .gallery-row { flex-direction: column; }
  .gallery-masonry .gallery-row img { width: 100%; height: auto; }
  .gallery-grid-3 { grid-template-columns: 1fr; }
  .gallery-grid-square { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile-first conservative defaults — below ~880px.
   No true 390px reference screenshots exist (see docs/design-spec.md); these
   are safe, simple defaults, not evidenced exotic phone behavior.
   ========================================================================== */

/* ==========================================================================
   Responsive 16:9 video embed wrapper — used for YouTube iframes on the
   Stun Gun and American Christmas project pages. Click-to-play only, no
   autoplay parameters on the embedded URLs.
   ========================================================================== */

.video-embed {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 40px;
  aspect-ratio: 16 / 9;
  background: #000;
}

@media (min-width: 1440px) {
  .video-embed { max-width: 1000px; }
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-caption {
  max-width: var(--content-max);
  margin: -20px auto 40px;
  padding: 0 24px;
  color: var(--color-muted);
  font-style: italic;
  font-size: 14px;
}

@media (max-width: 880px) {
  .nav-bar { justify-content: space-between; padding: 16px 20px; }

  .nav-toggle-label { display: flex; }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-bg);
    gap: 0;
    padding: 10px 0;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .nav-toggle-checkbox:checked ~ .nav-list { display: flex; }

  .nav-list > li { width: 100%; }

  .nav-link { padding: 14px 20px; width: 100%; }

  .nav-dropdown-toggle { justify-content: space-between; width: 100%; }

  /* On mobile the Portfolio submenu is always expanded in-place, not a
     hover flyout (there is no hover on touch) */
  .nav-dropdown {
    display: none;
    position: static;
    transform: none;
    border: none;
    background: rgba(255,255,255,0.04);
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .nav-item-portfolio:focus-within .nav-dropdown,
  .nav-toggle-checkbox:checked ~ .nav-list .nav-item-portfolio .nav-dropdown {
    display: block;
  }

  .nav-dropdown .nav-link { padding: 12px 36px; font-size: 13px; }

  .breadcrumb-label { font-size: 24px; }

  .about-signature { width: 160px; }
}

/* --- Side-by-side video pair (Stun Gun page: "Watch The Stunners" /
   "Behind The Scenes"). Matches the live Wix layout, which places these two
   videos in one row with the heading beneath each. --- */
.video-pair {
  display: flex;
  gap: 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.video-pair-item {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.video-pair .video-embed {
  margin-bottom: 0;
}

.video-pair figcaption {
  text-align: center;
  padding-top: 18px;
}

.video-pair figcaption h2 {
  font-size: 28px;
  margin: 0;
}

@media (max-width: 880px) {
  .video-pair { flex-direction: column; gap: 36px; }
}
