/*
Theme Name: Stagelight
Theme URI: https://rentsoundphuket.com
Author: Olof
Description: One-of-a-kind dark "light show" theme for Rent Sound Phuket. Animated moving-head light beams over real event photos, pointer-following spotlight, live equaliser bars, 3D service cards, brand ticker, full-screen backstage menu, scroll reveals and a photo lightbox. Auto-tidies old classic-editor content (photo rows become grids, logo rows become a logo strip). SEO meta, Open Graph and schema built in; Contact Form 7 styling with a built-in spam filter. All effects respect "reduce motion".
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.1
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: stagelight
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
	--bg: #07060b;
	--bg-2: #0d0b14;
	--card: #13101c;
	--line: rgba(255,255,255,.09);
	--text: #c9c5d6;
	--white: #f6f4fb;
	--muted: #8d89a3;
	--mag: #ff2d75;
	--violet: #a855f7;
	--cyan: #22d3ee;
	--amber: #ffb547;
	--grad: linear-gradient(90deg, var(--mag), var(--violet) 50%, var(--cyan));
	--display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--narrow: 820px;
	--r: 18px;
	--ease: cubic-bezier(.2,.7,.2,1);
	color-scheme: dark;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html.menu-open { overflow: hidden; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 400 1.0625rem/1.75 var(--sans); -webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--white); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--white); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 1.8em 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-top: 0; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1.25em; }
strong { color: var(--white); }
::selection { background: var(--mag); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--narrow)); margin-inline: auto; }
.muted { color: var(--muted); }
.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: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 6px; }
.eyebrow {
	font-family: var(--display); font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
	color: var(--cyan); margin: 0 0 1.1rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	--glow: rgba(255,45,117,.55);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	padding: 1rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
	font: 600 .95rem/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--glow {
	color: #fff; background: linear-gradient(100deg, var(--mag), var(--violet));
	box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -8px var(--glow);
}
.btn--glow::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%) -200% 0 / 200% 100% no-repeat;
	animation: shine 4.5s var(--ease) infinite;
}
.btn--glow:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 16px 44px -6px var(--glow), 0 0 60px -10px rgba(34,211,238,.5); }
.btn--line { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn--line:hover { color: var(--white); border-color: var(--cyan); box-shadow: 0 0 24px -6px var(--cyan); transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
@keyframes shine { 0%, 55% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* =========================================================
   Equaliser bars
   ========================================================= */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i {
	display: block; width: 3px; height: 100%; border-radius: 2px;
	background: linear-gradient(to top, var(--mag), var(--violet), var(--cyan));
	transform-origin: bottom; animation: eq var(--s, 900ms) ease-in-out var(--d, 0ms) infinite alternate;
}
@keyframes eq { 0% { transform: scaleY(.12); } 60% { transform: scaleY(.75); } 100% { transform: scaleY(1); } }

