/*
Theme Name: Noir Reel
Theme URI: https://example.com/
Author: Robo Sapiens
Description: Dark, cinematic portfolio theme for media producers: full-width showreel, filterable work grid, services, client logos, stills and a booking form, all managed from the WordPress dashboard. Text, showreel, colors and contact details live in Appearance → Customize → Noir Reel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noir-reel
*/

:root {
	--nr-bg: #0B0B0C;
	--nr-surface: #1C1C1F;
	--nr-line: #2A2A2E;
	--nr-line-2: #3A3A3F;
	--nr-text: #F2F0EB;
	--nr-muted: #A3A3A3;
	--nr-accent: #E8B04B;
	--nr-max: 1360px;
	--nr-display: "Bebas Neue", Impact, sans-serif;
	--nr-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--nr-bg); color: var(--nr-text); font-family: var(--nr-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--nr-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--nr-accent); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--nr-text); color: var(--nr-bg); padding: 12px 16px; }

.nr-wrap { max-width: var(--nr-max); margin: 0 auto; padding: 0 40px; }
.nr-section { padding-top: 120px; }
.nr-h2 { font-family: var(--nr-display); font-size: clamp(48px, 6vw, 72px); line-height: 1; letter-spacing: 0.5px; }
.nr-eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--nr-accent); }
.nr-label { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--nr-muted); }

/* Header */
.nr-header { max-width: var(--nr-max); margin: 0 auto; padding: 28px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.nr-logo { font-family: var(--nr-display); font-size: 30px; letter-spacing: 2px; line-height: 1; }
.nr-logo img, .custom-logo { max-height: 44px; width: auto; }
.nr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.nr-nav a { font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 8px 0; display: inline-block; }
.nr-nav li:last-child a { color: var(--nr-accent); }
.nr-nav .current-menu-item > a { color: var(--nr-accent); }

/* Hero */
.nr-hero-frame { position: relative; overflow: hidden; border-radius: 6px; background: var(--nr-surface); min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; }
.nr-hero-frame video.nr-bgvideo, .nr-hero-frame .nr-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nr-play-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; }
.nr-play { pointer-events: auto; width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(242,240,235,0.5); background: rgba(11,11,12,0.4); color: var(--nr-text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s, background 0.3s; backdrop-filter: blur(6px); }
.nr-play:hover { transform: scale(1.06); background: var(--nr-accent); color: var(--nr-bg); }
.nr-hero-copy { position: relative; z-index: 1; padding: 40px; background: linear-gradient(0deg, rgba(11,11,12,0.92), rgba(11,11,12,0)); }
.nr-hero-copy .nr-eyebrow { margin-bottom: 12px; }
.nr-hero-copy h1 { font-family: var(--nr-display); font-size: clamp(56px, 9vw, 132px); line-height: 0.9; letter-spacing: 1px; }
.nr-hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--nr-line); font-size: 14px; color: var(--nr-muted); }

/* Work */
.nr-work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.nr-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nr-filter { min-height: 44px; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-family: inherit; cursor: pointer; border: 1px solid var(--nr-line-2); background: transparent; color: var(--nr-text); display: inline-flex; align-items: center; }
.nr-filter:hover { border-color: var(--nr-accent); color: var(--nr-text); }
.nr-filter.is-active { background: var(--nr-accent); border-color: var(--nr-accent); color: var(--nr-bg); }
.nr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 40px 28px; }
.nr-card { display: flex; flex-direction: column; gap: 14px; }
.nr-card[hidden] { display: none; }
.nr-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--nr-surface); }
.nr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s; }
.nr-card:hover .nr-thumb img { transform: scale(1.04); opacity: 0.85; }
.nr-thumb .nr-mini-play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--nr-accent); color: var(--nr-bg); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: 0.3s; }
.nr-card:hover .nr-mini-play { opacity: 1; transform: none; }
.nr-card-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.nr-card-title { font-size: 20px; font-weight: 600; color: var(--nr-text); }
.nr-card-type { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--nr-accent); white-space: nowrap; }
.nr-card-meta { font-size: 14px; color: var(--nr-muted); }
.nr-card:hover .nr-card-title { color: var(--nr-accent); }
.nr-more { margin-top: 48px; display: flex; justify-content: center; }
.nr-btn-outline { border: 1px solid var(--nr-line-2); border-radius: 999px; padding: 14px 28px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.nr-btn-outline:hover { border-color: var(--nr-accent); }

/* Services */
.nr-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--nr-line); margin-top: 40px; }
.nr-service { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--nr-line); }
.nr-service-num { font-size: 13px; color: var(--nr-accent); }
.nr-service h3 { margin: 12px 0 10px; font-size: 22px; font-weight: 600; }
.nr-service p { font-size: 15px; line-height: 1.6; color: var(--nr-muted); }

