/* ==========================================================================
   Almureed — Theme & Custom Elementor Widget Styles
   ========================================================================== */

/* 1. Ensure GSAP split-text & WOW animations never leave headings invisible */
.tm-split-text,
.tm-sc-section-title .title,
.wow {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 2. Header Logo & Navigation Alignment */
.elementor-element-c4c475f img.logo-default,
header#header .menuzord-brand img {
  max-height: 54px !important;
  width: auto !important;
}

.menuzord-menu > li > a {
  font-weight: 600;
  white-space: nowrap;
}

.menuzord-menu ul.dropdown {
  min-width: 250px !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(12, 47, 37, 0.14) !important;
  padding: 10px 0 !important;
  border: 1px solid rgba(12, 47, 37, 0.08) !important;
}

/* 3. Native Header Top Info Bar (Elementor Header 4222) */
.elementor-element-9671290 .tm-header-top-info ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.elementor-element-9671290 .tm-header-top-info ul li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.elementor-element-9671290 .tm-header-top-info ul li a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}
.elementor-element-9671290 .tm-header-top-info ul li a:hover {
  color: #F8D267;
}
.elementor-element-9671290 .tm-header-top-info ul li i {
  color: #F8D267;
}

/* 4. Native 3-Per-Row Service Block Grid (tm-ele-service-block columns: 3) */
@media (min-width: 992px) {
  .isotope-layout.grid-3-col .isotope-item {
    width: 33.3333% !important;
  }
}

/* 5. Native WC Products & GiveWP Campaign Cards uniform thumbnail ratio */
.tm-sc-wc-products .product .product-thumb img,
.woocommerce ul.products li.product a img {
  width: 100%;
  height: 240px !important;
  object-fit: cover !important;
  border-radius: 16px;
}

.causes-block-style1 .image-box .image img {
  height: 230px !important;
  object-fit: cover !important;
}

/* ==========================================================================
   6. Custom Elementor Widget: tm-ele-project-metrics
   ========================================================================== */
.tm-alm-metrics-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 38px 42px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.tm-alm-metrics-banner.theme-dark_emerald {
  background: linear-gradient(135deg, #0C2F25 0%, #08221B 100%);
  border: 1px solid rgba(248, 210, 103, 0.24);
  box-shadow: 0 24px 50px rgba(12, 47, 37, 0.16);
}

.tm-alm-metrics-banner.theme-light_parchment {
  background: #F7F8ED;
  border: 1px solid rgba(12, 47, 37, 0.1);
}

.tm-alm-metric-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tm-alm-metrics-banner.theme-light_parchment .tm-alm-metric-box {
  border-right-color: rgba(12, 47, 37, 0.12);
}

.tm-alm-metric-box:last-child {
  border-right: none;
  padding-right: 0;
}

.tm-alm-metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(248, 210, 103, 0.15);
  color: #F8D267;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tm-alm-metrics-banner.theme-light_parchment .tm-alm-metric-icon {
  background: #0C2F25;
  color: #F8D267;
}

.tm-alm-metric-val {
  font-family: var(--headings-font-family, 'Gallery', serif);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 700;
  color: #F8D267;
  margin-bottom: 4px;
}

.tm-alm-metrics-banner.theme-light_parchment .tm-alm-metric-val {
  color: #0C2F25;
}

.tm-alm-metric-lbl {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.tm-alm-metrics-banner.theme-light_parchment .tm-alm-metric-lbl {
  color: #0C2F25;
}

.tm-alm-metric-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

.tm-alm-metrics-banner.theme-light_parchment .tm-alm-metric-sub {
  color: rgba(12, 47, 37, 0.7);
}

/* ==========================================================================
   7. Custom Elementor Widget: tm-ele-project-showcase (Dossier Grid & Spotlights)
   ========================================================================== */
.tm-alm-dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tm-alm-dossier-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tm-alm-dossier-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(12, 47, 37, 0.09);
  box-shadow: 0 14px 36px rgba(12, 47, 37, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-alm-dossier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(12, 47, 37, 0.13);
}

.tm-alm-card-thumb {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #0C2F25;
}

.tm-alm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tm-alm-dossier-card:hover .tm-alm-card-thumb img {
  transform: scale(1.06);
}

.tm-alm-card-pillar {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 47, 37, 0.92);
  color: #F8D267;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(248, 210, 103, 0.35);
}

.tm-alm-card-status {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(247, 248, 237, 0.96);
  color: #0C2F25;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

.tm-alm-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tm-alm-card-subtitle {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8C6D1F;
  margin-bottom: 6px;
}

.tm-alm-card-title {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.tm-alm-card-title a {
  color: #0C2F25;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-alm-card-title a:hover {
  color: #8C6D1F;
}

.tm-alm-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(12, 47, 37, 0.78);
  margin-bottom: 18px;
}

.tm-alm-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: #F7F8ED;
  border-radius: 14px;
  margin-bottom: 18px;
}

