/* =========================================================
   GÜNAY NAJAFZADE — The Candlelit Museum
   Palette:
     --ground     #1A110B  deep umber, tomb-interior dark
     --ground-2   #241710  warmer surface
     --parchment  #E9DAC0  primary text
     --parchment-dim #B9A88B secondary text
     --terracotta #C26E4A  warm accent
     --burgundy   #722F37  deep accent
     --gold       #C9A45C  fine lines, gates
   Type:
     Display — Cormorant Garamond
     Body    — EB Garamond
   ========================================================= */

:root {
  --ground: #1A110B;
  --ground-2: #241710;
  --parchment: #E9DAC0;
  --parchment-dim: #B9A88B;
  --terracotta: #C26E4A;
  --burgundy: #722F37;
  --gold: #C9A45C;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, serif;

  --measure: 38rem;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color .25s ease;
}
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========== Navigation =========== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem var(--pad-x);
  background: linear-gradient(to bottom, rgba(26,17,11,.92), rgba(26,17,11,0));
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--parchment);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-left: clamp(1rem, 3vw, 2.25rem);
}
.nav-links a:hover { color: var(--gold); }

/* =========== Hero =========== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("../images/Gunay_Najafzade_0.jpg");
  background-size: cover;
  background-position: center 22%;
  filter: saturate(.92);
  will-change: transform;
}

/* On wide screens the photo is scaled by height and centered, and its
   own edges are feathered to transparent with a mask so it dissolves
   into the dark ground instead of ending at a hard seam. Slight zoom
   keeps the palette and figure prominent. */
@media (min-width: 1150px) {
  .hero-image {
    background-size: cover;
    background-position: center 30%;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }
}

/* candlelit veil — gentle darkening that blends with the masked photo */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 75% at 50% 40%, rgba(26,17,11,0) 45%, rgba(26,17,11,.45) 78%, rgba(26,17,11,.85) 100%),
    linear-gradient(to bottom, rgba(26,17,11,.45), rgba(26,17,11,.05) 28%, rgba(26,17,11,.10) 62%, rgba(26,17,11,.96) 96%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x);
  will-change: transform, opacity;
}

.hero-eyebrow {
  font-size: .85rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.8rem;
}

.hero-name {
  font-family: "Great Vibes", var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(4rem, 13vw, 10.5rem);
  line-height: 1.04;
  letter-spacing: .015em;
  color: var(--parchment);
  text-shadow: 0 2px 50px rgba(0,0,0,.65);
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: drip 2.6s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(.55); transform-origin: top; opacity: .5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* =========== Inscription =========== */

.inscription {
  max-width: var(--measure);
  margin: clamp(5rem, 12vh, 9rem) auto;
  padding: 0 var(--pad-x);
  text-align: center;
}

.inscription p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.65;
  color: var(--parchment);
}

/* =========== Seven Gates divider =========== */

.gates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 22rem;
  margin: 0 auto;
  position: relative;
}
.gates::before,
.gates::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,164,92,.5));
}
.gates::after {
  background: linear-gradient(to left, transparent, rgba(201,164,92,.5));
}
.gates i {
  display: none;
}
.gates .gate-mid {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .9;
}

/* =========== Works =========== */

.works {
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x);
  max-width: 78rem;
  margin: 0 auto;
}

.section-head { margin-bottom: 3.5rem; }

.section-eyebrow {
  font-size: .8rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--parchment);
}

.section-intro {
  max-width: var(--measure);
  margin-top: 1.2rem;
  color: var(--parchment-dim);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.work {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-frame {
  position: relative;
  background: var(--ground-2);
  border: 1px solid rgba(201,164,92,.22);
  padding: clamp(.8rem, 1.6vw, 1.2rem);
  transition: border-color .4s ease, transform .4s ease, box-shadow .4s ease;
}

/* Hover glow — the canvas lifts and a warm light blooms around it */
.work:hover .work-frame,
.work:focus-visible .work-frame {
  border-color: rgba(201,164,92,.7);
  transform: translateY(-6px);
  box-shadow:
    0 18px 50px rgba(0,0,0,.5),
    0 0 38px rgba(201,164,92,.28),
    0 0 70px rgba(194,110,74,.18);
}
.work-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: filter .4s ease;
}
.work:hover .work-frame img {
  filter: brightness(1.06) saturate(1.05);
}

/* Sinai — round painting on transparent ground; same card size as
   others, scaled up so the circle fills the frame more fully */
.work-frame img[src*="sinai"] {
  object-fit: contain;
  background: var(--ground);
  transform: scale(1.28);
}
.work:has(img[src*="sinai"]) .work-frame { overflow: hidden; }

.work-caption { margin-top: 1.1rem; }

.work h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--parchment);
  transition: color .3s ease;
}
.work:hover h3 { color: var(--gold); }

