/* ==========================================================
   Hadaq Foundation — design refresh
   Loaded after main-style.css; overrides only, no template edits.
   ========================================================== */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap");

:root {
  --display: "DM Serif Display", Georgia, serif;
  --ink: #0f1f1c;
  --mint-50: #f1f8f5;
  --mint-100: #e2f1eb;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 10px 30px -12px rgba(0, 60, 48, 0.18);
  --shadow-lift: 0 24px 48px -18px rgba(0, 60, 48, 0.30);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body { color: var(--secondary-paragraph); -webkit-font-smoothing: antialiased; }
::selection { background: var(--secondary); color: var(--ink); }
img { image-rendering: auto; }

/* ---------- Typography ---------- */
.hero-caption-one .title,
.section-tittle .title,
.breadcrumb-text .title,
.cta-band .cta-title {
  font-family: var(--display) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-tittle .title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.section-tittle .pera,
.pera-subtitle { font-size: 16px; line-height: 1.75; color: var(--primary-paragraph); }

/* eyebrow / subtitle pill */
.section-tittle .sub-tittle,
.hero-caption-one .key-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase !important;
  margin-bottom: 16px;
}
.section-tittle .sub-tittle::before,
.hero-caption-one .key-title::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 213, 2, .25);
}

/* ---------- Buttons ---------- */
.btn-primary-fill,
.btn-tertiary-fill,
.submit-btn,
.btn.btn-primary {
  border-radius: 999px !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn-primary-fill:hover,
.btn-tertiary-fill:hover,
.submit-btn:hover,
.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 113, 93, .55);
}
.btn.btn-primary {
  background: var(--primary); border-color: var(--primary);
  padding: 12px 28px; font-weight: 600;
}
.btn.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.hero-btn { padding: 15px 30px !important; font-size: 15px !important; }

/* ---------- Header ---------- */
.header-sticky.sticky-bar {
  background: rgba(255, 255, 255, .85) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px -16px rgba(0, 0, 0, .25);
}
.main-menu .listing .single-list .single { font-weight: 500; transition: color .2s; }
.main-menu .listing .single-list .single:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero-area {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 213, 2, .16), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(0, 113, 93, .12), transparent 60%),
    linear-gradient(180deg, var(--mint-50), #fff);
}
.hero-area::after {            /* soft leaf-like ring echoing the logo */
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 113, 93, .25);
  pointer-events: none;
}
.hero-caption-one .title {
  font-size: clamp(40px, 5.2vw, 72px) !important;
  line-height: 1.05 !important;
  margin-bottom: 22px;
}
.hero-caption-one .title em { color: var(--primary); font-style: italic; }
.hero-caption-one .pera { font-size: 17px; line-height: 1.7; max-width: 520px; margin-bottom: 34px; }

.hero-image img {
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-image::before {
  content: "";
  position: absolute; inset: auto -18px -18px auto;
  width: 120px; height: 120px;
  border-radius: 28px;
  background: var(--secondary);
  z-index: -1;
}
.hero-image { z-index: 0; }

.hero-padding .hero-count-section { gap: 18px !important; justify-content: center; }
.hero-count {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  min-width: 150px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--primary);
}
.hero-count:nth-child(2) { border-left-color: var(--secondary); }
.hero-count:nth-child(3) { border-left-color: var(--tertiary); }
.hero-count .title { font-family: var(--display); font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.hero-count .pera { font-size: 13px; line-height: 1.4; margin: 0; }

/* ---------- About (home) ---------- */
.question-area { padding-top: 110px; }
.question-area img {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}
.question-area .col-lg-7 { display: flex; align-items: center; padding-left: 40px; }
@media (max-width: 991px) { .question-area .col-lg-7 { padding-left: 12px; } }

/* ---------- Helpful / pillars ---------- */
.helpful-area { padding: 90px 0; background: var(--mint-50); }
.helpful-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(0, 113, 93, .08) !important;
  box-shadow: none !important;
  padding: 32px 28px !important;
  background: #fff !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.helpful-card::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .45s var(--ease);
}
.helpful-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift) !important; }
.helpful-card:hover::after { width: 100%; }
.helpful-card-icon {
  border-radius: 18px !important;
  width: 58px !important; height: 58px !important;
  transition: transform .35s var(--ease);
}
.helpful-card:hover .helpful-card-icon { transform: rotate(-8deg) scale(1.06); }
.helpful-card .caption-title { font-size: 20px; margin-top: 8px; }

