/*
Theme Name: Vakhtang Kakulia Child
Theme URI: https://173.249.48.78/
Author: OpenAI Codex
Description: Child theme for the Vakhtang Kakulia portfolio. Future visual and ACF-driven changes belong here.
Template: elene-elementor
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: vakhtang-kakulia-child
*/

:root {
  --elene-canvas: #f7f6f2;
  --elene-ink: #1c1917;
  --elene-clay: #78716c;
  --elene-stone-100: #f0eee9;
  --elene-stone-200: #e3e0d8;
  --elene-border: rgba(28, 25, 23, 0.08);
  --elene-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--elene-canvas);
  color: var(--elene-ink);
  font-family: "Noto Sans Georgian", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.serif,
h1,
h2,
h3,
.site-brand,
.work-title {
  font-family: "Noto Serif Georgian", Georgia, serif;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--elene-border);
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: var(--elene-max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-brand {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header.is-scrolled .site-nav {
  color: var(--elene-ink);
}

body:not(.home) .site-header .site-nav {
  color: var(--elene-ink);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  transition: opacity 160ms ease;
}

.site-nav a:hover {
  opacity: 0.6;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: #18181b;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: flex-end;
  max-width: var(--elene-max);
  margin: 0 auto;
  padding: 0 24px 96px;
  color: var(--elene-canvas);
}

.hero-layout {
  display: grid;
  width: min(860px, 100%);
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: end;
  gap: 28px;
}

.hero-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}

.hero-socials a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(15, 15, 18, 0.18);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-socials a:hover {
  transform: translateY(-3px) scale(1.06);
}

.hero-socials svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.hero-socials .instagram-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-socials .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.hero-social-facebook:hover {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.38);
}

.hero-social-instagram:hover {
  border-color: #e1306c;
  background: #e1306c;
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.38);
}

.hero-social-tiktok:hover {
  border-color: #25f4ee;
  background: #101014;
  color: #25f4ee;
  box-shadow: -3px 2px 0 rgba(37, 244, 238, 0.55), 3px -2px 0 rgba(254, 44, 85, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--elene-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(247, 246, 242, 0.72);
}

.hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.05;
}

.hero .hero-role {
  margin: 14px 0 0;
  font-size: 21px;
  font-weight: 600;
}

.hero .hero-biography {
  max-width: 72ch;
  margin: 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(118, 67, 45, 0.48), rgba(33, 42, 48, 0.38) 52%, rgba(76, 43, 62, 0.44)),
    rgba(12, 12, 12, 0.28);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  padding: 18px 22px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.section {
  padding: 128px 24px;
}

.section-muted {
  background: var(--elene-stone-100);
}

.container {
  max-width: var(--elene-max);
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.15;
}

.pill-link,
.elene-button,
button.elene-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--elene-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--elene-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.pill-link:hover,
.elene-button:hover {
  background: var(--elene-ink);
  color: var(--elene-canvas);
}

.featured-grid {
  columns: 3;
  column-gap: clamp(20px, 2.5vw, 38px);
  margin-top: 12px;
}

.featured-grid .work-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(34px, 4vw, 58px);
  break-inside: avoid;
  transition: transform 400ms ease;
  vertical-align: top;
}

.featured-grid .work-card:nth-of-type(3n + 2) {
  margin-top: clamp(24px, 4vw, 64px);
}

.featured-grid .work-card:nth-of-type(3n) {
  margin-top: clamp(8px, 1.5vw, 24px);
}

.work-card {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.work-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--elene-stone-200);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.sold-ribbon {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: clamp(92px, 27%, 132px);
  aspect-ratio: 1;
  overflow: hidden;
  background: url("assets/images/sold-ribbon.png") top right / contain no-repeat;
  filter: drop-shadow(0 7px 8px rgba(47, 7, 12, 0.24));
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.work-card.is-sold .work-image img {
  filter: saturate(0.78);
}

.work-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--work-ratio, 4 / 5);
  object-fit: cover;
  transition: transform 700ms ease;
}

.featured-grid .work-image img {
  display: block;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.featured-grid .work-image {
  position: relative;
  border-radius: 4px;
  background: #e9e6df;
  box-shadow:
    0 1px 0 rgba(24, 22, 18, 0.08),
    0 18px 44px rgba(24, 22, 18, 0.08);
  transition: box-shadow 400ms ease, transform 400ms ease;
}

.featured-grid .work-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  content: "";
  pointer-events: none;
}

.featured-grid .work-card:hover {
  transform: translateY(-5px);
}

.featured-grid .work-card:hover .work-image {
  box-shadow:
    0 1px 0 rgba(24, 22, 18, 0.08),
    0 26px 60px rgba(24, 22, 18, 0.16);
}

.work-card:hover .work-image img {
  transform: scale(1.03);
}

.featured-grid .work-card:hover .work-image img {
  transform: scale(1.018);
}

.featured-grid .work-caption {
  position: relative;
  margin-top: 18px;
  padding-top: 15px;
}

.featured-grid .work-caption::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--elene-border);
  content: "";
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 400ms ease;
}

.featured-grid .work-card:hover .work-caption::before {
  transform: scaleX(1);
}

.featured-grid .work-title {
  font-family: "Noto Serif Georgian", Georgia, serif;
  font-size: clamp(17px, 1.5vw, 21px);
}

