/* ═══════════════════════════════════════════════════════════════
   NATIA.CC — Gallery Stylesheet (v=18)
   Design: Clean White Gallery · Elegant & Premium · SEO-ready
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'NatiaLogoFont';
  src: url('/fonts/natia-logo-bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }




/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Neutrals */
  --white:      #ffffff;
  --off-white:  #faf9f7;
  --bg:         #f5f3ef;
  --bg-card:    #ffffff;

  /* Charcoal scale */
  --ink:        #1a1814;
  --ink-2:      #2e2b26;
  --ink-3:      #5a5650;
  --ink-4:      #9a9590;
  --ink-5:      #c4c0ba;
  --ink-6:      #e8e4de;

  /* Accent — warm gold */
  --gold:       #b89a4a;
  --gold-light: #d4b468;
  --gold-pale:  #f5efd9;

  /* Status */
  --red:        #c0392b;
  --green:      #2e7d52;

  /* Typography */
  --font-logo:  'Prata', serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --max-w:      1280px;
  --section-py: 7rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26,24,20,0.06), 0 1px 2px rgba(26,24,20,0.04);
  --shadow-md:  0 4px 16px rgba(26,24,20,0.08), 0 2px 6px rgba(26,24,20,0.04);
  --shadow-lg:  0 16px 48px rgba(26,24,20,0.12), 0 6px 16px rgba(26,24,20,0.06);
  --shadow-xl:  0 32px 80px rgba(26,24,20,0.14);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --trans:      0.3s var(--ease);
}

/* ─── Base ───────────────────────────────────────────────────── */
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

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

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 13px 30px;
  transition: var(--trans);
  white-space: nowrap;
  outline-offset: 3px;
}
.btn:focus-visible { outline: 2px solid var(--gold); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-5);
}
.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  padding: 10px 0;
  letter-spacing: 0.05em;
}
.btn-ghost:hover { color: var(--ink); }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background var(--trans), box-shadow var(--trans);
  background: transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--ink-6);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-logo span { color: #000000; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  transition: color var(--trans);
}
.nav-link:hover { color: var(--ink); }
.nav-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 1.5px solid var(--ink-5);
  padding: 8px 18px;
  transition: var(--trans);
}
.nav-ig:hover { border-color: var(--ink); background: var(--off-white); }
.nav-ig svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1000;
  flex-direction: column;
  gap: 6px;
  margin-left: 1rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:first-child { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/hero-painting.jpg') center/cover no-repeat fixed;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero::before {
  display: none;
}

/* ─── Section Shared ─────────────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.section-header { margin-bottom: 3rem; }

/* ─── Divider ────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--ink-6);
}

/* ─── Gallery Section ────────────────────────────────────────── */
.gallery-section {
  padding: var(--section-py) 0;
  background: var(--white);
}
.section-header.centered { text-align: center; }

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 4rem;
  border: 1.5px solid var(--ink-6);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.filter-tab {
  padding: 10px 26px;
  background: transparent;
  border: none;
  border-right: 1.5px solid var(--ink-6);
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
}
.filter-tab:last-child { border-right: none; }
.filter-tab:hover { color: var(--ink); background: var(--off-white); }
.filter-tab.active {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

/* Grid */
.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: var(--ink-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink-6);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 5rem 0; color: var(--ink-4); }
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Painting Card */
.painting-card {
  background: var(--bg-card);
  border: 1px solid var(--ink-6);
  cursor: pointer;
  overflow: hidden;
  transition: var(--trans);
  animation: fadeInUp 0.5s var(--ease) both;
}
.painting-card:hover {
  border-color: var(--ink-5);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.painting-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.card-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.painting-card:hover .card-image { transform: scale(1.04); }
.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.7s var(--ease);
}
.painting-card:hover .card-placeholder { transform: scale(1.04); }

/* Overlays */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,24,20,0.35);
  opacity: 0;
  transition: opacity var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
}
.painting-card:hover .card-hover-overlay { opacity: 1; }
.card-hover-label {
  background: var(--white);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  transform: translateY(6px);
  transition: transform var(--trans);
}
.painting-card:hover .card-hover-label { transform: translateY(0); }

.sold-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.featured-mark {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184,154,74,0.25);
}

.card-info {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--ink-6);
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.card-meta {
  font-size: 0.78rem;
  color: var(--ink-4);
  margin-bottom: 0.75rem;
}
.card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
}
.card-price.sold-price {
  text-decoration: line-through;
  color: var(--ink-5);
}
.card-price.poe { color: var(--ink-4); font-weight: 400; }

/* ─── About Section ──────────────────────────────────────────── */
.about-section {
  padding: var(--section-py) 0;
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-body {
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.about-cta { margin-top: 2rem; }
.about-visual {}
.color-swatches {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
}
.swatch {
  height: 56px;
  flex: 1;
  transition: transform var(--trans);
  cursor: default;
}
.swatch:hover { transform: scaleY(1.15); }
.about-pull-quote {
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 3px solid var(--gold);
}
.about-pull-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ─── Instagram CTA Section ──────────────────────────────────── */
.ig-section {
  padding: 5rem 0;
  background: var(--ink);
  text-align: center;
}
.ig-section .section-label { color: var(--gold-light); }
.ig-section .section-title { color: var(--white); margin-bottom: 1rem; }
.ig-section p { color: rgba(255,255,255,0.55); margin-bottom: 2rem; }
.ig-section .btn-primary { background: var(--white); color: var(--ink); }
.ig-section .btn-primary:hover { background: var(--off-white); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--ink-6);
  background: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--trans);
}
.footer-ig:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: var(--ink-4); }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,24,20,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-card {
  background: var(--white);
  border: 1px solid var(--ink-6);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--trans);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border: 1px solid var(--ink-6);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  color: var(--ink-3);
  transition: var(--trans);
}
.modal-close:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-image-wrap { position: relative; background: var(--bg); overflow: hidden; }
.modal-image { width: 100%; height: 100%; object-fit: cover; min-height: 420px; display: block; }
.modal-img-placeholder {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.4);
}
.modal-sold-badge {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
}
.modal-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.modal-meta { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; font-weight: 600; }
.modal-title { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 700; line-height: 1.15; color: var(--ink); margin-bottom: 1rem; }
.modal-description { font-size: 0.9rem; color: var(--ink-3); line-height: 1.85; flex: 1; margin-bottom: 1.5rem; }
.modal-details {
  border-top: 1px solid var(--ink-6);
  border-bottom: 1px solid var(--ink-6);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-detail-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.modal-detail-label { color: var(--ink-4); }
.modal-detail-value { color: var(--ink); font-weight: 500; }
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.modal-price { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--ink); }
.modal-price.sold { font-size: 0.9rem; color: var(--ink-4); font-family: var(--font-sans); }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-image { min-height: 280px; }
  .modal-img-placeholder { min-height: 280px; }
}
@media (max-width: 680px) {
  :root { --section-py: 4.5rem; }
  .hero { 
    min-height: 100vh !important; 
    height: 100vh !important; 
    aspect-ratio: auto !important;
    background-size: cover !important; 
    background-attachment: scroll !important; 
    background-position: center center;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.25rem; }
  .nav-ig { order: 1; border: none; padding: 0; }
  .nav-ig .ig-label { display: inline; font-size: 1.1rem; }
  
  .paintings-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
  .filter-tabs { overflow-x: auto; max-width: 100%; justify-content: flex-start; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
