/*
Theme Name: Anita Cleaning – Luxury Gold Light
Theme URI: https://anitacleaning.com/
Author: Danial / ChatGPT
Description: Elegant white–gold theme with aqua accent, smooth animations, RTL/LTR navbar with animated burger, and no CDNs.
Version: 1.0.0
Text Domain: anita-cleaning
*/

:root{
  --aqua:#00bcd4;
  --aqua-700:#0095a8;
  --blue:#007b9c;
  --green:#25D366;
  --dark:#3a2f0b;
  --bg:#fffdf8;
  --card:#ffffff;
  --radius:18px;
  --shadow:0 8px 22px rgba(160,120,0,.08);
  --focus:0 0 0 3px rgba(212,175,55,.3);
  --gold:#d4af37;
  --gold-light:#f6e8b1;
}


*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,Helvetica,Arial;
  background:linear-gradient(180deg,#fffefb 0%,#fffaf0 100%);
  color:var(--dark);
  line-height:1.7;
  padding-bottom:84px;
}
img{max-width:100%;height:auto;display:block}
.container{max-width:1180px;margin:0 auto;padding:0 16px}

/* Links unified with navbar */
a{color:#725f20;text-decoration:none;font-weight:700;position:relative;transition:color .25s,text-shadow .25s}
a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:linear-gradient(90deg,var(--gold),var(--aqua));transition:width .3s}
a:hover{color:var(--gold);text-shadow:0 0 6px rgba(212,175,55,.3)}
a:hover::after{width:100%}
a:focus{outline:none;box-shadow:var(--focus);border-radius:10px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:999px;font-weight:800;border:0;cursor:pointer;box-shadow:0 8px 18px rgba(212,175,55,.18);transition:transform .12s,box-shadow .25s}
.btn:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(212,175,55,.25)}
.btn.whatsapp{background:linear-gradient(180deg,#2dde66,#19a74b);color:#fff}
.btn.call{background:linear-gradient(180deg,var(--gold),#b99412);color:#fff}
.btn.lang{background:linear-gradient(180deg,#ffffff,#fff8e1);color:#725f20;border:1px solid rgba(212,175,55,.4)}

/* Topbar */
.topbar{background:linear-gradient(180deg,#fffef9,#fdf8e8);border-bottom:1px solid rgba(212,175,55,.35)}
.topbar .container{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:8px 16px}

/* Header / Navbar */
.header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.95);backdrop-filter:blur(8px) saturate(180%);border-bottom:1px solid rgba(212,175,55,.25);box-shadow:0 4px 18px rgba(212,175,55,.08)}
.logo-box img.custom-logo{max-height:58px;width:auto;display:block;filter:drop-shadow(0 3px 6px rgba(212,175,55,.25))}

.nav-grid{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 0}
.nav-box{display:flex;align-items:center;min-height:48px}
.logo-box{justify-content:center;flex:1}
.lang-box{gap:8px}
.menu-box{gap:10px;justify-content:flex-end}

/* Desktop menu */
.menu{display:flex;gap:16px;list-style:none;margin:0;padding:0;align-items:center}
.menu li{position:relative;white-space:nowrap}
.menu a{color:#725f20;font-weight:800;padding:10px 14px;border-radius:12px;transition:color .2s, background .2s}
.menu a:hover{background:linear-gradient(180deg,#fff8df,#fff);color:var(--gold)}
.menu li ul{display:none;position:absolute;top:100%;left:0;background:#fffef8;border:1px solid rgba(212,175,55,.25);border-radius:16px;box-shadow:0 6px 20px rgba(212,175,55,.18);min-width:220px;padding:10px 0;z-index:1000}
.menu li:hover>ul{display:block;animation:slideDown .35s ease}
.menu li ul a{display:block;padding:9px 14px;color:#6a5a1a}
.menu li ul a:hover{background:#fff8df;color:var(--gold)}

/* Burger */
.burger{display:none;flex-direction:column;justify-content:center;align-items:center;width:46px;height:38px;border-radius:10px;border:1px solid rgba(212,175,55,.4);background:#fff;cursor:pointer;transition:all .3s}
.burger span{height:2px;width:22px;background:#a98d1c;border-radius:2px;transition:all .3s}
.burger span:nth-child(2){margin:5px 0}
.burger.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger.active span:nth-child(2){opacity:0}
.burger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile overlay + panel */
.mobile-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:opacity .35s;z-index:99}
.mobile-overlay.open{display:block;opacity:.6}
.mobile-panel{display:none;position:fixed;inset:0;background:linear-gradient(180deg,#fffef9,#fffaf1);z-index:100;padding:24px;overflow-y:auto;border-top:4px solid var(--gold);opacity:0;transform:translateY(-10px);transition:opacity .4s, transform .4s}
.mobile-panel.open{display:block;opacity:1;transform:translateY(0)}
.mobile-menu li.menu-item-has-children ul{display:none;max-height:0;overflow:hidden;transition:max-height .4s}
.mobile-menu li.menu-item-has-children.open ul{display:block;max-height:320px}

/* Main / Card */
main{padding:24px 0}
.card{background:linear-gradient(180deg,#ffffff,#fffef8);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid rgba(212,175,55,.25);padding:24px;margin:22px 0;transition:transform .3s, box-shadow .3s}
.card:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(212,175,55,.15)}

/* Footer */
.footer{margin-top:40px;padding:40px 0;background:linear-gradient(180deg,#fffef8,#fff9e8);border-top:1px solid rgba(212,175,55,.3);box-shadow:inset 0 4px 12px rgba(212,175,55,.08);color:#5a490f}
.footer a{color:#725f20}
.footer a:hover{color:var(--gold)}

/* Bottom bar */
.bottom-bar{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(8px);border-top:1px solid rgba(212,175,55,.35);z-index:70}
.bottom-bar .container{display:grid;gap:10px;padding:10px 16px;grid-template-columns:1fr}
.bottom-bar .btn{width:100%}

/* Lang list */
.lang-list{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lang-list a{background:linear-gradient(180deg,#ffffff,#fff8df);color:#725f20;border-radius:10px;padding:6px 10px;font-weight:800;border:1px solid rgba(212,175,55,.25)}
.lang-list .current{display:none}

/* Responsive */
@media(min-width:1024px){
  .burger{display:none!important}
  .menu{display:flex!important;flex-wrap:nowrap}
}
@media(max-width:1023px){
  .menu{display:none}
  .burger{display:flex!important}
  /* RTL */
  html[dir="rtl"] .nav-grid{flex-direction:row-reverse!important}
  html[dir="rtl"] .lang-box{order:3;justify-content:flex-start}
  html[dir="rtl"] .logo-box{order:2;justify-content:center;flex:1}
  html[dir="rtl"] .menu-box{order:1;justify-content:flex-end;direction:ltr!important}
  /* LTR */
  html[dir="ltr"] .nav-grid{flex-direction:row!important}
  html[dir="ltr"] .lang-box{order:1;justify-content:flex-start}
  html[dir="ltr"] .logo-box{order:2;justify-content:center;flex:1}
  html[dir="ltr"] .menu-box{order:3;justify-content:flex-end}
  .bottom-bar .container{grid-template-columns:1fr;gap:12px;padding:12px 16px}
}

/* Breadcrumbs */
.breadcrumbs{background:linear-gradient(180deg,#fff,#fbfaf2);padding:10px 16px;border-radius:999px;font-size:.95rem;font-weight:700;color:var(--dark);box-shadow:0 2px 0 rgba(212,175,55,.2), var(--shadow);margin:16px 0;display:inline-block;border:1px solid #efe9d5}
.breadcrumbs a{color:#725f20}
.breadcrumbs a:hover{color:var(--gold)}
.breadcrumbs .separator{margin:0 8px;color:#8b8b8b}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ظهور سلس بدون إخفاء دائم */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: slideDown 0.6s ease both;
}

/* إذا أضيفت .in بالـ JS، تحافظ على نفس الحركة */
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* ===============================
   📱 Mobile Menu Gold Edition
================================= */

.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 380px;
  height: 100vh;
  background: linear-gradient(145deg, #fffaf1 0%, #fff4dc 100%);
  box-shadow: -6px 0 25px rgba(122, 88, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.45s ease, opacity 0.4s;
  opacity: 0;
  z-index: 99999;
  padding: 25px 22px;
  overflow-y: auto;
  border-left: 3px solid #d1b455;
  border-radius: 40px 0 0 40px;
}

.mobile-panel.open {
  transform: translateX(0);
  opacity: 1;
}

/* خلفية التعتيم */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* العنوان و زر الإغلاق */
.mobile-panel .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mobile-panel .top strong {
  color: #6b5200;
  font-size: 22px;
  font-weight: 700;
}
.mobile-panel .top .btn.call {
  background: #b9921b;
  color: #fff;
  border-radius: 18px;
  font-weight: 600;
  padding: 6px 20px;
  box-shadow: 0 4px 10px rgba(185, 146, 27, 0.3);
}

/* 🔹 العناصر الرئيسية */
.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu > li {
  border-bottom: 1px solid rgba(145, 118, 0, 0.1);
}
.mobile-menu > li > a {
  display: block;
  padding: 12px 10px;
  color: #5e4500;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.mobile-menu > li > a:hover {
  color: #b68c0c;
  text-shadow: 0 0 2px rgba(182, 140, 12, 0.3);
  transform: translateX(-4px);
}

/* 🔸 القوائم الفرعية */
.mobile-menu li.menu-item-has-children > a::after {
  content: '▾';
  float: left;
  font-size: 14px;
  color: #b68c0c;
  transition: transform 0.3s;
}
.mobile-menu li.open > a::after {
  transform: rotate(180deg);
}

.mobile-menu ul {
  display: none;
  list-style: none;
  padding-right: 15px;
  margin: 0;
  background: linear-gradient(90deg, #fff7e1 0%, #fffdf7 100%);
  border-right: 2px solid #e6c770;
  border-radius: 0 16px 16px 0;
  box-shadow: inset 0 3px 6px rgba(214, 180, 75, 0.15);
}
.mobile-menu li.open > ul {
  display: block;
  animation: slideDown 0.35s ease;
}
.mobile-menu ul li a {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  color: #7a5a00;
  transition: 0.3s;
}
.mobile-menu ul li a:hover {
  color: #d6a315;
  text-shadow: 0 0 2px rgba(214, 163, 21, 0.4);
}

/* حركة فتح القوائم الفرعية */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تحسين التمرير */
.mobile-panel::-webkit-scrollbar {
  width: 6px;
}
.mobile-panel::-webkit-scrollbar-thumb {
  background: #d6a315;
  border-radius: 10px;
}
.mobile-panel::-webkit-scrollbar-track {
  background: #fff8e5;
}
/* ========================================
   ✅ Fix: Chrome Lighthouse Deprecated API
   بدون CDN - متوافق مع Blink/Chromium 2025
======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark, #4a3a00);
}

h1 {
  font-size: clamp(24px, 3vw, 32px);
}

section h1, article h1, main h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
}

body {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-synthesis: none;
  text-rendering: optimizeSpeed;
}

/* إجبار المتصفح على تجاهل user agent stylesheet */
:root {
  font-size: 16px;
  font-family: "Tajawal", "Cairo", Arial, sans-serif;
}


:root{
  --aqua:#00bcd4;
  --aqua-700:#0095a8;
  --blue:#007b9c;
  --green:#25D366;
  --dark:#3a2f0b;
  --bg:#fffdf8;
  --card:#ffffff;
  --radius:18px;
  --shadow:0 8px 22px rgba(160,120,0,.08);
  --focus:0 0 0 3px rgba(212,175,55,.3);
  --gold:#d4af37;
  --gold-light:#f6e8b1;
}

.footer{
  background: var(--bg);
  color: var(--dark);
  padding: 46px 0 18px;
  border-top: 1px solid rgba(160,120,0,.12);
}

.footer-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.footer-card{
  grid-column: span 4;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(212,175,55,.22);
  padding: 16px;
  position: relative;
  overflow:hidden;
}

.footer-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(850px 220px at 20% 0%, rgba(0,188,212,.10), transparent 60%),
    radial-gradient(850px 220px at 80% 0%, rgba(212,175,55,.14), transparent 55%);
  pointer-events:none;
}

.card-title{ margin:0 0 10px; position:relative; z-index:1; }
.service-title-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight: 900;
  color: var(--dark);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,188,212,.14), rgba(0,123,156,.10));
  border: 1px solid rgba(0,188,212,.22);
}

.service-title-link:hover{ border-color: rgba(0,188,212,.40); }
.service-title-link:focus{ outline:none; box-shadow: var(--focus); }

.card-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
  position:relative;
  z-index:1;
}

.card-links a{
  display:block;
  text-decoration:none;
  color: #2b240f;
  font-size:14px;
  line-height:1.35;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,.18);
  background: rgba(246,232,177,.24);
}

.card-links a:hover{
  border-color: rgba(212,175,55,.35);
  background: rgba(246,232,177,.34);
}

.card-links a:focus{ outline:none; box-shadow: var(--focus); }

.footer-copy{
  text-align:center;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(160,120,0,.12);
  font-size: 13px;
  opacity: .85;
}

@media (max-width: 992px){
  .footer-card{ grid-column: span 6; }
}
@media (max-width: 600px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-card{ grid-column: span 12; }
}

/* Bottom bar */
.bottom-bar{
  position: sticky;
  bottom: 0;
  z-index: 999;
  background: rgba(255,253,248,.92);
  border-top: 1px solid rgba(160,120,0,.18);
  backdrop-filter: blur(10px);
  padding: 10px 0;
}
.bottom-bar-inner{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.bottom-bar .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 900;
  min-width: 140px;
  border: 1px solid rgba(0,0,0,.08);
}
.bottom-bar .btn-whatsapp{
  background: rgba(37,211,102,.14);
  border-color: rgba(37,211,102,.32);
  color: #0e3a22;
}
.bottom-bar .btn-call{
  background: rgba(0,188,212,.14);
  border-color: rgba(0,188,212,.32);
  color: #083943;
}
.bottom-bar .btn:focus{ outline:none; box-shadow: var(--focus); }
