/*
Theme Name: Nietaq
Theme URI: https://nietaq.com
Author: Nietaq Consult
Description: Nietaq Consult (bilingual AR/EN, instant switch) + Nietaq Academy (Arabic) with WooCommerce course registration.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Update URI: false
Text Domain: nietaq
*/

:root {
	--navy: #173D57;
	--navy-d: #0E2A3D;
	--navy-l: #E8EFF4;
	--gold: #F5B419;
	--gold-d: #D99A06;
	--gold-l: #FFF4D6;
	--sand: #F6F4EE;
	--ink: #14212B;
	--text: #2A3640;
	--muted: #5B6875;
	--line: #E4E1D8;
	--white: #fff;
	--red: #E2483D;
	--blue: #1E7FCB;
	--r: 16px;
	--r-sm: 10px;
	--sh: 0 1px 2px rgba(20, 33, 43, .05), 0 10px 30px rgba(20, 33, 43, .07);
	--sh-h: 0 2px 6px rgba(20, 33, 43, .06), 0 20px 46px rgba(20, 33, 43, .13);
	--f-ar: "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--f-en: "Manrope", "Segoe UI", Arial, sans-serif;
	--f: var(--f-ar);
	--wrap: 1220px;
}
.brand-academy { --f: "Cairo", Tahoma, sans-serif; --r: 20px; }
html[data-lang="en"] { --f: var(--f-en); }

/* ---------- Language switching ---------- */
html[data-lang="ar"] .l-en, html:not([data-lang]) .l-en { display: none !important; }
html[data-lang="en"] .l-ar { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--f); font-size: 17px; line-height: 1.8; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-d); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; font-family: var(--f); }
p { margin: 0 0 1em; }
.nq-skip { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.nq-skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.nq-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.nq-wrap--narrow { max-width: 860px; }
.nq-section { padding-block: 96px; }
.nq-section--tight { padding-block: 48px 88px; }
.nq-section--sand { background: var(--sand); }
.nq-section--navy { background: var(--navy); color: #c9d6e0; }

/* ---------- Buttons ---------- */
.nq-btn, .nq-page .wp-block-button__link, .woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce #respond input#submit, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; border: 2px solid var(--navy);
	background: var(--navy); color: #fff; font-family: var(--f); font-weight: 700; font-size: 16px; line-height: 1.2;
	cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s; text-decoration: none;
}
.nq-btn:hover, .nq-page .wp-block-button__link:hover, .woocommerce .button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--navy-d); border-color: var(--navy-d); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 61, 87, .25); }
.nq-btn--gold, .nq-page .is-style-gold .wp-block-button__link { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.nq-btn--gold:hover, .nq-page .is-style-gold .wp-block-button__link:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--ink); }
.nq-btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.nq-btn--light:hover { background: var(--gold-l); border-color: var(--gold-l); color: var(--navy); }
.nq-btn--ghost, .nq-page .is-style-outline .wp-block-button__link { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.nq-btn--ghost:hover, .nq-page .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; box-shadow: none; }
.nq-btn--sm { padding: 9px 18px; font-size: 15px; }
.nq-btn--lg { padding: 16px 34px; font-size: 17px; }
.nq-btn--block { width: 100%; }
.nq-btn.is-loading { opacity: .7; pointer-events: none; }
.brand-academy .nq-btn, .brand-academy .woocommerce button.button.alt, .brand-academy .woocommerce .button { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.brand-academy .nq-btn:hover, .brand-academy .woocommerce button.button.alt:hover, .brand-academy .woocommerce .button:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--ink); }
.brand-academy .nq-btn--light { background: #fff; border-color: #fff; }
.brand-academy .nq-btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }

/* ---------- Top bar & header ---------- */
.nq-topbar { background: var(--ink); color: #b8c4cd; font-size: 13.5px; }
.nq-topbar .nq-wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.nq-topbar a { color: var(--gold); }
.nq-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .95); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.admin-bar .nq-header { top: 32px; }
.nq-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 33, 43, .06); }
.nq-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.nq-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.nq-logo-img { height: 46px; width: auto; }
.nq-brand--academy span { display: flex; flex-direction: column; line-height: 1.1; }
.nq-brand--academy strong { font-size: 21px; font-weight: 800; color: var(--navy); }
.nq-brand--academy small { font-size: 11px; letter-spacing: .2em; color: var(--muted); font-weight: 700; direction: ltr; }
.nq-nav { display: flex; align-items: center; gap: 22px; }
.nq-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nq-menu a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15.5px; }
.nq-menu a:hover, .nq-menu .current-menu-item > a { background: var(--navy-l); color: var(--navy); }
.nq-menu__academy a { border: 1.5px solid var(--gold); color: var(--navy); }
.nq-menu__academy a:hover { background: var(--gold-l); }
.nq-nav__actions { display: flex; align-items: center; gap: 10px; }
.nq-lang { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-family: var(--f-en); color: var(--navy); cursor: pointer; font-size: 14px; }
.nq-lang .l-en { font-family: var(--f-ar); }
.nq-lang:hover { border-color: var(--navy); }
.nq-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nq-burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nq-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nq-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nq-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Core blocks inside our pages (classic theme wrappers) ---------- */
.nq-page .wp-block-group__inner-container { display: contents; }
.nq-page .is-layout-flow > *, .nq-page .is-layout-constrained > * { margin-block-start: 0; }
.nq-page > .wp-block-group { margin: 0; }
.nq-page .wp-block-columns { display: grid; gap: 48px; margin: 0; align-items: center; }
.nq-page .wp-block-column { margin: 0 !important; flex-basis: auto !important; min-width: 0; }
.nq-page .wp-block-image { margin: 0; }
.nq-page .wp-block-list { list-style: none; padding: 0; margin: 0; }
.nq-page .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

.nq-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .03em; color: var(--gold-d); margin-bottom: 12px; text-transform: uppercase; }
.nq-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--gold); }
.nq-h2 { font-size: clamp(28px, 3.4vw, 42px); }
.nq-lead { font-size: 18.5px; color: var(--muted); max-width: 720px; }
.nq-head { margin-bottom: 48px; }
.nq-head--center { text-align: center; }
.nq-head--center .nq-lead { margin-inline: auto; }
.nq-head--light .nq-h2 { color: #fff; }
.nq-head--light .nq-lead { color: #b9c8d4; }

/* HERO (consult) */
.nq-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-d), var(--navy) 60%, #1f5274); color: #c9d6e0; padding-block: 96px 110px; }
.nq-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.nq-hero::after { content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 520px; height: 520px; background: conic-gradient(from 210deg, transparent 0 30%, rgba(245,180,25,.22) 30% 46%, transparent 46%); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .9; }
.nq-hero .nq-wrap { position: relative; z-index: 1; }
.nq-hero__cols { grid-template-columns: 1.15fr .85fr; }
.nq-hero__title { color: #fff; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.2; letter-spacing: -.01em; }
.nq-hero__title em, .nq-gold { color: var(--gold); font-style: normal; }
.nq-hero__lead { font-size: 19px; color: #c9d6e0; max-width: 640px; }
.nq-hero .nq-eyebrow { color: var(--gold); }
.nq-hero__img img { border-radius: var(--r); box-shadow: 0 30px 60px rgba(0,0,0,.35); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.nq-hero__img { position: relative; }
.nq-hero__img::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--gold); border-radius: var(--r); opacity: .6; }
html[dir="ltr"] .nq-hero__img::before { inset: 24px 24px -24px -24px; }

/* Variants */
.nq-hero--short { padding-block: 64px 70px; }
.nq-hero--short .nq-hero__title { font-size: clamp(30px, 4vw, 46px); }
.nq-page .is-style-outline-dark .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); }
.nq-page .is-style-outline-dark .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.brand-academy .nq-page .wp-block-button__link { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.brand-academy .nq-page .wp-block-button__link:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--ink); }
.brand-academy .nq-page .is-style-outline .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.nq-quote__who p { margin: 0; }

