/* SOURCE: assets/css/fonts.css */
/*
 * Alexandria — self-hosted variable font
 * Licensed under SIL Open Font License 1.1.
 */
@font-face {
    font-family: "Alexandria";
    src: url("../fonts/Alexandria-VariableFont_wght-arabic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: optional;
}


@font-face {
    font-family: "AkwamTech Arabic Fallback";
    src: local("Arial"), local("Tahoma"), local("Noto Sans Arabic"), local("sans-serif");
    size-adjust: 101%;
    ascent-override: 92%;
    descent-override: 24%;
    line-gap-override: 0%;
}

/* SOURCE: assets/css/design-system.css */
/*
 * AkwamTech Design System
 * Step 3 — Visual foundations only.
 * No homepage-specific layout is defined here.
 */

:root {
    /* Brand */
    --akw-color-brand-950: #03163f;
    --akw-color-brand-900: #06245f;
    --akw-color-brand-800: #07378c;
    --akw-color-brand-700: #0758c9;
    --akw-color-brand-600: #0060f0;
    --akw-color-brand-500: #1976ff;
    --akw-color-brand-100: #eaf3ff;
    --akw-color-brand-50: #f6f9ff;

    /* Section accents — micro accents only */
    --akw-color-android: #1f9d62;
    --akw-color-android-soft: #ecf9f2;
    --akw-color-windows: #1677ff;
    --akw-color-windows-soft: #eef5ff;
    --akw-color-internet: #7557d9;
    --akw-color-internet-soft: #f4f1ff;

    /* Neutral scale */
    --akw-color-white: #ffffff;
    --akw-color-gray-25: #fcfcfd;
    --akw-color-gray-50: #f8fafc;
    --akw-color-gray-100: #f1f5f9;
    --akw-color-gray-200: #e5eaf0;
    --akw-color-gray-300: #d5dce5;
    --akw-color-gray-400: #98a2b3;
    --akw-color-gray-500: #667085;
    --akw-color-gray-600: #475467;
    --akw-color-gray-700: #344054;
    --akw-color-gray-800: #1d2939;
    --akw-color-gray-900: #101828;

    /* Semantic */
    --akw-color-bg: var(--akw-color-white);
    --akw-color-surface: var(--akw-color-white);
    --akw-color-surface-soft: var(--akw-color-gray-50);
    --akw-color-text: #172033;
    --akw-color-text-muted: var(--akw-color-gray-600);
    --akw-color-heading: var(--akw-color-brand-950);
    --akw-color-link: var(--akw-color-brand-700);
    --akw-color-link-hover: var(--akw-color-brand-600);
    --akw-color-border: var(--akw-color-gray-200);
    --akw-color-focus: var(--akw-color-brand-600);

    /* Typography */
    --akw-font-family: "Alexandria", Tahoma, Arial, sans-serif;
    --akw-font-family-system: Tahoma, Arial, sans-serif;

    --akw-font-size-xs: 0.75rem;
    --akw-font-size-sm: 0.875rem;
    --akw-font-size-body: 1rem;
    --akw-font-size-md: 1.0625rem;
    --akw-font-size-lg: 1.125rem;
    --akw-font-size-xl: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);
    --akw-font-size-2xl: clamp(1.5rem, 1.3rem + 0.65vw, 2rem);
    --akw-font-size-3xl: clamp(1.875rem, 1.55rem + 1vw, 2.75rem);
    --akw-font-size-hero: clamp(2rem, 1.55rem + 1.75vw, 3.5rem);

    --akw-font-weight-regular: 400;
    --akw-font-weight-medium: 500;
    --akw-font-weight-semibold: 600;
    --akw-font-weight-bold: 700;

    --akw-line-height-tight: 1.25;
    --akw-line-height-heading: 1.4;
    --akw-line-height-body: 1.85;

    /* Spacing — 4px base */
    --akw-space-1: 0.25rem;
    --akw-space-2: 0.5rem;
    --akw-space-3: 0.75rem;
    --akw-space-4: 1rem;
    --akw-space-5: 1.25rem;
    --akw-space-6: 1.5rem;
    --akw-space-8: 2rem;
    --akw-space-10: 2.5rem;
    --akw-space-12: 3rem;
    --akw-space-14: 3.5rem;
    --akw-space-16: 4rem;
    --akw-space-20: 5rem;
    --akw-space-24: 6rem;

    /* Layout */
    --akw-container-max: 75rem; /* 1200px */
    --akw-content-max: 51.25rem; /* 820px */
    --akw-page-gutter: 1rem;
    --akw-section-space: clamp(3.5rem, 2.75rem + 2vw, 6rem);

    /* Radius */
    --akw-radius-sm: 0.625rem;
    --akw-radius-md: 0.875rem;
    --akw-radius-lg: 1.125rem;
    --akw-radius-xl: 1.5rem;
    --akw-radius-pill: 999px;

    /* Shadows */
    --akw-shadow-xs: 0 1px 2px rgba(3, 22, 63, 0.04);
    --akw-shadow-sm: 0 4px 16px rgba(3, 22, 63, 0.07);
    --akw-shadow-md: 0 12px 30px rgba(3, 22, 63, 0.09);

    /* Motion */
    --akw-transition-fast: 160ms ease;
    --akw-transition-base: 220ms ease;

    /* Controls */
    --akw-control-height: 3rem;
    --akw-control-height-lg: 3.5rem;
}

