/*
Theme Name: أرض لكش
Theme URI: https://aredlakash.iq
Author: أرض لكش
Author URI: https://aredlakash.iq
Description: ثيم ورد بريس مخصص لشركة أرض لكش للتجهيزات الكهربائية في بغداد. يدير المدير السلايدر، الخدمات، المزايا، ومعلومات التواصل من لوحة التحكم مباشرة دون الحاجة لمبرمج.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ared-lakash
*/

/* =========================================================
   أرض لكش — Ared Lakash
   Design tokens
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Tajawal:wght@300;400;500;700&display=swap');

:root{
  --ink:        #12261f;   /* near-black green, for body text */
  --brand-dark: #17493a;   /* deep teal-green, from logo */
  --brand-mid:  #2c6b52;
  --brand-light:#86c440;   /* lime green, from logo */
  --paper:      #f7f7f2;   /* warm off-white background */
  --paper-deep: #eef0e7;   /* slightly deeper panel tone */
  --ash:        #56635a;   /* muted green-grey for secondary text */
  --line:       #dde2d7;   /* hairline border */
  --white:      #ffffff;

  --font-head: 'Cairo', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'Cairo', sans-serif;

  --container: 1140px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
html[dir="rtl"]{ direction: rtl; }
html[dir="ltr"]{ direction: ltr; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a{ color:inherit; text-decoration:none; }

.wrap{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1,h2,h3{
  font-family: var(--font-head);
  color: var(--brand-dark);
  margin: 0;
  line-height: 1.3;
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3{ font-size: 1.15rem; font-weight: 700; }

p{ margin: 0 0 1em; }

.lede{
  color: var(--ash);
  font-size: 1.08rem;
  max-width: 46ch;
}

:focus-visible{
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}

/* ---------- header : two-tier (brand row + nav bar) ---------- */
.site-header{ position: sticky; top:0; z-index:40; }

.brand-row{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand-row .wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand img{ height:auto; max-height:50px; width:auto; max-width:190px; }
.brand .custom-logo{ height:auto; max-height:50px; width:auto; max-width:190px; }
img.custom-logo, .custom-logo-link img{
  height:auto !important;
  max-height:50px !important;
  width:auto !important;
  max-width:190px !important;
}
.brand span{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-dark);
}

.phone-dropdown{ position: relative; }

.phone-dropdown-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .18s ease;
}
.phone-dropdown-toggle:hover{ filter: brightness(1.08); }
.phone-dropdown-toggle svg{ width:19px; height:19px; flex-shrink:0; color: var(--white); }
.phone-dropdown-menu{
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(18,38,31,.16);
  padding: 6px;
  display: none;
  z-index: 60;
}
.phone-dropdown.open .phone-dropdown-menu{ display: block; }

.phone-dropdown-menu a{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 700;
  color: var(--brand-dark);
}
.phone-dropdown-menu a:hover{ background: var(--paper-deep); }
.phone-dropdown-menu a small{
  font-weight: 400;
  color: var(--ash);
  font-size: .78rem;
  font-family: var(--font-body);
}

.mobile-phone-dropdown{ display:none; }
.mobile-call-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-call-btn svg{ width:18px; height:18px; }
.mobile-phone-dropdown .phone-dropdown-menu{ inset-inline-start:auto; inset-inline-end:0; }

.nav-bar{
  background: var(--brand-dark);
}
.nav-bar .wrap{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  gap: 20px;
  position: relative;
}

.main-nav{
  display:flex;
  align-items:center;
  gap: 4px;
}
.main-nav ul{ list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:4px; }
.main-nav li{ list-style:none; }
.main-nav a{
  display:block;
  font-weight: 500;
  color: #e7efe4;
  font-size: .98rem;
  padding: 15px 18px;
  border-bottom: 3px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{
  background: rgba(255,255,255,.06);
  border-color: var(--brand-light);
  color: var(--white);
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid rgba(255,255,255,.35);
  border-radius:6px;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width:20px;
  height:2px;
  background: var(--white);
  position:relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* ---------- slider (hero) ---------- */
.slider{
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
}

.slide{
  display: none;
  position: relative;
}
.slide.is-active{ display: block; }

.slide-bg{
  position:absolute;
  inset:0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28% 100%);
  background-size: cover;
  background-position: center;
}
.slide-bg::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 15% 90%, rgba(255,255,255,.10), transparent 55%);
}

.slide-inner{
  position:relative;
  z-index:2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  align-items:center;
  gap: 30px;
}

.slide-copy{ color: var(--white); }
.slide-tag{
  display:inline-block;
  color: var(--brand-light);
  font-weight:700;
  font-size: .95rem;
  margin-bottom: 14px;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--brand-light);
}
.slide-copy h1, .slide-copy h2{
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 16px;
}
.slide-copy p{
  color: #d9e6d3;
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 26px;
}