/* =========================================================
   Header + backstage menu
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .menu-open .site-header { background: rgba(7,6,11,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand__logo { max-height: 48px; width: auto; display: block; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; }
.brand__mark .eq { height: 20px; }
.site-header__actions { display: flex; align-items: center; gap: .8rem; }
.menu-toggle {
	display: inline-flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.05); color: var(--white);
	border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .62rem 1.05rem; cursor: pointer;
	font: 600 .88rem var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.menu-toggle:hover { border-color: var(--cyan); }
.menu-toggle__lines { position: relative; width: 20px; height: 12px; }
.menu-toggle__lines i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-toggle__lines i:nth-child(1) { top: 0; }
.menu-toggle__lines i:nth-child(2) { top: 5px; width: 70%; }
.menu-toggle__lines i:nth-child(3) { top: 10px; }
.menu-open .menu-toggle__lines i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines i:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__lines i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.backstage {
	position: fixed; inset: 0; z-index: 55; background: #07060b; overflow-y: auto;
	clip-path: circle(0% at calc(100% - 60px) 38px); visibility: hidden;
	transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}
.menu-open .backstage { clip-path: circle(150% at calc(100% - 60px) 38px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.backstage__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4rem; padding: 120px 0 60px; min-height: 100%; align-items: center; position: relative; }
.backstage__list { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.backstage__list li { counter-increment: m; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu-open .backstage__list li { opacity: 1; transform: none; }
.menu-open .backstage__list li:nth-child(1) { transition-delay: .15s; } .menu-open .backstage__list li:nth-child(2) { transition-delay: .19s; }
.menu-open .backstage__list li:nth-child(3) { transition-delay: .23s; } .menu-open .backstage__list li:nth-child(4) { transition-delay: .27s; }
.menu-open .backstage__list li:nth-child(5) { transition-delay: .31s; } .menu-open .backstage__list li:nth-child(6) { transition-delay: .35s; }
.menu-open .backstage__list li:nth-child(7) { transition-delay: .39s; } .menu-open .backstage__list li:nth-child(8) { transition-delay: .43s; }
.menu-open .backstage__list li:nth-child(9) { transition-delay: .47s; } .menu-open .backstage__list li:nth-child(n+10) { transition-delay: .51s; }
.backstage__list a {
	display: flex; align-items: baseline; gap: 1.1rem; padding: .35rem 0; text-decoration: none;
	font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--white);
	transition: color .25s, transform .3s var(--ease);
}
.backstage__list a::before { content: counter(m, decimal-leading-zero); font-size: .8rem; font-weight: 500; color: var(--mag); min-width: 2ch; }
.backstage__list a:hover, .backstage__list .current-menu-item > a {
	transform: translateX(10px);
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.backstage__contact { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.backstage__contact .btn { margin-top: 1.5rem; }
.backstage__beams i { position: absolute; top: -10%; width: 30vw; height: 120%; transform-origin: 50% 0; clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); mix-blend-mode: screen; filter: blur(10px); opacity: .35; pointer-events: none; }
.backstage__beams i:nth-child(1) { right: 10%; background: linear-gradient(rgba(255,45,117,.6), transparent 80%); animation: swing 8s ease-in-out infinite alternate; }
.backstage__beams i:nth-child(2) { right: 35%; background: linear-gradient(rgba(34,211,238,.5), transparent 80%); animation: swing 10s ease-in-out -4s infinite alternate-reverse; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 18px; height: 18px; fill: var(--cyan); flex: none; }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--cyan); }

/* =========================================================
   Light show (beams, haze, spotlight)
   ========================================================= */
.beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.beams i {
	position: absolute; top: -12%; width: 26vw; min-width: 260px; height: 135%;
	transform-origin: 50% 0; clip-path: polygon(48.5% 0, 51.5% 0, 100% 100%, 0 100%);
	mix-blend-mode: screen; filter: blur(7px); opacity: .55;
}
.beams i:nth-child(1) { left: 6%;  background: linear-gradient(rgba(255,45,117,.85), rgba(255,45,117,0) 78%); animation: swing 7s ease-in-out infinite alternate; }
.beams i:nth-child(2) { left: 30%; background: linear-gradient(rgba(34,211,238,.75), rgba(34,211,238,0) 75%); animation: swing 9s ease-in-out -3s infinite alternate-reverse; }
.beams i:nth-child(3) { left: 55%; background: linear-gradient(rgba(168,85,247,.8), rgba(168,85,247,0) 78%); animation: swing 8s ease-in-out -1.5s infinite alternate; }
.beams i:nth-child(4) { left: 78%; background: linear-gradient(rgba(255,181,71,.7), rgba(255,181,71,0) 72%); animation: swing 10s ease-in-out -5s infinite alternate-reverse; }
.beams--soft i { opacity: .32; }
@keyframes swing { 0% { transform: rotate(-24deg); } 100% { transform: rotate(24deg); } }

