/*
Theme Name: Yasmeen Ultralight Clean v2 - Green Edition
Theme URI: https://example.com/
Author: Danial / ChatGPT
Description: Clean theme styled with green/gray palette to match header & footer.
Version: 2.3.3
Text Domain: yasmeen-ultralight-clean-v2
*/

:root{
  --pink:#25D366;         /* الأخضر الأساسي */
  --pink-dark:#1f2937;    /* الغامق (رمادي أسود) */
  --pink-light:#bbf7d0;   /* أخضر فاتح */
  --gray-bg:#ffffff;      /* خلفية الموقع بيضاء */
  --gray-dark:#111827;    /* نصوص داكنة */
  --gray-mid:#6b7280;     /* رمادي متوسط */
  --green:#25D366;        /* واتساب */
  --white:#ffffff;

  --radius:16px;
  --shadow:0 6px 20px rgba(0,0,0,.08);
  --focus:0 0 0 3px rgba(37,211,102,.35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,Helvetica,Arial;
  color:var(--gray-dark);
  background:var(--gray-bg);
  line-height:1.7;
  padding-bottom:84px
}
a{color:var(--pink);text-decoration:none;font-weight:700}
a:hover{text-decoration:underline}
a:focus{outline:none;box-shadow:var(--focus);border-radius:10px}

.container{max-width:1180px;margin:0 auto;padding:0 16px}

/* ====== Breadcrumbs ====== */
.breadcrumbs {
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--gray-dark);
  font-weight: 500;
  transition: color .2s;
}
.breadcrumbs a:hover {
  color: var(--green);
  text-decoration: underline;
}
.breadcrumbs span.separator {
  margin: 0 8px;
  color: var(--green);
  opacity: 0.7;
}

/* ====== Logo in Navbar ====== */
.header .custom-logo{max-height:55px;width:auto;height:auto;display:block;margin:0 auto}
.header .custom-logo-link{display:flex;align-items:center;justify-content:center;height:100%}

/* ====== Buttons ====== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 16px;border-radius:999px;font-weight:800;
  box-shadow:var(--shadow);border:0;cursor:pointer;
  transition:transform .12s ease, background .3s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0) scale(.98)}

.btn.primary{background:var(--green);color:var(--white)}
.btn.call{background:linear-gradient(180deg,var(--pink-light),var(--green));color:var(--gray-dark)}
.btn.whatsapp{background:linear-gradient(180deg,#22c55e,#16a34a);color:var(--white)}
.btn.lang{background:var(--green);color:var(--white);border-radius:14px;padding:8px 14px;font-weight:800;box-shadow:none}

/* ====== Topbar ====== */
.topbar{
  background:var(--green);
  color:var(--white);
  font-weight:700;
}
.topbar .container{
  display:flex;justify-content:center;gap:10px;
  padding:8px 16px;flex-wrap:wrap
}
.topbar .btn{
  background: var(--white) !important;
  color: var(--green) !important;
  font-weight: 800;
  border-radius: 30px;
  padding: 6px 16px;
}
.topbar .btn:hover{
  background: var(--green) !important;
  color: var(--white) !important;
}

/* ====== Header / Navbar ====== */
.header{
  position:sticky;top:0;z-index:50;
  background:var(--white);backdrop-filter:saturate(180%) blur(6px);
  border-bottom:3px solid var(--green)
}
.nav-grid{display:grid;grid-template-columns:30% 20% 50%;align-items:center;padding:10px 0}
.nav-box{display:flex;align-items:center;justify-content:center;min-height:44px}
.lang-box{justify-content:flex-start}
.logo-box{justify-content:center}
.menu-box{justify-content:flex-end}

/* Brand */
.brand{display:flex;align-items:center;font-weight:900;color:var(--gray-dark);gap:10px;text-decoration:none}
.brand img{height:36px;width:auto}
.brand .text{font-size:1.1rem}