.tm-alm-card-metric strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  color: #0C2F25;
  font-weight: 800;
}

.tm-alm-card-metric span {
  font-size: 12px;
  color: rgba(12, 47, 37, 0.7);
}

.tm-alm-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-alm-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: #0C2F25;
}

.tm-alm-card-list li i {
  color: #0C2F25;
  background: #F8D267;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  margin-top: 2px;
  flex-shrink: 0;
}

.tm-alm-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(12, 47, 37, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tm-alm-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0C2F25;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.tm-alm-card-btn:hover {
  background: #F8D267;
  color: #0C2F25 !important;
}

.tm-alm-card-waqf {
  font-size: 13.5px;
  font-weight: 700;
  color: #0C2F25 !important;
  text-decoration: underline !important;
}

/* Alternating Spotlights Mode */
.tm-alm-spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tm-alm-spotlight-row {
  display: grid;
  grid-template-columns: 46% 50%;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(12, 47, 37, 0.09);
  border-radius: 30px;
  padding: 36px;
  box-shadow: 0 18px 44px rgba(12, 47, 37, 0.06);
}

.tm-alm-spotlight-row.is-reversed {
  grid-template-columns: 50% 46%;
}

.tm-alm-spotlight-row.is-reversed .tm-alm-spotlight-media {
  order: 2;
}

.tm-alm-spotlight-row.is-reversed .tm-alm-spotlight-body {
  order: 1;
}

.tm-alm-spotlight-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 420px;
}

.tm-alm-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-alm-pillar-floating {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #0C2F25;
  color: #F8D267;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(248, 210, 103, 0.4);
}

.tm-alm-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tm-alm-domain-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8C6D1F;
}

.tm-alm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F7F8ED;
  color: #0C2F25;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
}

.tm-alm-status-pill i {
  font-size: 8px;
  color: #1D8A4E;
}

.tm-alm-spotlight-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 14px 0;
}

.tm-alm-spotlight-title a {
  color: #0C2F25;
  text-decoration: none;
}

.tm-alm-spotlight-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(12, 47, 37, 0.8);
  margin-bottom: 22px;
}

.tm-alm-metrics-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.tm-alm-metric-chip {
  background: #F7F8ED;
  border: 1px solid rgba(12, 47, 37, 0.08);
  padding: 12px 20px;
  border-radius: 14px;
  min-width: 170px;
}

.tm-alm-metric-chip strong {
  display: block;
  font-size: 22px;
  color: #0C2F25;
  line-height: 1.15;
}

.tm-alm-metric-chip span {
  font-size: 12.5px;
  color: rgba(12, 47, 37, 0.72);
}

.tm-alm-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}

.tm-alm-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  color: #0C2F25;
  font-weight: 500;
}

.tm-alm-deliverables li i {
  color: #0C2F25;
  margin-top: 4px;
}

.tm-alm-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.tm-alm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0C2F25;
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tm-alm-btn-primary:hover {
  background: #F8D267;
  color: #0C2F25 !important;
}

.tm-alm-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #F7F8ED;
  color: #0C2F25 !important;
  border: 1px solid rgba(12, 47, 37, 0.18);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tm-alm-btn-secondary:hover {
  background: #0C2F25;
  color: #FFFFFF !important;
}

/* ==========================================================================
   8. Custom Elementor Widget: tm-ele-project-roadmap
   ========================================================================== */
.tm-alm-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tm-alm-roadmap-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tm-alm-roadmap-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tm-alm-roadmap-card {
  background: #FFFFFF;
  border: 1px solid rgba(12, 47, 37, 0.1);
  border-radius: 22px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(12, 47, 37, 0.05);
  position: relative;
}

.tm-alm-roadmap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.tm-alm-phase-num {
  background: #0C2F25;
  color: #F8D267;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 13px;
  border-radius: 50px;
}

.tm-alm-phase-status {
  font-size: 12px;
  font-weight: 700;
  color: #1D8A4E;
  background: rgba(29, 138, 78, 0.1);
  padding: 4px 11px;
  border-radius: 50px;
}

.tm-alm-phase-title {
  font-size: 20px;
  line-height: 1.3;
  color: #0C2F25;
  margin: 0 0 8px 0;
}

.tm-alm-phase-loc {
  font-size: 13px;
  font-weight: 600;
  color: #8C6D1F;
  margin-bottom: 12px;
}

.tm-alm-phase-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(12, 47, 37, 0.78);
  margin-bottom: 18px;
}

.tm-alm-phase-output {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(12, 47, 37, 0.14);
  font-size: 12.5px;
  font-weight: 700;
  color: #0C2F25;
}

