/*
Theme Name: AR4HO MaintenancePro
Theme URI: https://ar4ho.com/maintenancepro
Author: AR4HO
Author URI: https://ar4ho.com
Description: Companion theme for the AR4HO MaintenancePro plugin — a modern, responsive, bilingual (English / Arabic, full RTL) theme for maintenance request portals. Smarter Maintenance. Faster Resolutions.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
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: ar4ho-mp-theme
Domain Path: /languages
Tags: rtl-language-support, translation-ready, custom-logo, custom-menu, one-column, full-width-template, accessibility-ready, business
*/

:root {
	--t-primary: #0E5FD8;
	--t-navy: #0B1B33;
	--t-navy-2: #12284A;
	--t-accent: #F5A524;
	--t-bg: #F3F5F9;
	--t-surface: #fff;
	--t-ink: #0F172A;
	--t-ink-2: #334155;
	--t-muted: #64748B;
	--t-line: #E3E8EF;
	--t-radius: 16px;
	--t-font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--t-max: 1200px;
}
html[dir="rtl"], html[lang^="ar"] { --t-font: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--t-font); font-size: 16px; line-height: 1.65; color: var(--t-ink); background: var(--t-bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--t-primary); }
a:hover { color: var(--t-navy); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--t-primary); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100000; inset-inline-start: 8px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 8px; }
.t-wrap { max-width: var(--t-max); margin-inline: auto; padding-inline: 24px; }