@media (min-width: 48rem) {
    :root {
        --akw-page-gutter: 1.5rem;
    }
}

@media (min-width: 64rem) {
    :root {
        --akw-page-gutter: 2rem;
    }
}

/* Base typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-block: 0 0.65em;
    color: var(--akw-color-heading);
    font-weight: var(--akw-font-weight-bold);
    line-height: var(--akw-line-height-heading);
    text-wrap: balance;
}

h1 { font-size: var(--akw-font-size-3xl); }
h2 { font-size: var(--akw-font-size-2xl); }
h3 { font-size: var(--akw-font-size-xl); }
h4 { font-size: var(--akw-font-size-lg); }

p {
    margin-block: 0 1em;
}

a {
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--akw-color-link-hover);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--akw-color-focus) 32%, transparent);
    outline-offset: 3px;
}

/* Reusable section rhythm */
.akw-section {
    padding-block: var(--akw-section-space);
}

.akw-section--soft {
    background: var(--akw-color-surface-soft);
}

.akw-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--akw-space-4);
    margin-bottom: var(--akw-space-8);
}

.akw-section__title {
    margin: 0;
    font-size: var(--akw-font-size-2xl);
}

.akw-section__description {
    max-width: 42rem;
    margin: var(--akw-space-2) 0 0;
    color: var(--akw-color-text-muted);
}

/* Buttons */
.akw-button {
    display: inline-flex;
    min-height: var(--akw-control-height);
    align-items: center;
    justify-content: center;
    gap: var(--akw-space-2);
    padding-inline: var(--akw-space-5);
    border: 1px solid transparent;
    border-radius: var(--akw-radius-md);
    font-weight: var(--akw-font-weight-semibold);
    line-height: 1;
    text-decoration: none;
    transition:
        background-color var(--akw-transition-fast),
        border-color var(--akw-transition-fast),
        color var(--akw-transition-fast),
        transform var(--akw-transition-fast);
}

.akw-button:hover {
    transform: translateY(-1px);
}

.akw-button--primary {
    background: var(--akw-color-brand-600);
    color: var(--akw-color-white);
}

.akw-button--primary:hover {
    background: var(--akw-color-brand-700);
    color: var(--akw-color-white);
}

.akw-button--secondary {
    border-color: var(--akw-color-border);
    background: var(--akw-color-white);
    color: var(--akw-color-brand-950);
}

.akw-button--secondary:hover {
    border-color: var(--akw-color-brand-200, #cfe2ff);
    background: var(--akw-color-brand-50);
}

/* Cards */
.akw-card {
    border: 1px solid var(--akw-color-border);
    border-radius: var(--akw-radius-lg);
    background: var(--akw-color-surface);
    box-shadow: var(--akw-shadow-xs);
    transition:
        border-color var(--akw-transition-base),
        box-shadow var(--akw-transition-base),
        transform var(--akw-transition-base);
}

.akw-card:hover {
    border-color: #cfd8e6;
    box-shadow: var(--akw-shadow-sm);
}

.akw-card__body {
    padding: var(--akw-space-6);
}

/* Form controls */
.akw-field,
.search-field {
    width: 100%;
    min-height: var(--akw-control-height-lg);
    border: 1px solid var(--akw-color-border);
    border-radius: var(--akw-radius-md);
    background: var(--akw-color-white);
    color: var(--akw-color-text);
    padding-inline: var(--akw-space-4);
    transition:
        border-color var(--akw-transition-fast),
        box-shadow var(--akw-transition-fast);
}

.akw-field::placeholder,
.search-field::placeholder {
    color: var(--akw-color-gray-400);
}

.akw-field:focus,
.search-field:focus {
    border-color: var(--akw-color-brand-600);
    box-shadow: 0 0 0 4px rgba(0, 96, 240, 0.09);
    outline: 0;
}

/* Meta text — available for article cards, not category entry cards */
.akw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--akw-space-2) var(--akw-space-4);
    color: var(--akw-color-text-muted);
    font-size: var(--akw-font-size-sm);
}

/* Utility primitives */
.akw-surface {
    background: var(--akw-color-surface);
}

