/*
Theme Name: BrownGuyMadeIT
Theme URI: https://brownguymadeit.com/
Author: Aaron (BrownGuyMadeIT)
Description: One-page portfolio theme for a Toronto music video director and concert photographer. Manage photo albums, videos, and merch straight from the WordPress admin.
Version: 2.0
License: Private / Custom
Text Domain: brownguymadeit
*/

/* ============ Variables ============ */
:root {
  --black: #0b0b0c;
  --black-soft: #141416;
  --white: #ffffff;
  --red: #ff2d4d;
  --dim: #9a9aa2;
  --border: rgba(255,255,255,.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

h1, h2, h3 {
  font-family: 'Anton', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 .4em;
}
h2 { font-size: clamp(28px, 4vw, 44px); }
p { color: #d8d8dc; margin: 0 0 1em; }
a { color: var(--red); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

section { padding: 90px 0; }
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--dim); }

/* ============ Nav ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(11,11,12,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav .brand {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}
nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav .links a {
  color: #eaeaea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}
nav .links a:hover { color: var(--red); }
nav .cart-link {
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

@media (max-width: 780px) {
  nav .links {
    position: fixed;
    top: 62px;
    right: -100%;
    height: calc(100vh - 62px);
    width: 260px;
    background: var(--black-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 24px;
    transition: right .25s ease;
    border-left: 1px solid var(--border);
  }
  nav .links.open { right: 0; }
  .nav-toggle { display: flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55) saturate(1.1);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.2) 0%, rgba(11,11,12,.5) 60%, var(--black) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
}
.kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(44px, 9vw, 104px);
  line-height: .95;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--red); }
.hero-content p {
  max-width: 560px;
  font-size: 18px;
  color: #e4e4e8;
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--dim);
  z-index: 2;
}

/* ============ About ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img { border-radius: 14px; }
.about-tag {
  position: absolute;
  bottom: -14px;
  left: -14px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 6px;
  text-transform: uppercase;
}
.about-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}
.about-clients span {
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
}
@media (max-width: 780px) {
  .about { grid-template-columns: 1fr; }
}

/* ============ Photo albums ============ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.album-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--black-soft);
  border: 1px solid var(--border);
}
.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.album-card:hover img { transform: scale(1.06); }
.album-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
}
.corner-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.album-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
}
.album-label h3 { font-size: 20px; margin-bottom: 2px; }
.album-count { font-size: 13px; color: var(--dim); }
.album-card.empty { opacity: .6; }

.album-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5,5,6,.96);
  display: none;
  overflow-y: auto;
  padding: 80px 24px 60px;
}
.album-modal.open { display: block; }
.album-modal-inner { max-width: 1100px; margin: 0 auto; }
.album-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 501;
}
.album-modal-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.photo-grid {
  column-count: 3;
  column-gap: 14px;
}
.photo-grid figure {
  margin: 0 0 14px;
  break-inside: avoid;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}
.photo-grid img { width: 100%; }
.album-modal-empty { color: var(--dim); padding: 40px 0; }
@media (max-width: 780px) {
  .photo-grid { column-count: 2; }
}
@media (max-width: 480px) {
  .photo-grid { column-count: 1; }
}

/* ============ Videos ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.video-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--black-soft);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
}
.play-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.video-title {
  margin-top: 12px;
  font-weight: 600;
  font-size: 15px;
}
.video-title span {
  display: block;
  color: var(--dim);
  font-weight: 400;
  font-size: 13px;
  margin-top: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 6px; }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 601;
}
.video-lightbox-frame {
  width: min(90vw, 1000px);
  aspect-ratio: 16/9;
}
.video-lightbox-frame iframe { width: 100%; height: 100%; border: none; border-radius: 8px; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-detail { margin-bottom: 18px; }
.contact-detail .label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.contact-detail a { color: var(--white); text-decoration: none; font-size: 17px; }
.social-row { display: flex; gap: 18px; margin-top: 28px; }
.social-row a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
}
.social-row a:hover { color: var(--white); border-color: var(--red); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
}
#bookingSubmit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: .3px;
}
#bookingSubmit:hover { opacity: .88; }
#bookingSubmit:disabled { opacity: .6; cursor: default; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--dim); }
.form-success {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: #4ade80;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}
footer a { color: var(--dim); }

/* ============ Responsive section padding ============ */
@media (max-width: 600px) {
  section { padding: 60px 0; }
}
