/*
Theme Name: Azanur
Theme URI: https://azanur.com
Author: Visi Zoltán
Description: Kétnyelvű (angol / magyar) termékoldal az Azanur vezeték nélküli DMX fényvezérlőhöz. Bilingual product page theme for the Azanur wireless DMX light controller.
Version: 1.0.6
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: azanur
*/

:root {
	--az-stage: var(--wp--preset--color--stage, #07070a);
	--az-panel: var(--wp--preset--color--panel, #111116);
	--az-line: var(--wp--preset--color--line, #24242c);
	--az-ink: var(--wp--preset--color--ink, #f4f4f7);
	--az-mute: var(--wp--preset--color--mute, #9a9aa8);
	--az-mono: var(--wp--preset--font-family--mono, ui-monospace, Menlo, monospace);
	--az-wrap: 1120px;
	color-scheme: dark;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3) { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--wp--preset--color--blue, #0A84FF); outline-offset: 3px; border-radius: 6px; }
.wp-site-blocks { padding-top: 0; }
.az-main { padding: 0 !important; }
.az-main > .wp-block-post-content { max-width: none !important; }
.az-main .wp-block-post-content > .alignfull { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; width: 100%; }

/* ---------- header ---------- */
.az-header { position: sticky; top: 0; z-index: 50; margin: 0 !important; background: color-mix(in srgb, var(--az-stage) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--az-line); }
.admin-bar .az-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .az-header { top: 0; } }
.az-nav-inner { max-width: var(--az-wrap); margin-inline: auto; display: flex; align-items: center; gap: 24px; height: 60px; }
.az-brand { display: flex; }
.az-brand .az-logo { height: 22px; width: auto; display: block; }
.az-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 600; }
.az-links a { color: var(--az-mute); text-decoration: none; }
.az-links a:hover { color: var(--az-ink); }
.az-lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--az-line); border-radius: 999px; }
.az-lang a { font-family: var(--az-mono); font-size: 12px; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; color: var(--az-mute); text-decoration: none; }
.az-lang a[aria-current="true"] { background: var(--az-ink); color: var(--az-stage); }
@media (max-width: 720px) { .az-links { display: none; } .az-lang { margin-left: auto; } }

/* ---------- sections ---------- */
.az-sec, .az-hero { box-sizing: border-box; padding: 72px 20px !important; margin-block: 0 !important; }
.az-sec { border-top: 1px solid var(--az-line); }
.az-sec > *, .az-hero > * { max-width: var(--az-wrap); margin-left: auto !important; margin-right: auto !important; }
.az-eyebrow { font-family: var(--az-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--az-mute); margin-bottom: 12px !important; }
.az-sec > h2 { margin-top: 0; margin-bottom: 40px; }
.az-lead { color: var(--az-mute); font-size: 18px; max-width: 60ch; margin-top: 22px !important; }
.az-note { color: var(--az-mute); font-size: 13px; margin-top: 18px !important; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--az-ink); border: 1px solid var(--az-line); }
.wp-block-button .wp-block-button__link:hover { opacity: .88; }
.az-hero .wp-block-buttons { margin-top: 32px; }

/* ---------- hero ---------- */
.az-hero { padding-top: 64px !important; overflow: hidden; }
.az-hero-cols { align-items: center !important; gap: 48px !important; }
.az-hero-cols > .wp-block-column:first-child { flex-basis: 56% !important; }
.az-hero h1 { margin: 18px 0 0; }
.az-hero h1 em { font-style: normal; background: linear-gradient(90deg, #FF453A, #FF9F0A 30%, #30D158 55%, #0A84FF 78%, #BF5AF2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.az-led { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 100%; }
.az-led::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 65%); }
.az-led svg { width: 78%; height: auto; overflow: visible; }
.az-bpm { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); font-family: var(--az-mono); font-size: 12px; color: var(--az-mute); letter-spacing: .08em; white-space: nowrap; }
.az-dot { transform-box: fill-box; transform-origin: center; animation: az-beat .484s cubic-bezier(.2,.7,.3,1) infinite; }
.az-halo { filter: blur(9px); opacity: .75; }
@keyframes az-beat { 0% { transform: scale(1.12); opacity: 1; } 55% { transform: scale(.94); opacity: .72; } 100% { transform: scale(1.12); opacity: 1; } }
.d2 { animation-delay: -.07s; } .d3 { animation-delay: -.14s; } .d4 { animation-delay: -.21s; } .d5 { animation-delay: -.28s; } .d6 { animation-delay: -.35s; }
@media (prefers-reduced-motion: reduce) { .az-dot { animation: none; } }