.work-meta {
  margin-top: .3rem;
  font-size: .95rem;
  color: var(--parchment-dim);
  letter-spacing: .03em;
}

.works-misc .work-frame img { aspect-ratio: 4 / 3; }
.work-static { cursor: default; }

/* =========== About =========== */

.about {
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x);
  background: var(--ground-2);
  border-top: 1px solid rgba(201,164,92,.14);
  border-bottom: 1px solid rgba(201,164,92,.14);
}

.about-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 850px) {
  .about-grid {
    grid-template-columns: 0.9fr 1fr;
  }
}

.about-portrait img {
  width: 100%;
  border: 1px solid rgba(201,164,92,.25);
  padding: clamp(.6rem, 1.2vw, 1rem);
  background: var(--ground);
}

.about-text .section-eyebrow { margin-bottom: .9rem; }
.about-text .section-title { margin-bottom: 1.4rem; }
.about-text p + p { margin-top: 1.1rem; }
.about-text p { font-size: 1.05rem; line-height: 1.65; }

.about-location {
  font-style: italic;
  color: var(--parchment-dim);
}

/* =========== Contact =========== */

.contact {
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x);
  text-align: center;
}

.contact-inner { max-width: var(--measure); margin: 0 auto; }

.contact-text { color: var(--parchment-dim); margin-top: 1.2rem; }

.contact-icons {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}
.contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(201,164,92,.3);
  border-radius: 50%;
  color: var(--parchment);
  transition: color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.contact-icons a:hover {
  color: var(--gold);
  border-color: rgba(201,164,92,.7);
  transform: translateY(-3px);
  box-shadow: 0 0 26px rgba(201,164,92,.3);
}

/* =========== Footer =========== */

.footer {
  padding: 2.5rem var(--pad-x) 3rem;
  text-align: center;
  font-size: .9rem;
  color: var(--parchment-dim);
  border-top: 1px solid rgba(201,164,92,.14);
}

/* =========== Reveal animation =========== */

/* Content is visible by default. The fade-in animation only applies when
   JS adds .js-reveal to <html> — so content can never be stuck invisible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}

/* =========================================================
   PAINTING DETAIL PAGES
   ========================================================= */

.detail {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 10rem) var(--pad-x) clamp(4rem, 8vh, 6rem);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-bottom: 3rem;
}
.detail-back:hover { color: var(--gold); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1.1fr 1fr; }
}

/* Stacked layout — for horizontal paintings and the tondo, the image
   sits large and full-width on top, with the text below it */
