/* Design DNA: Jaffa Gallery | numbered-magazine hero | thick-border header | modal-center cookie */
/* Fonts: "Playfair Display", serif + "Space Grotesk", sans-serif */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --jg-white: #FFFFFF;
  --jg-black: #111111;
  --jg-red: #E10600;
  --jg-grey: #EDEDED;
  --jg-border: 4px solid var(--jg-black);
  --jg-border-thin: 2px solid var(--jg-black);
  --jg-font-serif: 'Playfair Display', serif;
  --jg-font-sans: 'Space Grotesk', sans-serif;
  --jg-max: 1200px;
  --jg-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--jg-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--jg-black);
  background: var(--jg-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--jg-red);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--jg-font-serif);
  font-weight: 600;
  line-height: 1.15;
}

/* ── Header ── */
.jg-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--jg-white);
  border-bottom: var(--jg-border);
  height: var(--jg-header-h);
}

.jg-header__inner {
  max-width: var(--jg-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jg-logo {
  font-family: var(--jg-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.jg-logo span {
  display: block;
  font-family: var(--jg-font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jg-black);
  opacity: 0.6;
}

.jg-nav {
  display: flex;
  gap: 32px;
}

.jg-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}

.jg-nav a.jg-nav--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--jg-red);
}

.jg-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.jg-burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--jg-black);
  transition: transform 0.3s, opacity 0.3s;
}

.jg-burger.jg-burger--open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.jg-burger.jg-burger--open span:nth-child(2) {
  opacity: 0;
}

.jg-burger.jg-burger--open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Hero (split) ── */
.jg-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--jg-header-h));
  border-bottom: var(--jg-border);
}

.jg-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  border-right: var(--jg-border);
}

.jg-hero__number {
  font-family: var(--jg-font-serif);
  font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 700;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--jg-black);
  text-stroke: 2px var(--jg-black);
  margin-bottom: 24px;
}

.jg-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jg-red);
  margin-bottom: 16px;
}

.jg-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.jg-hero__text {
  font-size: 1rem;
  max-width: 420px;
  opacity: 0.75;
  margin-bottom: 32px;
}

.jg-hero__right {
  position: relative;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jg-grey);
}

.jg-hero__frame {
  border: var(--jg-border);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--jg-black);
}

.jg-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* ── Buttons ── */
.jg-btn {
  display: inline-block;
  font-family: var(--jg-font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: var(--jg-border-thin);
  background: var(--jg-black);
  color: var(--jg-white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.jg-btn:hover {
  background: var(--jg-white);
  color: var(--jg-black);
}

.jg-btn--outline {
  background: transparent;
  color: var(--jg-black);
}

.jg-btn--outline:hover {
  background: var(--jg-black);
  color: var(--jg-white);
}

.jg-btn--red {
  background: var(--jg-red);
  border-color: var(--jg-red);
  color: var(--jg-white);
}

.jg-btn--red:hover {
  background: var(--jg-black);
  border-color: var(--jg-black);
  color: var(--jg-white);
}

/* ── Section blocks ── */
.jg-section {
  max-width: var(--jg-max);
  margin: 0 auto;
  padding: 80px 24px;
}

.jg-section--border {
  border-bottom: var(--jg-border);
}

.jg-section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.jg-section__number {
  font-family: var(--jg-font-serif);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--jg-black);
  text-stroke: 2px var(--jg-black);
}

.jg-section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  padding-top: 12px;
}

.jg-section__subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 8px;
}

/* ── Grid layouts ── */
.jg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.jg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.jg-card {
  border: var(--jg-border-thin);
  background: var(--jg-white);
}

.jg-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: var(--jg-border-thin);
}

.jg-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s;
}

.jg-card:hover .jg-card__img img {
  filter: grayscale(0%);
}

.jg-card__body {
  padding: 24px;
}

.jg-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jg-red);
  margin-bottom: 8px;
}

.jg-card__title {
  font-family: var(--jg-font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.jg-card__text {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ── Split content ── */
.jg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--jg-border-thin);
}

.jg-split__img {
  overflow: hidden;
}

.jg-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  min-height: 360px;
}

.jg-split__content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: var(--jg-border-thin);
}

/* ── Page header ── */
.jg-pagehead {
  border-bottom: var(--jg-border);
  padding: 60px 24px;
  background: var(--jg-grey);
}

.jg-pagehead__inner {
  max-width: var(--jg-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: end;
}

.jg-pagehead__number {
  font-family: var(--jg-font-serif);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--jg-black);
  text-stroke: 2px var(--jg-black);
}

.jg-pagehead__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.jg-pagehead__desc {
  grid-column: 2;
  max-width: 560px;
  opacity: 0.7;
}

/* ── Artist list ── */
.jg-artist {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: var(--jg-border-thin);
}