@media (max-width: 1024px) {
  .tm-alm-metrics-banner,
  .tm-alm-dossier-grid,
  .tm-alm-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tm-alm-spotlight-row,
  .tm-alm-spotlight-row.is-reversed {
    grid-template-columns: 1fr;
  }
  .tm-alm-spotlight-row.is-reversed .tm-alm-spotlight-media {
    order: 1;
  }
  .tm-alm-spotlight-row.is-reversed .tm-alm-spotlight-body {
    order: 2;
  }
}

@media (max-width: 767px) {
  .tm-alm-metrics-banner,
  .tm-alm-dossier-grid,
  .tm-alm-dossier-grid.cols-2,
  .tm-alm-roadmap-grid,
  .tm-alm-roadmap-grid.cols-2,
  .tm-alm-deliverables {
    grid-template-columns: 1fr;
  }
  .tm-alm-metric-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 16px;
  }
}

/* ==========================================================================
   8. Design fixes (2026-11-18)
   Prefixed with "html body" because the theme's widget stylesheets load
   after this file and would otherwise win at equal specificity.
   ========================================================================== */

/* 8.1 Body copy contrast: theme default #828282 fails WCAG AA on white */
:root { --text-color: #5E665F; }

/* 8.2 Gallery display face: switch off swash ligatures (ti / it / al) */
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .title, html body [class*="-title"], html body [class*="subtitle"],
html body .lg-count, html body .count {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0, "swsh" 0;
}

/* 8.3 Feature boxes (Rescue Mission, Store intro): uncap height, stack
   title over text, stretch the arch mask to the real height */
html body .features-block-style1 {
  max-height: none !important;
  min-height: 120px;
  padding: 28px 44px 28px 48px;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
html body .features-block-style1 .content {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
}
html body .features-block-style1 .content .features-title { text-align: left; }
html body .features-block-style1 .content .features-details {
  max-width: none;
  width: 100%;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

/* 8.4 AIMDiL four-step strip: collapsed cards show the rotated title only */
@media (min-width: 1200px) {
  html body .working-block-style1:not(.active) .default-content .text { display: none; }
}
@media (max-width: 1199.98px) {
  html body .working-block-style1:not(.active) { height: auto !important; }
  html body .working-block-style1:not(.active) .default-content { position: relative; padding: 30px 30px 84px; }
  html body .working-block-style1:not(.active) .default-content .text { max-width: 100%; }
}

/* 8.5 Equal-height card rows. These grids are not filtered, so Isotope's
   absolute positioning is replaced with a wrapping flex row. */
html body .tm-sc-service .isotope-layout-inner,
html body .tm-sc-give-campaigns .isotope-layout-inner,
html body .tm-sc-wc-products .isotope-layout-inner {
  display: flex !important;
  flex-wrap: wrap;
  height: auto !important;
}
html body .tm-sc-service .isotope-item,
html body .tm-sc-give-campaigns .isotope-item,
html body .tm-sc-wc-products .isotope-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: flex;
  float: none;
}
html body .service-block-style3,
html body .service-block-style1,
html body .causes-block-style1,
html body .causes-block-style1 .inner-block,
html body .tm-woo-product-style1,
html body .tm-woo-product-style1 .product-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}
html body .service-block-style3,
html body .service-block-style1,
html body .causes-block-style1 .inner-block,
html body .tm-woo-product-style1,
html body .tm-woo-product-style1 .product-inner { flex: 1 1 auto; }
html body .causes-block-style1 { flex: 1 1 auto; }
html body .service-block-style3 .content,
html body .service-block-style1 .content,
html body .causes-block-style1 .inner-block .content-box,
html body .tm-woo-product-style1 .content-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
html body .service-block-style3 .content > div,
html body .service-block-style1 .content .text,
html body .causes-block-style1 .inner-block .content-box .text { flex: 1 1 auto; }
html body .service-block-style3 .image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

/* 8.6 Store cards: clamp the short description, pin price and button */
html body .tm-woo-product-style1 .content-box .short-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
html body .tm-woo-product-style1 .content-box .price { margin-top: auto; display: block; margin-bottom: 10px; }
html body .tm-woo-product-style1 .content-box .add_to_cart_button { align-self: flex-start; }

/* 8.7 Footer newsletter (CF7 'Almureed Dispatch' form on dark green) */
html body .alm-dispatch .wpcf7 form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
html body .alm-dispatch .wpcf7 form > p { margin: 0; display: contents; }
html body .alm-dispatch .wpcf7 label { flex: 1 1 220px; margin: 0; }
html body .alm-dispatch .wpcf7 br { display: none; }
html body .alm-dispatch .wpcf7 input[type="email"] {
  width: 100%; height: 48px; padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px; color: #FFFFFF;
}
html body .alm-dispatch .wpcf7 input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.75); }
html body .alm-dispatch .wpcf7 input[type="submit"] {
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: #C7DC49; color: #0C2F25; font-weight: 700; cursor: pointer;
}
html body .alm-dispatch .wpcf7-spinner { display: none; }
html body .alm-dispatch .wpcf7-response-output { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.4) !important; margin: 10px 0 0 !important; }