.detail-grid.is-stacked {
  display: block;
  max-width: 76rem;
  margin: 0 auto;
}
.detail-grid.is-stacked .detail-image {
  position: static;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.detail-grid.is-stacked .detail-image img {
  max-height: 84vh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.detail-grid.is-stacked .detail-body { max-width: 46rem; }

.detail-image {
  position: static;
}
@media (min-width: 900px) {
  .detail-image {
    position: sticky;
    top: 5rem;
  }
}
.detail-image img {
  width: 100%;
  border: 1px solid rgba(201,164,92,.25);
  padding: clamp(.6rem, 1.2vw, 1rem);
  background: var(--ground-2);
}
.detail-image.is-tondo img {
  background: var(--ground);
  max-height: 80vh;
  width: auto;
}

.detail-eyebrow {
  font-size: .8rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.detail-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  color: var(--parchment);
  margin-bottom: .8rem;
}

.detail-meta {
  color: var(--parchment-dim);
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201,164,92,.18);
}

.detail-body p + p { margin-top: 1.2rem; }

.detail-nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(4rem, 8vh, 6rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(201,164,92,.14);
  padding-top: 2.5rem;
}
.detail-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--parchment-dim);
}
.detail-nav a:hover { color: var(--gold); }
.detail-nav .nav-prev::before { content: "← "; }
.detail-nav .nav-next::after { content: " →"; }

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.lang-switch {
  position: relative;
  display: inline-block;
  margin-left: clamp(1rem, 3vw, 2.25rem);
}
.lang-current {
  background: none;
  border: 1px solid rgba(201,164,92,.4);
  color: var(--parchment-dim);
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .18em;
  padding: .35rem .7rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.lang-current:hover {
  color: var(--gold);
  border-color: rgba(201,164,92,.8);
}
.lang-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  min-width: 9rem;
  background: var(--ground-2);
  border: 1px solid rgba(201,164,92,.25);
  border-radius: 3px;
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 20;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu li { margin: 0; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--parchment-dim);
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: .5rem 1.2rem;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.lang-menu button:hover {
  color: var(--gold);
  background: rgba(201,164,92,.08);
}
.lang-menu button.is-active {
  color: var(--terracotta);
}

/* =========================================================
   INQUIRY BLOCK (paintings + objects)
   ========================================================= */
.artwork-props {
  margin: 1.8rem 0 0;
  max-width: 30rem;
}
.artwork-props .prop {
  display: flex;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(201,164,92,.12);
  font-size: 1rem;
}
.artwork-props .prop-k {
  color: var(--parchment-dim);
  min-width: 6.5rem;
  letter-spacing: .04em;
}
.artwork-props .prop-v {
  color: var(--parchment);
}
.inquiry {
  margin: 1.8rem 0 0;
  max-width: 30rem;
  border: 1px solid rgba(201,164,92,.25);
  background: var(--ground-2);
  padding: 1.4rem 1.4rem 1.5rem;
}
.inquiry h3 {
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 .35rem;
}
.inquiry p.inq-sub {
  color: var(--parchment-dim);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.inq-btnrow {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.inq-btn {
  flex: 1;
  min-width: 9rem;
  text-align: center;
  padding: .75rem .9rem;
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .04em;
  border-radius: 2px;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.inq-btn-primary {
  background: var(--gold);
  color: var(--ground);
  border: 1px solid var(--gold);
}
.inq-btn-primary:hover {
  background: #d8b56e;
  border-color: #d8b56e;
}
.inq-btn-ghost {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(201,164,92,.45);
}
.inq-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.inq-or {
  color: var(--parchment-dim);
  opacity: .7;
  font-size: .78rem;
  text-align: center;
  margin: 1rem 0 .9rem;
  letter-spacing: .1em;
}
.inq-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}
.inq-contacts a {
  color: var(--gold);
  text-decoration: none;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: color .2s ease;
}
.inq-contacts a:hover { color: #d8b56e; }
.inq-contacts svg { width: 18px; height: 18px; }

/* =========================================================
   OBJECT GALLERY (multi-photo pages)
   ========================================================= */
.detail-image.gallery #gallery-main {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: var(--ground-2);
  border: 1px solid rgba(201,164,92,.25);
  padding: clamp(.6rem, 1.2vw, 1rem);
}
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .9rem;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 4.7rem;
  height: 4.7rem;
  padding: 3px;
  background: var(--ground-2);
  border: 1px solid rgba(201,164,92,.2);
  cursor: pointer;
  transition: border-color .2s ease, opacity .2s ease;
  opacity: .7;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover { opacity: 1; border-color: rgba(201,164,92,.5); }
.gallery-thumb.is-active { opacity: 1; border-color: var(--gold); }
.gallery-hint {
  color: var(--parchment-dim);
  font-size: .8rem;
  font-style: italic;
  margin-top: .8rem;
  opacity: .8;
}
.category-page .detail-back { display: inline-block; margin-bottom: 1.5rem; }

/* =========================================================
   "VIEW DETAILS" CLICK CUE on portfolio cards
   ========================================================= */
.work { cursor: pointer; }
.work-view {
  display: inline-block;
  margin-top: .55rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201,164,92,.35);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease, letter-spacing .25s ease;
}
.work:hover .work-view,
.work:focus-visible .work-view {
  color: #d8b56e;
  border-color: var(--gold);
  letter-spacing: .16em;
}
