/* ============================================================
   GIOART – Giovanni Cajamarca Ramírez
   Shared Stylesheet
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg-primary:   #0a0a0a;
  --bg-secondary: #111111;
  --bg-card:      #181818;
  --gold:         #c9a96e;
  --gold-light:   #e2c897;
  --gold-dark:    #a07840;
  --text:         #f0f0f0;
  --text-muted:   #888888;
  --border:       #242424;
  --nav-height:   68px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: .02em;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
  padding: 0 2.5rem;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; max-width: 1440px; margin: 0 auto;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-logo span {
  display: block;
  color: var(--text-muted);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  margin-top: 3px;
}
.nav-links {
  display: flex; gap: 2.4rem; list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: none; border: none; padding: .4rem;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); transition: all .3s;
}

/* ── Main ────────────────────────────────────────────────────── */
main { padding-top: var(--nav-height); min-height: 100vh; }

/* ── Hero (Home) ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    150deg,
    rgba(10,10,10,.72) 0%,
    rgba(10,10,10,.28) 50%,
    rgba(10,10,10,.6) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 820px;
}
.hero-content h1 {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  color: var(--text); line-height: 1;
  letter-spacing: .04em; margin-bottom: .4rem;
}
.hero-subtitle {
  font-size: clamp(.75rem, 1.4vw, .95rem);
  color: var(--gold);
  letter-spacing: .4em; text-transform: uppercase;
  font-family: 'Lato', sans-serif; font-weight: 300;
  margin-bottom: 2rem;
}
.hero-content p {
  color: rgba(240,240,240,.78);
  font-size: 1.05rem; line-height: 1.8;
  max-width: 580px; margin: 0 auto 2.5rem;
}
.hero-cta {
  display: inline-flex; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 2.2rem;
  font-size: .75rem; letter-spacing: .22em;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif; font-weight: 400;
  border: 1px solid; transition: all .3s; cursor: pointer;
}
.btn-primary {
  background: var(--gold); border-color: var(--gold); color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light); color: #0a0a0a;
}
.btn-outline {
  background: transparent;
  border-color: rgba(240,240,240,.35); color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Hero dots */
.hero-dots {
  position: absolute; bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 3;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer; transition: all .3s; border: none;
}
.hero-dot.active {
  background: var(--gold); transform: scale(1.35);
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  height: 42vh; min-height: 280px;
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top, rgba(10,10,10,.92) 0%,
    rgba(10,10,10,.45) 55%, rgba(10,10,10,.18) 100%
  );
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 1.5rem 2.5rem 3rem;
  max-width: 1440px; margin: 0 auto; width: 100%;
}
.eyebrow {
  font-size: .72rem; letter-spacing: .38em;
  text-transform: uppercase; color: var(--gold);
  font-family: 'Lato', sans-serif; font-weight: 400;
  margin-bottom: .8rem; display: block;
}
.page-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  color: var(--text); line-height: 1;
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
  padding: 5rem 2.5rem;
  max-width: 1440px; margin: 0 auto;
}
.section-narrow { max-width: 860px; margin: 0 auto; padding: 4rem 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem); color: var(--text); margin-bottom: .8rem;
}
.section-header p {
  color: var(--text-muted); max-width: 580px;
  margin: 0 auto; line-height: 1.85;
}
.section-divider {
  width: 48px; height: 1px;
  background: var(--gold); margin: 1.4rem auto;
}
.section-full {
  padding: 5rem 0;
}

