/*
Theme Name: AR4HO
Theme URI: https://ar4ho.com
Author: AR4HO
Description: Modern, fast and accessible business theme for web hosting, web development and IT consulting companies. Works together with the AR4HO Core plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ar4ho
*/

:root {
	--a4-navy: #0b1b3a;
	--a4-navy-2: #10264f;
	--a4-blue: #2563eb;
	--a4-cyan: #06b6d4;
	--a4-amber: #f59e0b;
	--a4-ink: #1e293b;
	--a4-muted: #64748b;
	--a4-line: #e2e8f0;
	--a4-soft: #f4f7fb;
	--a4-radius: 16px;
	--a4-wrapw: 1200px;
	--a4-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: var(--a4-font); font-size: 1.0625rem; line-height: 1.7; color: var(--a4-ink); background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--a4-blue); }
h1, h2, h3, h4 { color: var(--a4-navy); line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 1rem; }
p { margin: 0 0 1.1rem; }
:focus-visible { outline: 3px solid var(--a4-cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--a4-navy); color: #fff; padding: .8rem 1.2rem; }
.skip-link:focus { left: 8px; top: 8px; }

.a4-wrap { width: min(100% - 2.5rem, var(--a4-wrapw)); margin-inline: auto; }
.a4-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.a4-section--soft { background: var(--a4-soft); }
.a4-section--dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(6, 182, 212, .25), transparent 60%), var(--a4-navy); color: #cbd5e1; }
.a4-section--dark h2, .a4-section--dark h3 { color: #fff; }
.a4-head { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.a4-head p:last-child { margin-bottom: 0; color: var(--a4-muted); }
.a4-eyebrow { display: inline-block; margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--a4-blue); }
.a4-section--dark .a4-eyebrow { color: var(--a4-cyan); }
.a4-center { text-align: center; margin-top: 2.5rem; }
.a4-mt { margin-top: 2rem; }
.a4-split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: center; }
.a4-split--top { align-items: start; }
.a4-panel { background: #fff; border: 1px solid var(--a4-line); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: 0 20px 40px -24px rgba(11, 27, 58, .3); }
.a4-panel--dark { background: var(--a4-navy); color: #cbd5e1; border: 0; }
.a4-panel--dark h3 { color: #fff; }
.a4-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.a4-checks li { position: relative; padding-inline-start: 2rem; }
.a4-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: linear-gradient(135deg, var(--a4-blue), var(--a4-cyan));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000, #000);
	-webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Top bar ---------- */
.a4-topbar { background: var(--a4-navy); color: #cbd5e1; font-size: .875rem; }
.a4-topbar .a4-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.a4-topbar a { color: #e2e8f0; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.a4-topbar a:hover { color: #fff; }
.a4-topbar .a4-ico { width: 1em; height: 1em; color: var(--a4-cyan); }
.a4-topbar__group { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Header ---------- */
.a4-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--a4-line); transition: box-shadow .25s; }
.a4-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(11, 27, 58, .4); }
.a4-header .a4-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.a4-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--a4-navy); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.a4-brand img { max-height: 48px; width: auto; }
.a4-brand__mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a4-blue), var(--a4-cyan)); font-size: 1.1rem; }
.a4-brand small { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--a4-muted); }

.a4-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.a4-nav a { display: block; padding: .6rem 1rem; border-radius: 999px; color: var(--a4-ink); text-decoration: none; font-weight: 600; font-size: .98rem; transition: background .2s, color .2s; }
.a4-nav a:hover { background: var(--a4-soft); color: var(--a4-blue); }
.a4-nav .current-menu-item > a, .a4-nav .current_page_item > a { background: rgba(37, 99, 235, .1); color: var(--a4-blue); }
.a4-header__cta { display: flex; align-items: center; gap: .75rem; }
.a4-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--a4-line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; }
.a4-burger span, .a4-burger::before, .a4-burger::after { content: ""; display: block; width: 20px; height: 2px; background: var(--a4-navy); margin: 5px auto; transition: transform .25s, opacity .25s; }
.a4-burger[aria-expanded="true"] span { opacity: 0; }
.a4-burger[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.a4-burger[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.a4-burger { display: block; }
	.a4-header__cta .a4-btn { display: none; }
	.a4-nav { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--a4-line); padding: .75rem 1.25rem 1.25rem; display: none; box-shadow: 0 24px 30px -20px rgba(11, 27, 58, .35); }
	.a4-nav.is-open { display: block; }
	.a4-nav ul { flex-direction: column; align-items: stretch; }
	.a4-nav a { padding: .85rem 1rem; border-radius: 12px; }
}

