/*
Theme Name:   Binational Creation
Theme URI:    https://binationalcreation.org
Description:  Astra Child Theme for Binational Creation – trilingual arts platform (English / עברית / عربية)
Author:       Binational Creation
Author URI:   https://binationalcreation.org
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  binational-creation
*/

/* ============================================================
   CSS CUSTOM PROPERTIES – edit here to retheme the entire site
   ============================================================ */
:root {
  --color-bg:          #FAF8F5; /* warm off-white page background  */
  --color-surface:     #FFFFFF; /* card / tile background           */
  --color-border:      #E8E0D5; /* soft warm borders                */
  --color-text:        #2C2416; /* dark warm brown body text        */
  --color-text-light:  #8C7B6B; /* muted / secondary text           */
  --color-accent:      #C4763A; /* warm terracotta links & buttons  */
  --color-accent-dark: #A35E25; /* hover state for accent           */
  --color-nav-bg:      #2C2416; /* header & footer background       */
  --color-nav-text:    #FAF8F5; /* text on dark backgrounds         */

  --font-main: 'Georgia', serif;
  --font-ui:   'Inter', sans-serif;

  --radius:    8px;
  --gap:       20px;
  --max-width: 1200px;

  --header-height: 70px;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  margin: 0;
  padding-top: var(--header-height);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
}

/* Suppress Astra's own header markup (we ship header.php in child) */
.site-header.ast-primary-header-bar,
#masthead,
.ast-desktop-header,
.ast-mobile-header-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap {
  display: none !important;
}

/* ============================================================
   SITE HEADER  (fixed dark bar)
   ============================================================ */
.bc-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-nav-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Shift down when WP admin bar is present */
body.admin-bar .bc-site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .bc-site-header {
    top: 46px;
  }
}

/* The fixed-height bar row */
.bc-header-bar {
  height: var(--header-height);
}

.bc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Site brand / title ── */
.bc-site-brand {
  flex-shrink: 0;
}

.bc-site-title-link {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  color: var(--color-nav-text);
  text-decoration: none;
  font-family: var(--font-ui);
}

.bc-site-title-link:hover {
  color: var(--color-accent);
}

.bc-name-en {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bc-name-he,
.bc-name-ar {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.82;
}

/* ── Desktop primary navigation ── */
.bc-primary-nav {
  display: flex;
  align-items: center;
}

.bc-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.bc-nav-list a {
  display: block;
  padding: 8px 11px;
  color: var(--color-nav-text);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  border-radius: var(--radius);
  transition: background-color 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.bc-nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-nav-text);
}

/* ── Hamburger button ── */
.bc-hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 8px 11px;
  color: var(--color-nav-text);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: var(--radius);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.bc-hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ── Mobile slide-down menu ── */
.bc-mobile-menu {
  display: none;
  background-color: var(--color-nav-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.bc-mobile-menu.is-open {
  display: block;
}

.bc-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  text-align: center;
}

.bc-mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bc-mobile-nav-list li:last-child {
  border-bottom: none;
}

.bc-mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--gap);
  color: var(--color-nav-text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  min-height: 44px;
  transition: background-color 0.2s;
}

.bc-mobile-nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--color-nav-text);
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.bc-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--gap) 64px;
}

/* ============================================================
   FRONT PAGE – title & tagline
   ============================================================ */
.bc-front-title {
  text-align: center;
  font-family: var(--font-main);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  color: var(--color-text);
  margin: 0 0 14px;
  line-height: 1.45;
}

.bc-front-tagline {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin: 0 0 52px;
}

/* ============================================================
   MASONRY GRID  (CSS columns – no JS required)
   ============================================================ */
.bc-groups-grid,
.bc-items-grid {
  column-count: 3;
  column-gap: var(--gap);
}

/* ============================================================
   SHARED TILE BASE
   ============================================================ */
.bc-group-tile,
.bc-item-tile {
  break-inside: avoid;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--gap);
  transition: box-shadow 0.2s, transform 0.2s;
}

.bc-group-tile:hover,
.bc-item-tile:hover {
  box-shadow: 0 6px 20px rgba(44, 36, 22, 0.13);
  transform: translateY(-2px);
}

/* ── Tile image wrapper ── */
.bc-tile-img-wrap {
  display: block;
  overflow: hidden;
  background-color: var(--color-border);
  aspect-ratio: 4 / 3;
}

