/*
Theme Name: AfraRasa Premium
Theme URI: https://afrarasa.com/
Author: Afra Ertebatat Sabet Rasa
Author URI: https://afrarasa.com/
Description: Ultra-premium custom theme for Afra Ertebatat Sabet Rasa — national Servco-licensed telecom operator. Built for representative onboarding and enterprise client acquisition.
Version: 6.3.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afrarasa-premium
Tags: custom-menu, custom-logo, rtl-language-support, translation-ready, accessibility-ready
*/

/* Tokens & palette live in assets/css/tokens.css + PHP inline injection. */

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ar-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ar-color-text);
  background:
    radial-gradient(ellipse 100% 70% at 100% -10%, rgba(160, 32, 112, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(161, 34, 115, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, var(--ar-color-bg) 0%, var(--ar-color-platinum) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ar-color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--ar-duration) var(--ar-ease);
}

a:hover,
a:focus-visible {
  color: var(--ar-color-logo);
}

a:focus-visible {
  outline: 2px solid var(--ar-color-accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--ar-space-sm);
  font-family: var(--ar-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ar-color-text);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 var(--ar-space-sm);
}

ul,
ol {
  margin: 0 0 var(--ar-space-sm);
  padding-inline-start: 1.25rem;
}

/* ==========================================================================
   Layout Shell
   ========================================================================== */

.ar-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ar-container {
  width: min(100% - 2rem, var(--ar-max-width));
  margin-inline: auto;
}

.ar-main {
  flex: 1;
  padding-block: var(--ar-space-xl);
}

/* ==========================================================================
   Header (base brand — glass layout in assets/css/header.css)
   ========================================================================== */

.ar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ar-space-sm);
  color: var(--ar-color-text);
  text-decoration: none;
  font-family: var(--ar-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ar-brand:hover,
.ar-brand:focus-visible {
  color: var(--ar-color-primary);
  text-decoration: none;
}

.ar-brand--logo .custom-logo {
  width: auto;
  height: 2.75rem;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.ar-brand__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: linear-gradient(145deg, var(--ar-color-primary), var(--ar-color-logo));
  color: var(--ar-color-accent-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ar-nav ul,
.ar-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Content
   ========================================================================== */

.ar-entry {
  max-width: 42rem;
}

.ar-entry__title {
  margin-bottom: var(--ar-space-md);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--ar-color-text);
}

.ar-entry__title a {
  color: inherit;
  text-decoration: none;
}

.ar-entry__title a:hover,
.ar-entry__title a:focus-visible {
  color: var(--ar-color-primary);
}

.ar-entry__meta {
  margin-bottom: var(--ar-space-md);
  color: var(--ar-color-text-muted);
  font-size: 0.875rem;
}

.ar-empty {
  padding: var(--ar-space-xl) 0;
  text-align: center;
  color: var(--ar-color-text-muted);
}

.ar-empty__title {
  margin-bottom: var(--ar-space-sm);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ar-color-text);
}

/* Footer styles live in assets/css/footer.css (carrier-grade dark shell). */

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  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 {
  top: var(--ar-space-sm);
  inset-inline-start: var(--ar-space-sm);
  z-index: 100000;
  display: block;
  width: auto;
  height: auto;
  padding: var(--ar-space-xs) var(--ar-space-sm);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--ar-color-primary);
  color: var(--ar-color-white);
  font-size: 0.875rem;
  text-decoration: none;
}
