:root {
  --bg: #141414;
  --bg-alt: #161616;
  --text: #bdbdbd;
  --text-strong: #f2f2f2;
  --accent: #4ecdc4;
  --accent-dark: #3b9a93;
  --gold: #c9a84c;
  --gold-bright: #e8c97a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

/* Minimal accessibility baseline: visible keyboard focus + skip link */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  background: var(--gold);
  color: #1a1a1a;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus-visible {
  top: 12px;
}

html { scrollbar-gutter: stable; }

html {
  background: #181818;
}
body {
  margin: 0;
  min-height: 100vh;
  /* same formula as the landing card (Desktop/תמר/landing_page) so the
     whole site reads as one consistent look */
  background:
    radial-gradient(ellipse at 25% 25%, rgba(75, 75, 75, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(55, 55, 55, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #161616 0%, #272727 50%, #181818 100%);
  color: var(--text);
  font-family: 'Bellefair', 'Heebo', 'Assistant', 'Rubik', 'Noto Sans Hebrew', serif;
  font-size: 23px;
  line-height: 1.6;
}

h1, h2, h3 { color: var(--text-strong); font-weight: 500; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.header {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid rgba(255, 255, 255, 0.15);
  border-block-start: 2px solid rgba(201, 168, 76, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header__wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img { height: 76px; display: block; }
.nav { display: flex; gap: 28px; }
.nav__link {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c0c6cc;
}
.nav__link--active { color: var(--gold-bright); }

.hero {
  max-width: 800px;
  margin: 20px auto 18px;
  padding-inline: 24px;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  margin-block-end: 8px;
  letter-spacing: 0.01em;
}
.hero__tagline {
  font-size: 18px;
  margin-block-end: 4px;
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-bright);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.35);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-social:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.btn-social svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-whatsapp { background: #25d366; }
.btn-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.btn-facebook { background: #1877f2; }

.gallery-grid {
  max-width: 1800px;
  margin: 0 auto 32px;
  padding-inline: 8px;
}
.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  flex-grow: 1;
  border: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.gallery-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card__title {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 22px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 10%, transparent);
  color: #fff;
  text-align: start;
}
.gallery-card__title::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-block-end: 8px;
}
.gallery-card__title-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Portfolio index: 3 curated category cards, each a slow-fading slideshow
   of a handful of hand-picked vertical photos. Deliberately no hover-zoom
   on the image itself (kept calm/quiet per the brief) — only a subtle
   border/shadow lift on the card as a whole. */
.category-grid {
  max-width: 1700px;
  margin: 8px auto 48px;
  padding-inline: 24px;
  display: grid;
  /* Adapts to however many categories exist — fits them all on one row
     while there's room, wraps evenly (never a lone orphan card) once there
     isn't. No manual column count to update when a category is added. */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.category-card {
  display: block;
  color: inherit;
}
.category-card__slideshow {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  border: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.category-card:hover .category-card__slideshow {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}
.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 0.8s ease;
  z-index: 1;
}
.category-card__img.is-active { transform: translateX(0); z-index: 3; }
.category-card__img.is-leaving { transform: translateX(-100%); z-index: 2; }
.category-card__label {
  text-align: center;
  padding-block-start: 18px;
}
.category-card__label h2 {
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 500;
}
.category-card__accent {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

@media (max-width: 860px) {
  .category-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 36px;
    padding-inline: 10px;
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 10px;
    padding-inline: 10px;
  }
}

.gallery-header {
  max-width: 1200px;
  margin: 20px auto 14px;
  padding-inline: 24px;
}
.back-link {
  display: inline-block;
  margin-block-end: 12px;
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gallery-header h1 { font-size: 30px; margin: 0; }

.photo-grid {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding-inline: 24px;
}
.justified-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.justified-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  /* until JS packs rows, reserve space using the image's real aspect ratio
     (set inline per item) so there's no layout jump */
  flex-grow: 1;
}
.justified-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.justified-gallery a:hover img { transform: scale(1.03); }

@media (max-width: 768px) {
  .photo-grid {
    padding-inline: 10px;
  }
  .justified-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.about-hero {
  max-width: 760px;
  margin: 12px auto 0;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}
.about-hero__img {
  width: clamp(220px, 32vw, 340px);
  height: auto;
  display: block;
  /* the source photo has its own flat #1c1c1c backdrop baked in around the
     oval crop, which doesn't match the page's gradient background — clip
     it away so the page background shows through instead of a mismatched
     rectangle */
  clip-path: ellipse(48.3% 48.5% at 49.7% 49.3%);
  -webkit-clip-path: ellipse(48.3% 48.5% at 49.7% 49.3%);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}
.about-hero__caption h1 {
  font-size: 40px;
  margin: 0 0 6px;
}
.about-hero__caption p {
  margin: 0;
  color: var(--gold-bright);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-body {
  max-width: 680px;
  margin: 16px auto 4px;
  padding-inline: 24px;
  text-align: center;
}
.about-body p { font-size: 22px; margin-block: 8px; }

.footer {
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-start: 1px solid rgba(255, 255, 255, 0.15);
  margin-block-start: 40px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.footer__wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #8a9090;
  font-size: 13px;
}
.footer__socials { display: flex; gap: 8px; }
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  transition: transform .18s ease, filter .18s ease;
}
.footer__socials a:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.1);
}
.footer__socials svg { width: 13px; height: 13px; fill: currentColor; }
.footer__socials a.ico-whatsapp { background: #25d366; }
.footer__socials a.ico-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer__socials a.ico-facebook { background: #1877f2; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 12px;
}
.lightbox__close { inset-block-start: 12px; inset-inline-end: 20px; }
.lightbox__prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .header__wrap { flex-direction: column; gap: 10px; }
  .hero h1 { font-size: 30px; }
}