/* ── About / Bio section ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  width: 100%; border: 1px solid var(--border);
}
.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201,169,110,.25);
  pointer-events: none;
}
.about-text .eyebrow { margin-bottom: 1.2rem; }
.about-text h2 { font-size: 2.4rem; margin-bottom: 1.6rem; line-height: 1.18; }
.about-text p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.9; }

.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 2.8rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem; color: var(--gold);
  display: block; line-height: 1;
}
.stat-label {
  font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-top: .4rem;
}

/* ── Series Grid (home) ─────────────────────────────────────── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.series-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; display: block;
  text-decoration: none;
}
.series-card img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s ease;
}
.series-card:hover img { transform: scale(1.06); }
.series-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top, rgba(10,10,10,.88) 0%,
    rgba(10,10,10,.2) 55%, transparent 100%
  );
  transition: background .3s;
}
.series-card:hover .series-card-overlay {
  background: linear-gradient(
    to top, rgba(10,10,10,.95) 0%,
    rgba(10,10,10,.5) 65%, rgba(10,10,10,.12) 100%
  );
}
.series-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.6rem;
}
.series-card-info .eyebrow {
  font-size: .62rem; letter-spacing: .28em;
  margin-bottom: 0;
}
.series-card-info h3 {
  font-size: 1.5rem; color: var(--text); margin-top: .2rem;
}
.series-card-info p {
  font-size: .82rem; color: rgba(240,240,240,.58);
  margin-top: .2rem;
  transform: translateY(8px); opacity: 0;
  transition: all .3s;
}
.series-card:hover .series-card-info p {
  transform: translateY(0); opacity: 1;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-height); z-index: 100;
}
.filter-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0; background: none; border: none;
  color: var(--text-muted);
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
  white-space: nowrap;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Gallery count badge */
.gallery-count {
  max-width: 1440px; margin: 0 auto;
  padding: 1.2rem 2.5rem .4rem;
  font-size: .75rem; color: var(--text-muted);
  letter-spacing: .08em;
}

/* ── Gallery Masonry ────────────────────────────────────────── */
.gallery-wrap {
  padding: 1.5rem 2rem 5rem;
  max-width: 1440px; margin: 0 auto;
}
.gallery-masonry {
  columns: 4; column-gap: 10px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative; overflow: hidden;
  cursor: pointer; display: block;
  background: var(--bg-card);
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0);
  transition: background .3s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(10,10,10,.48);
}
.gallery-item-overlay svg {
  color: white; opacity: 0;
  transform: scale(.75); transition: all .3s;
  width: 36px; height: 36px;
}
.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1; transform: scale(1);
}
.gallery-item.hidden { display: none; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(4,4,4,.97);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap {
  max-width: 90vw; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.08);
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(10,10,10,.7);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
  transition: all .25s;
}
.lightbox-close:hover,
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-close { top: 1.4rem; right: 1.4rem; }
.lightbox-prev  { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: .78rem; color: var(--text-muted);
  letter-spacing: .12em; font-family: 'Lato', sans-serif;
  background: rgba(10,10,10,.6);
  padding: .4rem 1rem;
}

/* ── Expo Section ───────────────────────────────────────────── */
.expo-block {
  padding: 4.5rem 2.5rem;
  max-width: 1440px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.expo-block:last-child { border-bottom: none; }
.expo-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem; align-items: start;
  margin-bottom: 2.5rem;
}
.expo-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5.5rem; line-height: 1;
  color: var(--border); user-select: none;
}
.expo-info h2  { font-size: 2.4rem; color: var(--text); }
.expo-info p   { color: var(--text-muted); line-height: 1.85; margin-top: .6rem; max-width: 640px; }
.expo-masonry  { columns: 3; column-gap: 10px; }
.expo-masonry .gallery-item { margin-bottom: 10px; }

/* ── Artist Photos ──────────────────────────────────────────── */
.artist-photos { columns: 3; column-gap: 10px; }
.artist-photos .gallery-item { margin-bottom: 10px; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}
.contact-card-img {
  width: 100%; max-width: 400px;
  border: 1px solid var(--border);
}
.contact-info h3  { font-size: 1.9rem; margin-bottom: 2rem; }
.contact-item {
  display: flex; gap: 1rem; margin-bottom: 1.6rem; align-items: flex-start;
}
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label {
  font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem;
}
.contact-value { color: var(--text); font-size: .95rem; }
.contact-value a { color: var(--gold-light); }
.contact-value a:hover { color: var(--gold); }