/* ---------- Campaign cards ---------- */
.single-event {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06) !important;
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.single-event:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.single-event .event-img { overflow: hidden; }
.single-event .event-img img {
  aspect-ratio: 16 / 11; object-fit: cover;
  transition: transform .7s var(--ease);
}
.single-event:hover .event-img img { transform: scale(1.06); }
.single-event .event-info { padding: 22px 22px 26px !important; }
.single-event .event-info .title { font-size: 20px; color: var(--ink); }
.single-event .event-info .date {
  background: var(--mint-100); color: var(--primary);
  padding: 4px 12px; border-radius: 999px;
}
.single-event .event-info .date .info, .single-event .event-info .date i { color: var(--primary); font-size: 13px; }
.single-event .btn-arrow {
  border-radius: 50% !important;
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.single-event:hover .btn-arrow { background: var(--primary); color: #fff; border-color: var(--primary); transform: rotate(-45deg); }
.single-event:hover .btn-arrow i { color: #fff; }

/* ---------- Testimonials ---------- */
.testimonial-section-two { padding: 40px 0 90px; }
.single-testimonial {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
  box-shadow: none !important;
  padding: 30px !important;
  transition: border-color .3s, box-shadow .3s;
}
.single-testimonial:hover,
.slick-current .single-testimonial { border-color: var(--primary) !important; box-shadow: var(--shadow-soft) !important; }
.single-testimonial .client-image img { border-radius: 50% !important; box-shadow: 0 0 0 4px var(--mint-100); }
.single-testimonial .pera { font-size: 16px; line-height: 1.7; color: var(--secondary-paragraph); }
.single-testimonial .pera i { font-style: normal; }
.testimonial-slider-two .slick-arrow {
  border-radius: 50% !important;
  transition: transform .25s var(--ease), background .25s;
}
.testimonial-slider-two .slick-arrow:hover { transform: scale(1.08); background: var(--primary-deep) !important; }

/* ---------- Gallery strip ---------- */
.gallery-img { overflow: hidden; border-radius: var(--radius-md); }
.gallery-img img { transition: transform .7s var(--ease), filter .4s; filter: saturate(.9); }
.gallery-img:hover img { transform: scale(1.08); filter: saturate(1.1); }

/* ---------- CTA band ---------- */
.cta-band { padding: 30px 0 70px; }
.cta-band .cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 64px 56px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 213, 2, .35), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band .cta-inner::before {
  content: ""; position: absolute; left: -80px; bottom: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, .06);
}
.cta-band .cta-title { color: #fff !important; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; margin: 0 0 10px; }
.cta-band .cta-text { color: rgba(255, 255, 255, .8); margin: 0; max-width: 520px; font-size: 16px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }
.cta-band .cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cta-band .cta-btn.solid { background: var(--secondary); color: var(--ink); }
.cta-band .cta-btn.ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.cta-band .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
@media (max-width: 767px) { .cta-band .cta-inner { padding: 40px 26px; border-radius: 24px; } }

/* ---------- Breadcrumb (inner pages) ---------- */
.breadcrumb-section { position: relative; }
.breadcrumb-text .title { color: #fff !important; text-transform: capitalize !important; font-size: clamp(36px, 4.5vw, 60px) !important; }
.breadcrumb-text .breadcrumb-nav {
  background: rgba(255, 255, 255, .14) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px !important;
}
.breadcrumb-nav .breadcrumb { background: none !important; border: 0 !important; margin: 0; }
.breadcrumb-nav .breadcrumb .single { text-transform: capitalize; font-size: 14px; }

/* ---------- About page ---------- */
.about-area .section-tittle .title { font-size: clamp(30px, 3.4vw, 44px); }
.about-area img { border-radius: var(--radius-md) !important; }

/* ---------- Contact ---------- */
.contact-section {
  background: #fff !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
  border: 1px solid rgba(0, 0, 0, .04);
}
.contact-section .single-icon { transition: transform .3s var(--ease); }
.contact-icon-list:hover .single-icon { transform: scale(1.08) rotate(-6deg); }
.send-box {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
  border: 1px solid rgba(0, 0, 0, .04);
  padding: 36px !important;
  height: 100%;
}
.custom-input, .custom-textarea {
  border-radius: 12px !important;
  background: #fafbfb !important;
  border: 1px solid var(--tertiary-border) !important;
  padding: 13px 16px !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.custom-input:focus, .custom-textarea:focus {
  background: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 113, 93, .12) !important;
}
.submit-btn { padding: 14px 32px !important; }
.map-frame {
  width: 100%; height: 100%; min-height: 460px;
  border: 0 !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  filter: grayscale(.25);
}

/* ---------- Footer ---------- */
.footer-wrapper .footer-link img {
  background: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  max-width: 150px;
  margin-bottom: 20px;
}
.footer-wrapper .footer-link p.text-white { color: rgba(255, 255, 255, .7) !important; line-height: 1.75; }
.footer-wrapper .footer-link .title { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .01em; }
.footer-wrapper .imp-link .single { transition: color .2s, padding-left .25s var(--ease); }
.footer-wrapper .imp-link .single:hover { color: var(--secondary) !important; padding-left: 4px; }
.footer-wrapper .imp-icon { border-radius: 10px !important; }
.footer-social-link .single {
  border-radius: 50% !important;
  transition: background .25s, transform .25s var(--ease);
}
.footer-social-link .single:hover { background: var(--secondary) !important; color: var(--ink) !important; transform: translateY(-3px); }
.footer-social-link .single:hover i { color: var(--ink); }

/* ---------- Back to top ---------- */
.progressParent { box-shadow: var(--shadow-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Testimonial role ---------- */
.single-testimonial .designation { margin: 2px 0 0; font-size: 13px; color: var(--primary); font-weight: 500; }

/* ---------- Gallery page ---------- */
.photo-gallery .section-tittle .pera { max-width: 620px; margin: 14px auto 0; }
.gallery-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.gallery-filter-btn {
  border: 1px solid var(--tertiary-border);
  background: #fff;
  color: var(--secondary-title);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.gallery-filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.gallery-filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.gallery-grid { columns: 4 260px; column-gap: 20px; }
.gallery-item {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  animation: galleryIn .45s var(--ease) both;
}
.gallery-item.is-hidden { display: none; }
@keyframes galleryIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; position: relative; cursor: zoom-in; }
.gallery-open img { display: block; width: 100%; height: auto; transition: transform .7s var(--ease); }
/* vary tile heights for a natural masonry rhythm */
.gallery-item:nth-child(3n+1) .gallery-open img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-item:nth-child(3n+2) .gallery-open img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item:nth-child(3n) .gallery-open img { aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-open figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 16px;
  text-align: left;
  color: #fff; font-size: 15px; font-weight: 500; line-height: 1.35;
  background: linear-gradient(to top, rgba(6, 30, 26, .85), transparent);
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-tag {
  display: inline-block; margin-bottom: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--secondary); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.gallery-open figcaption .gallery-tag { display: table; }
.gallery-open:hover img, .gallery-open:focus-visible img { transform: scale(1.06); }
.gallery-open:hover figcaption, .gallery-open:focus-visible figcaption { opacity: 1; transform: none; }
.gallery-open:focus-visible { outline: 3px solid var(--secondary); outline-offset: -3px; }
@media (hover: none) { .gallery-open figcaption { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px;
  background: rgba(6, 20, 18, .92);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-figure { margin: 0; max-width: min(900px, 100%); text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 78vh; width: auto; min-width: min(600px, 100%);
  object-fit: contain; border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.lightbox-figure figcaption { color: rgba(255, 255, 255, .85); margin-top: 14px; font-size: 15px; }
.lightbox-close, .lightbox-nav {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px;
  display: grid; place-items: center;
  transition: background .2s, transform .2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--primary); transform: scale(1.06); }
.lightbox-close { position: absolute; top: 20px; right: 20px; }
@media (max-width: 767px) {
  .lightbox-nav { position: absolute; bottom: 24px; }
  .lightbox-nav.prev { left: calc(50% - 60px); }
  .lightbox-nav.next { right: calc(50% - 60px); }
}