.az-stats { gap: 1px !important; background: var(--az-line); border: 1px solid var(--az-line); border-radius: 18px; overflow: hidden; margin-top: 56px !important; flex-wrap: wrap !important; }
.az-stats > .wp-block-column { background: var(--az-stage); padding: 18px 20px; margin: 0 !important; flex: 1 1 200px !important; }
.az-stat-num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0 !important; }
.az-stat-label { font-size: 13px; color: var(--az-mute); margin: 0 !important; }
@media (max-width: 781px) { .az-led { max-width: 360px; margin-inline: auto; } }

/* ---------- signal path ---------- */
.az-flow { gap: 34px !important; }
.az-flow > .wp-block-column { position: relative; background: var(--az-panel); border: 1px solid var(--az-line); border-radius: 16px; padding: 18px; }
.az-flow > .wp-block-column > * { margin-block: 0 6px; }
.az-flow > .wp-block-column:nth-child(2) { border-color: color-mix(in srgb, #0A84FF 55%, var(--az-line)); box-shadow: 0 0 0 4px rgba(10,132,255,.12); }
.az-flow > .wp-block-column:not(:last-child)::after { content: "\2192"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: var(--az-mute); font-family: var(--az-mono); font-size: 18px; }
.az-flow p:not(.az-node-tag) { color: var(--az-mute); font-size: 14px; }
.az-node-tag { font-family: var(--az-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--az-mute); }
@media (max-width: 781px) { .az-flow > .wp-block-column:not(:last-child)::after { content: "\2193"; right: 50%; top: auto; bottom: -28px; transform: none; } }

/* ---------- features ---------- */
.az-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--az-line); border: 1px solid var(--az-line); border-radius: 20px; overflow: hidden; }
.az-features > * { margin: 0 !important; }
.az-feat { background: var(--az-stage); padding: 26px 24px 28px; }
.az-feat h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.az-feat h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--az-chip, #f4f4f7); box-shadow: 0 0 14px var(--az-chip, #f4f4f7); }
.az-feat p { color: var(--az-mute); font-size: 15px; margin: 0; }
.az-c-red { --az-chip: #FF453A; } .az-c-amber { --az-chip: #FF9F0A; } .az-c-white { --az-chip: #D8D8DE; }
.az-c-green { --az-chip: #30D158; } .az-c-blue { --az-chip: #0A84FF; } .az-c-uv { --az-chip: #BF5AF2; }
@media (max-width: 860px) { .az-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .az-features { grid-template-columns: 1fr; } }
ul.az-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px !important; }
ul.az-chips li { font-family: var(--az-mono); font-size: 12px; letter-spacing: .04em; border: 1px solid var(--az-line); border-radius: 999px; padding: 6px 12px; margin: 0; }

/* ---------- screenshots ---------- */
.az-screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.az-screen { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.az-phone { border-radius: 34px; padding: 8px; background: #1a1a20; border: 1px solid var(--az-line); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.az-phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.az-screen figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--az-mute); padding-inline: 4px; }
.az-screen figcaption strong { color: var(--az-ink); font-size: 15px; }
@media (max-width: 960px) { .az-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .az-screens { gap: 16px; } .az-phone { border-radius: 24px; padding: 5px; } .az-phone img { border-radius: 19px; } }

/* ---------- specs ---------- */
.az-power { gap: 20px !important; margin-bottom: 20px !important; }
.az-power > .wp-block-column { background: var(--az-panel); border: 1px solid var(--az-line); border-radius: 18px; padding: 22px; }
.az-power p { margin: 0 0 6px; }
.az-pw-label, .az-pw-note { color: var(--az-mute); font-size: 14px; }
.az-pw-num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.az-spec-cols { gap: 20px !important; }
.az-spec-cols > .wp-block-column { display: block; }
.az-spec-cols > .wp-block-column > * { margin: 0 !important; }
.az-spec-cols .az-spec-title:not(:first-child) { margin-top: 20px !important; }
.az-spec-title { font-family: var(--az-mono); font-size: 13px !important; font-weight: 500 !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--az-mute); padding: 18px 22px 4px; background: var(--az-panel); border: 1px solid var(--az-line); border-bottom: 0; border-radius: 18px 18px 0 0; }
.az-spec { background: var(--az-panel); border: 1px solid var(--az-line); border-top: 0; border-radius: 0 0 18px 18px; padding: 0 22px 8px; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.az-spec td, .az-facts td { border: 0; border-top: 1px solid var(--az-line); padding: 11px 0; font-size: 15px; vertical-align: top; }
.az-spec tr:first-child td, .az-facts tr:first-child td { border-top: 0; }
.wp-block-table.az-spec, .wp-block-table.az-facts { margin: 0; }
.az-spec td:first-child, .az-facts td:first-child { color: var(--az-mute); padding-right: 14px; width: 42%; }
.az-spec td:last-child, .az-facts td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- box ---------- */
.az-box-cols { align-items: center !important; gap: 32px !important; }
.az-box-cols > .wp-block-column:first-child { flex-basis: 58% !important; }
.az-drawing { background: var(--az-panel); border: 1px solid var(--az-line); border-radius: 20px; padding: 20px; overflow-x: auto; }
.az-drawing svg { display: block; width: 100%; min-width: 480px; height: auto; }
.az-big-dim { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; margin: 0 0 16px !important; }
.az-facts { margin: 0; }

/* ---------- coming soon ---------- */
.az-soon { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; width: fit-content; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, #30D158 45%, var(--az-line)); background: rgba(48,209,88,.08); color: #b6f5c6; margin: 0 0 20px !important; }
.az-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #30D158; box-shadow: 0 0 10px #30D158; animation: az-soon 1.6s ease-in-out infinite; }
@keyframes az-soon { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .az-soon::before { animation: none; } }
.az-soon-sec { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(10,132,255,.14), transparent 60%); }
.az-soon-sec .az-lead { margin-left: auto !important; margin-right: auto !important; max-width: 56ch; }

/* ---------- 3D model ---------- */
.az-3d { position: relative; margin-bottom: 32px !important; border-radius: 24px; border: 1px solid var(--az-line); background: radial-gradient(ellipse at 50% 70%, #16161d, var(--az-stage) 70%); overflow: hidden; }
.az-3d-canvas { width: 100%; height: clamp(320px, 46vw, 540px); cursor: grab; touch-action: pan-y; }
.az-3d-canvas:active { cursor: grabbing; }
.az-3d-canvas canvas { display: block; }
.az-3d-hint { position: absolute; left: 20px; top: 18px; font-family: var(--az-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--az-mute); pointer-events: none; }
.az-3d:not(.is-loaded)::after { content: ""; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--az-line); border-top-color: var(--az-ink); animation: az-spin 1s linear infinite; }
@keyframes az-spin { to { transform: rotate(360deg); } }

/* ---------- setup steps ---------- */
.az-steps { gap: 20px !important; }
.az-steps > .wp-block-column { background: var(--az-panel); border: 1px solid var(--az-line); border-radius: 18px; padding: 24px; }
.az-steps > .wp-block-column > * { margin: 0 0 8px; }
.az-step-num { font-family: var(--az-mono); font-size: 13px; letter-spacing: .1em; color: #0A84FF; }
.az-steps p:not(.az-step-num) { color: var(--az-mute); font-size: 15px; }

/* ---------- interactive demo ---------- */
.az-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; margin-bottom: 56px !important; }
.az-demo > * { min-width: 0; }
.az-demo-copy h3 { font-size: clamp(24px, 3vw, 32px) !important; margin: 0 0 14px; }
.az-demo-copy p { color: var(--az-mute); font-size: 17px; max-width: 46ch; margin: 0 0 26px; }
.az-demo-open { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-size: 16px; font-weight: 650; color: #fff; background: linear-gradient(120deg, var(--az-blue, #0a84ff), #5e5ce6); border: 0; cursor: pointer; box-shadow: 0 12px 30px rgba(10,132,255,.35); transition: transform .15s var(--az-ease, ease), box-shadow .15s; }
.az-demo-open:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(10,132,255,.45); }
.az-demo-open:active { transform: translateY(0); }
.az-demo-open-ic { display: inline-grid; place-items: center; }

.az-demo-phone { position: relative; box-sizing: border-box; width: 470px; max-width: 100%; border-radius: 58px; padding: 12px; background: #1a1a20; border: 1px solid var(--az-line); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset; }
.az-demo-screen { position: relative; width: 100%; aspect-ratio: 430 / 932; border-radius: 46px; overflow: hidden; background: #000; }
.az-demo-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.az-demo-poster { cursor: pointer; }
.az-demo-poster .az-demo-phone { transition: transform .2s var(--az-ease, ease); }
.az-demo-poster:hover .az-demo-phone { transform: translateY(-3px); }
.az-demo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(10,132,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 10px rgba(255,255,255,.08); backdrop-filter: blur(2px); }
.az-demo-play svg { margin-left: 3px; }

/* ---------- demo modal ---------- */
body.az-noscroll { overflow: hidden; }
.az-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; }
.az-modal[hidden] { display: none; }
.az-modal-back { position: absolute; inset: 0; background: rgba(5,5,8,.82); backdrop-filter: blur(6px); animation: az-fade .2s ease; }
.az-modal-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: az-pop .25s var(--az-ease, cubic-bezier(.32,.72,0,1)); }
.az-modal-x { position: absolute; top: -8px; right: -8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(40,40,46,.9); border: 1px solid rgba(255,255,255,.12); cursor: pointer; z-index: 2; }
.az-modal-x:hover { background: rgba(60,60,68,.95); }
.az-modal-phone { position: relative; box-sizing: border-box; border-radius: 54px; padding: 11px; background: #1a1a20; border: 1px solid var(--az-line); box-shadow: 0 40px 100px rgba(0,0,0,.7); height: min(88vh, 900px); aspect-ratio: 452 / 954; max-width: calc(100vw - 48px); }
.az-modal-screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #000; }
@keyframes az-fade { from { opacity: 0; } }
@keyframes az-pop { from { opacity: 0; transform: scale(.94); } }

@media (max-width: 860px) { .az-demo { grid-template-columns: minmax(0, 1fr); gap: 32px; } .az-demo-phone { margin-inline: auto; width: min(470px, 100%); } }
@media (max-width: 480px) { .az-demo-phone { border-radius: 44px; padding: 8px; } .az-demo-screen { border-radius: 36px; } .az-modal { padding: 12px; } .az-modal-phone { padding: 9px; border-radius: 46px; } }

/* ---------- FAQ ---------- */
.az-faq-sec .wp-block-details { border-top: 1px solid var(--az-line); padding: 0; margin: 0 auto !important; }
.az-faq-sec .wp-block-details:last-of-type { border-bottom: 1px solid var(--az-line); }
.az-faq-sec summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; padding: 20px 40px 20px 0; position: relative; }
.az-faq-sec summary::-webkit-details-marker { display: none; }
.az-faq-sec summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--az-mono); font-size: 22px; color: var(--az-mute); transition: transform .2s; }
.az-faq-sec details[open] summary::after { content: "\2212"; }
.az-faq-sec details p { color: var(--az-mute); font-size: 16px; max-width: 70ch; margin: 0 0 22px !important; }

/* ---------- notify form ---------- */
.az-notify { max-width: 560px !important; margin: 32px auto 0 !important; text-align: left; }
.az-notify-lead { text-align: center; color: var(--az-ink); font-weight: 600; margin: 0 0 16px; }
.az-notify-row { display: flex; gap: 10px; }
.az-notify input[type=email] { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--az-ink); background: var(--az-panel); border: 1px solid var(--az-line); border-radius: 999px; padding: 13px 20px; }
.az-notify input[type=email]:focus { outline: 2px solid #0A84FF; outline-offset: 1px; }
.az-notify button { font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 999px; padding: 13px 24px; background: var(--az-ink); color: var(--az-stage); cursor: pointer; }
.az-notify button:hover { opacity: .88; }
.az-notify-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--az-mute); line-height: 1.5; }
.az-notify-consent input { margin-top: 3px; accent-color: #30D158; }
.az-notify-consent a { color: var(--az-ink); }
.az-notify-msg { text-align: center; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.az-notify-ok { background: rgba(48,209,88,.1); color: #b6f5c6; border: 1px solid rgba(48,209,88,.35); }
.az-notify-err { background: rgba(255,69,58,.1); color: #ffc2bd; border: 1px solid rgba(255,69,58,.35); }
.az-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { .az-notify-row { flex-direction: column; } }

/* ---------- footer ---------- */
.az-footer { margin: 0 !important; border-top: 1px solid var(--az-line); padding: 36px 0; color: var(--az-mute); font-size: 13px; }
.az-foot-inner { max-width: var(--az-wrap); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.az-foot-inner .az-mark { height: 18px; width: auto; }
.az-foot-inner a { color: var(--az-mute); }
.az-foot-inner a:hover { color: var(--az-ink); }

/* ---------- plain pages (blog posts, other pages) ---------- */
.az-plain { padding: 56px 20px !important; }
.az-plain > * { max-width: 760px; margin-inline: auto !important; }
.az-plain .wp-block-post-content > *, .az-plain > .wp-block-post-title { max-width: 760px !important; margin-left: auto !important; margin-right: auto !important; width: 100%; box-sizing: border-box; text-align: left; }
.az-plain h1 { font-size: clamp(32px, 5vw, 48px) !important; margin-bottom: 24px; }
.az-plain h2 { font-size: 20px !important; margin-top: 32px; }
.az-plain p { color: #c9c9d2; }
