/* ============================================================
   Gush Shalom — component styles (theme.css)
   Ported 1:1 from the original design-system components so the
   WordPress markup renders identically. Loads after tokens.css + site.css.
   Primary #CC3366 · Ink #333 · Mid #69727D · Border #CDCDCD · Surface #F7F7F7
   ============================================================ */

/* ---------- Primitives ---------- */
.gs-overline {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #CC3366; margin: 0;
}

.gs-btn {
  font-family: inherit; font-weight: 500; border-radius: 0; cursor: pointer;
  border: 1px solid transparent; transition: background 160ms, color 160ms, border-color 160ms;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; text-decoration: none; line-height: 1.2;
  font-size: 16px; padding: 9px 18px;
}
.gs-btn--sm { font-size: 14.4px; padding: 6px 12px; }
.gs-btn--lg { font-size: 20px; padding: 13px 26px; }
.gs-btn--primary { background: #2D2D2D; color: #fff; }
.gs-btn--primary:hover { background: #333; color: #fff; }
.gs-btn--secondary { background: transparent; color: #333; border-color: #2D2D2D; }
.gs-btn--secondary:hover { background: #F7F7F7; }
.gs-btn--ghost { background: transparent; color: #333; }
.gs-btn--ghost:hover { background: #F7F7F7; }

/* Framed photo (featured image or placeholder) */
.gs-photo { position: relative; width: 100%; overflow: hidden; background: #F7F7F7; border: 1px solid #CDCDCD; border-radius: 4px; }
.gs-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-photo__ph { position: absolute; inset: 0; background:
    repeating-linear-gradient(135deg, #F7F7F7 0 14px, #F1F1F1 14px 28px); }
.gs-photo--flush { border-radius: 0; }

/* ---------- Header / nav ---------- */
.gs-header { border-bottom: 1px solid #CDCDCD; background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.gs-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gs-header__logo { display: flex; align-items: center; flex: none; }
.gs-header__logo img { height: 40px; width: auto; display: block; }

.gs-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.gs-nav__list li { margin: 0; }
.gs-nav__list a {
  font-size: 14.4px; color: #69727D; font-weight: 400; text-decoration: none;
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color 160ms; white-space: nowrap;
}
.gs-nav__list a:hover { color: #333; }
.gs-nav__list .current-menu-item > a,
.gs-nav__list .current_page_item > a,
.gs-nav__list .current-menu-parent > a { color: #333; font-weight: 600; border-bottom-color: #CC3366; }

.gs-header__actions { display: flex; align-items: center; gap: 16px; flex: none; }

.gs-langs { display: flex; align-items: center; gap: 10px; }
.gs-langs a { font-size: 14.4px; text-decoration: none; color: #69727D; font-weight: 400; }
.gs-langs a.is-active { color: #CC3366; font-weight: 600; }
.gs-langs--dark a { color: rgba(255,255,255,0.7); }
.gs-langs--dark a.is-active { color: #fff; font-weight: 600; }

/* Mobile menu */
.gs-mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: #333; padding: 4px; width: 34px; height: 34px; align-items: center; justify-content: center; }
.gs-burger, .gs-burger::before, .gs-burger::after { display: block; width: 22px; height: 2px; background: #333; transition: transform 240ms, opacity 160ms; }
.gs-burger { position: relative; }
.gs-burger::before, .gs-burger::after { content: ""; position: absolute; left: 0; }
.gs-burger::before { top: -7px; }
.gs-burger::after { top: 7px; }
.gs-mobile-toggle[aria-expanded="true"] .gs-burger { background: transparent; }
.gs-mobile-toggle[aria-expanded="true"] .gs-burger::before { top: 0; transform: rotate(45deg); }
.gs-mobile-toggle[aria-expanded="true"] .gs-burger::after { top: 0; transform: rotate(-45deg); }

.gs-mobile-menu { border-top: 1px solid #CDCDCD; padding: 14px 24px 18px; background: #fff; }
.gs-mobile-menu[hidden] { display: none; }
.gs-mobile-menu__langs { margin-bottom: 16px; }
.gs-mobile-menu__langs .gs-langs { gap: 18px; }
.gs-nav--mobile .gs-nav__list { flex-direction: column; align-items: flex-start; gap: 14px; }
.gs-nav--mobile .gs-nav__list a { font-size: 17px; color: #333; border-bottom: none; padding: 0; }
.gs-nav--mobile .gs-nav__list .current-menu-item > a { color: #CC3366; }
.gs-mobile-menu__cta { display: inline-block; margin-top: 14px; font-size: 17px; color: #333; font-weight: 600; text-decoration: none; }

/* ---------- Page hero (text only) ---------- */
.gs-pagehero__inner { max-width: 820px; }
.gs-pagehero__overline { margin-bottom: 14px; }
.gs-pagehero h1 { font-size: 40px; font-weight: 700; line-height: 1.2; color: #333; margin: 0 0 18px; letter-spacing: -0.01em; }
.gs-pagehero__lead { font-size: 20px; line-height: 1.6; color: #69727D; margin: 0; max-width: 680px; }
[dir="rtl"] .gs-pagehero__lead { line-height: 1.7; }

/* ---------- Generic prose section ---------- */
.gs-prose-block { max-width: 680px; }
.gs-prose-block p { font-size: 17px; line-height: 1.6; color: #333; margin: 0 0 18px; text-wrap: pretty; }
.gs-prose-block p:last-child { margin-bottom: 0; }
[dir="rtl"] .gs-prose-block p { line-height: 1.7; }

/* ---------- Featured / blog cards (home) ---------- */
.gs-featured__grid { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.gs-featured__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.gs-featured__metatext { font-size: 13px; color: #69727D; }
.gs-featured h1 { font-size: 40px; font-weight: 700; line-height: 1.15; color: #333; margin: 0 0 22px; letter-spacing: -0.015em; }
.gs-featured__excerpt { font-size: 18px; line-height: 1.6; color: #333; margin: 0 0 16px; max-width: 600px; }
[dir="rtl"] .gs-featured__excerpt { line-height: 1.7; }
.gs-archive-col { border-inline-start: 1px solid #CDCDCD; padding-inline-start: 36px; }
.gs-archive-col__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.gs-archive-link { font-size: 13px; font-weight: 500; color: #CC3366; text-decoration: none; }
.gs-archive-item { display: block; padding: 20px 0; border-top: 1px solid #CDCDCD; text-decoration: none; }
.gs-archive-item__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #69727D; margin-bottom: 8px; }
.gs-archive-item__meta .gs-tag { color: #CC3366; font-weight: 600; }
.gs-archive-item h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: #333; margin: 0; transition: color 160ms; }
.gs-archive-item:hover h3 { color: #CC3366; }

.gs-cards-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.gs-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gs-card { display: block; border: 1px solid #CDCDCD; border-radius: 4px; padding: 24px; text-decoration: none; background: #fff; transition: transform 240ms cubic-bezier(.4,0,.2,1), border-color 160ms; }
.gs-card:hover { transform: translateY(-2px); border-color: #333; }
.gs-card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #69727D; margin-bottom: 12px; }
.gs-card__meta .gs-tag { color: #CC3366; font-weight: 600; }
.gs-card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: #333; margin: 0; }
.gs-card__icon { display: inline-flex; color: #CC3366; margin-bottom: 14px; }
.gs-card__desc { font-size: 14.4px; color: #69727D; line-height: 1.5; margin: 6px 0 12px; }
.gs-card__cta { font-size: 14.4px; font-weight: 500; color: #CC3366; }

/* ---------- Instagram ---------- */
.gs-insta__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.gs-insta__id { display: flex; align-items: center; gap: 12px; }
.gs-insta__handle { font-size: 14.4px; color: #69727D; }
.gs-insta__follow { font-size: 14.4px; font-weight: 500; color: #333; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.gs-insta__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gs-insta__grid figure { margin: 0; }
.gs-insta__cap { font-size: 13px; color: #69727D; line-height: 1.45; margin-top: 8px; }

/* ---------- Home about excerpt ---------- */
.gs-homeabout { max-width: 760px; }
.gs-homeabout h2 { font-size: 32px; font-weight: 700; line-height: 1.2; color: #333; margin: 0 0 16px; }
.gs-homeabout p { font-size: 18px; line-height: 1.6; color: #333; margin: 0 0 22px; }
[dir="rtl"] .gs-homeabout p { line-height: 1.7; }
.gs-textlink { font-size: 16px; font-weight: 500; color: #CC3366; text-decoration: none; }

/* ---------- Section heading row ---------- */
.gs-sectionhead { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.gs-sectionhead h2 { font-size: 32px; font-weight: 700; line-height: 1.2; color: #333; margin: 0; }

/* ---------- Home photo carousel ---------- */
.gs-homecar__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #F7F7F7; border: 1px solid #CDCDCD; border-radius: 8px; overflow: hidden; }
.gs-homecar__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 480ms cubic-bezier(.4,0,.2,1); }
.gs-homecar__slide.is-active { opacity: 1; pointer-events: auto; }
.gs-homecar__slide .gs-photo { border: none; border-radius: 0; height: 100%; }
.gs-iconbtn { width: 44px; height: 44px; border-radius: 0; border: 1px solid #CDCDCD; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #333; transition: background 160ms, border-color 160ms; }
.gs-iconbtn:hover { background: #F7F7F7; border-color: #333; }
.gs-homecar__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 16px; flex-wrap: wrap; }
.gs-homecar__cap { font-size: 14.4px; color: #69727D; line-height: 1.5; }
.gs-dots { display: flex; gap: 8px; }
.gs-dot { width: 8px; height: 8px; border-radius: 4px; border: none; padding: 0; cursor: pointer; background: #CDCDCD; transition: width 240ms, background 160ms; }
.gs-dot.is-active { width: 24px; background: #CC3366; }

/* ---------- Mailing list ---------- */
.gs-ml__inner { max-width: 680px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.gs-ml__overline { margin-bottom: 12px; }
.gs-ml__title { font-size: 32px; font-weight: 700; line-height: 1.2; color: #333; margin: 0 0 12px; }
.gs-ml__body { font-size: 16px; line-height: 1.6; color: #69727D; margin: 0 0 24px; }
[dir="rtl"] .gs-ml__body { line-height: 1.7; }
.gs-ml__form { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.gs-ml__input { flex: 1 1 240px; font-family: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #CDCDCD; border-radius: 0; color: #333; outline: none; background: #fff; }
.gs-ml__input.is-error { border-color: #D9534F; }
.gs-ml__error { flex-basis: 100%; font-size: 14.4px; color: #D9534F; margin: 8px 0 0; }
.gs-ml__success { font-size: 18px; font-weight: 500; color: #333; margin: 0; opacity: 0; transition: opacity 2s ease; }
.gs-ml__success.is-visible { opacity: 1; }
.gs-ml__note { font-size: 13px; color: #69727D; margin: 16px 0 0; }

/* ---------- Footer ---------- */
.gs-footer { background: #2D2D2D; color: #fff; }
.gs-footer__inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.gs-footer__brand { max-width: 360px; }
.gs-footer__emblem { width: 56px; height: 56px; margin-bottom: 14px; }
.gs-footer__name { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.gs-footer p.gs-footer__blurb { font-size: 14.4px; color: #C4C4C4; line-height: 1.6; margin: 0; }
.gs-footer p.gs-footer__head { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #BEBEBE; margin: 0 0 14px; }
.gs-footer__head--spaced { margin-top: 24px; }
.gs-footer__links, .gs-footer__links-wrap .gs-nav__list { list-style: none; margin: 0; padding: 0; display: block; }
.gs-footer__links li, .gs-footer__links-wrap li { margin: 0; }
.gs-footer__links a, .gs-footer__links-wrap a { font-size: 14.4px; color: rgba(255,255,255,0.82); text-decoration: none; line-height: 2; display: block; border: none; padding: 0; }
.gs-footer__links a:hover, .gs-footer__links-wrap a:hover { color: #fff; }
.gs-footer__link { font-size: 14.4px; color: rgba(255,255,255,0.82); text-decoration: none; line-height: 2; display: block; }
.gs-footer__addr { font-size: 14.4px; color: rgba(255,255,255,0.82); line-height: 2; }
.gs-footer__bar { border-top: 1px solid rgba(255,255,255,0.15); }
.gs-footer__bar-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; font-size: 13px; color: #B8B8B8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gs-featured__grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .gs-insta__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .gs-footer__inner { grid-template-columns: 1fr !important; }
}
