/*
Theme Name:   Quaker Palestine Solidarity
Description:  Child theme of Hello Elementor for Quaker Palestine Solidarity
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
*/

/* ============================================================
   COLOUR PALETTE
   --qps-dark:      #1B3A2D   deep forest green  (header, titles)
   --qps-mid:       #2D6A4F   mid green          (accents)
   --qps-light:     #52B788   bright green       (highlights)
   --qps-pale:      #E8F5EE   pale green tint    (card bg)
   --qps-bg:        #F4F7F5   off-white          (section bg)
   --qps-orange:    #C0392B   red (Palestinian flag solidarity)
   --qps-text:      #1A1A1A
   --qps-muted:     #555555
   ============================================================ */

:root {
  --qps-dark:    #1B3A2D;
  --qps-mid:     #2D6A4F;
  --qps-light:   #52B788;
  --qps-pale:    #E8F5EE;
  --qps-bg:      #F4F7F5;
  --qps-red:     #C0392B;
  --qps-text:    #1A1A1A;
  --qps-muted:   #555555;
  --qps-border:  #D8EAE1;
  --max-w:       1160px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.qps-page {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--qps-text);
  background: #fff;
}

.qps-page a { color: var(--qps-mid); text-decoration: none; }
.qps-page a:hover { color: var(--qps-dark); text-decoration: underline; }
.qps-page img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.qps-header {
  background: var(--qps-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.qps-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.qps-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.qps-logo__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.qps-logo__img--footer {
  width: 44px;
  height: 44px;
}

.qps-logo__text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.qps-logo__text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #A8D5BB;
  text-transform: uppercase;
}

/* Nav */
.qps-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.qps-nav a {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #C8E6D4;
  padding: 7px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.qps-nav a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }

.qps-nav__highlight a {
  background: var(--qps-light) !important;
  color: var(--qps-dark) !important;
  font-weight: 700 !important;
  margin-left: 6px;
}
.qps-nav__highlight a:hover { background: #6dcf9f !important; color: var(--qps-dark) !important; }

/* Mobile nav toggle (hidden on desktop) */
.qps-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.qps-hero {
  background: linear-gradient(140deg, var(--qps-dark) 0%, #2D6A4F 55%, #3a8a62 100%);
  color: #fff;
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Photo background variant — set via Featured Image on the Home page */
.qps-hero--photo {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark overlay so text remains legible over any photo */
.qps-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}

.qps-hero--photo .qps-hero__inner {
  position: relative;
  z-index: 1;
}

/* Subtle Palestinian flag stripe */
.qps-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right,
    #000 0%, #000 25%,
    #fff 25%, #fff 50%,
    var(--qps-red) 50%, var(--qps-red) 75%,
    var(--qps-mid) 75%);
  opacity: .5;
}

.qps-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.qps-hero__pill {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #A8D5BB;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.qps-hero h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 22px;
}

.qps-hero p {
  font-size: 19px;
  color: #C8E6D4;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.qps-hero__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shared button */
.qps-btn {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
}
.qps-page .qps-btn--primary { background: var(--qps-red); color: #fff; border-color: var(--qps-red); }
.qps-page .qps-btn--primary:hover { background: #a93226; border-color: #a93226; color: #fff; text-decoration: none; }
.qps-page .qps-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.qps-page .qps-btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; text-decoration: none; }
.qps-page .qps-btn--green { background: var(--qps-mid); color: #fff; border-color: var(--qps-mid); }
.qps-page .qps-btn--green:hover { background: var(--qps-dark); border-color: var(--qps-dark); color: #fff; text-decoration: none; }

/* ============================================================
   SECTIONS  (shared)
   ============================================================ */
.qps-section { padding: 80px 24px; }
.qps-section--bg  { background: var(--qps-bg); }
.qps-section--dark { background: var(--qps-dark); }

.qps-section__inner { max-width: var(--max-w); margin: 0 auto; }

.qps-section__label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--qps-light);
  margin-bottom: 10px;
}

.qps-section__title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--qps-dark);
  margin: 0 0 14px;
  line-height: 1.2;
}

.qps-section--dark .qps-section__title { color: #fff; }
.qps-section--dark .qps-section__label { color: var(--qps-light); }

.qps-section__intro {
  font-size: 18px;
  color: var(--qps-muted);
  max-width: 600px;
  margin: 0 0 52px;
  line-height: 1.65;
}

.qps-section--dark .qps-section__intro { color: #A8D5BB; }

/* ============================================================
   FOCUS AREAS  (3-column cards)
   ============================================================ */
.qps-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.qps-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.qps-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,.13); }

.qps-card__bar { height: 5px; }
.qps-card__bar--green  { background: var(--qps-light); }
.qps-card__bar--mid    { background: var(--qps-mid); }
.qps-card__bar--red    { background: var(--qps-red); }

.qps-card__body { padding: 30px 26px 26px; flex: 1; display: flex; flex-direction: column; }

.qps-card__icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.qps-card__icon--green { background: var(--qps-pale); }
.qps-card__icon--mid   { background: #E0EFE9; }
.qps-card__icon--red   { background: #FAEAEA; }

.qps-card__body h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--qps-dark);
  margin: 0 0 10px;
  line-height: 1.3;
}

.qps-card__body p {
  font-size: 15px;
  color: var(--qps-muted);
  margin: 0 0 22px;
  flex: 1;
  line-height: 1.65;
}

.qps-card__link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--qps-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap .15s, color .15s;
}
.qps-card__link::after { content: '→'; }
.qps-card__link:hover  { gap: 10px; color: var(--qps-dark); text-decoration: none; }

/* ============================================================
   PURPOSE LIST  —  declaration / manifesto style
   ============================================================ */
.qps-purpose-list,
.qps-purpose-list.wp-block-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 860px;
  border-top: 3px solid var(--qps-dark);
}

