/*
Theme Name: alfouad theme
Theme URI: https://al-fouad.net/
Author: Al-Fouad Dev
Description: قالب ووردبريس احترافي مخصص (al-fouad.net) فائق السرعة (Mobile-First) مع تخصيص كامل لكل قسم في الصفحة الرئيسية، إدارة Schema والمدن والأسئلة الشائعة، تخصيص القوائم والفوتر، منع التمدد الأفقي على الجوال، والتحكم الكامل في الشريط السفلي العائم.
Version: 3.0.0
Text Domain: alfouad-theme
Tags: rtl-language-support, custom-colors, custom-menu, featured-images, local-business
*/

:root {
  --af-primary: #123365;
  --af-primary-light: #1c4a8f;
  --af-secondary: #067652;
  --af-secondary-light: #099668;
  --af-bg: #F1EDE5;
  --af-white: #FFFFFF;
  --af-text: #1a202c;
  --af-muted: #5a6577;
  --af-border: #dfd9ce;
  --af-radius: 12px;
  --af-shadow: 0 4px 20px rgba(18, 51, 101, 0.07);
  --af-container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background-color: var(--af-bg);
  color: var(--af-text);
  direction: rtl;
  line-height: 1.75;
}

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

a {
  color: var(--af-primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.container {
  width: 92%;
  max-width: var(--af-container);
  margin-inline: auto;
}

.sr-only, .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--af-primary);
  color: var(--af-white);
}
.btn-primary:hover {
  background: var(--af-primary-light);
  color: var(--af-white);
}
.btn-secondary, .btn-whatsapp {
  background: var(--af-secondary);
  color: var(--af-white);
}
.btn-secondary:hover, .btn-whatsapp:hover {
  background: var(--af-secondary-light);
  color: var(--af-white);
}
.btn-outline {
  background: transparent;
  color: var(--af-primary);
  border: 2px solid var(--af-primary);
}
.btn-outline:hover {
  background: var(--af-primary);
  color: var(--af-white);
}
.btn-block {
  width: 100%;
  margin-bottom: 0.65rem;
}

/* Top Bar & Header */
.top-announcement-bar {
  background: var(--af-primary);
  color: var(--af-white);
  font-size: 0.86rem;
  padding: 0.45rem 0;
}
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.top-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.top-bar-links ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.top-bar-links a {
  color: var(--af-bg);
  font-weight: 700;
}

.site-header {
  background: var(--af-white);
  border-bottom: 1px solid var(--af-border);
  z-index: 990;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.site-header.is-sticky {
  position: sticky;
  top: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--af-primary);
}
.custom-logo {
  max-height: 52px;
  width: auto;
}
.menu-toggle {
  background: var(--af-bg);
  border: 1px solid var(--af-border);
  border-radius: 8px;
  padding: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.hamburger-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--af-primary);
  position: relative;
}
.hamburger-icon::before, .hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--af-primary);
}
.hamburger-icon::before { top: -6px; }
.hamburger-icon::after { top: 6px; }

.main-navigation {
  display: none;
  width: 100%;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--af-border);
}
.main-navigation.is-open {
  display: block;
}
.main-navigation ul {
  list-style: none;
  margin-bottom: 1rem;
}
.main-navigation li a {
  display: block;
  padding: 0.6rem 0;
  color: var(--af-text);
  font-weight: 700;
}
.main-navigation li a:hover {
  color: var(--af-secondary);
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .main-navigation {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
    gap: 1.5rem;
  }
  .main-navigation ul {
    display: flex;
    gap: 1.25rem;
    margin: 0;
  }
  .main-navigation li a { padding: 0; }
}

/* Breadcrumb */
.af-breadcrumb {
  background: var(--af-white);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--af-muted);
  border-bottom: 1px solid var(--af-border);
}
.af-breadcrumb a {
  color: var(--af-primary);
  font-weight: 600;
}
.af-breadcrumb span {
  color: var(--af-secondary);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--af-primary);
  color: var(--af-white);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-heading {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--af-bg);
  margin-bottom: 1rem;
}
.footer-col p, .footer-col li {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.92);
}
.footer-col a:hover {
  color: var(--af-bg);
  text-decoration: underline;
}
.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.footer-city-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.footer-social-btn:hover {
  background: var(--af-secondary);
  color: #fff;
  text-decoration: none;
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.22);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Sticky Mobile Bar */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  z-index: 999;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.15);
}
.mobile-sticky-cta a {
  flex: 1;
  padding: 0.9rem;
  text-align: center;
  color: var(--af-white);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sticky-call { background: var(--af-primary); }
.sticky-wa { background: var(--af-secondary); }

@media (min-width: 768px) {
  .mobile-sticky-cta.mobile-only { display: none; }
}
@media (max-width: 767px) {
  .site-footer.has-sticky-bar { padding-bottom: 3.6rem; }
}