.akw-surface--soft {
    background: var(--akw-color-surface-soft);
}

.akw-text-muted {
    color: var(--akw-color-text-muted);
}

.akw-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 47.99rem) {
    .akw-section__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: var(--akw-space-6);
    }

    .akw-card__body {
        padding: var(--akw-space-5);
    }

    .akw-button {
        min-height: 2.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


body.akw-system-font,
body.akw-system-font button,
body.akw-system-font input,
body.akw-system-font select,
body.akw-system-font textarea {
    font-family: Tahoma, Arial, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* SOURCE: assets/css/header.css */
/*
 * Step 4: Header
 */

.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(3, 22, 63, 0.07);
    background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
    min-height: 4.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--akw-space-8);
}

.site-branding {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-branding .custom-logo-link,
.site-branding__fallback {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-branding img,
.site-branding .custom-logo {
    display: block;
    width: auto;
    max-width: 12.5rem;
    max-height: 3.2rem;
    object-fit: contain;
}

.primary-navigation {
    justify-self: start;
}

.primary-menu,
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: var(--akw-space-2);
}

.primary-menu__item a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: var(--akw-space-2);
    padding-inline: var(--akw-space-3);
    border-radius: var(--akw-radius-md);
    color: var(--akw-color-gray-700);
    font-size: var(--akw-font-size-sm);
    font-weight: var(--akw-font-weight-semibold);
    text-decoration: none;
    transition:
        background-color var(--akw-transition-fast),
        color var(--akw-transition-fast);
}

.primary-menu__item a:hover {
    background: var(--akw-color-brand-50);
    color: var(--akw-color-brand-700);
}

.primary-menu__icon,
.mobile-menu__icon {
    display: inline-flex;
    width: 1.15rem;
    height: 1.15rem;
    color: currentColor;
}

.primary-menu__icon svg,
.mobile-menu__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--akw-space-2);
}

.header-icon-button {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--akw-color-border);
    border-radius: var(--akw-radius-md);
    background: var(--akw-color-white);
    color: var(--akw-color-brand-950);
    transition:
        background-color var(--akw-transition-fast),
        border-color var(--akw-transition-fast),
        color var(--akw-transition-fast);
}

.header-icon-button:not(:disabled):hover {
    border-color: #c9d9f5;
    background: var(--akw-color-brand-50);
    color: var(--akw-color-brand-700);
}

.header-icon-button:disabled {
    cursor: default;
    opacity: 0.42;
}

