/*
Theme Name: Jay Reece Photography
Theme URI: https://jayreecephotography.com/
Author: Jay Reece Photography
Description: Custom dark, gallery-style theme for Jay Reece Photography — commercial and non-commercial fashion & beauty, events, and seniors. Built for speed, accessibility, and booking inquiries.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: jrp
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #0e0e10;
  --bg-raised: #17171b;
  --line: #2a2a31;
  --text: #f4f1ec;
  --muted: #b4b0aa;          /* 8.9:1 on --bg */
  --accent: #ff4d94;         /* 6.4:1 on --bg */
  --accent-2: #ffb347;
  --on-accent: #0e0e10;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --font-display: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--raised { background: var(--bg-raised); }
.eyebrow { font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; display: block; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 12px 18px; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 15px 30px; border-radius: 999px; font-weight: 700; text-decoration: none; letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .2s, background .2s, color .2s; }
.btn--primary { background: var(--grad); color: var(--on-accent); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,14,16,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { height: 54px; width: auto; }
@media (max-width: 820px) { .brand img { height: 46px; } }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .nav-cta a { background: var(--grad); color: var(--on-accent); padding: 10px 20px; border-radius: 999px; font-weight: 700; border: 0; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 8px; font: inherit; cursor: pointer; }
@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; padding-bottom: 8px; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a { display: block; padding: 12px 0; font-size: 1.1rem; }
  /* With JS: collapse behind the Menu button. Without JS the full menu simply stays visible. */
  .js .nav-toggle { display: block; }
  .js .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; width: auto; }
  .js .nav.is-open { display: block; }
}

/* ---------- Hero ---------- */
/* Mobile first: photo on top, text below (headline never covers the face). */
.hero { position: relative; display: block; overflow: hidden; }
.hero__media { position: relative; aspect-ratio: 3 / 2; }
.hero__media img, .hero__media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero__media .ph span { display: none; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(14,14,16,0) 45%); }
.hero__body { position: relative; width: 100%; margin-top: -36px; padding-top: 0; padding-bottom: clamp(40px, 8vw, 96px); }
.hero h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #d9d5cf; }
/* Desktop: text on the left, portrait on the right fading into the page. */
@media (min-width: 900px) {
  .hero { display: grid; align-items: center; min-height: min(88vh, 860px); }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; aspect-ratio: auto; }
  .hero__media img { object-position: 50% 28%; }
  .hero__media::after { background: linear-gradient(to right, var(--bg) 0%, rgba(14,14,16,.55) 22%, rgba(14,14,16,0) 55%), linear-gradient(to top, rgba(14,14,16,.7), rgba(14,14,16,0) 35%); }
  .hero__body { margin-top: 0; padding-top: 96px; padding-bottom: 96px; }
  .hero__body > * { max-width: 560px; }
}

/* ---------- Placeholder frames (until real photos are added) ---------- */
.ph { display: grid; place-items: center; text-align: center; padding: 16px; color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; background: linear-gradient(135deg, var(--ph-a, #3a1c4f), var(--ph-b, #ff4d94)); }
.ph small { display: block; opacity: .75; letter-spacing: .05em; text-transform: none; margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.section--raised .card { background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card .tag { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: .8rem; }
.card ul { padding-left: 1.1em; color: var(--muted); margin: .6em 0 0; }
.card--link { text-decoration: none; display: block; padding: 0; overflow: hidden; }
.card--link .card__img { aspect-ratio: 4 / 5; }
.card--link .card__img > * { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card--link:hover .card__img > * { transform: scale(1.04); }
.card--link .card__body { padding: 22px 26px 26px; }

/* ---------- Home: row of three ---------- */
.strip3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 24px); margin-top: 2rem; }
.strip3 a { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; }
.strip3 img, .strip3 .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.strip3 a:hover img, .strip3 a:hover .ph { transform: scale(1.04); }

/* ---------- Portfolio ---------- */
.filters { display: none; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.js .filters { display: flex; }
.filters button { background: transparent; color: var(--text); border: 2px solid var(--line); padding: 10px 20px; border-radius: 999px; font: 600 .9rem var(--font-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.masonry { columns: 3 280px; column-gap: 20px; }
.masonry .tile { break-inside: avoid; margin: 0 0 20px; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; position: relative; color: inherit; font: inherit; }
.masonry .tile img, .masonry .tile .ph { width: 100%; transition: transform .5s; }
.masonry .tile:hover img, .masonry .tile:hover .ph { transform: scale(1.03); }
.masonry a.tile { text-decoration: none; }
.tile[hidden] { display: none; }
.lightbox { border: 0; padding: 0; background: rgba(0,0,0,.94); color: var(--text); width: 100vw; height: 100vh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox__inner { display: grid; place-items: center; height: 100%; padding: 56px 16px 72px; }
.lightbox__inner img, .lightbox__inner .ph { max-height: calc(100vh - 150px); max-width: 100%; width: auto; }
.lightbox__inner .ph { width: min(80vw, 560px); aspect-ratio: 4/5; }
.lightbox__cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); padding: 0 70px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split__img { aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; }
.split__img > * { width: 100%; height: 100%; object-fit: cover; }
.split__img--logo { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line); }
.split__img--logo > img { width: 72%; height: auto; object-fit: contain; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; background: var(--bg-raised); border-radius: 14px; padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--font-display); font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: .4rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form .req { color: var(--accent); }
.form input, .form select, .form textarea { width: 100%; background: var(--bg-raised); color: var(--text); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255,77,148,.3); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; border: 2px solid; }
.notice--ok { border-color: #4ade80; background: rgba(74,222,128,.08); }
.notice--err { border-color: #f87171; background: rgba(248,113,113,.08); }

/* ---------- CTA band & footer ---------- */
.cta-band { text-align: center; background: var(--grad); color: var(--on-accent); }
.cta-band h2 { color: var(--on-accent); }
.cta-band .btn--ghost { border-color: var(--on-accent); color: var(--on-accent); }
.cta-band .btn--ghost:hover { background: var(--on-accent); color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h3 { font: 600 .78rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Blog / default pages ---------- */
.prose { max-width: 70ch; }
.prose img { border-radius: 8px; margin: 1.5em 0; }
.page-head { padding: clamp(56px, 8vw, 100px) 0 clamp(24px, 4vw, 48px); }
