/* ================================================
   JamesthePanther — Portfolio Stylesheet
   ================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* --- Typography --- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.section-title--light {
  color: #ffffff;
}

.title-line {
  width: 60px;
  height: 1px;
  background: #1a1a1a;
  margin: 0 auto 48px;
}

.title-line--left {
  margin: 0 0 40px;
}

.title-line--gold {
  background: #c8a97e;
  margin: 0 auto 40px;
}

/* ================================================
   HEADER / NAV
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #ffffff;
  transition: color 0.4s;
}

.site-header.scrolled .logo {
  color: #1a1a1a;
}

.social-icons-header {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.social-icons-header a {
  color: #ffffff;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.social-icons-header a:hover {
  opacity: 1;
  color: #c8a97e;
}

.site-header.scrolled .social-icons-header a {
  color: #1a1a1a;
}

.site-header.scrolled .social-icons-header a:hover {
  color: #c8a97e;
}

.main-nav {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
  padding: 8px 0;
}

.main-nav a:hover {
  color: #c8a97e;
}

.site-header.scrolled .main-nav a {
  color: #1a1a1a;
}

.site-header.scrolled .main-nav a:hover {
  color: #c8a97e;
}

/* Hamburger */
.hamburger {
  display: none;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}

.site-header.scrolled .hamburger span {
  background: #1a1a1a;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  text-align: center;
}

.mobile-menu li {
  margin: 24px 0;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #c8a97e;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 3.5rem;
  color: #ffffff;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1.3;
}

.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #ffffff;
  opacity: 0.7;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* ================================================
   WELCOME
   ================================================ */
.welcome {
  text-align: center;
  background: #ffffff;
}

.welcome-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 16px;
  color: #333;
}

.welcome-sub {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #1a1a1a;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-outline:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* ================================================
   ART — Available Paintings
   ================================================ */
.art {
  background: #ffffff;
}

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

.gallery-card {
  background: #ffffff;
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 8px solid #1a1a1a;
}

.card-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-card:hover .card-overlay {
  opacity: 1;
}

.btn-inquire {
  padding: 12px 32px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.btn-inquire:hover {
  background: #ffffff;
  color: #1a1a1a;
}

.card-info {
  padding: 16px 4px;
  text-align: center;
}

.card-info h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.card-price {
  color: #888;
  font-size: 0.9rem;
}

/* ================================================
   ARCHIVE
   ================================================ */
.archive {
  background: #fafafa;
}

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

.archive-card {
  cursor: pointer;
  text-align: center;
}

.archive-image-wrap {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 6px solid #1a1a1a;
}

.archive-image-wrap img {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.badge-sold {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d44;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  text-transform: uppercase;
}

.archive-card h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-top: 12px;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-caption {
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-top: 20px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: opacity 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 0.6;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  font-size: 3.5rem;
  cursor: pointer;
  transition: opacity 0.3s;
  line-height: 1;
  padding: 20px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.6;
}

/* ================================================
   COMMISSIONS
   ================================================ */
.commissions {
  background: #fafafa;
}

.commissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.commissions-text .section-title {
  text-align: left;
  font-size: 1.8rem;
}

.commissions-text p {
  margin-bottom: 20px;
  color: #444;
  font-size: 0.95rem;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 12px;
}

.btn-primary:hover {
  background: #c8a97e;
}

.commissions-image img {
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* ================================================
   BIO & CONTACT
   ================================================ */
.bio {
  background: #ffffff;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.bio-photo img {
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.bio-text .section-title {
  text-align: left;
  font-size: 1.8rem;
}

.bio-text p {
  margin-bottom: 18px;
  color: #444;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.3s;
  background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.form-group {
  margin-bottom: 16px;
}

.contact-form textarea {
  resize: vertical;
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 20px;
}

.form-feedback.success {
  color: #2a9d2a;
}

.form-feedback.error {
  color: #d44;
}

.contact-info {
  padding-top: 8px;
}

.contact-info p {
  color: #666;
  margin-bottom: 12px;
}

.email-link {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #1a1a1a;
  border-bottom: 1px solid #c8a97e;
  padding-bottom: 2px;
  margin-bottom: 40px;
  transition: color 0.3s;
}

.email-link:hover {
  color: #c8a97e;
}

.events h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.events li {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}

.events li:last-child {
  border-bottom: none;
}

.events strong {
  font-weight: 500;
  font-size: 0.95rem;
}

.events span {
  font-size: 0.85rem;
  color: #888;
}

/* ================================================
   EVENTS
   ================================================ */
.events-section {
  background: #f5f2ed;
  text-align: center;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: #ffffff;
  padding: 36px 28px;
  border-top: 3px solid #c8a97e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.event-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  line-height: 1.2;
}

.event-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c8a97e;
}

.event-year {
  font-size: 0.7rem;
  color: #999;
}

.event-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.event-location {
  font-size: 0.85rem;
  color: #777;
}

/* ================================================
   SIGN UP
   ================================================ */
.signup {
  background: #1a1a1a;
  text-align: center;
}

.signup-text {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 0.95rem;
}

.signup-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.signup-form input:focus {
  outline: none;
  border-color: #c8a97e;
}

.btn-subscribe {
  padding: 16px 32px;
  background: #c8a97e;
  color: #1a1a1a;
  border: 1px solid #c8a97e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-subscribe:hover {
  background: transparent;
  color: #c8a97e;
}

.signup .form-feedback {
  color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: #111;
  padding: 60px 0 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #c8a97e;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #c8a97e;
}

.footer-credit {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-credit a:hover {
  color: #c8a97e;
}

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .commissions-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .commissions-image {
    order: -1;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .section {
    padding: 70px 0;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }

  .social-icons-header {
    display: none;
  }

  .events-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .event-card {
    flex-direction: row;
    text-align: left;
    padding: 24px 20px;
    border-top: none;
    border-left: 3px solid #c8a97e;
  }

  .hero-title {
    font-size: 1.7rem;
    letter-spacing: 0.15em;
    padding: 0 20px;
  }

  .section-title {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 400px;
    margin: 0 auto;
  }

  .archive-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .commissions-text .section-title,
  .bio-text .section-title {
    text-align: center;
  }

  .title-line--left {
    margin: 0 auto 32px;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input,
  .btn-subscribe {
    width: 100%;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 10px;
  }

  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }

  .card-image-wrap {
    border-width: 6px;
  }
}