/* Clients */
.nr-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--nr-line); border: 1px solid var(--nr-line); margin-top: 32px; }
.nr-logo-cell { background: var(--nr-bg); height: 120px; display: flex; align-items: center; justify-content: center; padding: 20px; font-size: 13px; color: var(--nr-muted); }
.nr-logo-cell img { max-height: 48px; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.7; transition: 0.3s; }
.nr-logo-cell:hover img { filter: none; opacity: 1; }

/* Stills */
.nr-stills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 254px; gap: 12px; margin-top: 40px; }
.nr-still { border-radius: 4px; overflow: hidden; background: var(--nr-surface); }
.nr-still:first-child { grid-row: span 2; }
.nr-still img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.nr-still:hover img { transform: scale(1.03); }

/* Contact */
.nr-contact { display: flex; flex-wrap: wrap; gap: 64px; border-top: 1px solid var(--nr-line); padding-top: 64px; }
.nr-contact-copy { flex: 1 1 380px; min-width: 0; }
.nr-contact-copy h2 { font-family: var(--nr-display); font-size: clamp(64px, 8vw, 120px); line-height: 0.9; }
.nr-contact-copy p { margin-top: 28px; font-size: 16px; line-height: 1.8; color: var(--nr-muted); }
.nr-contact-copy p a { color: var(--nr-text); }
.nr-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nr-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--nr-muted); }
.nr-form input, .nr-form select, .nr-form textarea { background: transparent; border: none; border-bottom: 1px solid var(--nr-line-2); border-radius: 0; color: var(--nr-text); font-size: 17px; padding: 10px 0; font-family: inherit; }
.nr-form select { background: var(--nr-bg); }
.nr-form input:focus, .nr-form select:focus, .nr-form textarea:focus { outline: none; border-bottom-color: var(--nr-accent); }
.nr-form textarea { resize: vertical; min-height: 96px; }
.nr-btn { align-self: flex-start; margin-top: 8px; background: var(--nr-accent); color: var(--nr-bg); border: none; border-radius: 999px; padding: 16px 32px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.nr-btn:hover { filter: brightness(1.08); color: var(--nr-bg); }
.nr-notice { padding: 14px 16px; border: 1px solid var(--nr-accent); border-radius: 6px; font-size: 14px; }
.nr-hp { position: absolute; left: -9999px; }

/* Footer */
.nr-footer { max-width: var(--nr-max); margin: 96px auto 0; padding: 28px 40px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--nr-muted); border-top: 1px solid var(--nr-line); }
.nr-footer a { color: var(--nr-muted); }
.nr-footer a:hover { color: var(--nr-accent); }

/* Showreel dialog */
.nr-dialog { width: min(1200px, 92vw); padding: 0; border: none; background: #000; overflow: visible; }
.nr-dialog::backdrop { background: rgba(0,0,0,0.9); }
.nr-dialog-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--nr-line-2); background: transparent; color: var(--nr-text); font-size: 24px; cursor: pointer; }
.nr-video { aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.nr-video iframe, .nr-video video, .nr-video img { width: 100%; height: 100%; border: 0; object-fit: cover; }

/* Single project */
.nr-single-head { padding-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.nr-single-head h1 { font-family: var(--nr-display); font-size: clamp(56px, 8vw, 120px); line-height: 0.92; }
.nr-single-head .nr-lead { max-width: 760px; font-size: 18px; color: var(--nr-muted); }
.nr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; border-top: 1px solid var(--nr-line); border-bottom: 1px solid var(--nr-line); padding: 24px 0; margin: 12px 0 32px; }
.nr-facts strong { display: block; font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--nr-accent); margin-bottom: 4px; }
.nr-content { max-width: 860px; margin: 48px auto 0; font-size: 17px; line-height: 1.8; color: #D6D4CF; }
.nr-content > * + * { margin-top: 1.2em; }
.nr-content h2, .nr-content h3 { font-family: var(--nr-display); color: var(--nr-text); font-size: 40px; line-height: 1; }
.nr-content img { border-radius: 4px; height: auto; }
.nr-content .alignwide { max-width: 1280px; margin-left: 50%; transform: translateX(-50%); width: 92vw; }
.nr-content .wp-block-gallery { gap: 12px; }
.nr-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--nr-line); font-size: 15px; }

/* Pagination */
.nr-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.nr-pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--nr-line-2); border-radius: 999px; }
.nr-pagination .current { background: var(--nr-accent); border-color: var(--nr-accent); color: var(--nr-bg); }

/* Responsive */
@media (max-width: 760px) {
	.nr-wrap, .nr-header, .nr-footer { padding-left: 20px; padding-right: 20px; }
	.nr-nav ul { gap: 18px; }
	.nr-hero-frame { min-height: 520px; }
	.nr-hero-copy { padding: 24px; }
	.nr-section { padding-top: 80px; }
	.nr-still:first-child { grid-row: auto; }
	.nr-play { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