/* Header */
.t-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 27, 51, .96); backdrop-filter: blur(10px); color: #fff; }
.admin-bar .t-header { top: 32px; }
.t-header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.t-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 16px; white-space: nowrap; }
.t-logo:hover { color: #fff; }
.t-logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--t-primary); display: grid; place-items: center; flex: none; }
.t-logo__mark svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-logo strong { font-weight: 700; }
.t-logo img { max-height: 40px; width: auto; }
.t-nav { margin-inline-start: auto; }
.t-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.t-nav a { color: #C9D5E8; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; display: block; }
.t-nav a:hover, .t-nav .current-menu-item > a { color: #fff; background: rgba(255,255,255,.08); }
.t-actions { display: flex; align-items: center; gap: 10px; }
.t-lang { color: #C9D5E8; text-decoration: none; font-size: 13.5px; font-weight: 600; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px 10px; }
.t-lang:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.t-menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }
.t-menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Buttons */
.t-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .08s, filter .15s; font-family: inherit; }
.t-btn:active { transform: translateY(1px); }
.t-btn--primary { background: var(--t-primary); color: #fff; box-shadow: 0 8px 24px -10px var(--t-primary); }
.t-btn--primary:hover { color: #fff; filter: brightness(1.08); }
.t-btn--accent { background: var(--t-accent); color: #1E1300; }
.t-btn--accent:hover { color: #1E1300; filter: brightness(1.05); }
.t-btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.t-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.08); }
.t-btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.t-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.t-hero { background: var(--t-navy); color: #fff; position: relative; overflow: hidden; padding: 88px 0 120px; }
.t-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 15% 10%, rgba(14,95,216,.55), transparent 60%), radial-gradient(40% 60% at 90% 90%, rgba(245,165,36,.18), transparent 70%); }
.t-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 40%, transparent); }
.t-hero .t-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.t-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--t-accent); background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.25); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.t-eyebrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.t-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; margin-bottom: 18px; color: #fff; }
.t-hero h1 span { color: var(--t-accent); }
.t-hero p.lead { font-size: 18px; color: #C9D5E8; max-width: 540px; margin-bottom: 30px; }
.t-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.t-hero__panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 18px; backdrop-filter: blur(6px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.t-ticket { background: #fff; color: var(--t-ink); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.t-ticket:last-child { margin-bottom: 0; }
.t-ticket__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); flex: none; }
.t-ticket__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-ticket b { display: block; font-size: 14.5px; }
.t-ticket small { color: var(--t-muted); font-size: 12.5px; }
.t-ticket .t-pill { margin-inline-start: auto; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* Sections */
.t-section { padding: 88px 0; }
.t-section--tight { padding: 56px 0; }
.t-section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.t-section__head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.t-section__head p { color: var(--t-muted); font-size: 17px; }
.t-cats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: -60px; position: relative; z-index: 2; }
.t-cat { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 24px; box-shadow: 0 10px 30px -14px rgba(15,23,42,.18); text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; display: block; }
.t-cat:hover { transform: translateY(-3px); border-color: var(--c); color: inherit; }
.t-cat__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); margin-bottom: 16px; }
.t-cat__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-cat h3 { font-size: 18px; margin-bottom: 6px; }
.t-cat p { color: var(--t-muted); font-size: 14.5px; margin: 0; }
.t-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; counter-reset: s; }
.t-step { position: relative; padding-top: 56px; }
.t-step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; inset-inline-start: 0; font-size: 34px; font-weight: 700; color: var(--t-primary); opacity: .9; font-variant-numeric: tabular-nums; }
.t-step::after { content: ""; position: absolute; top: 22px; inset-inline-start: 64px; inset-inline-end: -12px; height: 2px; background: linear-gradient(90deg, var(--t-line), transparent); }
.t-step:last-child::after { display: none; }
.t-step h3 { font-size: 18px; }
.t-step p { color: var(--t-muted); font-size: 15px; }
.t-features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.t-feature { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 24px; }
.t-feature svg { width: 26px; height: 26px; fill: none; stroke: var(--t-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.t-feature h3 { font-size: 17px; margin-bottom: 6px; }
.t-feature p { color: var(--t-muted); font-size: 14.5px; margin: 0; }
.t-band { background: var(--t-navy); color: #fff; border-radius: 24px; padding: 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background-image: radial-gradient(60% 120% at 100% 0%, rgba(14,95,216,.55), transparent 60%); }
.t-band h2 { color: #fff; font-size: 30px; margin: 0; }
.t-band p { color: #C9D5E8; margin: 6px 0 0; }
.t-band .t-btn { margin-inline-start: auto; }

/* Content pages */
.t-main { min-height: 60vh; }
.t-page-head { background: var(--t-navy); color: #fff; padding: 56px 0 48px; }
.t-page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 0; }
.t-page-head .t-meta { color: #9DB0CC; font-size: 14px; margin-top: 8px; }
.t-content { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 40px; margin: -24px auto 64px; max-width: 860px; position: relative; }
.t-content > *:last-child { margin-bottom: 0; }
.t-content img { border-radius: 12px; }
.t-content blockquote { margin: 1.5em 0; padding: 4px 20px; border-inline-start: 4px solid var(--t-accent); color: var(--t-ink-2); }
.t-content pre { background: #0F172A; color: #E2E8F0; padding: 16px; border-radius: 10px; overflow-x: auto; direction: ltr; text-align: left; }
.t-posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; padding: 48px 0 64px; }
.t-post { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; display: flex; flex-direction: column; }
.t-post__img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; }
.t-post__body { padding: 20px; }
.t-post h2 { font-size: 19px; }
.t-post h2 a { color: var(--t-ink); text-decoration: none; }
.t-post time { color: var(--t-muted); font-size: 13px; }
.t-pagination { padding-bottom: 64px; display: flex; gap: 6px; justify-content: center; }
.t-pagination .page-numbers { padding: 8px 14px; background: #fff; border: 1px solid var(--t-line); border-radius: 8px; text-decoration: none; }
.t-pagination .current { background: var(--t-navy); color: #fff; border-color: var(--t-navy); }
.t-404 { text-align: center; padding: 100px 0; }
.t-404 b { font-size: 96px; display: block; color: var(--t-primary); line-height: 1; }

/* App template (full-bleed dashboard) */
.t-app-body { background: #F3F5F9; }
.t-app-body .t-app { min-height: 100vh; }
.t-app-body .t-app > .ar4ho-mp { min-height: 100vh; }
.t-app-missing { max-width: 640px; margin: 80px auto; padding: 32px; background: #fff; border-radius: 16px; border: 1px solid var(--t-line); text-align: center; }

/* Footer */
.t-footer { background: #08142A; color: #9DB0CC; padding: 48px 0 28px; font-size: 14px; }
.t-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.t-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.t-footer ul { list-style: none; margin: 0; padding: 0; }
.t-footer li { margin: 6px 0; }
.t-footer a { color: #C9D5E8; text-decoration: none; }
.t-footer a:hover { color: #fff; }
.t-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; }

/* WordPress core classes */
.alignleft { float: inline-start; margin-inline-end: 1.5em; }
.alignright { float: inline-end; margin-inline-start: 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: -60px; }
.alignfull { margin-inline: -40px; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--t-muted); }
.sticky, .bypostauthor, .gallery-caption { /* required classes */ }

/* Responsive */
@media (max-width: 960px) {
	.t-hero { padding: 56px 0 96px; }
	.t-hero .t-wrap { grid-template-columns: minmax(0,1fr); gap: 36px; }
	.t-cats, .t-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.t-step::after { display: none; }
	.t-features, .t-posts { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.t-footer__grid { grid-template-columns: 1fr 1fr; }
	.t-menu-toggle { display: grid; place-items: center; }
	.t-nav { position: absolute; top: 100%; inset-inline: 0; background: var(--t-navy); padding: 10px 16px 16px; display: none; border-top: 1px solid rgba(255,255,255,.08); }
	.t-nav.is-open { display: block; }
	.t-nav ul { flex-direction: column; }
	.t-actions { margin-inline-start: auto; }
	.t-actions .t-btn--sm { display: none; }
}
@media (max-width: 600px) {
	.t-wrap { padding-inline: 16px; }
	.t-cats, .t-features, .t-posts, .t-steps { grid-template-columns: minmax(0,1fr); }
	.t-section { padding: 64px 0; }
	.t-content { padding: 24px 18px; border-radius: 0; margin-top: 0; border-inline: 0; }
	.t-band { padding: 32px 24px; }
	.t-footer__grid { grid-template-columns: 1fr; }
	.alignwide, .alignfull { margin-inline: 0; }
}
@media (max-width: 782px) { .admin-bar .t-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .t-header { top: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