/* ── Contact Form ───────────────────────────────────────────── */
.form-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 5rem 2.5rem;
}
.form-section-inner {
  max-width: 780px; margin: 0 auto;
}
.form-section-inner .section-header { margin-bottom: 2.5rem; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form .field-full { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  display: block;
  font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .5rem;
  font-family: 'Lato', sans-serif;
}
.field label .req { color: var(--gold); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  padding: .85rem 1.1rem;
  outline: none;
  transition: border-color .25s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(136,136,136,.5); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select option { background: #1a1a1a; color: var(--text); }

.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* honeypot */
.field-honey { display: none !important; }

.form-submit-wrap { grid-column: 1 / -1; margin-top: .5rem; }

.btn-submit {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2.5rem;
  background: var(--gold); border: 1px solid var(--gold);
  color: #0a0a0a;
  font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; font-family: 'Lato', sans-serif;
  cursor: pointer; transition: all .3s; width: auto;
}
.btn-submit:hover:not(:disabled) {
  background: var(--gold-light); border-color: var(--gold-light);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Spinner */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.btn-submit.loading .btn-spinner { display: block; }
.btn-submit.loading .btn-text { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Response messages */
.form-msg {
  grid-column: 1 / -1;
  padding: 1.2rem 1.5rem;
  border: 1px solid;
  font-size: .9rem; line-height: 1.6;
  display: none;
}
.form-msg.success {
  border-color: #4caf50; color: #81c784;
  background: rgba(76,175,80,.08);
  display: block;
}
.form-msg.error {
  border-color: #ef5350; color: #e57373;
  background: rgba(239,83,80,.08);
  display: block;
}

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
  .form-section  { padding: 3rem 1.2rem; }
}

/* ── Quote Block ────────────────────────────────────────────── */
.quote-block {
  background: var(--bg-secondary);
  border-left: 2px solid var(--gold);
  padding: 2.5rem 3rem;
  margin: 4rem 0;
}
.quote-block blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; color: var(--text);
  line-height: 1.6; font-style: italic;
}
.quote-block cite {
  display: block; margin-top: 1rem;
  font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  font-style: normal;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem; color: var(--gold);
  letter-spacing: .18em; text-transform: uppercase;
}
.footer-sub {
  font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--text-muted); margin-top: .3rem;
}
.footer-nav {
  display: flex; justify-content: center;
  gap: 2.2rem; list-style: none;
  margin: 1.8rem 0;
}
.footer-nav a {
  font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted);
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: .72rem; color: rgba(136,136,136,.45);
  margin-top: 1rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
/* ── Contact page main layout ───────────────────────────────── */
.contact-main-section {
  padding: 4rem 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
}
.contact-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-main-section { padding: 3rem 1.2rem; }
  .contact-main-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 1200px) {
  .gallery-masonry, .expo-masonry { columns: 3; }
  .about-grid { gap: 3.5rem; }
}
@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
  .expo-masonry   { columns: 2; }
  .about-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-wrap::after { display: none; }
  .series-grid    { grid-template-columns: repeat(2,1fr); }
  .contact-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .artist-photos  { columns: 2; }
}
@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10,10,10,.98);
    flex-direction: column; padding: 1.5rem 2rem;
    gap: 1.2rem; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger  { display: flex; }
  .gallery-masonry { columns: 2; column-gap: 6px; }
  .gallery-item   { margin-bottom: 6px; }
  .expo-masonry   { columns: 1; }
  .artist-photos  { columns: 1; }
  .series-grid    { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: repeat(3,1fr); }
  .lightbox-nav   { display: none; }
  .filter-btn     { padding: .9rem .9rem; font-size: .68rem; }
  .section        { padding: 3rem 1.2rem; }
  .expo-number    { display: none; }
  .quote-block    { padding: 2rem; }
  .quote-block blockquote { font-size: 1.15rem; }
}
