/* ═══════════════════════════════════════════════
   NIA PAINTS — Custom Stylesheet
   Elegant, minimal artist portfolio
   ═══════════════════════════════════════════════ */

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

:root {
  --color-bg: #0e0e0e;
  --color-bg-warm: #141210;
  --color-surface: #1a1917;
  --color-surface-light: #232220;
  --color-gold: #d4a843;
  --color-gold-light: #e8c664;
  --color-gold-dark: #b08930;
  --color-text: #e8e4dc;
  --color-text-muted: #9e9a90;
  --color-white: #faf8f4;
  --color-border: rgba(212, 168, 67, 0.15);

  --font-display: 'Cormorant Infant', 'Georgia', serif;
  --font-body: 'Cormorant', 'Georgia', serif;
  --font-sans: 'DM Sans', 'Helvetica Neue', sans-serif;

  --container-max: 1200px;
  --section-pad: clamp(80px, 12vw, 160px);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Utility ────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--color-gold);
}
.section-label--light {
  color: var(--color-gold-light);
}
.section-label--light::before {
  background: var(--color-gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-title--light {
  color: var(--color-white);
}

/* ── Button ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}
.btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.25);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255, 0.4);
}
.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}
.btn__icon {
  width: 1rem;
  height: 1rem;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.5s ease, padding 0.4s ease, backdrop-filter 0.5s ease;
}
.nav--scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.nav__logo img {
  height: 55px;
  width: auto;
  transition: height 0.4s ease;
}
.nav--scrolled .nav__logo img {
  height: 42px;
}
.nav__menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav__link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav__link:hover {
  color: var(--color-gold);
}
.nav__link:hover::after {
  width: 100%;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 25px;
  height: 1.5px;
  background: var(--color-white);
  transition: var(--transition);
  transform-origin: center;
}
.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 4px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -4px);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/hero-painting.webp');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.55) 0%,
    rgba(14, 14, 14, 0.3) 40%,
    rgba(14, 14, 14, 0.7) 100%
  );
}
.hero__content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 700px;
  padding: 0 2rem;
}
.hero__kicker {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeInUp 1s 0.3s forwards;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s 0.5s forwards;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s 0.7s forwards;
}
.hero .btn {
  opacity: 0;
  animation: fadeInUp 1s 0.9s forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.hero__scroll span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about {
  padding: var(--section-pad) 0;
  background: var(--color-bg-warm);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__grid--reverse {
  direction: ltr;
}
.about__grid--reverse > :first-child {
  order: 2;
}
.about__grid--reverse > :last-child {
  order: 1;
}
.about__grid--reverse .about__image-accent {
  left: auto;
  right: -15px;
}
.about__image-wrap {
  position: relative;
}
.about__image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about__image-frame:hover img {
  transform: scale(1.03);
}
.about__image-accent {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}
.about__text p {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about__quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--color-gold);
  background: rgba(212, 168, 67, 0.04);
}
.about__quote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}
.about__quote cite {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}
.about__socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}
.about__socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.about__socials a svg {
  width: 18px;
  height: 18px;
}
.about__socials a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════
   BROWSE THE WORK (category cards)
   ═══════════════════════════════════════════════ */
.browse {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}
.browse__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.browse__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.browse__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/5;
  border-radius: 2px;
}
.browse__card-img {
  position: absolute;
  inset: 0;
}
.browse__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.browse__card:hover .browse__card-img img {
  transform: scale(1.06);
}
.browse__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 14, 14, 0.75) 0%,
    rgba(14, 14, 14, 0.1) 50%,
    rgba(14, 14, 14, 0.15) 100%
  );
  transition: background 0.5s ease;
}
.browse__card:hover .browse__card-overlay {
  background: linear-gradient(
    to top,
    rgba(14, 14, 14, 0.85) 0%,
    rgba(14, 14, 14, 0.2) 50%,
    rgba(14, 14, 14, 0.2) 100%
  );
}
.browse__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}
.browse__card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  line-height: 1.2;
}
.browse__card-arrow {
  font-size: 1.8rem;
  color: var(--color-gold);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}
.browse__card:hover .browse__card-arrow {
  transform: translateX(6px);
}

/* ═══════════════════════════════════════════════
   FEATURED BANNER (kept for reference)
   ═══════════════════════════════════════════════ */
.featured {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.featured__image {
  position: absolute;
  inset: 0;
}
.featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 14, 14, 0.85) 0%,
    rgba(14, 14, 14, 0.5) 100%
  );
}
.featured__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 4rem 2rem;
}
.featured__desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.featured__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════ */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}
.gallery__header {
  text-align: center;
  margin-bottom: 4rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery__item--tall {
  grid-row: span 2;
}
.gallery__item--wide {
  grid-column: span 2;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.gallery__item:hover img {
  transform: scale(1.06);
}
.gallery__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(14, 14, 14, 0.7) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery__item:hover .gallery__caption {
  opacity: 1;
}
.gallery__caption span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
}
.gallery__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════════
   SHOP / ETSY CTA
   ═══════════════════════════════════════════════ */
.shop {
  padding: var(--section-pad) 0;
  background: var(--color-bg-warm);
}
.shop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.shop__text p {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.shop__image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.shop__image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.shop__image:hover img {
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    135deg,
    var(--color-surface) 0%,
    var(--color-bg) 100%
  );
}
.contact__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact__desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}
.contact__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  min-width: 120px;
}
.contact__social svg {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.contact__social span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.contact__social:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.08);
}
.contact__social:hover svg,
.contact__social:hover span {
  color: var(--color-gold);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  padding: 3rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer__brand img {
  opacity: 0.7;
  transition: opacity var(--transition);
}
.footer__brand:hover img {
  opacity: 1;
}
.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover {
  color: var(--color-gold);
}
.footer__copy {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* Scroll-triggered animation classes */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="fade-up"] {
  transform: translateY(40px);
}
[data-animate="fade-right"] {
  transform: translateX(-40px);
}
[data-animate="fade-left"] {
  transform: translateX(40px);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about__grid,
  .shop__grid {
    gap: 3rem;
  }
  .gallery__grid {
    grid-auto-rows: 240px;
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .nav__menu.active {
    right: 0;
  }
  .nav__link {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
  }

  /* Hero mobile */
  .hero {
    background-attachment: scroll;
  }
  .hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  /* About mobile */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__image-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Browse mobile */
  .browse__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .browse__card {
    aspect-ratio: 16/10;
  }

  /* Gallery mobile */
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery__item--tall {
    grid-row: span 1;
  }
  .gallery__item--wide {
    grid-column: span 2;
  }

  /* Shop mobile */
  .shop__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .shop__image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Contact mobile */
  .contact__links {
    gap: 1rem;
  }
  .contact__social {
    min-width: 100px;
    padding: 1.2rem 1.5rem;
  }

  .footer__nav {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .gallery__item--wide {
    grid-column: span 1;
  }
  .featured__buttons {
    flex-direction: column;
    align-items: center;
  }
  .contact__links {
    flex-direction: column;
    align-items: center;
  }
  .contact__social {
    width: 100%;
    max-width: 250px;
    flex-direction: row;
    justify-content: center;
  }
}

/* ── Print styles ───────────────────────────── */
@media print {
  .nav, .hero__scroll, .btn, .contact__links {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}

/* ── Scroll-to-top button ───────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.4);
  background: rgba(14, 14, 14, 0.85);
  color: var(--color-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  border-color: var(--color-gold);
  background: rgba(212, 168, 67, 0.15);
}
.scroll-top svg {
  width: 20px;
  height: 20px;
}
