/* ============================================================
   Westway Lettings Ltd — Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #1a3f7a;
  --navy-mid:   #1e4d92;
  --gold:       #4e90d9;
  --gold-light: #6baae6;
  --cream:      #f0f4fa;
  --white:      #ffffff;
  --grey-light: #e8eef7;
  --grey-mid:   #b0bdd4;
  --grey-text:  #4a5568;
  --body-text:  #2d3a52;
  --border:     rgba(78, 144, 217, 0.2);

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --max-w:  1160px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --radius-sm: 4px;
  --radius:    8px;

  --transition: 0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.06em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
h4 { font-size: 0.95rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

p { color: var(--grey-text); max-width: 62ch; }

strong { color: var(--navy); font-weight: 500; }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.72); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 52ch;
  margin-bottom: 3rem;
}

/* ── Divider ── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 1.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(26,35,50,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__logo-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  position: relative;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--gold); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
}

.nav__mobile a {
  display: block;
  padding: 0.7rem var(--gutter);
  font-size: 0.9rem;
  color: var(--navy);
  border-bottom: 1px solid var(--grey-light);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile a.active { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(78,144,217,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 80% at 5% 90%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Diagonal slash accent (mirrors banner image) */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: rgba(78,144,217,0.08);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 2.25rem;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy-mid);
  padding: 1.75rem 0;
  border-top: 3px solid var(--gold);
}

.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 0.3rem;
}

/* ============================================================
   INTRO / TWO-COL
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(26,35,50,0.08);
  transform: translateY(-2px);
}

.card--cream { background: var(--cream); }

.card__icon {
  width: 36px;
  height: 36px;
  background: rgba(78,144,217,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card p { font-size: 0.9rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-card__head {
  background: var(--navy);
  padding: 1.75rem 2rem;
}

.pricing-card__head h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.pricing-card__amount span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-left: 4px;
}

.pricing-card__body {
  background: var(--white);
  padding: 1.75rem 2rem;
}

.pricing-card__body p { font-size: 0.9rem; margin-bottom: 0; }

/* ============================================================
   CHECK LIST
   ============================================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--grey-text);
}

.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(78,144,217,0.15);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-strip {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.trust-strip__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-item__badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.trust-item__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.trust-item__ref {
  font-size: 0.78rem;
  color: var(--grey-text);
}

/* ============================================================
   ALERT / NOTICE BOX
   ============================================================ */
.notice {
  background: rgba(78,144,217,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.notice p { font-size: 0.9rem; max-width: none; }

/* ============================================================
   CONTACT STRIP
   ============================================================ */
.contact-strip {
  background: var(--navy);
  padding: 3.5rem 0;
  text-align: center;
}

.contact-strip h2 { color: var(--white); margin-bottom: 0.75rem; }
.contact-strip p  { color: rgba(255,255,255,0.65); margin: 0 auto 2rem; }

.contact-strip__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   SIMPLE PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(78,144,217,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.65); max-width: 52ch; }

/* ============================================================
   PROSE (Privacy / Terms)
   ============================================================ */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.prose p {
  margin-bottom: 1rem;
  font-size: 0.94rem;
  max-width: none;
}

.prose ul {
  list-style: disc;
  margin: 0.75rem 0 1rem 1.5rem;
}

.prose ul li {
  font-size: 0.94rem;
  color: var(--grey-text);
  margin-bottom: 0.3rem;
}

.prose .last-updated {
  font-size: 0.82rem;
  color: var(--grey-mid);
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 3.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
}

.footer-address strong {
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.55rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-trust {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
}

.footer-trust__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: flex-start;
}

.footer-trust-item__name {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.15rem;
}

.footer-trust-item__ref {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  max-width: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.open { display: flex; }
}

@media (max-width: 560px) {
  .stats-bar__inner { flex-direction: column; gap: 1.5rem; }
  .hero__actions { flex-direction: column; }
  .contact-strip__actions { flex-direction: column; align-items: center; }
  .trust-strip__inner { flex-direction: column; }
  .footer-trust__grid { flex-direction: column; gap: 1.25rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.22s; }
.fade-up:nth-child(3) { animation-delay: 0.34s; }
.fade-up:nth-child(4) { animation-delay: 0.46s; }
/* ============================================================
   PROJECTS PAGE
   Paste this entire block at the bottom of styles.css
   ============================================================ */


/* ── Filter bar ─────────────────────────────────────────── */
.project-filter-bar {
  background: var(--grey-light);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 72px; /* matches header height */
  z-index: 50;
}

.project-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-filter__btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--grey-text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.project-filter__btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.project-filter__btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}


/* ── Project grid ───────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
}


/* ── Project card ───────────────────────────────────────── */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
  box-shadow: 0 10px 36px rgba(26, 63, 122, 0.12);
  transform: translateY(-3px);
}


/* ── Image area ─────────────────────────────────────────── */
.project-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-light);
  flex-shrink: 0;
}

/* The actual photo — shown when you add a real image */
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

/* Placeholder shown before you add a real image */
.project-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-light);
  border-bottom: 2px dashed var(--border);
}

.project-card__img-placeholder span {
  font-size: 0.78rem;
  color: var(--grey-mid);
  font-family: var(--font-body);
  text-align: center;
  padding: 1rem;
}

/* Category tag badge */
.project-card__tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}


/* ── Card body ──────────────────────────────────────────── */
.project-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-card__location {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card__location::before {
  content: '↗ ';
  font-style: normal;
}

.project-card__year {
  font-size: 0.78rem;
  color: var(--grey-mid);
  font-weight: 400;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}

.project-card__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--grey-text);
  max-width: none;
  margin: 0;
}

/* Works list inside card */
.project-card__works {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--grey-light);
  padding-top: 0.85rem;
}

.project-card__works li {
  font-size: 0.82rem;
  color: var(--grey-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.project-card__works li::before {
  content: '—';
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}


/* ── No results message ─────────────────────────────────── */
.project-no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--grey-text);
  font-size: 0.95rem;
}


/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.92);
  cursor: zoom-out;
}

.lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox__caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  max-width: 60ch;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.22);
}


/* ── Responsive tweaks for filter bar ──────────────────── */
@media (max-width: 560px) {
  .project-filter-bar { top: 72px; }
  .project-filter { gap: 0.4rem; }
  .project-filter__btn { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
}

/* ── END PROJECTS PAGE ────────────────────────────────── */