/* ---------- Hero ---------- */
.a4-hero { position: relative; overflow: hidden; color: #e2e8f0; padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem); background: radial-gradient(900px 500px at 90% 0%, rgba(6, 182, 212, .35), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(37, 99, 235, .45), transparent 60%), var(--a4-navy); }
.a4-hero::after { 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: 48px 48px; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); pointer-events: none; }
.a4-hero .a4-wrap { position: relative; z-index: 1; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.a4-hero__kicker { display: inline-flex; gap: .6rem; align-items: center; padding: .4rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem; }
.a4-hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.a4-hero h1 { margin: 0 0 1.2rem; color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -.03em; }
.a4-hero h1 span { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a4-hero p { font-size: 1.15rem; max-width: 56ch; }
.a4-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.a4-hero .a4-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.a4-hero .a4-btn--ghost:hover { background: #fff; color: var(--a4-navy) !important; }
.a4-hero__card { padding: 1.6rem; border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.a4-hero__card h2 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.a4-hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.a4-hero__list li { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; }
.a4-hero__list .a4-ico { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: linear-gradient(135deg, var(--a4-blue), var(--a4-cyan)); }
@media (max-width: 900px) { .a4-hero .a4-wrap { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.a4-pagehead { padding: clamp(3rem, 6vw, 5rem) 0; color: #cbd5e1; background: radial-gradient(800px 400px at 90% -20%, rgba(6, 182, 212, .3), transparent 60%), var(--a4-navy); }
.a4-pagehead h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.a4-crumbs { font-size: .9rem; margin: 0 0 .8rem; }
.a4-crumbs a { color: #93c5fd; text-decoration: none; }

/* ---------- Content ---------- */
.a4-content { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.a4-content--narrow > .a4-wrap { max-width: 800px; }
.a4-entry img { border-radius: 14px; }
.a4-entry > *:first-child { margin-top: 0; }
.a4-meta { color: var(--a4-muted); font-size: .92rem; margin-bottom: 1.5rem; }

/* Pages built with sections go full width */
.a4-page-full .a4-content { padding: 0; }
.a4-page-full .a4-wrap .a4-wrap { width: 100%; }

/* ---------- CTA band ---------- */
.a4-cta { text-align: center; }
.a4-cta h2 { margin-bottom: .6rem; }
.a4-cta p { max-width: 60ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.a4-news-band { padding: 3.5rem 0; background: linear-gradient(135deg, var(--a4-blue), #0891b2); color: #fff; text-align: center; }
.a4-news-band h2 { color: #fff; margin-bottom: 1.4rem; }
.a4-news-band .a4-btn { background: #fff; color: var(--a4-navy) !important; box-shadow: none; }
.a4-footer { background: var(--a4-navy); color: #94a3b8; font-size: .97rem; }
.a4-footer a { color: #cbd5e1; text-decoration: none; }
.a4-footer a:hover { color: #fff; }
.a4-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1.2fr; padding: 4rem 0 3rem; }
@media (max-width: 800px) { .a4-footer__grid { grid-template-columns: 1fr; padding: 3rem 0 2rem; } }
.a4-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1.1rem; }
.a4-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.a4-footer .a4-brand { color: #fff; margin-bottom: 1rem; }
.a4-footer .a4-brand small { color: #94a3b8; }
.a4-footer .a4-ico { width: 1.1em; height: 1.1em; color: var(--a4-cyan); vertical-align: -.2em; margin-inline-end: .5rem; }
.a4-footer .a4-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.a4-footer .a4-social { justify-content: flex-start; margin-top: 1rem; }
.a4-footer .a4-social .a4-ico { margin: 0; color: inherit; }
.a4-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .9rem; }
.a4-footer__bar .a4-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Posts list ---------- */
.a4-posts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.a4-pagination { margin-top: 2.5rem; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.a4-pagination .page-numbers { padding: .55rem 1rem; border: 1px solid var(--a4-line); border-radius: 10px; text-decoration: none; }
.a4-pagination .current { background: var(--a4-blue); color: #fff; border-color: var(--a4-blue); }

/* ---------- Scroll reveal ---------- */
.js .a4-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .a4-reveal.is-in { opacity: 1; transform: none; }

/* ---------- WooCommerce light touch ---------- */
.woocommerce ul.products li.product { border: 1px solid var(--a4-line); border-radius: var(--a4-radius); padding: 1rem; }
.woocommerce a.button, .woocommerce button.button { border-radius: 999px !important; background: var(--a4-blue) !important; color: #fff !important; }

/* ---------- RTL ---------- */
[dir="rtl"] .a4-link .a4-ico, [dir="rtl"] .a4-btn .a4-ico { transform: scaleX(-1); }
