/* ============================================================
   A&S Portfolio Redesign — style.css
   ============================================================ */
:root {
  --as-red:       #ee212b;
  --as-dark:      #1a1a1a;
  --as-anthracite:#2c2c2c;
  --as-grey:      #444444;
  --as-light:     #f5f5f5;
  --as-white:     #ffffff;
  --as-radius:    4px;
  --as-container: 1200px;
  --as-gap:       24px;
}

/* ── Container ────────────────────────────────────────────── */
.as-portfolio-container {
  max-width: var(--as-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.as-portfolio-hero {
  background: var(--as-anthracite);
  padding: 80px 0 60px;
  text-align: center;
}
.as-portfolio-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--as-red);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.as-portfolio-hero__title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--as-white);
  margin: 0 0 16px;
  line-height: 1.15;
}
.as-portfolio-hero__intro {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── FILTERS ──────────────────────────────────────────────── */
.as-portfolio-filters {
  background: var(--as-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.as-portfolio-filters__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}
.as-filter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 18px 22px;
  transition: color .2s, border-bottom-color .2s;
  border-bottom: 3px solid transparent;
  position: relative;
}
.as-filter-btn:hover {
  color: var(--as-white);
}
.as-filter-btn.active {
  color: var(--as-white);
  border-bottom-color: var(--as-red);
}

/* ── GRID ─────────────────────────────────────────────────── */
.as-portfolio-grid-section {
  background: var(--as-light);
  padding: 60px 0 80px;
}
.as-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--as-gap);
}

/* ── CARD ─────────────────────────────────────────────────── */
.as-project-card {
  background: var(--as-dark);
  border-radius: var(--as-radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.as-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}
.as-project-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.as-project-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.as-project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.as-project-card:hover .as-project-card__img {
  transform: scale(1.07);
}
.as-project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  transition: opacity .3s;
}
.as-project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px 20px;
}
.as-project-card__cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--as-red);
  margin-bottom: 7px;
}
.as-project-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--as-white);
  margin: 0 0 12px;
  line-height: 1.25;
}
.as-project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--as-white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  border-bottom: 1px solid var(--as-red);
  padding-bottom: 2px;
}
.as-project-card:hover .as-project-card__cta {
  opacity: 1;
  transform: translateY(0);
}

/* Cards hidden by filter */
.as-project-card.is-hidden {
  display: none;
}

.as-portfolio-empty {
  text-align: center;
  color: var(--as-grey);
  font-size: 16px;
  padding: 60px 0;
}

/* ── SINGLE ── BANNER ─────────────────────────────────────── */
.as-single-banner {
  background: var(--as-anthracite);
  padding: 60px 0 50px;
}
.as-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.as-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .2s;
}
.as-breadcrumb a:hover { color: var(--as-red); }
.as-breadcrumb__sep { color: rgba(255,255,255,0.3); }
.as-single-banner__title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--as-white);
  margin: 0 0 14px;
  line-height: 1.15;
}
.as-single-banner__cat {
  display: inline-block;
  background: var(--as-red);
  color: var(--as-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
}

/* ── SINGLE ── MAIN LAYOUT ────────────────────────────────── */
.as-single-main {
  padding: 64px 0 64px;
  background: var(--as-white);
}
.as-single-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.as-single-main-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--as-radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Info block */
.as-info-block__heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--as-dark);
  margin: 0 0 10px;
}
.as-info-block__accent {
  width: 40px;
  height: 3px;
  background: var(--as-red);
  margin-bottom: 28px;
}
.as-info-block__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid #e8e8e8;
}
.as-info-block__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
}
.as-info-block__label {
  font-weight: 700;
  color: var(--as-grey);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.as-info-block__value {
  color: var(--as-dark);
  font-weight: 500;
  text-align: right;
}
.as-info-block__desc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--as-anthracite);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.as-info-block__desc-text {
  font-size: 15px;
  color: var(--as-grey);
  line-height: 1.7;
  margin-bottom: 28px;
}
.as-info-block__desc-text p { margin: 0 0 12px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.as-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  padding: 14px 28px;
  transition: background .2s, transform .2s;
}
.as-btn--red {
  background: var(--as-red);
  color: var(--as-white);
}
.as-btn--red:hover {
  background: #c41920;
  color: var(--as-white);
  transform: translateY(-2px);
}
.as-btn--lg { padding: 18px 40px; font-size: 14px; }

/* ── GALLERY ──────────────────────────────────────────────── */
.as-single-gallery {
  background: var(--as-light);
  padding: 64px 0 72px;
}
.as-section-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--as-dark);
  margin: 0 0 10px;
}
.as-gallery-accent {
  width: 40px;
  height: 3px;
  background: var(--as-red);
  margin-bottom: 36px;
}
.as-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.as-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--as-radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--as-dark);
}
.as-gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.as-gallery-item:hover .as-gallery-item__img { transform: scale(1.06); }
.as-gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.as-gallery-item:hover .as-gallery-item__overlay { background: rgba(0,0,0,0.42); }
.as-gallery-item__overlay svg { opacity: 0; transition: opacity .3s; }
.as-gallery-item:hover .as-gallery-item__overlay svg { opacity: 1; }

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.as-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.as-lightbox.is-open {
  pointer-events: all;
  opacity: 1;
}
.as-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.as-lightbox__inner {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
}
.as-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
  border-radius: 2px;
  object-fit: contain;
}
.as-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
.as-lightbox__close:hover { opacity: 1; }
.as-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.as-lightbox__nav:hover { background: var(--as-red); }
.as-lightbox__nav--prev { left: 20px; }
.as-lightbox__nav--next { right: 20px; }
.as-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
body.admin-bar .as-portfolio-filters { top: var(--wp-admin--admin-bar--height, 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .as-portfolio-filters { top: 46px; }
}

/* ── CTA ──────────────────────────────────────────────────── */
.as-single-cta {
  background: var(--as-anthracite);
  padding: 80px 0;
}
.as-cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.as-cta-accent {
  width: 40px;
  height: 3px;
  background: var(--as-red);
  margin: 0 auto 28px;
}
.as-cta__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--as-white);
  margin: 0 0 16px;
}
.as-cta__text {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 32px;
}

/* ── PREV / NEXT ──────────────────────────────────────────── */
.as-single-nav {
  background: var(--as-white);
  padding: 40px 0;
  border-top: 1px solid #e8e8e8;
}
.as-project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.as-project-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--as-dark);
  text-decoration: none;
  transition: color .2s;
  max-width: 100%;
}
.as-project-nav__btn:hover { color: var(--as-red); }
.as-project-nav__btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.as-project-nav__btn--next { justify-content: flex-end; }
.as-project-nav__all {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--as-grey);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.as-project-nav__all:hover { border-color: var(--as-red); color: var(--as-red); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .as-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .as-gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .as-single-layout  { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .as-portfolio-grid         { grid-template-columns: 1fr; }
  .as-gallery-grid           { grid-template-columns: repeat(2, 1fr); }
  .as-portfolio-hero         { padding: 50px 0 40px; }
  .as-portfolio-grid-section { padding: 36px 0 56px; }
  .as-filter-btn             { padding: 14px 14px; font-size: 11px; }
  .as-project-nav            { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .as-project-nav__btn       { justify-content: center; }
  .as-project-nav__btn span  { max-width: 180px; }
  .as-lightbox__nav          { width: 40px; height: 40px; font-size: 28px; }
  .as-lightbox__nav--prev    { left: 8px; }
  .as-lightbox__nav--next    { right: 8px; }
  .as-gallery-grid           { grid-template-columns: 1fr; }
  .as-single-cta             { padding: 56px 0; }
}