.haze {
	position: absolute; inset: -10%; z-index: 1; pointer-events: none; opacity: .5;
	background:
		radial-gradient(40% 30% at 20% 70%, rgba(168,85,247,.35), transparent 70%),
		radial-gradient(35% 25% at 80% 60%, rgba(34,211,238,.25), transparent 70%),
		radial-gradient(50% 30% at 50% 100%, rgba(255,45,117,.3), transparent 70%);
	filter: blur(30px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate3d(-3%, 0, 0) scale(1); } 100% { transform: translate3d(3%, -2%, 0) scale(1.08); } }
.spot {
	position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
	background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 35%), rgba(255,255,255,.55), transparent 60%);
	transition: background .1s;
}

/* =========================================================
   Front page hero
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: #05040a; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; transform: scale(1.08); }
.hero__img.is-active { opacity: 1; animation: kenburns 9s ease-out both; }
.hero__media:not(.is-slideshow) .hero__img { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(5,4,10,.92) 0%, rgba(5,4,10,.65) 45%, rgba(5,4,10,.25) 100%),
		linear-gradient(0deg, var(--bg) 0%, rgba(7,6,11,0) 35%);
}
.hero__content { position: relative; z-index: 5; padding: 130px 0 120px; }
.hero__title {
	font-size: clamp(2.5rem, 6.4vw, 5.6rem); font-weight: 800; line-height: 1.02; max-width: 14ch; margin-bottom: .45em;
	background: linear-gradient(100deg, #fff 0%, #fff 40%, #ff8fb5 50%, #9ef1ff 58%, #fff 68%, #fff 100%) 0 0 / 250% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: titleshine 7s ease-in-out infinite;
	text-shadow: 0 0 40px rgba(255,45,117,.15);
}
@keyframes titleshine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(246,244,251,.85); max-width: 600px; margin-bottom: 2.2rem; }
.hero__meter { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: center; opacity: .5; pointer-events: none; }
.hero__meter .eq { width: 100%; height: 70px; gap: 6px; padding: 0 1rem; justify-content: space-between; }
.hero__meter .eq i { flex: 1; width: auto; max-width: 14px; opacity: .55; }

/* =========================================================
   Section heads, services grid
   ========================================================= */
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
.services { padding: 6rem 0 5rem; position: relative; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; perspective: 1200px; }
.card {
	--rx: 0deg; --ry: 0deg;
	position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; text-decoration: none;
	background: var(--card); border: 1px solid var(--line); color: var(--text);
	transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
	transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.card::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,45,117,.22), rgba(34,211,238,.08) 40%, transparent 70%);
}
.card:hover { color: var(--text); border-color: rgba(255,45,117,.55); box-shadow: 0 30px 60px -25px rgba(255,45,117,.45), 0 0 0 1px rgba(34,211,238,.15); }
.card:hover::after { opacity: 1; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--card) 0%, rgba(19,16,28,0) 55%); }
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), filter .5s; filter: saturate(1.05) brightness(.9); }
.card:hover .card__img { transform: scale(1.08); filter: saturate(1.25) brightness(1); }
.card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .35rem; padding: .2rem 1.3rem 1.4rem; margin-top: -1.6rem; flex: 1; }
.card__num { font-family: var(--display); font-size: .7rem; color: var(--mag); letter-spacing: .15em; }
.card__title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--white); line-height: 1.2; }
.card__text { font-size: .93rem; color: var(--muted); line-height: 1.55; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-weight: 600; font-size: .85rem; color: var(--cyan); letter-spacing: .04em; }
.card__more svg { width: 16px; height: 16px; fill: currentColor; transition: transform .25s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* =========================================================
   Brand ticker
   ========================================================= */
.ticker { border-block: 1px solid var(--line); padding: 1.6rem 0; overflow: hidden; background: linear-gradient(90deg, var(--bg), var(--bg-2), var(--bg)); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__list li {
	font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.8rem); text-transform: uppercase; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 1px rgba(246,244,251,.35); padding: 0 1.6rem; display: flex; align-items: center; gap: 3.2rem;
	transition: color .3s, -webkit-text-stroke-color .3s;
}
.ticker__list li::after { content: "✦"; -webkit-text-stroke: 0; color: var(--mag); font-size: .5em; }
.ticker__list li:hover { color: var(--white); -webkit-text-stroke-color: transparent; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   Content (old classic-editor pages look good automatically)
   ========================================================= */
.home-text { padding: 5.5rem 0 4rem; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { position: relative; padding-top: 1.1rem; }
.entry-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--grad); }
.entry-content h2:empty, .entry-content p:empty { display: none; }
.entry-content img { border-radius: 14px; display: inline-block; vertical-align: middle; }
.entry-content .alignright { float: right; margin: .3rem 0 1.2rem 2rem; max-width: 42%; }
.entry-content .alignleft { float: left; margin: .3rem 2rem 1.2rem 0; max-width: 42%; }
.entry-content .aligncenter { display: block; margin: 2rem auto; }
.entry-content .alignnone { margin: .4rem .4rem .4rem 0; }
.entry-content img.size-large, .entry-content img.aligncenter { width: 100%; max-width: 100%; height: auto; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.entry-content h2, .entry-content h3 { clear: both; }
.entry-content ul { padding-left: 0; list-style: none; }
.entry-content ul li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--mag); box-shadow: 0 0 12px var(--mag); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 2.2rem 0; padding: 1.4rem 1.6rem; border-radius: 14px; background: linear-gradient(135deg, rgba(255,45,117,.1), rgba(34,211,238,.06));
	border: 1px solid rgba(255,45,117,.3); color: var(--white); font-size: 1.1rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--white); font-family: var(--display); font-size: .8rem; letter-spacing: .06em; }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.entry-content .wp-block-gallery, .entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.entry-content .gallery img, .entry-content .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.entry-content .wp-caption { max-width: 100%; }

