/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #F5F0EB;
  --wall: #F5F0EB;
  --text: #1A1A1A;
  --text-light: #6B6B6B;
  --accent: #B87333;
  --white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --section-pad: clamp(64px, 10vw, 120px);
  --side-pad: clamp(20px, 5vw, 80px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Typography ===== */
.section-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-align: center;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--side-pad);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header--scrolled {
  background: rgba(245, 240, 235, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header--scrolled .header__logo,
.header--scrolled .header__menu a {
  color: var(--text);
  text-shadow: none;
}

.header--scrolled .lang-toggle {
  color: var(--text-light);
  border-color: rgba(0, 0, 0, 0.15);
  text-shadow: none;
}

.header--scrolled .header__burger span {
  background: var(--text);
  box-shadow: none;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease), opacity 0.3s;
}

.header__logo:hover { opacity: 0.6; }

.header__nav { display: flex; align-items: center; }

.header__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__menu a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease);
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.header__menu a:hover { color: var(--accent); }
.header__menu a:hover::after { width: 100%; }

.lang-toggle {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s var(--ease);
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 110;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header__burger.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.header__burger.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ===== Hero =====
   Full-bleed layout: painting fills the viewport as a background; quote sits
   in the lower half, over a bottom-to-top dark gradient for legibility.
   The artist's name lives only in the header — hero carries the quote alone. */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url('../works/IMG_7883.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(90px, 12vh, 120px) var(--side-pad) clamp(60px, 10vh, 120px);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero__quote {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  max-width: 58ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4em;
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  animation: heroTextIn 1.4s var(--ease) 0.9s forwards;
}

.hero__quote-text {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--white);
  text-align: center;
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero__quote-author {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

@keyframes heroTextIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Gallery ===== */
.gallery {
  position: relative;
  padding: var(--section-pad) var(--side-pad);
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--accent);
  opacity: 0.25;
  pointer-events: none;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.gallery__item {
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--wall);
  padding: 6%;
  box-sizing: border-box;
}

.gallery__item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc((100% - 72px) / 2);
  margin: 0 auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: blur(14px);
  opacity: 0;
  transition: filter 0.6s var(--ease), opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.gallery__item img.visible {
  opacity: 1;
}

@media (hover: hover) {
  .gallery__item:hover img {
    filter: blur(0);
    transform: scale(1.01);
  }
}

.gallery__item.is-revealed img {
  filter: blur(0);
}

@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* ===== Statement ===== */
.statement {
  padding: var(--section-pad) var(--side-pad);
  max-width: 800px;
  margin: 0 auto;
}

.statement__quote {
  font-family: var(--font-heading);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.8;
  text-align: center;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ===== About ===== */
.about {
  position: relative;
  padding: var(--section-pad) var(--side-pad);
  background: var(--wall);
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--accent);
  opacity: 0.25;
  pointer-events: none;
}

.about__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about__inner .section-title {
  text-align: center;
}

.about__inner p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.about__quote {
  margin: 0 auto;
  max-width: 600px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-light);
  font-style: italic;
}

.about__quote em {
  font-style: normal;
  color: var(--accent);
}

/* ===== Contact ===== */
.contact {
  padding: var(--section-pad) var(--side-pad);
}

.contact__inner {
  max-width: 520px;
  margin: 0 auto;
}

/* Contact Form */
.contact__form {
  display: grid;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--accent);
}

.contact__form textarea {
  resize: vertical;
  min-height: 80px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--text);
  color: var(--text);
  transition: all 0.3s var(--ease);
  background: transparent;
  cursor: pointer;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.contact__form .btn {
  justify-self: center;
  margin-top: 0.5rem;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2.5rem var(--side-pad);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--wall);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img-wrap {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: block;
  max-width: calc(85vw - 16px);
  max-height: calc(85vh - 16px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.4s var(--ease) 0.1s;
}

.lightbox.active .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--text-light);
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.3s;
  cursor: pointer;
  z-index: 10;
}

.lightbox__close:hover { color: var(--accent); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--text-light);
  font-size: 3rem;
  padding: 1rem;
  transition: color 0.3s;
  cursor: pointer;
  z-index: 10;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--accent); }


/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .header__burger { display: flex; }

  .header__menu {
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }

  .header__menu.active {
    opacity: 1;
    visibility: visible;
  }

  .header__menu a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .hero__quote {
    max-width: 90%;
    gap: 1.1em;
  }

  .hero__quote-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero__quote-author {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .lightbox__prev,
  .lightbox__next { font-size: 2rem; }
}