/* Desktop menu */
.menu{display:none;list-style:none;margin:0;padding:0;gap:20px}
.menu a{color:var(--gray-dark);font-weight:700;padding:8px 12px;border-radius:10px}
.menu a:hover{background:var(--pink-light);color:var(--pink-dark)}

/* ====== Burger Button ====== */
.burger {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none !important;
  border: none !important;
  outline: none !important;

  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  height: 3px;
  width: 26px;
  background: var(--green); /* الخطوط باللون الأخضر */
  border-radius: 3px;
  transition: all .3s ease;
}
.burger:hover,
.burger:focus {
  background: none !important;
  box-shadow: none !important;
}

/* ====== Mobile overlay + panel ====== */
.mobile-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:199}
.mobile-panel{display:none;position:fixed;inset:0;background:var(--white);z-index:200;padding:24px;overflow-y:auto}
.mobile-panel.open{display:block}
.mobile-overlay.open{display:block}
.mobile-panel a{display:block;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;color:var(--gray-dark);margin-top:10px}

/* ====== Cards / Tables / Notes ====== */
.card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin:18px 0}
.table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:14px;box-shadow:var(--shadow)}
.table thead th{background:var(--pink-light);font-weight:900}
.note{border-left:6px solid var(--green);background:#f0fdf4;padding:12px 14px;border-radius:12px}

/* ====== Footer ====== */
.footer{margin-top:40px;padding:24px 0;background:var(--pink-dark);color:var(--white);text-align:center}
.footer a{color:var(--green)}

/* ====== Bottom bar (Mobile CTA) ====== */
.bottom-bar{
  position:fixed;left:0;right:0;bottom:0;
  background:var(--green);z-index:70
}
.bottom-bar .container{display:grid;gap:10px;padding:10px 16px;grid-template-columns:1fr}
.bottom-bar .btn{width:100%;background:var(--white);color:var(--green);font-weight:900}

/* ====== Polylang list ====== */
.lang-list{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lang-list a{background:var(--green);color:var(--white);border-radius:10px;padding:6px 10px;font-weight:800}
.lang-list .current{display:none}
.lang-list img,.lang-list .sep{display:none}

/* Desktop */
@media(min-width:1024px){
  .menu{display:flex}
  .burger{display:none}
  .bottom-bar .container{grid-template-columns:1fr 1fr}
}

/* Responsive H1 */
h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.3;margin:.5em 0}

/* ====== Footer ====== */
.footer {
  margin-top: 60px;
  padding: 60px 0 30px;
  background: #f9f9f9;
  color: #333;
  font-size: 15px;
  line-height: 1.8;
  border-top: 3px solid #25D366;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: flex-start;
}

/* الكارت */
.footer-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* العناوين */
.footer h3 {
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #111;
  position: relative;
  text-align: center;
}

.footer h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #25D366;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* نصوص */
.footer p {
  margin: 6px 0;
  color: #555;
  text-align: center;
}

/* الروابط */
.footer a {
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #111;
  text-decoration: underline;
}

/* روابط الخدمات */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li::before {
  content: "✔";
  color: #25D366;
  margin-left: 6px;
}

/* اللوغو */
.footer-logo {
  text-align: center;
}
.footer-logo img {
  max-width: 140px;
  margin-bottom: 12px;
}

.footer .about {
  color: #444;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* ====== Bottom bar ====== */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  color: #777;
}

/* موبايل */
@media(max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Submenus ========== */
.menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  padding: 10px 0;
  z-index: 999;
  list-style: none;
}

@media (hover:hover) and (pointer:fine) {
  .menu li.menu-item-has-children {
    position: relative;
  }
  .menu li.menu-item-has-children:hover > .sub-menu {
    display: block;
  }
}

.menu .sub-menu .sub-menu {
  top: 0;
  right: 100%;
}

.mobile-menu .sub-menu {
  display: none;
  padding-left: 15px;
  position: static;
  background: transparent;
  box-shadow: none;
}
.mobile-menu li.open > .sub-menu {
  display: block;
}