.bc-tile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bc-tile-img-wrap:hover img {
  transform: scale(1.04);
}

/* Placeholder when no image */
.bc-tile-img-placeholder {
  aspect-ratio: 4 / 3;
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-text-light);
}

/* ── Tile body ── */
.bc-tile-body {
  padding: 16px;
}

.bc-tile-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1rem;
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.45;
}

.bc-tile-title a {
  color: var(--color-text);
}

.bc-tile-title a:hover {
  color: var(--color-accent);
}

.bc-tile-icon {
  flex-shrink: 0;
  font-style: normal;
  font-size: 1.05rem;
  margin-top: 1px;
}

/* ── "For more…" block ── */
.bc-tile-more {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 12px;
}

.bc-tile-more a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--color-accent);
  line-height: 1.9;
}

.bc-tile-more a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ── Empty group placeholder tile ── */
.bc-group-tile.bc-tile-empty .bc-tile-body {
  padding: 32px 16px;
  text-align: center;
}

.bc-tile-group-name {
  font-family: var(--font-ui);
  color: var(--color-text-light);
  line-height: 1.9;
  margin: 0;
}

/* ── Item tile excerpt ── */
.bc-tile-excerpt {
  margin: 0;
  padding: 0 16px 16px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================================
   GROUP ARCHIVE PAGE
   ============================================================ */
.bc-archive-header {
  text-align: center;
  margin-bottom: 44px;
}

.bc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.bc-back-link:hover {
  color: var(--color-accent-dark);
}

.bc-archive-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--color-text);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   SINGLE ITEM PAGE
   ============================================================ */
.bc-single-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.bc-single-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-text);
  margin: 16px 0 20px;
  line-height: 1.4;
}

/* Group tag pills */
.bc-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.bc-group-tag {
  display: inline-block;
  padding: 5px 14px;
  background-color: var(--color-border);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--color-text);
  transition: background-color 0.2s, color 0.2s;
}

.bc-group-tag:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* Featured image */
.bc-single-feat-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.bc-single-feat-img img {
  width: 100%;
  height: auto;
}

/* Responsive video embed (16:9) */
.bc-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 32px;
  background-color: #000;
}

.bc-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Post content */
.bc-single-content {
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 36px;
}

.bc-single-content p {
  margin-bottom: 1.25em;
}

/* Action button */
.bc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color 0.2s;
  min-height: 44px;
}

.bc-action-btn:hover {
  background-color: var(--color-accent-dark);
  color: #fff;
}

/* ============================================================
   STATIC PAGES  (About / Contact / Donations)
   ============================================================ */
.bc-page-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.bc-page-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-text);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.4;
}

.bc-page-content {
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Contact form placeholder */
#submission-form-placeholder {
  margin-top: 52px;
  padding: 36px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-text-light);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.9;
}

/* ============================================================
   FOOTER
   ============================================================ */
.bc-site-footer {
  background-color: var(--color-nav-bg);
  color: var(--color-nav-text);
  padding: 44px var(--gap);
  margin-top: 80px;
}

.bc-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.bc-footer-copy {
  font-family: var(--font-main);
  font-size: 0.95rem;
  margin: 0 0 20px;
  opacity: 0.88;
  line-height: 1.85;
}

.bc-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-footer-nav a {
  display: inline-block;
  padding: 6px 10px;
  color: rgba(250, 248, 245, 0.65);
  font-family: var(--font-ui);
  font-size: 0.83rem;
  transition: color 0.2s;
}

.bc-footer-nav a:hover {
  color: var(--color-nav-text);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: 2-column grid */
@media (max-width: 1024px) {
  .bc-groups-grid,
  .bc-items-grid {
    column-count: 2;
  }
}

/* Switch to hamburger at ≤ 768 px */
@media (max-width: 768px) {
  .bc-primary-nav {
    display: none;
  }

  .bc-hamburger {
    display: flex;
  }
}

@media (min-width: 769px) {
  .bc-hamburger {
    display: none;
  }

  .bc-mobile-menu {
    display: none !important;
  }
}

/* Mobile: 1-column grid */
@media (max-width: 600px) {
  .bc-groups-grid,
  .bc-items-grid {
    column-count: 1;
  }

  .bc-main {
    padding: 32px var(--gap) 48px;
  }
}