/* Rows of photos → grid; rows of logos → logo strip (classes added by JS) */
.entry-content p.photo-row { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 1rem; margin: 2rem 0; clear: both; }
.entry-content p.photo-row br { display: none; }
.entry-content p.photo-row img, .entry-content p.photo-row a { width: 100%; max-width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; display: block; float: none; }
.entry-content p.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem; margin: 3rem 0; clear: both; }
.entry-content p.logo-row img {
	background: #fff; padding: .7rem 1.1rem; border-radius: 12px; height: 64px; width: auto; max-width: 180px; object-fit: contain; margin: 0;
	filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s, transform .3s var(--ease);
}
.entry-content p.logo-row img:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.zoomable { cursor: zoom-in; transition: transform .4s var(--ease), box-shadow .4s; }
img.zoomable:hover, .zoomable:hover img { transform: scale(1.02); box-shadow: 0 20px 50px -20px rgba(255,45,117,.5); }

/* =========================================================
   Inner page banner + layout + quote card
   ========================================================= */
.banner { position: relative; min-height: 56vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: #05040a; }
.banner--short { min-height: 44vh; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; animation: kenburns 14s ease-out both; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--bg) 2%, rgba(7,6,11,.55) 55%, rgba(7,6,11,.75) 100%); }
.banner__inner { position: relative; z-index: 5; padding: 140px 0 3.2rem; }
.banner h1 { margin: 0; max-width: 18ch; }
.banner__sub { margin: 1rem 0 0; max-width: 640px; color: rgba(246,244,251,.82); font-size: 1.1rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4.5rem; padding: 4rem 0 5rem; align-items: start; }
.quote-card { position: sticky; top: 100px; }
.quote-card__inner {
	position: relative; padding: 1.8rem; border-radius: var(--r); display: grid; gap: .8rem;
	border: 1px solid transparent;
	background:
		linear-gradient(var(--card), var(--card)) padding-box,
		conic-gradient(from var(--ang, 0deg), var(--mag), var(--violet), var(--cyan), rgba(255,255,255,.08) 40%, rgba(255,255,255,.08) 75%, var(--mag)) border-box;
	animation: spin 6s linear infinite;
	box-shadow: 0 30px 60px -30px rgba(255,45,117,.35);
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
/* Contact page: the border light runs around once, then stops. */
.layout--contact .quote-card__inner { animation: spin 2.4s var(--ease) 1 both; }
.quote-card__title { font-family: var(--display); font-weight: 700; color: var(--white); font-size: 1.3rem; margin: .2rem 0 0; }
.quote-card .muted { margin: 0 0 .4rem; font-size: .95rem; }

/* Contact page */
.layout--contact { grid-template-columns: minmax(0, 1fr) 360px; }
.form-panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 2.2rem; }
.reminder {
	display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.8rem; padding: 1rem 1.2rem; border-radius: 12px;
	background: linear-gradient(135deg, rgba(255,45,117,.12), rgba(34,211,238,.06)); border: 1px solid rgba(255,45,117,.4); color: var(--white);
}
.reminder svg { width: 24px; height: 24px; fill: var(--mag); flex: none; margin-top: .15rem; }
.reminder p { margin: 0; }
.reminder strong { color: var(--cyan); }