/* Stats */
.nq-stats { background: #fff; margin-top: -54px; position: relative; z-index: 2; }
.nq-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r); box-shadow: var(--sh-h); overflow: hidden; }
.nq-stat { padding: 30px 26px; border-inline-start: 1px solid var(--line); }
.nq-stat:first-child { border-inline-start: 0; }
.nq-stat__num { font-size: clamp(30px, 3vw, 42px); font-weight: 800; color: var(--navy); margin: 0; line-height: 1.15; font-family: var(--f-en); }
.nq-stat__label { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* Two pillars */
.nq-pillars { grid-template-columns: 1fr 1fr !important; align-items: stretch !important; gap: 26px !important; }
.nq-pillar { border-radius: var(--r); padding: 40px 36px; position: relative; overflow: hidden; height: 100%; }
.nq-pillar--consult { background: var(--navy); color: #c9d6e0; }
.nq-pillar--consult h3 { color: #fff; }
.nq-pillar--academy { background: var(--gold-l); border: 1px solid #f3dfa4; }
.nq-pillar h3 { font-size: 26px; }
.nq-pillar .nq-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.nq-pillar--consult .nq-tag { background: rgba(245,180,25,.18); color: var(--gold); }
.nq-pillar--academy .nq-tag { background: #fff; color: var(--gold-d); }
.nq-pillar .wp-block-list li { padding-inline-start: 28px; position: relative; margin-bottom: 8px; }
.nq-pillar .wp-block-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; font-weight: 800; color: var(--gold); }
.nq-pillar--academy .wp-block-list li::before { color: var(--gold-d); }

/* Services */
.nq-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nq-service { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.nq-service:hover { transform: translateY(-4px); box-shadow: var(--sh-h); border-color: transparent; }
.nq-service__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--navy-l); color: var(--navy); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; font-weight: 800; font-family: var(--f-en); }
.nq-service:nth-child(even) .nq-service__icon { background: var(--gold-l); color: var(--gold-d); }
.nq-service h3 { font-size: 20px; margin-bottom: 8px; }
.nq-service p:last-child { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Process */
.nq-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.nq-step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 28px 24px; }
.nq-step__n { font-family: var(--f-en); font-size: 38px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.nq-step h3 { color: #fff; font-size: 19px; }
.nq-step p:last-child { margin: 0; color: #aebfcc; font-size: 15px; }

/* Projects */
.nq-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nq-gallery .wp-block-image { border-radius: var(--r-sm); overflow: hidden; position: relative; }
.nq-gallery .wp-block-image img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform .5s; }
.nq-gallery .wp-block-image:hover img { transform: scale(1.06); }
.nq-gallery .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }

/* Clients */
.nq-logos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; align-items: center; }
.nq-logos .wp-block-image { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; place-items: center; height: 110px; }
.nq-logos .wp-block-image img { max-height: 84px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.nq-logos .wp-block-image:hover img { filter: none; opacity: 1; }
.nq-quotes { grid-template-columns: 1fr 1fr !important; align-items: stretch !important; gap: 22px !important; margin-top: 40px !important; }
.nq-quote { background: #fff; border-radius: var(--r); padding: 32px; border: 1px solid var(--line); height: 100%; position: relative; }
.nq-quote::before { content: "”"; position: absolute; top: 4px; inset-inline-end: 22px; font-size: 90px; line-height: 1; color: var(--gold); opacity: .4; font-family: Georgia, serif; }
.nq-quote__by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.nq-quote__by .wp-block-image img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.nq-quote__by p { margin: 0; line-height: 1.4; }

/* About */
.nq-about__cols { grid-template-columns: 1fr 1fr; }
.nq-about__img img { border-radius: var(--r); box-shadow: var(--sh-h); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.nq-checks li { position: relative; padding-inline-start: 34px; margin-bottom: 10px; font-weight: 500; color: var(--ink); }
.nq-checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-l); color: var(--gold-d); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* ---------- Page head ---------- */
.nq-pagehead { background: var(--navy); color: #c9d6e0; padding-block: 56px; }
.nq-pagehead h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 0; }
.brand-academy .nq-pagehead { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect x='4' y='4' width='14' height='14' fill='%23E2483D' opacity='.5'/%3E%3Crect x='28' y='4' width='14' height='14' fill='%23F7C51E' opacity='.45'/%3E%3Crect x='16' y='28' width='14' height='14' fill='%231E7FCB' opacity='.45'/%3E%3C/svg%3E") right center / 48px repeat-y; }
.nq-prose { font-size: 17.5px; }
.nq-prose h2 { font-size: 26px; margin-top: 1.6em; }
.nq-prose ul, .nq-prose ol { padding-inline-start: 1.3em; }

/* ---------- Forms (quote) ---------- */
.nq-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px; box-shadow: var(--sh); }
.nq-form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.nq-form legend { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.nq-step__n { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: 15px; }
.nq-form label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.nq-form input[type=text], .nq-form input[type=email], .nq-form input[type=tel], .nq-form input[type=number], .nq-form input[type=date], .nq-form select, .nq-form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.nq-form input:focus, .nq-form select:focus, .nq-form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 4px rgba(23,61,87,.1); }
.nq-form .is-bad { border-color: var(--red) !important; background: #fff6f5 !important; }
.nq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.nq-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.nq-tab { margin: 0 !important; cursor: pointer; }
.nq-tab input { position: absolute; opacity: 0; pointer-events: none; }
.nq-tab span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 700; transition: all .2s; }
.nq-tab input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.nq-tab input:focus-visible + span { outline: 3px solid var(--gold); }
.nq-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.nq-check { margin: 0 !important; cursor: pointer; }
.nq-check input { position: absolute; opacity: 0; }
.nq-check span { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 500; transition: all .2s; }
.nq-check span::before { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 2px solid #b9c2ca; flex: none; transition: all .2s; }
.nq-check input:checked + span { border-color: var(--navy); background: var(--navy-l); }
.nq-check input:checked + span::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' stroke='white' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--navy); }
.nq-label { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.nq-hint { color: var(--muted); font-size: 14px; }
.nq-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.nq-file input { margin-top: 8px; font: inherit; font-size: 14px; }
.nq-alert { padding: 18px 20px; border-radius: var(--r-sm); margin-bottom: 20px; }
.nq-alert--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.nq-alert--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.nq-quote-layout { grid-template-columns: 1.6fr 1fr; align-items: start !important; }
.nq-side-card { background: var(--sand); border-radius: var(--r); padding: 28px; position: sticky; top: 110px; }
.nq-side-card h3 { font-size: 19px; }

/* ---------- CTA + footer ---------- */
.nq-cta { background: linear-gradient(120deg, var(--navy-d), var(--navy)); color: #c9d6e0; padding-block: 64px; position: relative; overflow: hidden; }
.nq-cta::after { content: ""; position: absolute; inset-inline-end: 6%; bottom: -60px; width: 220px; height: 220px; background: var(--gold); opacity: .12; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.nq-cta__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.nq-cta h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); }
.nq-cta p { margin: 0; }
.nq-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.nq-cta--academy { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='6' y='6' width='16' height='16' fill='%23E2483D' opacity='.35'/%3E%3Crect x='36' y='6' width='16' height='16' fill='%23F7C51E' opacity='.35'/%3E%3Crect x='21' y='36' width='16' height='16' fill='%231E7FCB' opacity='.35'/%3E%3C/svg%3E"); }
.nq-footer { background: var(--sand); color: var(--muted); padding-top: 60px; font-size: 15px; }
.nq-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 36px; padding-bottom: 40px; }
.nq-footer__brand p { margin-top: 14px; max-width: 360px; }
.nq-footer h4 { font-size: 16px; color: var(--ink); margin-bottom: 14px; }
.nq-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nq-footer a { color: var(--muted); }
.nq-footer a:hover { color: var(--navy); }
.nq-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 20px; font-size: 14px; }
.nq-footer__tag { font-family: var(--f-en); font-weight: 700; color: var(--navy); direction: ltr; }
.nq-wa { position: fixed; bottom: 22px; inset-inline-start: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.2); z-index: 90; transition: transform .2s; }
.nq-wa:hover { transform: scale(1.08); }

/* =========================================================
   ACADEMY
   ======================================================= */
.nq-a-hero { position: relative; overflow: hidden; background: var(--navy); color: #d3dee7; padding-block: 90px 100px; }
.nq-a-hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M8 8h18v18H8z' fill='%23E2483D'/%3E%3Cpath d='M44 8h18v18H44z' fill='%23F7C51E'/%3E%3Cpath d='M26 44h18v18H26z' fill='%231E7FCB'/%3E%3Cpath d='M26 8h18v18H26z' fill='%230b1720'/%3E%3C/svg%3E"); opacity: .22; mask-image: linear-gradient(to left, #000, transparent); -webkit-mask-image: linear-gradient(to left, #000, transparent); }
.nq-a-hero .nq-wrap { position: relative; }
.nq-a-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.25; font-weight: 800; }
.nq-a-hero h1 em { font-style: normal; color: var(--gold); }
.nq-a-hero__lead { font-size: 19.5px; max-width: 640px; }
.nq-a-hero__cols { grid-template-columns: 1.2fr .8fr; }
.nq-a-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(245,180,25,.15); color: var(--gold); border: 1px solid rgba(245,180,25,.4); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.nq-a-card { background: #fff; color: var(--text); border-radius: var(--r); padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.nq-a-card h3 { font-size: 20px; }
.nq-a-card .wp-block-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; }
.nq-a-card .wp-block-list li:last-child { border: 0; }
.nq-strip { height: 14px; background: repeating-linear-gradient(90deg, var(--red) 0 28px, var(--ink) 28px 56px, var(--gold) 56px 84px, var(--ink) 84px 112px, var(--blue) 112px 140px, var(--ink) 140px 168px); }
.nq-tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nq-track { border-radius: var(--r); padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--blue); }
.nq-track:nth-child(2) { border-top-color: var(--gold); }
.nq-track:nth-child(3) { border-top-color: var(--red); }
.nq-track h3 { font-size: 21px; }
.nq-track p:last-child { margin: 0; color: var(--muted); }
.nq-track .nq-track__k { font-family: var(--f-en); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.nq-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.nq-how__step { text-align: center; padding: 26px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.nq-how__n { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: var(--navy); }
.nq-how__step:nth-child(2) .nq-how__n { background: var(--red); }
.nq-how__step:nth-child(3) .nq-how__n { background: var(--gold); color: var(--ink); }
.nq-how__step:nth-child(4) .nq-how__n { background: var(--blue); }
.nq-how__step h3 { font-size: 18px; }
.nq-how__step p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.nq-partner { grid-template-columns: auto 1fr; gap: 28px !important; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; }
.nq-partner .wp-block-image img { width: 120px; }
.nq-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; margin-bottom: 10px; }
.nq-faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.nq-faq details[open] summary { color: var(--navy); margin-bottom: 8px; }
.nq-faq .wp-block-details { margin: 0 0 10px; }

/* Course cards */
.nq-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nq-course { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.nq-course:hover { transform: translateY(-4px); box-shadow: var(--sh-h); }
.nq-course__media { position: relative; display: block; aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.nq-course__media img { width: 100%; height: 100%; object-fit: cover; }
.nq-course__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='4' y='4' width='10' height='10' fill='%23E2483D' opacity='.35'/%3E%3Crect x='24' y='4' width='10' height='10' fill='%23F7C51E' opacity='.3'/%3E%3Crect x='14' y='24' width='10' height='10' fill='%231E7FCB' opacity='.35'/%3E%3C/svg%3E"); color: #fff; }
.nq-course__ph em { font-style: normal; font-weight: 700; font-size: 14px; background: rgba(0,0,0,.25); padding: 3px 12px; border-radius: 999px; }
.nq-course__badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.nq-course__badge--full { background: var(--ink); inset-inline-start: auto; inset-inline-end: 12px; }
.nq-course__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.nq-course__title { font-size: 19px; line-height: 1.5; }
.nq-course__title a { color: var(--ink); }
.nq-course__desc { color: var(--muted); font-size: 15px; }
.nq-course__facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 14.5px; }
.nq-course__facts span { color: var(--muted); display: inline-block; min-width: 64px; }
.nq-course__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.nq-course__price, .nq-buy__price { font-weight: 800; color: var(--navy); font-size: 20px; }
.nq-course__price del, .nq-buy__price del { color: #9aa5ae; font-weight: 500; font-size: .75em; margin-inline-end: 6px; }
.nq-course__price ins, .nq-buy__price ins { text-decoration: none; }
.nq-course.is-full { opacity: .82; }
.nq-empty { text-align: center; background: var(--sand); border-radius: var(--r); padding: 48px 20px; }

/* Single course */
.nq-coursehead { background: var(--navy); color: #d3dee7; padding-block: 50px 56px; position: relative; overflow: hidden; }
.nq-coursehead::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 160px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect x='4' y='4' width='14' height='14' fill='%23E2483D'/%3E%3Crect x='28' y='4' width='14' height='14' fill='%23F7C51E'/%3E%3Crect x='16' y='28' width='14' height='14' fill='%231E7FCB'/%3E%3C/svg%3E"); opacity: .25; }
.nq-coursehead h1 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); max-width: 860px; }
.nq-coursehead__lead { max-width: 760px; font-size: 18px; }
.nq-coursehead--catalog p { max-width: 720px; font-size: 18px; }
.nq-crumbs { font-size: 14px; margin-bottom: 14px; }
.nq-crumbs a { color: var(--gold); }
.nq-pill { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.nq-course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-block: 40px 80px; align-items: start; }
.nq-facts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nq-facts li { background: var(--sand); border-radius: var(--r-sm); padding: 14px 16px; }
.nq-facts span { display: block; font-size: 13px; color: var(--muted); }
.nq-facts strong { color: var(--ink); font-size: 15.5px; }
.nq-course-side { position: sticky; top: 110px; }
.nq-buy { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); }
.nq-buy__price { font-size: 30px; margin-bottom: 6px; }
.nq-buy__seats { color: var(--red); font-weight: 600; font-size: 15px; }
.nq-buy form.cart { margin: 16px 0 !important; }
.nq-buy form.cart .quantity { display: none !important; }
.nq-buy form.cart button.single_add_to_cart_button { width: 100%; float: none !important; padding: 15px; font-size: 17px; }
.nq-buy__list { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14.5px; color: var(--muted); display: grid; gap: 8px; }
.nq-buy__list li { padding-inline-start: 22px; position: relative; }
.nq-buy__list li::before { content: "•"; position: absolute; inset-inline-start: 4px; color: var(--gold-d); font-weight: 800; }
.nq-buy__full { color: var(--red); font-weight: 600; }
.nq-full { background: var(--sand); padding: 18px; border-radius: var(--r-sm); }

/* WooCommerce checkout / account */
.nq-wc { padding-block: 40px 80px; }
.woocommerce form .form-row label { font-weight: 600; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea, .select2-container .select2-selection--single { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; min-height: 48px; font-family: var(--f); }
.woocommerce-checkout #customer_details { margin-bottom: 30px; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .col2-set .col-2:empty { display: none; }
@media (min-width: 961px) {
	form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
	form.woocommerce-checkout > * { grid-column: 1 / -1; }
	form.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; }
	form.woocommerce-checkout > #order_review_heading { grid-column: 2; grid-row: 2; }
	form.woocommerce-checkout > #order_review { grid-column: 2; grid-row: 3; }
}
.woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { background: var(--sand); }
.woocommerce-checkout #order_review_heading { margin: 0; padding: 20px 24px 0; border-radius: var(--r) var(--r) 0 0; }
.woocommerce-checkout #order_review { padding: 8px 24px 24px; border-radius: 0 0 var(--r) var(--r); }
.woocommerce table.shop_table { border-radius: var(--r-sm); background: #fff; }
.woocommerce-checkout #payment { background: #fff !important; border-radius: var(--r-sm) !important; }
.woocommerce-checkout #payment div.payment_box { background: var(--gold-l) !important; color: var(--ink) !important; border-radius: var(--r-sm); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--gold-l) !important; }
.woocommerce-checkout #place_order { width: 100%; padding: 16px; font-size: 18px; }
.nq-pay-info p { margin-bottom: 8px; }
.nq-pay-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.nq-pay-list li { display: flex; justify-content: space-between; gap: 10px; background: #fff; border-radius: 8px; padding: 9px 12px; }
.nq-next, .nq-receipt { background: var(--sand); border-radius: var(--r); padding: 24px 26px; margin: 20px 0; }
.nq-receipt form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--gold) !important; border-radius: var(--r-sm); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--gold-d) !important; }
.woocommerce-order-overview { padding: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: var(--r-sm); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--navy); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nq-menu a { padding: 8px 9px; font-size: 14.5px; }
	.nq-logos { grid-template-columns: repeat(4, 1fr); }
	.nq-steps, .nq-how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.nq-section { padding-block: 72px; }
	.nq-burger { display: block; }
	.nq-nav { display: none; position: fixed; inset: 78px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 22px; gap: 16px; overflow-y: auto; }
	.admin-bar .nq-nav { top: 124px; }
	.nq-topbar + .nq-header .nq-nav { top: 116px; }
	.nq-nav.is-open { display: flex; animation: nqIn .22s ease; }
	.nq-menu { flex-direction: column; align-items: stretch; }
	.nq-menu a { font-size: 18px; padding: 12px 14px; }
	.nq-nav__actions { flex-wrap: wrap; }
	.nq-hero__cols, .nq-about__cols, .nq-quote-layout, .nq-a-hero__cols, .nq-pillars, .nq-quotes { grid-template-columns: 1fr !important; }
	.nq-hero__img::before { display: none; }
	.nq-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.nq-stat:nth-child(3) { border-inline-start: 0; }
	.nq-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.nq-services, .nq-courses, .nq-tracks { grid-template-columns: repeat(2, 1fr); }
	.nq-gallery { grid-template-columns: repeat(2, 1fr); }
	.nq-cta__in, .nq-course-layout { grid-template-columns: 1fr; }
	.nq-cta__actions { justify-content: flex-start; }
	.nq-footer__grid { grid-template-columns: 1fr 1fr; }
	.nq-course-side, .nq-side-card { position: static; }
	.nq-a-hero::before { width: 100%; opacity: .1; }
}
@media (max-width: 782px) { .admin-bar .nq-header { top: 46px; } }
@media (max-width: 640px) {
	body { font-size: 16px; }
	.nq-wrap { padding-inline: 18px; }
	.nq-section { padding-block: 56px; }
	.nq-services, .nq-courses, .nq-tracks, .nq-steps, .nq-how, .nq-grid, .nq-checks, .nq-tabs, .nq-facts, .nq-footer__grid { grid-template-columns: 1fr; }
	.nq-logos { grid-template-columns: repeat(3, 1fr); }
	.nq-logos .wp-block-image { height: 84px; }
	.nq-form { padding: 22px; }
	.nq-partner { grid-template-columns: 1fr; }
	.nq-logo-img { height: 38px; }
	.nq-brand--academy strong { font-size: 18px; }
}
@keyframes nqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Accounts (shared Nietaq account) ---------- */
.nq-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nq-acc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.nq-acc:hover { background: var(--sand); }
.nq-auth { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 36px 32px; text-align: center; box-shadow: 0 12px 34px rgba(23, 61, 87, .07); }
.nq-auth__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-l); color: var(--navy); }
.nq-auth h3 { margin: 0 0 10px; font-size: 22px; color: var(--navy); }
.nq-auth p { max-width: 520px; margin: 0 auto 22px; color: var(--muted, #5b6876); }
.nq-auth__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nq-btn--outline { background: transparent !important; color: var(--navy) !important; border: 2px solid var(--navy) !important; }
.nq-btn--outline:hover { background: var(--navy) !important; color: #fff !important; }
.nq-auth__note { margin-top: 16px; font-size: 13px; color: #6b7785; }
.woocommerce-account .nq-wc { max-width: 1080px; margin-inline: auto; }
.woocommerce-account:not(.logged-in) .woocommerce > h2 { display: none; }
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.woocommerce-account .u-columns.col2-set .u-column1, .woocommerce-account .u-columns.col2-set .u-column2 { float: none; width: auto; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px 28px 10px; }
.woocommerce-account .u-columns.col2-set h2 { font-size: 21px; color: var(--navy); margin: 0 0 6px; }
.woocommerce-account .u-columns form.login, .woocommerce-account .u-columns form.register { border: 0 !important; padding: 0 !important; margin: 14px 0 0 !important; }
.woocommerce-account .u-columns .woocommerce-form-login__submit, .woocommerce-account .u-columns .woocommerce-form-register__submit { width: 100%; padding: 14px; font-size: 16px; }
.nq-auth-intro { background: var(--navy); color: #fff; border-radius: var(--r); padding: 22px 26px; margin-bottom: 26px; display: flex; gap: 18px; align-items: center; }
.nq-auth-intro strong { color: var(--gold); display: block; font-size: 18px; margin-bottom: 4px; }
.nq-auth-intro p { margin: 0; color: #d6e1ea; }
.nq-auth-intro .nq-mark { flex: none; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.nq-acc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.nq-acc-card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.nq-acc-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.nq-acc-card p { margin: 0 0 14px; color: #5b6876; font-size: 14px; }
.nq-acc-card--academy { border-top: 4px solid var(--gold); }
.nq-acc-card--consult { border-top: 4px solid var(--navy); }
.nq-req-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.nq-req-table th, .nq-req-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; font-size: 14px; }
.nq-req-table th { background: var(--sand); color: var(--navy); }
.nq-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--sand); color: var(--navy); }
.nq-badge--new { background: #e8f1fb; color: #1e5f9e; }
.nq-badge--won { background: #e7f7ee; color: #17703f; }
.nq-badge--lost { background: #fdecea; color: #a8322a; }
@media (max-width: 860px) {
	.woocommerce-account .u-columns.col2-set, .woocommerce-account .woocommerce, .nq-acc-cards { grid-template-columns: 1fr; }
}

/* account forms full width */
.woocommerce-account .u-columns .form-row { width: 100% !important; float: none !important; }
.woocommerce-account .u-columns .form-row-first, .woocommerce-account .u-columns .form-row-last { width: calc(50% - 8px) !important; display: inline-block; vertical-align: top; }
.woocommerce-account .u-columns .form-row-first { margin-inline-end: 12px; }
.woocommerce-account .u-columns input.input-text, .woocommerce-account .u-columns .password-input { width: 100% !important; box-sizing: border-box; }
.woocommerce-account .woocommerce-privacy-policy-text { font-size: 13px; color: #6b7785; }

/* badge below logo */
.nq-course__badge { top: auto; bottom: 14px; }
