/* ============================================================
   Jasmine Elizabeth — Artist Website
   One stylesheet for the whole site.
   Colours live in the :root block below so they are easy to change.
   ============================================================ */

:root {
  --bg:        #faf8f5;   /* soft off-white background        */
  --bg-alt:    #f1ece5;   /* slightly darker panel background */
  --ink:       #1f1d1b;   /* main text colour                 */
  --ink-soft:  #605a54;   /* secondary / muted text           */
  --line:      #e2dcd3;   /* hairline borders                 */
  --accent:    #201452;   /* super-dark inky purple-blue      */
  --accent-dk: #140b33;   /* darker accent for hover          */
  --white:     #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dk); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,245,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: "Tangerine", var(--serif);
  font-weight: 700;
  font-size: 2.9rem;
  line-height: .95;
  letter-spacing: .5px;
  color: var(--ink);
}
.brand-name { display: inline-block; }
.brand-sub { display: block; font-size: .62rem; letter-spacing: 4px; text-transform: uppercase; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; margin-top: 2px; }

/* Fuchsia cursor "spotlight" that lights up the name where the mouse is.
   Added by JS (main.js) on hover; --mx/--my track the cursor. */
.name-spotlight {
  background: radial-gradient(circle 62px at var(--mx, 50%) var(--my, 50%),
              #ff17b2 0%, #ff3dbd 32%, var(--ink) 62%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-size: .82rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 400; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; height: 2px; width: 24px; background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 90px; padding: 40px 0;
  text-align: center; color: var(--ink-soft); font-size: .8rem; letter-spacing: 1px;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* ============================================================
   HELPERS
   ============================================================ */
.page { padding: 70px 0 20px; }
.page-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 8px;
}
.page-sub { color: var(--ink-soft); max-width: 620px; margin-bottom: 46px; font-weight: 300; }
.eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: .72rem; color: var(--accent); font-weight: 400; margin-bottom: 14px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start;
  padding-top: 30px;
}
.about-photo { position: relative; }
.about-photo img {
  width: 100%; border-radius: 4px; aspect-ratio: 4/5; object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
}
.about-text h1 { font-family: "Tangerine", var(--serif); font-weight: 700; font-size: clamp(3.8rem, 9vw, 6rem); line-height: 1; margin-bottom: 16px; }
.about-text p { margin: 0 0 22px; color: #37322e; }
.about-text .signature { font-family: var(--serif); font-size: 1.9rem; color: var(--accent); margin-top: 10px; }

/* ============================================================
   PAINTINGS GRID
   ============================================================ */
/* Masonry columns so each painting keeps its own natural shape (never cropped) */
.gallery { columns: 3; column-gap: 30px; }
.painting-card {
  display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 34px;
  cursor: pointer; background: none; border: none; padding: 0; text-align: left; font-family: inherit;
}
.painting-card .frame {
  overflow: hidden; border-radius: 3px; background: var(--bg-alt);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.4);
}
.painting-card img {
  width: 100%; height: auto; display: block;   /* natural shape, no cropping */
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.painting-card:hover img { transform: scale(1.04); }
.painting-card .meta { padding: 16px 2px 0; }
.painting-card .meta .title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.painting-card .meta .price { color: var(--ink-soft); font-size: .85rem; letter-spacing: .5px; margin-top: 2px; }

/* ============================================================
   PROCESS GALLERY (masonry-ish)
   ============================================================ */
.process-grid {
  columns: 5; column-gap: 16px;
}
.process-grid img {
  width: 100%; margin-bottom: 16px; border-radius: 3px; break-inside: avoid;
  box-shadow: 0 16px 34px -26px rgba(0,0,0,.4);
  cursor: pointer; transition: opacity .2s ease;
}
.process-grid img:hover { opacity: .88; }

/* ---- Process lightbox (click a photo, scroll sideways) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(18,15,24,.92); backdrop-filter: blur(3px);
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox .lb-img {
  max-width: 88vw; max-height: 86vh; width: auto; height: auto;
  border-radius: 2px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  user-select: none;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close {
  position: absolute; top: 20px; right: 26px; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 2.1rem; line-height: 1; opacity: .8;
}
.lb-close:hover { opacity: 1; }
.lb-count {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.8); font-size: .78rem; letter-spacing: 2px;
}
@media (max-width: 560px) {
  .lb-btn { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lightbox .lb-img { max-width: 94vw; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap { max-width: 640px; }
.contact-form { margin-top: 34px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:disabled { background: var(--bg-alt); color: var(--ink-soft); cursor: not-allowed; opacity: .6; }
.field textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-block; cursor: pointer; font-family: var(--sans); font-size: .82rem;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 400;
  background: var(--accent); color: #fff; border: none; border-radius: 4px;
  padding: 16px 42px; transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--accent-dk); color: #fff; }
.btn:active { transform: translateY(1px); }

.form-note { margin-top: 18px; font-size: .82rem; color: var(--ink-soft); }
.form-success {
  display: none; margin-top: 22px; padding: 18px 20px; border-radius: 4px;
  background: #eef7ee; border: 1px solid #cfe6cf; color: #2f6b34;
}

/* ============================================================
   LIGHTBOX / MODAL (painting detail)
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(28,24,22,.82); backdrop-filter: blur(4px);
  padding: 24px; overflow-y: auto;
}
.modal.open { display: flex; align-items: center; justify-content: center; }
.modal-box {
  background: var(--bg); border-radius: 6px; max-width: 720px; width: 100%;
  max-height: 92vh; margin: auto; overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: rise .35s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.modal-gallery { background: var(--bg-alt); display: flex; flex-direction: column; align-items: center; }
/* Main image shown at its true shape — never cropped */
.modal-gallery .main-img {
  display: block; margin: 0 auto; width: auto; height: auto;
  max-width: 100%; max-height: 50vh;
}
.modal-thumbs { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; justify-content: center; }
.modal-thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 3px; cursor: pointer; opacity: .6; transition: opacity .2s; border: 2px solid transparent; }
.modal-thumbs img:hover, .modal-thumbs img.active { opacity: 1; border-color: var(--accent); }
.modal-info { padding: 40px 38px; position: relative; overflow-y: auto; }
.modal-info h2 { font-size: 2.2rem; margin-bottom: 6px; }
.modal-info .status { display: inline-block; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.modal-info .desc { color: #37322e; margin-bottom: 26px; }
.spec { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 11px 0; font-size: .92rem; }
.spec span:first-child { color: var(--ink-soft); letter-spacing: .5px; }
.spec span:last-child { color: var(--ink); text-align: right; }
.modal-info .price-big { font-family: var(--serif); font-size: 2rem; margin: 24px 0 22px; }
.modal-close {
  position: absolute; top: 16px; right: 18px; background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink-soft);
}
.modal-close:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px 28px; }
  .nav-toggle { display: block; }

  .about { grid-template-columns: 1fr; gap: 36px; }
  .gallery { columns: 2; }
  .process-grid { columns: 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { columns: 1; }
  .process-grid { columns: 2; }
}
