/*
 * DrAlaa Global UI V42 — shared forest-green / warm-gold identity.
 * The homepage reference itself stays unchanged. All refinements are
 * scoped to Arabic inner pages, blog archive and individual articles.
 * Header V16/V17 owns the top strip, logo, navigation, EN and search.
 */
body.dc42-global {
  --dc42-deep:#123e35;
  --dc42-green:#17664f;
  --dc42-green-light:#eaf5ed;
  --dc42-gold:#c39a62;
  --dc42-gold-light:#efd9b2;
  --dc42-ink:#17483b;
  --dc42-muted:#617a6d;
  --dc42-line:#e1e9e2;
  --dc42-ease:cubic-bezier(.2,.75,.28,1);
}
body.dc42-global:not(.home) .main-page-wrapper {
  background:linear-gradient(180deg,#fbfdfa 0%,#fff 280px,#fff 75%,#f8fbf8 100%);
}
body.dc42-global:not(.home) .site-content {
  min-width:0;
  max-width:100%;
}
body.dc42-global:not(.home) .site-content :is(h1,h2,h3) {
  text-wrap:balance;
  overflow-wrap:break-word;
}
body.dc42-global:not(.home) .site-content [id]{
  scroll-margin-top:clamp(78px,8vw,106px);
}

/* Preserve original Woodmart layout while polishing the same dropdown
 * navigation used by homepage, service pages, articles and archive. */
body.dc42-global .whb-header .wd-dropdown-menu {
  border:1px solid rgba(199,221,203,.83) !important;
  border-top:2px solid var(--dc42-gold) !important;
  border-radius:0 0 13px 13px !important;
  background:#fff !important;
  box-shadow:0 16px 33px rgba(9,57,42,.14) !important;
  overflow:visible;
}
body.dc42-global .whb-header .wd-dropdown-menu .wd-sub-menu > li > a{
  transition:background-color .23s ease,color .23s ease,padding .23s ease;
}
body.dc42-global .whb-header .wd-dropdown-menu .wd-sub-menu > li > a:is(:hover,:focus-visible){
  color:#0c6f51 !important;
  background:#f0f8f2 !important;
}
body.dc42-global .whb-header .dc17-email,
body.dc42-global .whb-header .dc17-search,
body.dc42-global .whb-header .dc16-language{
  -webkit-tap-highlight-color:transparent;
}
/* Shared quiet gold underline for breadcrumbs and archive title. */
body.dc42-global:not(.home) .page-title {
  position:relative;
  isolation:isolate;
  color:var(--dc42-ink);
}
body.dc42-global:not(.home) .page-title .title,
body.dc42-global:not(.home) .page-title h1{
  color:var(--dc42-ink) !important;
  font-family:"Almarai",Tahoma,Arial,sans-serif;
  font-weight:850;
  line-height:1.55;
}
body.dc42-global:not(.home) .breadcrumbs,
body.dc42-global:not(.home) .breadcrumbs a,
body.dc42-global:not(.home) .wd-breadcrumbs,
body.dc42-global:not(.home) .wd-breadcrumbs a{
  font-family:"Almarai",Tahoma,Arial,sans-serif;
  text-decoration:none;
}
body.dc42-global:not(.home) .breadcrumbs a:is(:hover,:focus-visible),
body.dc42-global:not(.home) .wd-breadcrumbs a:is(:hover,:focus-visible){
  color:var(--dc42-green);
}

/* Blog listing: premium, equal height reading cards with original photos,
 * without adding an autoplay slider or changing the post list. */
body.dc42-global.blog .site-content .wd-blog-holder{
  align-items:stretch;
  row-gap:clamp(17px,2vw,25px);
}
body.dc42-global.blog .site-content .wd-blog-holder > .wd-post{
  min-width:0;
  align-self:stretch;
  height:auto;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-inner{
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  background:#fff !important;
  border:1px solid var(--dc42-line);
  border-radius:16px !important;
  box-shadow:0 6px 19px rgba(15,68,49,.065) !important;
  overflow:hidden;
  transition:box-shadow .35s var(--dc42-ease),border-color .35s ease,translate .35s var(--dc42-ease);
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-thumb{
  overflow:hidden;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-thumb img{
  width:100%;
  height:auto;
  object-fit:cover;
  transition:transform .55s var(--dc42-ease),filter .4s ease;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-title a{
  color:var(--dc42-ink) !important;
  font-family:"Almarai",Tahoma,Arial,sans-serif;
  font-weight:800;
  line-height:1.75;
  text-decoration:none;
  transition:color .23s ease;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-title a:is(:hover,:focus-visible){
  color:var(--dc42-green) !important;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-cat a,
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-cat{
  color:#9b7548 !important;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-excerpt,
body.dc42-global.blog .site-content .wd-blog-holder .wd-post-excerpt p {
  color:#617b6b;
  line-height:1.88;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post .wd-read-more a,
body.dc42-global.blog .site-content .wd-blog-holder .wd-post a.read-more{
  color:var(--dc42-green) !important;
  font-weight:800;
}
body.dc42-global.blog .site-content .wd-blog-holder .wd-post .wd-read-more a:is(:hover,:focus-visible),
body.dc42-global.blog .site-content .wd-blog-holder .wd-post a.read-more:is(:hover,:focus-visible){
  color:#a87a43 !important;
}

/* Premium blog post typography and reading comfort. */
body.dc42-global.single-post .site-content .entry-title.title{
  color:var(--dc42-ink) !important;
  font-family:"Almarai",Tahoma,Arial,sans-serif;
  font-weight:850 !important;
  font-size:clamp(25px,2.7vw,39px) !important;
  line-height:1.65 !important;
  text-wrap:balance;
}
body.dc42-global.single-post .site-content .wd-post-meta{
  color:var(--dc42-muted);
  font-family:"Almarai",Tahoma,Arial,sans-serif;
}
body.dc42-global.single-post .site-content .wd-post-cat a{
  color:#a07847 !important;
  font-weight:700;
}
body.dc42-global.single-post .site-content .elementor-widget-text-editor :is(p,li){
  line-height:1.96;
}
body.dc42-global.single-post .site-content :is(.elementor-widget-heading h2,.elementor-widget-heading h3){
  scroll-margin-top:98px;
}
/* Link treatment: do not color buttons, image links or icon buttons. */
body.dc42-global.single-post .site-content .elementor-widget-text-editor a:not(.elementor-button){
  text-underline-offset:3px;
  transition:color .2s ease;
}
body.dc42-global.single-post .site-content .elementor-widget-text-editor a:not(.elementor-button):hover{
  color:var(--dc42-green);
}

/* Inner service pages: calmer text, consistent radii and focus states while
 * preserving Elementor section backgrounds and original dark/light layouts. */
body.dc42-global.page:not(.home) .site-content .elementor-widget-heading .elementor-heading-title {
  font-family:"Almarai",Tahoma,Arial,sans-serif;
  font-weight:800;
  text-wrap:balance;
  line-height:1.55;
}
body.dc42-global.page:not(.home) .site-content .elementor-widget-text-editor :is(p,li){
  line-height:1.95;
}
body.dc42-global:not(.home) .site-content .elementor-button,
body.dc42-global:not(.home) .site-content button[type=submit] {
  text-decoration:none;
  transition:box-shadow .3s var(--dc42-ease),transform .3s var(--dc42-ease),background-color .3s ease,border-color .3s ease;
  box-shadow:0 3px 11px rgba(14,77,53,.085);
  -webkit-tap-highlight-color:transparent;
}
body.dc42-global:not(.home) .site-content .elementor-button:focus-visible,
body.dc42-global:not(.home) .site-content a:focus-visible,
body.dc42-global:not(.home) .site-content button:focus-visible{
  outline:3px solid var(--dc42-gold) !important;
  outline-offset:3px !important;
}
body.dc42-global:not(.home) .site-content .elementor-widget-icon-box .elementor-icon-box-wrapper,
body.dc42-global:not(.home) .site-content .elementor-widget-image-box .elementor-image-box-wrapper {
  transition:box-shadow .32s var(--dc42-ease),transform .32s var(--dc42-ease);
}
/* Input treatment only within page content; header search keeps V17 styling. */
body.dc42-global:not(.home) .site-content :is(input[type=text],input[type=email],input[type=tel],input[type=search],textarea,select){
  max-width:100%;
  border-radius:9px;
  transition:border-color .22s ease,box-shadow .22s ease;
}
body.dc42-global:not(.home) .site-content :is(input[type=text],input[type=email],input[type=tel],input[type=search],textarea,select):focus{
  border-color:#7ea98d;
  box-shadow:0 0 0 3px rgba(35,131,91,.11);
}
body.dc42-global:not(.home) .site-content :is(.wd-pagination,.wd-load-more){
  --wd-link-color:var(--dc42-green);
}
body.dc42-global:not(.home) .site-content img{
  max-width:100%;
}

/* Progressive animation: all text and cards are visible without JS.
 * IntersectionObserver adds animation only when an element enters view. */
@media(hover:hover) and (pointer:fine){
  body.dc42-global.blog .site-content .wd-blog-holder .wd-post-inner:hover{
    border-color:#c7b083;
    box-shadow:0 16px 34px rgba(13,69,52,.14) !important;
    translate:0 -4px;
  }
  body.dc42-global.blog .site-content .wd-blog-holder .wd-post-inner:hover .wd-post-thumb img{
    transform:scale(1.035);
    filter:saturate(1.02);
  }
  body.dc42-global:not(.home) .site-content .elementor-button:hover,
  body.dc42-global:not(.home) .site-content button[type=submit]:hover{
    box-shadow:0 9px 19px rgba(8,78,56,.16);
    transform:translateY(-2px);
  }
}
@media(prefers-reduced-motion:no-preference){
  body.dc42-global:not(.home) .site-content .dc42-reveal.dc42-revealed{
    animation:dc42-soft-reveal .55s var(--dc42-ease) both;
  }
  @keyframes dc42-soft-reveal{
    from{opacity:.7;transform:translateY(10px)}
    to{opacity:1;transform:translateY(0)}
  }
}
@media(max-width:1024px){
  body.dc42-global:not(.home) .site-content{
    overflow-x:clip;
  }
  body.dc42-global.blog .site-content .wd-blog-holder{
    row-gap:17px;
  }
  body.dc42-global:not(.home) .site-content :is(.elementor-button,button[type=submit]){
    min-height:42px;
  }
}
@media(max-width:767px){
  body.dc42-global:not(.home) .site-content .entry-title.title{
    font-size:clamp(23px,5.6vw,29px) !important;
  }
  body.dc42-global:not(.home) .site-content{
    -webkit-text-size-adjust:100%;
  }
  body.dc42-global:not(.home) .site-content :is(.elementor-button,button[type=submit]){
    min-height:44px;
    max-width:100%;
    white-space:normal;
  }
  body.dc42-global.blog .site-content .wd-blog-holder .wd-post-inner {
    border-radius:13px !important;
  }
  body.dc42-global:not(.home) .site-content .elementor-widget-text-editor :is(p,li){
    line-height:1.87;
  }
  body.dc42-global:not(.home) .site-content [id]{
    scroll-margin-top:76px;
  }
}
@media(prefers-reduced-motion:reduce){
  body.dc42-global:not(.home) .site-content .dc42-reveal,
  body.dc42-global:not(.home) .site-content .dc42-revealed,
  body.dc42-global:not(.home) .site-content .wd-post-inner,
  body.dc42-global:not(.home) .site-content .elementor-button{
    animation:none !important;
    transition:none !important;
    transform:none !important;
    translate:none !important;
  }
}
