/*
Theme Name: Moviola Post
Theme URI: https://www.moviolapost.com/
Author: Filmtools, Inc.
Description: Mobile-first theme for Moviola Post — editorial rentals, suites and quote requests.
Version: 0.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: moviola-post
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #0E0F11;
	--surface: #17181B;
	--surface-2: #131417;
	--line: #26282C;
	--line-strong: #4A4D52;
	--text: #EDEBE6;
	--text-2: #C9C6BF;
	--muted: #A6A39C;
	--accent: #F2B33D;
	--on-accent: #111214;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: Inter, system-ui, -apple-system, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
	--gutter: 20px;
	--header-h: 64px;
}

/* ---------- Base (mobile first) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	padding-bottom: 84px; /* room for the mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { left: 8px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1; text-transform: uppercase; margin-bottom: 20px; }
.lede { font-size: 17px; color: var(--text-2); margin-top: 16px; max-width: 560px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 20px; border-radius: 4px;
	font-family: var(--body); font-size: 16px; font-weight: 600; text-decoration: none;
	cursor: pointer; border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 17px; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* ---------- Header & nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-right: 8px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-size: 24px; letter-spacing: 0.04em; }
.brand__a { font-weight: 700; color: var(--text); }
.brand__b { font-weight: 500; color: var(--accent); }

.menu-toggle { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--text); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
	display: none;
	position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
	background: var(--bg); padding: 12px var(--gutter) 100px;
	flex-direction: column; overflow-y: auto;
}
.site-nav.is-open { display: flex; }
.site-nav a { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 32px; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line); }
.site-nav .site-nav__phone { font-family: var(--mono); font-size: 20px; text-transform: none; color: var(--text-2); }
.site-nav .site-nav__cta { margin-top: 20px; border-bottom: 0; font-family: var(--body); font-size: 17px; text-transform: none; padding: 14px 20px; }
.site-nav__address { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 12vw, 84px); line-height: 0.95; text-transform: uppercase; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }

.ph { border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--surface); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; aspect-ratio: 4 / 3; }
.ph span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ph--suite { aspect-ratio: 3 / 2; }
.ph--logo { aspect-ratio: auto; height: 72px; padding: 8px; }
.ph--logo span { font-size: 10px; }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.strip__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding-top: 20px; padding-bottom: 20px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }

/* ---------- Sections ---------- */
.section { padding-top: 48px; padding-bottom: 8px; }
.section__intro { margin-bottom: 20px; max-width: 640px; }

