/* Blog — archive and single post. Tokens, nav and footer come from main.css;
   only what the blog itself needs lives here. */

/* ── HERO ────────────────────────────────────────────────────────────────── */
.post-hero {
  background: radial-gradient(ellipse at center, #3a3a3e 0%, #2a2a2e 40%, #1a1a1e 100%);
  padding: 8rem 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.post-hero .plus-extra {
  position: absolute;
  font-weight: 800;
  color: var(--accent);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.post-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.post-hero--single .post-hero-inner { max-width: 820px; }

.post-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.15;
  color: #F0EDE8;
  text-wrap: balance;
  margin: 0 0 1rem;
}

.post-hero-desc {
  color: rgba(240, 237, 232, 0.62);
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.post-count,
.post-meta {
  font-size: 0.85rem;
  color: rgba(240, 237, 232, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta-dot { opacity: 0.5; }

/* ── FILTER CHIPS ────────────────────────────────────────────────────────── */
.filters-bar .filter-chip-n {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-inline-start: 0.35rem;
}

/* ── ARCHIVE GRID ────────────────────────────────────────────────────────── */
.post-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 3rem 4rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 97, 26, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-media img { transform: scale(1.04); }

.post-card-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
}

.post-card-cat {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.post-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}

.post-card-title a {
  color: var(--text);
  text-decoration: none;
}

.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.post-card-link { color: var(--accent); font-weight: 600; }

/* ── SINGLE ──────────────────────────────────────────────────────────────── */
.post-cover {
  max-width: 980px;
  margin: -2.5rem auto 0;
  padding: 0 3rem;
  position: relative;
  z-index: 2;
}

.post-cover img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  display: block;
}

/* Long-form Hebrew: a narrow measure is the whole point of this column. */
.post-body {
  max-width: 68ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.post-body > * + * { margin-top: 1.35em; }

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  text-wrap: balance;
  margin-top: 2.4em;
  margin-bottom: 0.2em;
}

.post-body h2 { font-size: 1.55rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body h4 { font-size: 1.08rem; }

.post-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.post-body ul,
.post-body ol { padding-inline-start: 1.4em; }
.post-body li + li { margin-top: 0.5em; }

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.post-body figure { margin-inline: 0; }

.post-body figcaption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.6em;
}

.post-body blockquote {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 1.2em;
  color: var(--text);
  font-size: 1.12rem;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 0.6em 0.8em;
  text-align: start;
}

/* Wide content must scroll on its own, never the page. */
.post-body .wp-block-table,
.post-body .table-wrap { overflow-x: auto; }

.post-foot {
  max-width: 68ch;
  margin: 2.5rem auto 0;
  padding: 2rem 1.5rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-back {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.post-back:hover { color: var(--accent); }

.post-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-cta:hover { opacity: 0.9; }

/* ── RELATED ─────────────────────────────────────────────────────────────── */
.post-related {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 5rem;
}

.post-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.post-related .section-title { margin-bottom: 2rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .post-hero { padding: 6.5rem 1.25rem 2.5rem; }
  .post-archive { padding: 2rem 1.25rem 3rem; }
  .post-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .post-cover { padding: 0 1.25rem; margin-top: -1.5rem; }
  .post-body { padding: 2rem 1.25rem 1rem; font-size: 1rem; }
  .post-foot { padding: 1.5rem 1.25rem 3rem; }
  .post-related { padding: 3rem 1.25rem 4rem; }
}

/* ── Content pages ───────────────────────────────────────────────────────
   Same hero and reading column as the blog, so a visitor moving between an
   article and a service page stays in one typographic world. */
.page-hero .post-hero-inner { max-width: 880px; }

.page-body { max-width: 72ch; }

.page-body h2 { font-size: 1.6rem; }
.page-body h3 { font-size: 1.22rem; }

.page-body ul li::marker,
.page-body ol li::marker { color: var(--accent); }

/* ── Sibling pages ───────────────────────────────────────────────────────── */
.page-children {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 4.5rem;
  margin-top: 3rem;
}

.page-children-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-children .section-title { margin-bottom: 2rem; }

.page-children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.page-child {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-child:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 97, 26, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.page-child-mark {
  position: absolute;
  inset-inline-end: 0.9rem;
  top: 0.3rem;
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}

.page-child h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text);
  text-wrap: balance;
}

.page-child p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-child-link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Closing call to action ──────────────────────────────────────────────── */
.page-cta {
  background: radial-gradient(ellipse at center, #3a3a3e 0%, #2a2a2e 40%, #1a1a1e 100%);
  padding: 4.5rem 3rem 5rem;
  text-align: center;
}

.page-cta-inner { max-width: 620px; margin: 0 auto; }

.page-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #F0EDE8;
  margin: 0 0 0.8rem;
}

.page-cta p {
  color: rgba(240, 237, 232, 0.62);
  line-height: 1.7;
  margin: 0 0 1.8rem;
}

.page-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.4rem;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.page-cta-btn:hover { opacity: 0.9; }

@media (max-width: 768px) {
  .page-children { padding: 3rem 1.25rem 3.5rem; }
  .page-cta { padding: 3.5rem 1.25rem 4rem; }
}

/* ── Colour guards ───────────────────────────────────────────────────────
   Two things outrank single-class rules here: the Elementor kit's
   `.elementor-kit-6 h1` (0,1,1), and the parent theme's reset.css `a`, which
   paints every unstyled link a pink that belongs to no part of this design.
   These selectors are deliberately specific enough to settle it. */
.post-hero .post-hero-title,
.page-hero .post-hero-title {
  color: #F0EDE8;
}

.post-hero .breadcrumbs,
.page-hero .breadcrumbs {
  color: rgba(240, 237, 232, 0.45);
}

.post-hero .breadcrumbs a,
.page-hero .breadcrumbs a {
  color: rgba(240, 237, 232, 0.7);
  text-decoration: none;
}

.post-hero .breadcrumbs a:hover,
.page-hero .breadcrumbs a:hover {
  color: var(--accent);
}

/* Cards: nothing inside may fall back to the reset's link colour. */
.page-children .page-child,
.post-grid .post-card a {
  color: var(--text);
}

.page-children .page-child p { color: var(--text-dim); }
.page-children .page-child .page-child-link { color: var(--accent); }

/* ── Page gallery ────────────────────────────────────────────────────────
   Work samples sit under the text as small, even tiles, centred however
   many there are; the full picture opens in a lightbox (main.js). */
.page-gallery {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 3rem;
}

.page-gallery-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 210px));
  justify-content: center;
  gap: 1.5rem 1rem;
}

.page-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-shot-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-shot-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.page-shot-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.page-shot-link:hover img { transform: scale(1.04); }

.page-shot-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-shot figcaption {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-mid);
  text-align: center;
  padding: 0 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .page-shot-link,
  .page-shot-link img { transition: none; }
  .page-shot-link:hover,
  .page-shot-link:hover img { transform: none; }
}