.slide-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 5px;
  border: 2px solid var(--white);
  transition: background .18s ease, color .18s ease;
}
.slide-btn:hover{ background: transparent; color: var(--white); }

.slide-art{ display:flex; align-items:center; justify-content:center; }
.slide-art svg{ width:100%; max-width: 340px; height:auto; }

.slide-corner{
  position:absolute;
  bottom: 20px;
  inset-inline-end: 24px;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  font-weight:600;
  z-index:2;
}

.slider-dots{
  position:absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display:flex;
  gap: 9px;
}
.slider-dots button{
  width:10px; height:10px;
  border-radius:50%;
  border: 1.5px solid var(--white);
  background: transparent;
  padding:0;
  cursor:pointer;
}
.slider-dots button.is-active{ background: var(--white); }

.phone-list{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
}
.phone-pill{
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-dark);
  transition: border-color .18s ease, transform .18s ease;
}
.phone-pill:hover{ border-color: var(--brand-light); transform: translateY(-1px); }
.phone-pill svg{ width:18px; height:18px; color: var(--brand-light); flex-shrink:0; }
.phone-pill small{
  display:block;
  font-weight:400;
  color: var(--ash);
  font-size: .74rem;
  font-family: var(--font-body);
}

/* ---------- intro strip ---------- */
.intro{
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.intro .wrap{
  display:block;
}
.intro-body p{ color: var(--ash); max-width: 62ch; margin: 0; }

/* ---------- services list ---------- */
.section{ padding: 76px 0; }
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.section-head .lede{ margin:0; }

.service-list{
  list-style:none;
  margin:0; padding:0;
}
.service-row{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items:flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-child{ padding-top:0; }
.service-icon{
  width:56px; height:56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--white);
}
.service-icon svg{ width:26px; height:26px; color: var(--brand-dark); }
.service-row h3{ margin-bottom:6px; }
.service-row p{ color: var(--ash); margin:0; max-width: 62ch; }

/* ---------- values / trust list ---------- */
.values{
  background: var(--brand-dark);
  color: var(--white);
}
.values h2{ color: var(--white); }
.values .lede{ color: #cfe3d3; }
.values-grid{
  margin-top: 36px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.value-item{
  padding: 28px 24px;
  border-inline-end: 1px solid rgba(255,255,255,.18);
}
.value-item:last-child{ border-inline-end:none; }
.value-item .mark{
  display:inline-block;
  width: 26px;
  height: 3px;
  background: var(--brand-light);
  margin-bottom: 16px;
}
.value-item h3{ color: var(--white); margin-bottom: 8px; }
.value-item p{ color: #cfe3d3; margin:0; font-size:.98rem; }

/* ---------- cta banner ---------- */
/* ---------- products ---------- */
.products-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.product-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.product-card:hover{
  box-shadow: 0 12px 26px rgba(18,38,31,.10);
  transform: translateY(-3px);
  border-color: var(--brand-light);
}
.product-thumb{
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.product-thumb-placeholder{ display:flex; align-items:center; justify-content:center; }
.product-thumb-placeholder svg{ width:40px; height:40px; color: var(--ash); }
.product-body{ padding: 14px 16px 18px; }
.product-body h3{
  font-size: .98rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 8px;
  line-height: 1.45;
}
.product-price{
  display:inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(134,196,64,.16);
  padding: 3px 11px;
  border-radius: 999px;
}

.cta-banner{
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.cta-banner .wrap{
  padding: 52px 24px;
  display:flex;
  flex-wrap:wrap;
  gap: 24px;
  justify-content: space-between;
  align-items:center;
}
.cta-text h2{ margin-bottom:6px; }
.cta-text p{ color: var(--ash); margin:0; }

/* ---------- about page specifics ---------- */
.page-hero{
  padding: 54px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero .lede{ margin-top: 14px; }

.story .wrap{
  display:grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
}
.story-label{
  font-family: var(--font-head);
  font-weight:700;
  color: var(--brand-dark);
}
.story-body p{ color: var(--ash); max-width: 66ch; }

.contact-block{
  background: var(--paper-deep);
  border-top:1px solid var(--line);
}
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:start;
}
.contact-item{ margin-bottom: 22px; }
.contact-item .k{
  font-size: .82rem;
  color: var(--ash);
  margin-bottom: 4px;
}
.contact-item .v{
  font-weight:700;
  font-size: 1.1rem;
  color: var(--brand-dark);
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--ink);
  color: #dfe6de;
  padding: 46px 0 22px;
}
.footer-top{
  display:flex;
  flex-wrap:wrap;
  gap: 32px;
  justify-content:space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand{ display:flex; align-items:center; gap:10px; }
.footer-brand img, .footer-brand .custom-logo{ height:auto; max-height:38px; width:auto; max-width:150px; }
.footer-brand img.custom-logo, .footer-brand .custom-logo-link img{
  max-height:38px !important;
  max-width:150px !important;
}
.footer-brand span{ font-family: var(--font-head); font-weight:700; color:var(--white); }
.footer-nav ul{ display:flex; gap:24px; list-style:none; margin:0; padding:0; }
.footer-nav li{ list-style:none; }
.footer-nav a{ color:#dfe6de; }
.footer-nav a:hover{ color: var(--brand-light); }
.footer-contact a{ color: var(--brand-light); font-weight:600; }
.footer-contact a:hover{ color: var(--white); }
.footer-bottom{
  padding-top: 20px;
  font-size: .86rem;
  color: #9fae9c;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 8px;
}

/* ---------- wp core / admin bar ---------- */
body.admin-bar .site-header{ top: 32px; }
@media screen and (max-width: 782px){
  body.admin-bar .site-header{ top: 46px; }
}
.alignleft{ float: inline-start; margin-inline-end: 20px; }
.alignright{ float: inline-end; margin-inline-start: 20px; }
.aligncenter{ display:block; margin:0 auto 1em; }
.wp-caption{ max-width:100%; }
.wp-caption-text{ color: var(--ash); font-size:.85rem; text-align:center; }
.screen-reader-text{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
}

/* ---------- responsive ---------- */
@media (max-width: 880px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-bar .wrap{ justify-content:flex-end; padding-top:10px; padding-bottom:10px; }
  .brand-row .phone-dropdown:not(.mobile-phone-dropdown){ display:none; }
  .mobile-phone-dropdown{ display:block; }
  .slide-inner{ grid-template-columns: 1fr; text-align:center; padding-top:36px; padding-bottom:32px; }
  .slide-art{ order:-1; }
  .slide-art svg{ max-width: 180px; }
  .slide-tag{ margin-inline:auto; }
  .slide-copy p{ margin-inline:auto; }
  .slide-btn{ display:flex; justify-content:center; text-align:center; }
  .slide-corner{ display:none; }
  .intro .wrap{ grid-template-columns: 1fr; gap: 16px; }
  .products-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .values-grid{ grid-template-columns: 1fr; }
  .value-item{ border-inline-end:none; border-bottom:1px solid rgba(255,255,255,.18); }
  .value-item:last-child{ border-bottom:none; }
  .story .wrap{ grid-template-columns: 1fr; gap: 16px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .section-head{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 560px){
  body{ font-size: 16px; }
  .slide-inner{ padding-top:28px; padding-bottom:24px; gap:18px; }
  .slide-art svg{ max-width: 140px; }
  .slide-copy .slide-btn{ width:100%; }
  .service-row{ grid-template-columns: 44px 1fr; gap:14px; }
  .service-icon{ width:44px; height:44px; }
  .service-icon svg{ width:20px; height:20px; }
  .cta-banner .wrap{ flex-direction:column; align-items:flex-start; }
  .footer-top{ flex-direction:column; }
  .products-grid{ gap: 12px; }
  .product-body{ padding: 10px 12px 14px; }
  .product-body h3{ font-size: .88rem; }
}

/* mobile nav sheet */
.mobile-nav{
  display:none;
  position: fixed;
  inset: 0;
  background: var(--brand-dark);
  z-index: 60;
  padding: 24px;
  flex-direction:column;
}
.mobile-nav.open{ display:flex; }
.mobile-nav-top{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom: 36px;
}
.mobile-nav-top .brand{
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}
.mobile-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; align-items:center; }
.mobile-nav li{ list-style:none; width:100%; }
.mobile-nav a{
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight:700;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  display:block;
  text-align:center;
}
.close-btn{
  width:42px; height:42px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:6px;
  background:none;
  position:relative;
}
.close-btn::before, .close-btn::after{
  content:"";
  position:absolute; top:50%; right:50%;
  width:18px; height:2px;
  background: var(--white);
}
.close-btn::before{ transform: translate(50%,-50%) rotate(45deg); }
.close-btn::after{ transform: translate(50%,-50%) rotate(-45deg); }