.qps-purpose-list li,
.qps-purpose-list.wp-block-list li {
  display: block !important;
  padding: 24px 0 24px 60px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--qps-border);
  font-family: 'Georgia', serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--qps-dark);
  background-image: url('/wp-content/uploads/qps-logo.png') !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: 40px 40px !important;
  list-style: none !important;
}

.qps-purpose-list li::before,
.qps-purpose-list.wp-block-list li::before {
  display: none !important;
  content: none !important;
}

.qps-purpose-list li:last-child,
.qps-purpose-list.wp-block-list li:last-child {
  border-bottom: 3px solid var(--qps-dark);
}

.qps-purpose-list__icon { display: none; }

/* ============================================================
   QUOTE BAND
   ============================================================ */
.qps-quote {
  text-align: center;
  padding: 80px 24px;
  background: var(--qps-dark);
}

.qps-quote blockquote {
  max-width: 740px;
  margin: 0 auto;
  border: none;
  padding: 0;
}

.qps-quote blockquote p {
  font-size: clamp(20px, 2.8vw, 28px);
  font-style: italic;
  color: #C8E6D4;
  line-height: 1.5;
  margin: 0 0 18px;
}

.qps-quote cite {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  color: var(--qps-light);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ============================================================
   NEWS GRID
   ============================================================ */
.qps-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.qps-news-card {
  border: 1px solid var(--qps-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.qps-news-card:hover { box-shadow: 0 5px 22px rgba(0,0,0,.1); }

.qps-news-card__thumb {
  height: 170px;
  background: #D4E8DC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--qps-mid);
  flex-shrink: 0;
}

.qps-news-card__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }

.qps-news-card__tag {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--qps-mid);
  background: var(--qps-pale);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 9px;
}

.qps-news-card__body h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--qps-text);
  margin: 0 0 7px;
  line-height: 1.4;
  flex: 1;
}

.qps-news-card__body p {
  font-size: 14px;
  color: #666;
  margin: 0 0 14px;
  line-height: 1.55;
}

.qps-news-card__meta { font-size: 12px; color: #999; }

.qps-section__cta { text-align: center; margin-top: 8px; }

/* ============================================================
   GET INVOLVED
   ============================================================ */
.qps-involve {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.qps-involve-item {
  background: #fff;
  border: 1px solid var(--qps-border);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow .2s;
}
.qps-involve-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); }

.qps-involve-item__icon { font-size: 38px; display: block; margin-bottom: 14px; }

.qps-involve-item h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--qps-dark);
  margin: 0 0 8px;
}

.qps-involve-item p {
  font-size: 14px;
  color: #666;
  margin: 0 0 18px;
  line-height: 1.55;
}

/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */
.qps-newsletter {
  background: var(--qps-mid);
  padding: 52px 24px;
}

