/*
Theme Name: Arcway Productions
Theme URI: https://example.com/arcway
Author: Arcway Productions
Description: A distinctive theme for a video production company, built to be edited in Elementor. Pair it with the "Arcway Productions - Elementor Widgets & Content Types" plugin. The homepage is an ordinary Page: use the "Full Width (Header + Footer)" page template for Elementor-built pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arcway
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready, threaded-comments
*/

:root {
	--ax-ink: #0a1226;
	--ax-ultra: #2438ff;
	--ax-chalk: #eef1f7;
	--ax-amber: #ffb43b;
	--ax-slate: #55627a;
	--ax-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
	--ax-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ax-pad: clamp(1.25rem, 5vw, 4.5rem);
	--ax-max: 1280px;
	--header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ax-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ax-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--ax-ultra); }
h1, h2, h3, h4 { font-family: var(--ax-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed !important; z-index: 100000; top: .5rem; left: .5rem; width: auto; height: auto; margin: 0; padding: .8rem 1.2rem; clip: auto; background: var(--ax-amber); color: var(--ax-ink); }
:focus-visible { outline: 3px solid var(--ax-amber); outline-offset: 3px; }

/* Buttons (shared with the plugin) */
.ax-btn {
	display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px;
	border: 2px solid var(--ax-ultra); background: var(--ax-ultra); color: #fff;
	font-family: var(--ax-display); font-size: .8rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.ax-btn:hover { background: transparent; color: var(--ax-ultra); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 1000; background: var(--ax-ultra); color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__in {
	max-width: calc(var(--ax-max) + 2 * var(--ax-pad)); margin: 0 auto; padding: 0 var(--ax-pad);
	min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand .custom-logo { display: block; width: auto; max-height: 2.6rem; }
.brand__name { font-family: var(--ax-display); font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav .menu, .site-footer .menu { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav .menu a { color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { border-bottom-color: var(--ax-amber); }
.site-nav .sub-menu { display: none; }
.site-nav__cta { background: var(--ax-amber); border-color: var(--ax-amber); color: var(--ax-ink); }
.site-nav__cta:hover { background: transparent; color: var(--ax-amber); }

.nav-toggle { display: none; position: relative; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before { content: ''; position: absolute; left: 50%; width: 1.1rem; height: 2px; background: currentColor; transform: translateX(-50%); }
.nav-toggle__bars { top: calc(50% - 4px); }
.nav-toggle__bars::before { top: 8px; left: 50%; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.5rem;
		padding: 1.5rem var(--ax-pad) 2rem; background: var(--ax-ultra); border-bottom: 1px solid rgba(255, 255, 255, .18);
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: .5rem; }
	.site-nav .menu a { font-size: 1.15rem; }
}

/* ---------- Main + default content ---------- */
.site-main { max-width: 52rem; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--ax-pad); }
.site-main--full { max-width: none; margin: 0; padding: 0; }
.entry__title, .page-head__title { font-size: clamp(2rem, 4.5vw, 3.6rem); margin: 0 0 1.5rem; }
.entry__meta, .card__meta { margin: 0 0 .5rem; color: var(--ax-slate); font-size: .95rem; }
.entry__thumb { margin: 0 0 2rem; }
.entry__content > * { max-width: 100%; }
.entry__content a { text-underline-offset: .2em; }
.entry__content .alignwide { margin-inline: calc(50% - 50vw + var(--ax-pad)); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.5rem 1.75rem; }
.card__media { display: block; margin-bottom: 1rem; overflow: hidden; }
.card__title { font-size: 1.2rem; margin: 0 0 .4rem; }
.card__title a { color: inherit; text-decoration: none; }
.page-head { margin-bottom: 2rem; }
.pagination, .post-navigation { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .45rem .9rem; border: 1px solid rgba(10, 18, 38, .25); border-radius: 999px; text-decoration: none; color: inherit; }
.pagination .current { background: var(--ax-ultra); border-color: var(--ax-ultra); color: #fff; }
.search-form { display: flex; gap: .5rem; margin: 1.5rem 0; }
.search-form input[type='search'] { flex: 1; padding: .8rem 1rem; border: 1px solid rgba(10, 18, 38, .3); border-radius: 999px; font: inherit; }
.search-form input[type='submit'] { padding: .8rem 1.4rem; border: 0; border-radius: 999px; background: var(--ax-ink); color: #fff; font: inherit; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ax-ink); color: var(--ax-chalk); padding: clamp(4rem, 9vw, 7rem) var(--ax-pad) 2rem; }
.site-footer__in { max-width: var(--ax-max); margin: 0 auto; }
.site-footer__statement { max-width: 16ch; margin: 0 0 clamp(3rem, 6vw, 5rem); font-family: var(--ax-display); font-size: clamp(2.2rem, 5.6vw, 5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.site-footer__h { margin: 0 0 1rem; font-size: .85rem; font-weight: 500; color: var(--ax-amber); letter-spacing: -.01em; }
.site-footer .menu { flex-direction: column; gap: .5rem; }
.site-footer a { color: var(--ax-chalk); text-decoration: none; }
.site-footer a:hover { color: var(--ax-amber); }
.site-footer__legal { margin: clamp(3rem, 6vw, 5rem) 0 0; font-size: .9rem; opacity: .7; }

/* ---------- Project pages ---------- */
.proj-hero { background: var(--ax-ultra); color: #fff; padding: clamp(3.5rem, 8vw, 7rem) var(--ax-pad) clamp(3rem, 6vw, 5rem); }
.proj-hero__in { max-width: var(--ax-max); margin: 0 auto; }
.proj-hero__back { display: inline-block; margin-bottom: 1.5rem; color: #fff; font-weight: 600; }
.proj-hero__title { margin: 0; max-width: 18ch; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1.04; }
.proj-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .3); }
.proj-facts dt { font-size: .85rem; opacity: .8; }
.proj-facts dd { margin: 0; font-weight: 600; }
.proj-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.proj-filter a { display: inline-block; padding: .5rem 1.1rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; color: #fff; text-decoration: none; }
.proj-filter a:hover, .proj-filter a[aria-current] { background: var(--ax-amber); border-color: var(--ax-amber); color: var(--ax-ink); }

.proj-media { max-width: calc(var(--ax-max) + 2 * var(--ax-pad)); margin: calc(-1 * clamp(2rem, 5vw, 4rem)) auto 0; padding: 0 var(--ax-pad); position: relative; }
.proj-media__frame { position: relative; display: block; aspect-ratio: 2.39 / 1; overflow: hidden; background: #000; color: var(--ax-ink); }
.proj-media__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-media__play { position: absolute; left: 1.5rem; bottom: 1.5rem; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--ax-amber); }
.proj-body { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--ax-pad); }
.proj-nav { display: flex; justify-content: space-between; gap: 2rem; max-width: var(--ax-max); margin: 0 auto; padding: 2rem var(--ax-pad) 5rem; border-top: 1px solid rgba(10, 18, 38, .15); }
.proj-nav a { display: block; color: inherit; text-decoration: none; font-family: var(--ax-display); font-weight: 500; letter-spacing: -.02em; }
.proj-nav span { display: block; margin-bottom: .25rem; color: var(--ax-slate); font-family: var(--ax-body); font-size: .85rem; font-weight: 400; letter-spacing: 0; }
.proj-nav__next { text-align: right; }

.proj-list { max-width: calc(var(--ax-max) + 2 * var(--ax-pad)); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--ax-pad); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2.5rem 1.5rem; }
.proj-card { display: block; color: inherit; text-decoration: none; }
.proj-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ax-ink); margin-bottom: 1rem; }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.proj-card:hover .proj-card__media img { transform: scale(1.04); }
.proj-card__title { display: block; font-family: var(--ax-display); font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; }
.proj-card__meta { display: block; color: var(--ax-slate); font-size: .95rem; }

/* Elementor pages: let sections run edge to edge, never inherit blog spacing. */
.elementor-page .site-main--full .elementor-widget-container { max-width: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