/* Contact Form 7 */
.wpcf7 form p { margin-bottom: 1.1rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: .92rem; color: var(--white); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"],
.wpcf7 input[type="number"], .wpcf7 input[type="url"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; margin-top: .45rem; padding: .9rem 1rem; font: inherit; font-weight: 400; color: var(--white);
	background: #0a0910; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18), 0 0 30px -10px var(--cyan); }
.wpcf7 ::placeholder { color: #5f5b73; }
.wpcf7 input[type="submit"] {
	color: #fff; border: 0; border-radius: 999px; padding: 1.05rem 2.4rem; font: 700 1rem var(--sans); cursor: pointer;
	background: linear-gradient(100deg, var(--mag), var(--violet)); box-shadow: 0 12px 34px -10px rgba(255,45,117,.6); transition: transform .2s, box-shadow .2s;
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -8px rgba(255,45,117,.7); }
.wpcf7 form .wpcf7-response-output { margin: 1.2rem 0 0; border-radius: 10px; padding: .8rem 1rem; }
.wpcf7-not-valid-tip { color: #ff6b9a; font-size: .86rem; }
.rsp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Final CTA + footer
   ========================================================= */
.final-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 7rem 0 6rem; border-top: 1px solid var(--line); }
.final-cta__beam {
	position: absolute; inset: 0; z-index: -1;
	background:
		conic-gradient(from 180deg at 50% -10%, transparent 160deg, rgba(255,45,117,.35) 172deg, rgba(168,85,247,.25) 180deg, rgba(34,211,238,.3) 188deg, transparent 200deg),
		radial-gradient(60% 60% at 50% 100%, rgba(168,85,247,.18), transparent 70%);
	filter: blur(4px); animation: pulse 6s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: .7; } to { opacity: 1; } }
.final-cta .eq { height: 34px; margin-bottom: 1.6rem; }
.final-cta h2 { margin: 0 auto .8rem; max-width: 20ch; font-size: clamp(1.8rem, 4vw, 3rem); }
.final-cta p { max-width: 560px; margin: 0 auto 2rem; color: rgba(246,244,251,.8); }
.final-cta .btn-row { justify-content: center; }

.site-footer { background: #040307; border-top: 1px solid var(--line); padding: 4rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
.footer-brand { font-family: var(--display); font-weight: 700; color: var(--white); font-size: 1.15rem; margin: 0 0 .5rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.footer-menu li { margin-bottom: .45rem; break-inside: avoid; }
.footer-menu a, .site-footer p a { color: var(--text); text-decoration: none; }
.footer-menu a:hover, .site-footer p a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Mobile quick bar */
.mobile-bar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 2rem; background: rgba(4,3,7,.92); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: 0 40px 100px -20px #000, 0 0 0 1px var(--line); }
.lightbox__close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Scroll reveal */
.js .will-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .will-reveal.is-in { opacity: 1; transform: none; }
.js .card.will-reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.js .card.will-reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .9s var(--ease) calc(var(--i, 0) * 70ms), transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease); }

/* Misc */
.post-list article { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post-list h2 a { color: var(--white); text-decoration: none; }
.content-pad { padding: 4rem 0 5rem; }
.page-head { padding: 140px 0 2rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.layout, .layout--contact { grid-template-columns: 1fr; gap: 3rem; }
	.quote-card { position: static; }
	/* Contact page on phones/tablets: WhatsApp box first, form below. */
	.layout--contact .quote-card { order: -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
	.backstage__inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 100px; align-items: start; }
	.backstage__contact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
	.entry-content .alignright, .entry-content .alignleft { max-width: 40%; margin-left: 1rem; }
	.entry-content p.photo-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hide-sm { display: none !important; }
	.menu-toggle__label { display: none; }
	.brand__name { font-size: .9rem; }
	.hero { align-items: end; }
	.hero::after { background: linear-gradient(0deg, rgba(5,4,10,.97) 0%, rgba(5,4,10,.8) 45%, rgba(5,4,10,.35) 75%, rgba(5,4,10,.55) 100%); }
	.hero__content { padding: 120px 0 7rem; }
	.hero__title { font-size: clamp(2.1rem, 10.5vw, 2.9rem); }
	.hero__sub { font-size: 1rem; }
	.btn-row .btn { flex: 1 1 100%; }
	.beams i { width: 60vw; opacity: .45; }
	.hero__meter .eq { height: 46px; gap: 4px; }
	.services { padding: 4rem 0 3.5rem; }
	.cards { grid-template-columns: 1fr; }
	.card { flex-direction: row; }
	.card__media { width: 38%; aspect-ratio: auto; flex: none; }
	.card__media::after { background: linear-gradient(270deg, var(--card) 0%, rgba(19,16,28,0) 60%); }
	.card__body { margin-top: 0; padding: 1rem 1rem 1rem .4rem; }
	.card__title { font-size: 1rem; }
	.card__text { font-size: .86rem; }
	.card__more { display: none; }
	.banner { min-height: 46vh; }
	.banner__inner { padding: 110px 0 2rem; }
	.layout { padding: 2.5rem 0 3.5rem; }
	.form-panel { padding: 1.4rem; }
	.entry-content .alignright, .entry-content .alignleft { float: none; display: block; max-width: 70%; margin: 1rem auto; }
	.entry-content p.photo-row { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.entry-content p.logo-row img { height: 50px; max-width: 130px; padding: .5rem .8rem; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.final-cta { padding: 5rem 0 4.5rem; }

	.mobile-bar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: .6rem; right: .6rem; bottom: .6rem; z-index: 50;
		border-radius: 16px; overflow: hidden; background: rgba(13,11,20,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
		border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.6);
	}
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .95rem .3rem; color: var(--white); text-decoration: none; font-weight: 700; font-size: .92rem; }
	.mobile-bar a:first-child { background: linear-gradient(100deg, var(--mag), var(--violet)); }
	.mobile-bar a.is-wa { color: #25d366; }
	.mobile-bar svg { width: 18px; height: 18px; fill: currentColor; }
	body.has-mobile-bar { padding-bottom: 80px; }
	.menu-open .mobile-bar { display: none; }
}

/* Hide the "Click to Chat" WhatsApp plugin bubble – the theme has its own WhatsApp buttons. */
#ht-ctc-chat, .ht-ctc, .ht_ctc_chat_style { display: none !important; }

/* Long site titles stay on one line in the header. */
.brand { min-width: 0; }
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
@media (max-width: 640px) { .brand__name { max-width: 58vw; } }

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