:root {
  --primary-gold: #c9a961;
  --dark-brown: #3e2723;
  --warm-beige: #f5f0e8;
  --sage-green: #8a9a78;
  --terracotta: #c86240;
  --soft-cream: #fdfbf7;
  --accent-teal: #4a7c7e;
  --footer-deep: #2c1a12;
  --footer-mid: #3e2723;
  --footer-light: rgba(255, 255, 255, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background: var(--soft-cream);
}

h1,
h6 {
  font-family: "Playfair Display", serif;
}

footer {
  background: var(--footer-deep);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── top accent line ── */
.bisharafooter-accent-line {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-gold) 30%,
    var(--accent-teal) 70%,
    transparent
  );
}

/* ── main grid ── */
.bisharafooter-main {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.7fr 1.3fr;
  gap: 50px;
}

/* ── column shared ── */
.bisharafooter-col h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 14px;
}

.bisharafooter-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--primary-gold);
}

/* ── col 1 – brand ── */
.bisharafooter-brand .logo-wrap {
  margin-bottom: 24px;
}

.bisharafooter-brand .logo-wrap img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.bisharafooter-brand .tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--primary-gold);
  margin-bottom: 22px;
  opacity: 0.85;
}

.bisharafooter-brand .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.bisharafooter-brand .contact-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.bisharafooter-brand .contact-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bisharafooter-brand .contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
}

.bisharafooter-brand .contact-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.bisharafooter-brand .contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.bisharafooter-brand .contact-value a:hover {
  color: var(--primary-gold);
}

/* ── col 2 & 3 – nav lists ── */
.bisharafooter-nav-list {
  list-style: none;
}

.bisharafooter-nav-list li {
  margin-bottom: 13px;
}

.bisharafooter-nav-list a {
  color: var(--footer-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    color 0.3s,
    transform 0.3s;
}

.bisharafooter-nav-list a .arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: rgba(201, 169, 97, 0.15);
  border-radius: 3px;
  position: relative;
  transition: background 0.3s;
}

.bisharafooter-nav-list a .arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--primary-gold);
  border-bottom: 1.5px solid var(--primary-gold);
  transition: border-color 0.3s;
}

.bisharafooter-nav-list a:hover {
  color: white;
  transform: translateX(4px);
}

.bisharafooter-nav-list a:hover .arrow {
  background: rgba(201, 169, 97, 0.3);
}

/* ── col 4 – image grid ── */
.bisharafooter-gallery h4 {
  margin-bottom: 20px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 90px);
  gap: 5px;
  border-radius: 6px;
  overflow: hidden;
}

.image-grid .grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
  filter: brightness(0.78) saturate(0.85);
}

.image-grid .grid-item:hover img {
  transform: scale(1.14);
  filter: brightness(1) saturate(1.15);
}

/* dark gradient overlay every cell */
.image-grid .grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(44, 26, 18, 0.45) 0%,
    transparent 60%
  );
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.image-grid .grid-item:hover::after {
  opacity: 0;
}

/* centre cell spans two rows for asymmetric visual weight */
.image-grid .grid-item.tall {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* ── bottom bar ── */
.bisharafooter-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 40px;
}

.bisharafooter-bottom-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.bisharafooter-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── social icons ── */
.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s;
  text-decoration: none;
}

.social-row a svg {
  width: 15px;
  height: 15px;
  fill: rgba(255, 255, 255, 0.55);
  transition: fill 0.3s;
}

/* instagram uses strokes not fill */
.social-row a.instagram svg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.social-row a.instagram:hover svg {
  stroke: white;
}

.social-row a:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(201, 169, 97, 0.35);
}

.social-row a:hover svg {
  fill: white;
}

/* expand icon that appears on grid-item hover */
.grid-item .expand-icon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.grid-item:hover .expand-icon {
  opacity: 1;
}

.expand-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* ── lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 8, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(44, 26, 18, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
}

.lightbox-close svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(44, 26, 18, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-arrow:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
}

.lightbox-arrow svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.lightbox-arrow.prev {
  left: 20px;
}
.lightbox-arrow.next {
  right: 20px;
}

.lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 88vw;
  max-height: 88vh;
  gap: 16px;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  transition: opacity 0.3s;
}

.lightbox-img-wrap img.loading {
  opacity: 0.3;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

.lightbox-caption .caption-text {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

.lightbox-caption .caption-counter {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lightbox-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 1s;
}

.lightbox-hint.hidden {
  opacity: 0;
}

/* ──────────────────────── RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {
  .bisharafooter-main {
    grid-template-columns: 1fr 1fr;
    gap: 45px 50px;
    padding: 70px 40px 50px;
  }
  .bisharafooter-gallery {
    grid-column: span 2;
  }
  .image-grid {
    grid-template-rows: repeat(3, 105px);
  }
}

@media (max-width: 680px) {
  .bisharafooter-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 56px 28px 44px;
  }
  .bisharafooter-gallery {
    grid-column: 1;
  }
  .image-grid {
    grid-template-rows: repeat(3, 95px);
  }
  .bisharafooter-bottom {
    margin: 0 28px;
  }
  .bisharafooter-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