.qps-newsletter__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.qps-newsletter h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.qps-newsletter p { font-size: 15px; color: #A8D5BB; margin: 0; }

.qps-newsletter__form { display: flex; flex-shrink: 0; }

.qps-newsletter__form input[type="email"] {
  padding: 11px 16px;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 5px 0 0 5px;
  outline: none;
  min-width: 230px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.qps-newsletter__form input::placeholder { color: rgba(255,255,255,.5); }
.qps-newsletter__form input:focus { border-color: rgba(255,255,255,.65); }

.qps-newsletter__form button {
  padding: 11px 22px;
  background: var(--qps-red);
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  transition: background .15s;
}
.qps-newsletter__form button:hover { background: #a93226; }

/* ============================================================
   FOOTER
   ============================================================ */
.qps-footer {
  background: #111D17;
  color: #A8D5BB;
  padding: 64px 24px 32px;
}

.qps-footer__top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}

.qps-footer__brand .qps-logo__text { color: #fff; }
.qps-footer__brand .qps-logo__text em { color: var(--qps-light); }
.qps-footer__brand > p { font-size: 14px; color: #7ABFA0; line-height: 1.65; margin: 14px 0 22px; }

.qps-footer__social { display: flex; gap: 10px; }

.qps-footer__social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #A8D5BB;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.qps-footer__social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }

.qps-footer__col h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.qps-footer__col ul { list-style: none; margin: 0; padding: 0; }
.qps-footer__col li { margin-bottom: 9px; }
.qps-footer__col a { font-size: 14px; color: #7ABFA0; text-decoration: none; transition: color .15s; }
.qps-footer__col a:hover { color: #fff; text-decoration: none; }

.qps-footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.qps-footer__bottom p { font-size: 13px; color: #5A8A72; margin: 0; }
.qps-footer__bottom a { color: #7ABFA0; }
.qps-footer__bottom a:hover { color: #fff; }

/* ============================================================
   ARCHIVE HERO (events / announcements header band)
   ============================================================ */
.qps-archive-hero {
  background: var(--qps-dark);
  color: #fff;
  padding: 64px 24px 56px;
}

.qps-archive-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.qps-archive-hero h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: #fff;
  margin: 10px 0 14px;
  line-height: 1.2;
}

.qps-archive-hero p {
  font-size: 17px;
  color: #A8D5BB;
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   ARCHIVE GRID
   ============================================================ */
.qps-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.qps-archive-card {
  border: 1px solid var(--qps-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.qps-archive-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }

.qps-archive-card__thumb {
  display: block;
  height: 190px;
  overflow: hidden;
}
.qps-archive-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.qps-archive-card:hover .qps-archive-card__thumb img { transform: scale(1.04); }

.qps-archive-card__thumb--placeholder {
  background: #D4E8DC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--qps-mid);
}

.qps-archive-card__body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qps-archive-card__body h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--qps-text);
  margin: 0;
  line-height: 1.4;
}

.qps-archive-card__body h2 a { color: inherit; text-decoration: none; }
.qps-archive-card__body h2 a:hover { color: var(--qps-mid); text-decoration: none; }

.qps-archive-card__meta {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.qps-archive-card__body p {
  font-size: 14px;
  color: #666;
  margin: 4px 0 8px;
  flex: 1;
  line-height: 1.55;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.qps-pagination { margin-top: 16px; text-align: center; }
.qps-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.qps-pagination a, .qps-pagination span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--qps-border);
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--qps-mid);
  text-decoration: none;
  transition: background .15s;
}
.qps-pagination a:hover { background: var(--qps-pale); text-decoration: none; }
.qps-pagination .current { background: var(--qps-mid); color: #fff; border-color: var(--qps-mid); }

/* ============================================================
   SINGLE POST (event / announcement)
   ============================================================ */
.qps-single { max-width: 740px; }

.qps-single__meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #A8D5BB;
  margin: 0;
}

.qps-single__thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}
.qps-single__thumb img { width: 100%; height: auto; }

.qps-single__content { font-size: 17px; line-height: 1.75; color: var(--qps-text); }
.qps-single__content h2, .qps-single__content h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--qps-dark);
  margin-top: 32px;
}
.qps-single__content p { margin: 0 0 20px; }

.qps-single__back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--qps-border); }

.qps-empty {
  font-size: 17px;
  color: var(--qps-muted);
  padding: 40px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .qps-cards, .qps-news { grid-template-columns: 1fr 1fr; }
  .qps-involve          { grid-template-columns: 1fr 1fr; }
  .qps-footer__top      { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .qps-header__inner { height: auto; padding: 12px 20px; flex-wrap: wrap; }
  .qps-nav           { flex-wrap: wrap; gap: 2px; }
  .qps-cards, .qps-news, .qps-involve { grid-template-columns: 1fr; }
  .qps-footer__top   { grid-template-columns: 1fr; }
  .qps-newsletter__inner { flex-direction: column; }
  .qps-newsletter__form { width: 100%; }
  .qps-newsletter__form input { flex: 1; min-width: 0; }
}
