/* ==========================================================================
   OSTRO — Main Stylesheet
   All colors reference CSS variables so the Customizer accent color
   (see inc/customizer.php) instantly re-colors the whole site.
   ========================================================================== */

:root {
	--bg: #0b0b0c;
	--bg-alt: #121214;
	--surface: #17171a;
	--border: rgba(255, 255, 255, 0.08);
	--text: #f5f3ee;
	--text-muted: #a8a6a1;
	--accent: #c9a227;
	--accent-soft: rgba(201, 162, 39, 0.14);
	--radius: 18px;
	--container: 1220px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 0.95rem;
	overflow: hidden;
	transition: transform 0.4s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
	white-space: nowrap;
}
.btn span { position: relative; z-index: 1; }
.btn-primary { background: var(--accent); color: #0b0b0c; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 20px 44px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 999;
	backdrop-filter: blur(14px);
	background: rgba(11, 11, 12, 0.65);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 18px;
	padding-bottom: 18px;
}
.site-logo { display: flex; align-items: center; }
.logo-text { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.custom-logo { max-height: 44px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
	content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent);
	transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.header-cta { flex-shrink: 0; }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px; height: 42px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 0 auto; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
	position: fixed;
	top: 79px; left: 0; right: 0; bottom: 0;
	background: var(--bg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.5s var(--ease), opacity 0.4s ease;
	z-index: 998;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-nav-links a { font-size: 1.6rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 140px 0 100px;
	overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
	position: absolute;
	width: 60vw; height: 60vw;
	max-width: 700px; max-height: 700px;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.35;
	animation: float-glow 12s ease-in-out infinite;
}
.glow-1 { background: var(--accent); top: -20%; left: -10%; }
.glow-2 { background: #7a5cff; opacity: 0.2; bottom: -20%; right: -10%; animation-delay: -6s; }
@keyframes float-glow {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(4%, 6%) scale(1.1); }
}
.hero-grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
	opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.eyebrow {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid var(--border);
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 28px;
}
.hero-heading {
	font-size: clamp(2.4rem, 6vw, 5.2rem);
	margin-bottom: 24px;
}
.hero-sub {
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	max-width: 620px;
	margin: 0 auto 40px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 1; }
.scroll-cue span {
	display: block; width: 22px; height: 36px; border: 1.5px solid var(--border); border-radius: 100px; position: relative;
}
.scroll-cue span::before {
	content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
	background: var(--accent); border-radius: 50%; animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee-wrap {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	overflow: hidden;
	padding: 22px 0;
	background: var(--bg-alt);
}
.marquee-track {
	display: flex;
	width: max-content;
	gap: 18px;
	animation: marquee 26s linear infinite;
}
.marquee-item { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.marquee-dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 8px; }
.stat-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Section shared ---------- */
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-tag { color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.section-head h2, .about-inner h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* ---------- Services ---------- */
.services-section { padding: 120px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 36px 30px;
	transition: transform 0.5s var(--ease), border-color 0.4s ease, background 0.4s ease;
	transition-delay: var(--d, 0s);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--accent); background: var(--accent-soft); }
.service-icon { display: inline-flex; font-size: 1.4rem; color: var(--accent); margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Process ---------- */
.process-section { padding: 120px 0; background: var(--bg-alt); }
.process-list { border-top: 1px solid var(--border); }
.process-item {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	padding: 36px 0;
	border-bottom: 1px solid var(--border);
	transition: padding-left 0.4s var(--ease);
}
.process-item:hover { padding-left: 12px; }
.process-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--accent); flex-shrink: 0; width: 60px; }
.process-copy h3 { font-size: 1.3rem; margin-bottom: 8px; }
.process-copy p { margin: 0; max-width: 560px; }

/* ---------- Work / Portfolio ---------- */
.work-section { padding: 120px 0; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.work-media {
	aspect-ratio: 4 / 3;
	background: var(--surface) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	position: relative;
	transition: transform 0.7s var(--ease);
}
.work-card:hover .work-media { transform: scale(1.04); }
.work-placeholder { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: 0.1em; color: var(--text-muted); opacity: 0.5; }
.work-meta { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-meta h3 { font-size: 1.05rem; margin: 0; }
.work-meta span { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ---------- About ---------- */
.about-section { padding: 100px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { max-width: 760px; }
.about-inner p { font-size: 1.15rem; }

/* ---------- Testimonials ---------- */
.testimonials-section { padding: 120px 0; }
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; margin: 0; }
.testimonial-card p { color: var(--text); font-size: 1.05rem; line-height: 1.55; margin-bottom: 24px; }
.testimonial-card footer { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card strong { font-size: 0.95rem; }
.testimonial-card span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- CTA ---------- */
.cta-section { padding: 140px 0; text-align: center; background: linear-gradient(180deg, transparent, var(--accent-soft)); }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 780px; margin: 0 auto 40px; }

/* ---------- Footer ---------- */
.site-footer { padding: 90px 0 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-tagline { margin-top: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
	width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
	transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.footer-col p { margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px 24px; border-top: 1px solid var(--border);
	font-size: 0.85rem; color: var(--text-muted);
}
.back-to-top {
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
	display: flex; align-items: center; justify-content: center; transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.back-to-top:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--accent); }

/* ---------- Simple pages (blog / static pages / 404) ---------- */
.simple-page { padding: 160px 0 100px; min-height: 60vh; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 30px; }
.page-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.page-body { max-width: 760px; color: var(--text); }
.page-body p { color: var(--text-muted); }
.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding-bottom: 24px; }
.blog-card h2 { font-size: 1.2rem; padding: 20px 22px 6px; }
.blog-excerpt { padding: 0 22px; color: var(--text-muted); }
.blog-card .btn { margin: 12px 22px 0; }
.error-404 { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.error-404 h1 { font-size: 7rem; color: var(--accent); margin: 0; }

/* ---------- Custom cursor (desktop pointer devices only) ---------- */
.ostro-cursor {
	position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
	background: var(--accent); pointer-events: none; z-index: 9999; mix-blend-mode: difference;
	transform: translate(-50%, -50%); transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
	opacity: 0; display: none;
}
@media (hover: hover) and (pointer: fine) {
	.ostro-cursor { display: block; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
	.testimonial-track { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.main-nav, .header-cta { display: none; }
	.menu-toggle { display: flex; }
	.services-grid { grid-template-columns: 1fr; }
	.work-grid { grid-template-columns: 1fr; }
	.blog-list { grid-template-columns: 1fr; }
	.process-item { gap: 20px; }
}

@media (max-width: 600px) {
	.hero { padding-top: 120px; }
	.hero-actions { flex-direction: column; width: 100%; }
	.hero-actions .btn { width: 100%; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.process-num { width: 40px; font-size: 1.1rem; }
}