.jg-artist__num {
  font-family: var(--jg-font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--jg-black);
  text-stroke: 1.5px var(--jg-black);
}

.jg-artist__name {
  font-family: var(--jg-font-serif);
  font-size: 1.4rem;
}

.jg-artist__discipline {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.jg-artist__link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Contact form ── */
.jg-form {
  max-width: 600px;
}

.jg-form__group {
  margin-bottom: 24px;
}

.jg-form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jg-form__input,
.jg-form__textarea,
.jg-form__select {
  width: 100%;
  font-family: var(--jg-font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: var(--jg-border-thin);
  background: var(--jg-white);
  color: var(--jg-black);
  outline: none;
  transition: border-color 0.2s;
}

.jg-form__input:focus,
.jg-form__textarea:focus,
.jg-form__select:focus {
  border-color: var(--jg-red);
}

.jg-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.jg-form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
}

.jg-form__check input {
  margin-top: 4px;
  accent-color: var(--jg-black);
}

/* ── Info blocks ── */
.jg-info {
  border: var(--jg-border-thin);
  padding: 32px;
  background: var(--jg-grey);
}

.jg-info__title {
  font-family: var(--jg-font-serif);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.jg-info__row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.jg-info__label {
  font-weight: 600;
  min-width: 100px;
}

/* ── Privacy prose ── */
.jg-prose {
  max-width: 760px;
}

.jg-prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.jg-prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.jg-prose p {
  margin-bottom: 16px;
  opacity: 0.85;
}

.jg-prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.jg-prose li {
  margin-bottom: 8px;
  opacity: 0.85;
}

/* ── Hours strip ── */
.jg-hours {
  display: flex;
  gap: 0;
  border: var(--jg-border-thin);
}

.jg-hours__item {
  flex: 1;
  padding: 24px;
  text-align: center;
  border-right: var(--jg-border-thin);
}

.jg-hours__item:last-child {
  border-right: none;
}

.jg-hours__day {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jg-hours__time {
  font-family: var(--jg-font-serif);
  font-size: 1.1rem;
}

/* ── Footer ── */
.jg-footer {
  border-top: var(--jg-border);
  background: var(--jg-black);
  color: var(--jg-white);
  padding: 60px 24px 32px;
}

.jg-footer a:hover {
  color: var(--jg-red);
}

.jg-footer__grid {
  max-width: var(--jg-max);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.jg-footer__col h4 {
  font-family: var(--jg-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--jg-red);
}

.jg-footer__col p,
.jg-footer__col li {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.jg-footer__col ul li {
  margin-bottom: 10px;
}

.jg-footer__brand {
  font-family: var(--jg-font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  opacity: 1;
  margin-bottom: 12px;
}

.jg-footer__bottom {
  max-width: var(--jg-max);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Cookie modal (center) ── */
.jg-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.jg-cookie-overlay.jg-cookie-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.jg-cookie {
  background: var(--jg-white);
  border: var(--jg-border);
  max-width: 520px;
  width: 100%;
  padding: 40px;
  text-align: center;
}

.jg-cookie__title {
  font-family: var(--jg-font-serif);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.jg-cookie__text {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 28px;
  line-height: 1.7;
}

.jg-cookie__text a {
  text-decoration: underline;
}

.jg-cookie__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Mobile nav overlay ── */
.jg-mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--jg-header-h);
  background: var(--jg-white);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s;
}

.jg-mobile-nav.jg-mobile-nav--open {
  transform: translateX(0);
}

.jg-mobile-nav a {
  font-family: var(--jg-font-serif);
  font-size: 1.8rem;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .jg-hero {
    grid-template-columns: 1fr;
  }

  .jg-hero__left {
    border-right: none;
    border-bottom: var(--jg-border);
    padding: 48px 24px;
  }

  .jg-hero__right {
    padding: 32px 24px;
    min-height: 420px;
  }

  .jg-grid-2,
  .jg-grid-3,
  .jg-split {
    grid-template-columns: 1fr;
  }

  .jg-split__content {
    border-left: none;
    border-top: var(--jg-border-thin);
  }

  .jg-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jg-hours {
    flex-wrap: wrap;
  }

  .jg-hours__item {
    flex: 1 1 33%;
    border-bottom: var(--jg-border-thin);
  }

  .jg-artist {
    grid-template-columns: 60px 1fr;
  }

  .jg-artist__link {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .jg-nav {
    display: none;
  }

  .jg-burger {
    display: flex;
  }

  .jg-section__head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .jg-pagehead__inner {
    grid-template-columns: 1fr;
  }

  .jg-pagehead__desc {
    grid-column: 1;
  }

  .jg-footer__grid {
    grid-template-columns: 1fr;
  }

  .jg-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .jg-hours__item {
    flex: 1 1 50%;
  }
}