.work-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.work-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.work-meta {
  margin: 8px 0 0;
  color: var(--elene-clay);
  font-size: 13px;
  line-height: 1.5;
}

.work-index {
  flex-shrink: 0;
  color: var(--elene-clay);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.portrait-wrap {
  position: relative;
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.stamp {
  position: absolute;
  right: -24px;
  bottom: -24px;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  background: var(--elene-canvas);
  color: var(--elene-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2,
.contact-copy h2 {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
}

.rich-text {
  max-width: 58ch;
  color: rgba(28, 25, 23, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.facts {
  display: flex;
  gap: 48px;
  margin-top: 48px;
}

.facts p {
  margin: 0;
}

.facts .label {
  margin-bottom: 8px;
  color: var(--elene-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-copy > p {
  max-width: 42ch;
  color: var(--elene-clay);
  line-height: 1.75;
}

.contact-email {
  display: inline-flex;
  margin-top: 28px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.contact-socials a {
  color: var(--elene-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.elene-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.elene-form label {
  display: block;
  color: var(--elene-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.elene-form input,
.elene-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--elene-border);
  background: transparent;
  border-radius: 0;
  color: var(--elene-ink);
  font: inherit;
  margin-top: 8px;
  padding: 12px 0;
}

.elene-form textarea {
  min-height: 150px;
  resize: vertical;
}

.page-hero {
  border-bottom: 1px solid var(--elene-border);
  padding: 144px 24px 56px;
}

.page-hero p:last-child {
  max-width: 60ch;
  color: var(--elene-clay);
  line-height: 1.75;
}

.portfolio-toolbar {
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--elene-border);
  margin-bottom: 48px;
  padding-bottom: 24px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.filter-label {
  width: 96px;
  flex: 0 0 96px;
  color: var(--elene-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-options button {
  min-height: 34px;
  border: 1px solid var(--elene-border);
  border-radius: 999px;
  background: transparent;
  color: var(--elene-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 0 16px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.filter-options button.is-active {
  border-color: var(--elene-ink);
  background: var(--elene-ink);
  color: var(--elene-canvas);
}

.portfolio-count {
  display: flex;
  justify-content: space-between;
  color: var(--elene-clay);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

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

.site-footer {
  border-top: 1px solid var(--elene-border);
  padding: 48px 24px;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  max-width: var(--elene-max);
  margin: 0 auto;
  color: var(--elene-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer-line {
  height: 1px;
  flex: 1;
  background: var(--elene-border);
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: center;
  overflow-y: auto;
  visibility: hidden;
  background: rgba(20, 19, 17, 0.82);
  backdrop-filter: blur(14px);
  opacity: 0;
  padding: 48px;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  display: grid;
  width: min(1180px, 100%);
  max-height: calc(100vh - 96px);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: var(--elene-canvas);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.lightbox.is-open .lightbox-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox-image {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  background: var(--elene-stone-200);
  padding: clamp(16px, 2.5vw, 34px);
}

.sold-ribbon-lightbox {
  width: clamp(108px, 24%, 156px);
}

.sold-status {
  align-self: flex-start;
  margin: 24px 0 0;
  border: 1px solid rgba(159, 31, 43, 0.3);
  border-radius: 999px;
  background: rgba(159, 31, 43, 0.08);
  color: #9f1f2b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  text-transform: uppercase;
}

.lightbox-image img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(20, 18, 15, 0.16));
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 48px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--elene-border);
  border-radius: 999px;
  background: rgba(247, 246, 242, 0.86);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lightbox-close:hover {
  background: var(--elene-ink);
  color: var(--elene-canvas);
  transform: rotate(6deg);
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--elene-border);
  padding: 12px 0;
}

.spec-row span:first-child {
  color: var(--elene-clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-row span:last-child {
  font-family: "Noto Serif Georgian", Georgia, serif;
  font-style: italic;
}

.no-results {
  color: var(--elene-clay);
  font-family: "Noto Serif Georgian", Georgia, serif;
  font-size: 28px;
  font-style: italic;
  padding: 96px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header-inner {
    min-height: 64px;
  }

  .site-nav {
    display: none;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .hero .hero-biography {
    border-radius: 14px;
    font-size: 15px;
    padding: 16px 18px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-socials {
    flex-direction: row;
  }

  .featured-grid,
  .about-grid,
  .contact-grid,
  .portfolio-grid,
  .lightbox-panel,
  .form-row {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    columns: 2;
  }

  .featured-grid .work-card {
    margin-bottom: 32px;
  }

  .featured-grid .work-card:nth-of-type(n) {
    margin-top: 0;
  }

  .section {
    padding: 88px 20px;
  }

  .section-heading,
  .site-footer-inner,
  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-label {
    width: auto;
    flex-basis: auto;
  }

  .stamp {
    right: 16px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-panel {
    max-height: none;
  }

  .lightbox-image {
    max-height: 65vh;
    padding: 12px;
  }

  .lightbox-content {
    min-height: auto;
    padding: 72px 24px 32px;
  }
}

@media (max-width: 620px) {
  .featured-grid {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-grid .work-card,
  .featured-grid .work-image,
  .featured-grid .work-image img,
  .featured-grid .work-caption::before,
  .lightbox,
  .lightbox-panel,
  .lightbox-close {
    transition: none;
  }
}