.cards { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.card__num { display: none; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 15px; }

.split-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.split-head .h2 { margin-bottom: 0; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spec { background: var(--surface); border-radius: 6px; padding: 14px; }
.spec h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }

.suites { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.suite { flex: 0 0 80%; scroll-snap-align: start; }
.suite h3 { font-size: 16px; font-weight: 600; margin: 10px 0 2px; }
.suite p { font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps__num { font-family: var(--mono); font-size: 20px; color: var(--accent); margin-bottom: 6px; }
.steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.steps p:last-child { color: var(--text-2); font-size: 15px; }

.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- Quote ---------- */
#quote { padding-bottom: 48px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; }
.quote__call { margin-top: 16px; color: var(--muted); }
.quote__call a { font-family: var(--mono); color: var(--text); }
.quote__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; color: var(--text-2); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
	background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text);
	padding: 12px; font-size: 16px; font-family: var(--body); min-height: 48px; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input[type="date"] { color-scheme: dark; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 22px; font-size: 15px; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.quote__form button[type="submit"] { width: 100%; }
@media (min-width: 640px) { .quote__form button[type="submit"] { width: auto; } }
.more summary { cursor: pointer; color: var(--accent); min-height: 44px; display: flex; align-items: center; font-size: 15px; }
.more__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }

.notice { grid-column: 1 / -1; padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.notice--ok { background: #1F3326; color: #CFEFD8; }
.notice--warn { background: #3A2A12; color: #F6DDB0; }
.notice--warn { border: 1px solid var(--accent); color: #FFE7B8; font-weight: 500; }

/* Quote sent confirmation */
.quote__done {
	flex: 1 1 66%; min-width: 0;
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	padding: 28px 24px; border-radius: 8px;
	background: #12301F; border: 2px solid #4ADE80;
	box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12);
}
.quote__done:focus { outline: none; }
.quote__done-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: #4ADE80; color: #0B1F13;
}
.quote__done-title {
	font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1;
	text-transform: uppercase; color: #FFFFFF; letter-spacing: 0.01em;
}
.quote__done-text { font-size: 17px; line-height: 1.5; color: #E4F7EA; }
.quote__done-text a { color: #FFFFFF; font-family: var(--mono); }
.quote__done .btn { margin-top: 6px; border-color: rgba(228, 247, 234, 0.5); color: #FFFFFF; }
.quote__done .btn:hover { border-color: #FFFFFF; }

/* ---------- Footer & action bar ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 20px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; color: var(--text); margin-bottom: 4px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }

.action-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: var(--bg); border-top: 1px solid var(--line);
}

.prose { padding-top: 48px; padding-bottom: 64px; max-width: 760px; }
.prose p { margin-bottom: 1em; color: var(--text-2); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
	:root { --gutter: 24px; }
	.btn-row { flex-direction: row; flex-wrap: wrap; }
	.strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; }
	.specs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.suite { flex-basis: 44%; }
	.logos { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
	.ph--logo { height: 96px; }
	.quote__form, .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.field--full, .quote__form > .field--full, .more__grid .field--full { grid-column: 1 / -1; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
	:root { --header-h: 76px; }
	body { font-size: 17px; padding-bottom: 0; }
	.action-bar { display: none; }

	.site-header__inner { padding-right: var(--gutter); }
	.brand { font-size: 30px; gap: 10px; }
	.menu-toggle { display: none; }
	.site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; overflow: visible; }
	.site-nav a { font-family: var(--body); font-weight: 400; font-size: 15px; text-transform: none; padding: 0; border: 0; }
	.site-nav .site-nav__phone { font-size: 14px; color: var(--muted); }
	.site-nav .site-nav__cta { margin: 0; font-size: 15px; font-weight: 600; padding: 12px 20px; }
	.site-nav__address { display: none; }

	.hero { flex-direction: row; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 72px; }
	.hero__copy { flex: 1 1 52%; min-width: 0; }
	.hero__media { flex: 1 1 48%; min-width: 0; }
	.lede { font-size: 19px; margin-top: 28px; }
	.btn-row { margin-top: 36px; }

	.section { padding-top: 112px; padding-bottom: 16px; }
	.h2 { font-size: 52px; margin-bottom: 48px; max-width: 800px; }
	.eyebrow { font-size: 13px; margin-bottom: 12px; }

	.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border: 0; }
	.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
	.card__num { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
	.card h3 { font-family: var(--display); font-weight: 600; font-size: 30px; text-transform: uppercase; margin-bottom: 12px; }
	.card p { color: var(--text-2); font-size: 17px; }

	.split-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
	.split-head > p { max-width: 420px; }
	.specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
	.spec { background: none; border-radius: 0; padding: 20px 0 0; border-top: 2px solid var(--accent); }
	.spec h3 { font-size: 19px; }
	.mono { font-size: 14px; }

	.section__intro { margin-bottom: 48px; margin-top: -32px; }
	.suites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; }
	.suite h3 { font-size: 19px; margin-top: 16px; }
	.suite p { font-size: 15px; }

	.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
	.steps__num { font-size: 22px; }

	.logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

	#quote { padding-top: 112px; padding-bottom: 112px; }
	.quote { flex-direction: row; gap: 56px; padding: 48px 40px; }
	.quote__intro { flex: 1 1 34%; min-width: 0; }
	.quote__intro .h2 { margin-bottom: 20px; }
	.quote__form { flex: 1 1 66%; min-width: 0; }

	.site-footer__inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; padding-top: 40px; padding-bottom: 40px; font-size: 15px; }
}