/* ── FAQ accordion ───────────────────────────────────────────────────────
   Built on <details> so it opens without JavaScript and is reachable from the
   keyboard by default. */
.page-faq {
  max-width: 820px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
}

.page-faq .section-title { margin-bottom: 1.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] { border-color: rgba(232, 97, 26, 0.35); }

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

/* The plus is the site's own mark, and it turns into a minus when open. */
.faq-item summary::before {
  content: "+";
  flex: none;
  width: 1.5rem;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.3rem 1.2rem 1.3rem;
  margin-inline-start: 2.3rem;
}

.faq-answer p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.75;
  font-size: 0.97rem;
}

@media (max-width: 768px) {
  .page-gallery { padding: 0 1.25rem; }
  .page-gallery-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 0.75rem; }
  .faq-answer { margin-inline-start: 0; }
}

/* BLOG FILTER BAR (2026-11-11): chip styles live in category.css, which the
   blog does not load. The bar scrolls sideways instead of wrapping. */
.filters-bar {
  position: sticky; top: 68px; z-index: 50;
  display: flex; gap: 0.5rem; align-items: center;
  padding: 1rem max(3rem, calc((100% - 1200px) / 2 + 3rem));
  overflow-x: auto; scrollbar-width: none;
  background: #fff; border-bottom: 1px solid var(--border);
}
.filters-bar::-webkit-scrollbar { display: none; }
.filters-bar .filter-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 50px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-dim);
  font-family: var(--font-body); font-size: 0.85rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.filters-bar .filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filters-bar .filter-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters-bar .filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.filters-bar .filter-chip-n {
  margin: 0; min-width: 1.4rem; padding: 0.05rem 0.4rem; border-radius: 50px;
  background: rgba(0,0,0,.06); font-size: 0.72rem; opacity: 1; text-align: center;
  font-variant-numeric: tabular-nums;
}
.filters-bar .filter-chip.active .filter-chip-n { background: rgba(255,255,255,.25); }
@media (max-width: 768px) { .filters-bar { top: 56px; padding: 0.75rem 1rem; } }
/* Product cards on content pages (2026-11-11). */
.page-products { padding: 3rem 0 1rem; }
.page-products-inner { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.page-products-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-products-head .section-title { margin: 0; }
.page-products-all { color: var(--accent); font-weight: 500; text-decoration: none; white-space: nowrap; }
.page-products-all:hover { text-decoration: underline; }
@media (max-width: 768px) { .page-products-inner { padding: 0 1rem; } }

/* Page gallery thumbs show the whole picture (2026-11-11): contain, not cover. */
.page-shot-link { background: #fff; }
.page-shot-link img { padding: 6px; box-sizing: border-box; }
.page-products .cat-card a, .page-products .cat-card a:hover { text-decoration: none; }

/* Quote buttons inside copy keep the product-page button look (2026-11-11). */
.btn-primary[data-quote], .btn-primary[data-quote]:hover { text-decoration: none; color: #fff; }

/* Quote button that replaced the old in-post forms: body-link colours must not reach it. */
html body .post-form-cta { margin: 1rem 0 2.25rem; }
html body .post-form-cta a.post-cta,
html body .post-form-cta a.post-cta:hover,
html body .post-form-cta a.post-cta:focus { color: #fff; -webkit-text-fill-color: #fff; text-decoration: none; }