.header-icon-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle__close {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__open {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__close {
    display: inline-flex;
}

.header-search-panel {
    padding-block: 0 1rem;
}

.header-search-panel .search-form {
    max-width: 40rem;
    margin-inline-start: auto;
}

.mobile-menu-panel {
    padding-bottom: 1rem;
}

.mobile-menu {
    display: grid;
    gap: var(--akw-space-2);
}

.mobile-menu a {
    display: flex;
    min-height: 3rem;
    align-items: center;
    gap: var(--akw-space-3);
    padding-inline: var(--akw-space-4);
    border: 1px solid var(--akw-color-border);
    border-radius: var(--akw-radius-md);
    background: var(--akw-color-white);
    color: var(--akw-color-gray-800);
    font-weight: var(--akw-font-weight-semibold);
    text-decoration: none;
}

@media (max-width: 63.99rem) {
    .site-header__inner {
        gap: var(--akw-space-4);
    }

    .primary-navigation {
        display: none;
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .site-header__actions {
        justify-self: end;
    }

    .header-icon-button--desktop {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-grid;
    }
}

@media (max-width: 35.99rem) {
    .site-header__inner {
        min-height: 4.25rem;
    }

    .site-branding img,
    .site-branding .custom-logo {
        max-width: 9.75rem;
        max-height: 2.65rem;
    }

    .site-header__actions {
        gap: var(--akw-space-1);
    }

    .header-icon-button {
        width: 2.55rem;
        height: 2.55rem;
    }
}


/* Colored category icons — brand accents only */
.primary-menu__icon--android,
.mobile-menu__icon--android {
    color: var(--akw-color-android);
}

.primary-menu__icon--windows,
.mobile-menu__icon--windows {
    color: var(--akw-color-windows);
}

.primary-menu__icon--internet,
.mobile-menu__icon--internet {
    color: var(--akw-color-internet);
}


/* v1.2.4 — Header geometry stabilization */
@media (min-width: 64rem) {
    .site-header__inner {
        height: 4.75rem;
        min-height: 4.75rem;
    }

    .site-branding {
        width: 12.5rem;
        min-width: 12.5rem;
        min-height: 3.2rem;
    }

    .site-branding .custom-logo-link,
    .site-branding__fallback {
        width: 100%;
        min-height: 3.2rem;
    }

    .site-branding img,
    .site-branding .custom-logo {
        aspect-ratio: 260 / 98;
    }

    .primary-menu__item a {
        min-width: max-content;
    }
}

/* SOURCE: assets/css/theme-controls.css */
/*
 * Step 10: Ads + configurable footer
 */

.akw-ad {
    width: min(calc(100% - (var(--akw-page-gutter) * 2)), var(--akw-container-max));
    margin: clamp(1.75rem, 3vw, 3rem) auto;
    text-align: center;
}

.akw-ad__label {
    margin-bottom: .35rem;
    color: var(--akw-color-gray-400);
    font-size: .7rem;
}

.akw-ad__content {
    min-width: 0;
    overflow: hidden;
}

.akw-ad--desktop-only {
    display: block;
}

.akw-ad--mobile-only {
    display: none;
}

.site-footer {
    padding-block: clamp(3rem, 5vw, 5rem) 1.5rem;
    background: var(--akw-color-brand-950);
    color: rgba(255,255,255,.82);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, .7fr));
    gap: clamp(2rem, 4vw, 4rem);
}

.site-footer__logo {
    display: inline-flex;
    margin-bottom: var(--akw-space-4);
}

.site-footer__logo img {
    width: auto;
    max-width: 12rem;
    max-height: 3rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.site-footer__brand p {
    max-width: 28rem;
    color: rgba(255,255,255,.68);
    font-size: var(--akw-font-size-sm);
    line-height: 1.9;
}

.site-footer__email {
    color: #fff;
    font-weight: var(--akw-font-weight-semibold);
    text-decoration: none;
}

.site-footer__heading {
    margin: 0 0 var(--akw-space-4);
    color: #fff;
    font-size: 1rem;
}

.site-footer__links {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a,
.site-footer__socials a {
    color: rgba(255,255,255,.72);
    font-size: var(--akw-font-size-sm);
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__socials a:hover {
    color: #fff;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
}

.site-footer__bottom {
    margin-top: var(--akw-space-10);
    padding-top: var(--akw-space-5);
    border-top: 1px solid rgba(255,255,255,.11);
}

.site-copyright {
    margin: 0;
    color: rgba(255,255,255,.52);
    font-size: var(--akw-font-size-xs);
}

@media (max-width: 63.99rem) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 47.99rem) {
    .akw-ad--desktop-only {
        display: none;
    }

    .akw-ad--mobile-only {
        display: block;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--akw-space-8);
    }
}


/* Step 11: Ad stability and click-safety */
.akw-ad {
    padding-block: 1rem;
}

.akw-ad__content {
    display: grid;
    place-items: center;
}

/*
 * These minimums apply only when an enabled slot with actual code is rendered.
 * Disabled/empty slots still output nothing.
 */
.akw-ad--home_after_common .akw-ad__content,
.akw-ad--home_after_latest .akw-ad__content,
.akw-ad--home_between_categories .akw-ad__content,
.akw-ad--article_after_intro .akw-ad__content,
.akw-ad--article_mid_content .akw-ad__content,
.akw-ad--article_before_related .akw-ad__content {
    min-height: 250px;
}

.akw-ad--article_above_h1 .akw-ad__content {
    min-height: 100px;
}

@media (max-width: 47.99rem) {
    .akw-ad {
        padding-block: .85rem;
    }

    .akw-ad--home_after_common .akw-ad__content,
    .akw-ad--home_after_latest .akw-ad__content,
    .akw-ad--home_between_categories .akw-ad__content,
    .akw-ad--article_after_intro .akw-ad__content,
    .akw-ad--article_mid_content .akw-ad__content,
    .akw-ad--article_before_related .akw-ad__content,
    .akw-ad--article_above_h1 .akw-ad__content {
        min-height: 100px;
    }
}

/* SOURCE: style.css */
/*
Theme Name: AkwamTech
Theme URI: https://akwamtech.com/
Author: AkwamTech
Description: قالب ووردبريس عربي RTL مخصص لموقع أكوام تك، مبني للسرعة والسيو وقابلية التوسع.
Version: 1.2.5
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: akwamtech
Domain Path: /languages
*/

/* Design tokens live in assets/css/design-system.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    text-align: right;
    background: var(--akw-color-bg);
    color: var(--akw-color-text);
    font-family: var(--akw-font-family);
    font-size: var(--akw-font-size-body);
    line-height: var(--akw-line-height-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.akw-container {
    width: min(
        calc(100% - (var(--akw-page-gutter) * 2)),
        var(--akw-container-max)
    );
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;
    z-index: 100000;
    top: 8px;
    right: 8px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    margin: 0;
    clip: auto;
    background: #fff;
    color: #111827;
}
