/* Base.css */
/* Apply globally */
body {
    font-family: 'RUAQArabic', sans-serif;
}

/* fonts.css */
/* -------------------------------
   Custom Arabic Font: RUAQ Arabic
-------------------------------- */
@font-face {
    font-family: 'RUAQArabic';
    src: url('../customFonts/RUAQARABIC-LIGHT.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'RUAQArabic';
    src: url('../customFonts/RUAQARABIC-MEDIUM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'RUAQArabic';
    src: url('../customFonts/RUAQARABIC-BOLD.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* hamburger.css */
/* ------------------------------
   Hamburger Menu
------------------------------ */
.hamburger {
  position: relative;
  width: 24px;
  height: 18px;
  cursor: pointer;
  display: block;
  z-index: 50;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Top / Middle / Bottom */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* Morph into X */
.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* main.css */


.hamburger span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  transform: translateY(-8px);
}

.hamburger span:nth-child(3) {
  transform: translateY(8px);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
  transition: all 0.3s ease;
}

/* Minimal entrance (no shapes, no gradients) */
@keyframes hero-fade-up {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card.is-visible {
    animation: hero-fade-up .7s ease-out both;
  }
}

/* Force WordPress custom logo size */
header .custom-logo {
  max-height: 56px;
  /* ~14 Tailwind units */
  max-width: 112px;
  /* ~28 Tailwind units */
  height: auto;
  width: auto;
}

/* menu.css */
/* ------------------------------
   Navigation Menu
------------------------------ */

.menu-root {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-root li {
    position: relative;
}

.menu-root a {
    display: inline-block;
    padding: 0.5rem 0;
    font-weight: 500;
    color: #1e293b;
    /* slate-800 */
    transition: color 0.2s ease;
}

.menu-root a:hover,
.menu-root a:focus {
    color: var(--brand-blue);
}

/* Submenu: hidden by default (NO display:none; works with CDN) */
.menu-root li ul {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    /* mt-1 */
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    min-width: 200px;
    list-style: none;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 50;
}

/* Show on hover/focus (desktop) */
.menu-root li:hover>ul,
.menu-root li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Submenu items */
.menu-root li ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    color: #334155;
    /* slate-700 */
    white-space: nowrap;
    border-radius: 6px;
}

.menu-root li ul li a:hover {
    background: #f1f5f9;
    /* slate-100 */
    color: var(--brand-blue);
}

/* --- Mobile overlay overrides (submenus stacked, toggled via .open) --- */
#mobileMenu .menu-root {
    flex-direction: column;
    gap: 1rem;
}

#mobileMenu .menu-root li ul {
    position: static;
    margin-top: 6px;
    box-shadow: none;
    border-radius: 8px;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    /* collapsed by default on mobile */
}

#mobileMenu .menu-root li.open>ul {
    display: block;
}

/* variables.css */
:root {
    --brand-green: #4CAF50;
    --brand-blue: #2B65D9;
    --accent-ylw: #FFD600;
}

