/* ============================================================
   Creative Gypsies — Custom Styles
   ============================================================ */

:root {
  --primary:    #C87941;   /* terracotta / burnt orange */
  --gold:       #D4A853;
  --dark:       #2D2926;
  --dark-alt:   #1E1B18;
  --cream:      #FAF7F2;
  --mid:        #E8DDD0;
  --text-muted: #7A6E65;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

.text-accent  { color: var(--gold) !important; }
.bg-dark-alt  { background: var(--dark-alt) !important; }


/* ---- Navbar ---- */
#mainNav {
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

#mainNav.scrolled {
  background: var(--dark-alt) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

#mainNav .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff !important;
  letter-spacing: 0.05em;
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
  transition: color 0.2s;
}

#mainNav .nav-link:hover {
  color: var(--gold) !important;
}

.navbar-toggler-icon {
  filter: brightness(2);
}


/* ---- Hero ---- */
.hero-section {
  min-height: 100vh;
  background-image: url('/static/img/rudimaes-painting-4135297_1920.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 24, 0.75) 0%,
    rgba(200, 121, 65, 0.35) 100%
  );
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-section .lead {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border-radius: 0;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.btn-outline-light {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border-radius: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

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


/* ---- Features Strip ---- */
.features-strip {
  background: var(--dark) !important;
}

.feature-item {
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.feature-item:last-child { border-right: none; }

.feature-item h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212,168,83,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
  font-size: 1.4rem;
}


/* ---- Section Defaults ---- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.75rem auto 1.5rem;
}

.section-divider.left { margin-left: 0; margin-right: auto; }


/* ---- About ---- */
.about-section { background: var(--cream); }

.about-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: 12px 12px 0 var(--primary);
}

.about-section .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 0;
}

.stat-item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0;
}


/* ---- Services ---- */
.services-section { background: var(--mid); }

.service-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid transparent;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-top-color: var(--primary);
}

.service-card .icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.service-card h5 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}


/* ---- Parallax CTA ---- */
.parallax-cta {
  background-image: url('/static/img/elonenimane-brush-5487806_1920.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.parallax-cta .overlay {
  background: rgba(30, 27, 24, 0.82);
  padding: 6rem 0;
}

.parallax-cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); }


/* ---- Gallery ---- */
.gallery-section { background: var(--cream); }

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .gallery-caption {
  position: absolute;
  inset: 0;
  background: rgba(200,121,65,0.0);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  opacity: 0;
  transition: background 0.3s, opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
  background: rgba(30,27,24,0.55);
  opacity: 1;
}


/* ---- Pricing ---- */
.pricing-section { background: var(--mid); }

.pricing-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.25s;
  height: 100%;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  transform: scale(1.03);
}

.pricing-card.featured h4,
.pricing-card.featured .price,
.pricing-card.featured ul li { color: #fff; }

.pricing-card.featured .badge {
  background: var(--primary) !important;
}

.pricing-card h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.price {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--primary);
  line-height: 1;
}

.price sup { font-size: 1.5rem; vertical-align: super; }
.price sub { font-size: 0.9rem; color: var(--text-muted); }

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.pricing-card ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-muted);
}

.pricing-card.featured ul li { border-bottom-color: rgba(255,255,255,0.1); }

.popular-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
}


/* ---- Contact ---- */
.contact-section { background: var(--cream); }

.contact-form .form-control {
  border-radius: 0;
  border: 1px solid var(--mid);
  background: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.alert-success {
  background: #2D5016;
  color: #fff;
  border: none;
  border-radius: 0;
}


/* ---- Footer ---- */
footer {
  background: var(--dark-alt);
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
}

footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--gold); }

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-right: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}

.footer-divider {
  border-color: rgba(255,255,255,0.1);
}


/* ============================================================
   Interior Pages
   ============================================================ */

body.interior-page #mainNav {
  background: var(--dark-alt) !important;
}

.page-header {
  background: var(--dark);
  padding: 7rem 0 3rem;
}


/* ---- Filter Bar ---- */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--mid);
  padding: 0.85rem 0;
  z-index: 100;
  top: 66px; /* below fixed navbar */
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--mid);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-count {
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0 0.4rem;
  line-height: 1.6;
}

.filter-pill.active .filter-count { background: rgba(255,255,255,0.25); }

.sort-label { font-size: 0.82rem; color: var(--text-muted); white-space:nowrap; }

.sort-select {
  border-radius: 0 !important;
  border-color: var(--mid);
  font-size: 0.82rem;
  color: var(--dark);
}

.sort-select:focus { box-shadow: none; border-color: var(--primary); }


/* ---- Art Cards ---- */
.art-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.art-card {
  background: #fff;
  border: 1px solid var(--mid);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.art-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--mid);
  flex-shrink: 0;
}

.art-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.art-card:hover .art-card-img img { transform: scale(1.05); }

.art-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.art-badge.sold     { background: #2D2926; color: #fff; }
.art-badge.featured { background: var(--gold); color: var(--dark); }

.art-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(30,27,24,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: background 0.3s, opacity 0.3s;
}

.art-card:hover .art-card-hover {
  background: rgba(30,27,24,0.3);
  opacity: 1;
}

.art-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.art-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.art-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
}

.art-price.inquire { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; font-family: 'Lato', sans-serif; }

.art-view {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.art-card:hover .art-view { color: var(--primary); }

.art-category-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--mid);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}


/* ---- Artwork Detail ---- */
.artwork-detail-img {
  position: relative;
  background: var(--mid);
}

.artwork-detail-img img {
  width: 100%;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,27,24,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sold-overlay span {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.5rem 2rem;
}

.artwork-category-link {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.artwork-category-link:hover { color: var(--gold); }

.artwork-detail-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.artwork-detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
}

.artwork-detail-price.inquire {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: 'Lato', sans-serif;
  font-style: italic;
}

.artwork-meta-table {
  width: 100%;
  font-size: 0.9rem;
}

.artwork-meta-table th {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem 0.5rem 0;
  width: 110px;
  vertical-align: top;
}

.artwork-meta-table td { padding: 0.5rem 0; color: var(--dark); }

.availability { font-size: 0.85rem; }
.availability.available { color: #2E7D32; }
.availability.sold      { color: #999; }
.availability i { font-size: 0.5rem; vertical-align: middle; margin-right: 3px; }

.artwork-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.artwork-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.share-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--mid);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.share-icon:hover { border-color: var(--primary); color: var(--primary); }


/* ---- Admin ---- */
.admin-card {
  background: #fff;
  border: 1px solid var(--mid);
  padding: 2rem;
}

.admin-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.admin-artwork-list { display: flex; flex-direction: column; gap: 0.75rem; }

.admin-artwork-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--mid);
  padding: 0.75rem 1rem;
  transition: box-shadow 0.2s;
}

.admin-artwork-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.admin-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.admin-artwork-info { min-width: 0; }

.admin-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.admin-tag.available { background: #E8F5E9; color: #2E7D32; }
.admin-tag.sold      { background: #FAFAFA; color: #999; border: 1px solid #ddd; }


/* ============================================================
   Journey Timeline — artwork detail page
   ============================================================ */

.journey-section { border-top: 1px solid var(--mid); }

.journey-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.journey-timeline {
  position: relative;
  padding-left: 1rem;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0.75rem;
  bottom: 0;
  width: 1px;
  background: var(--mid);
}

.journey-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.journey-step-marker {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--cream);
}

.journey-step-body { flex: 1; min-width: 0; }

.journey-step-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.journey-step-image {
  margin-bottom: 1.5rem;
  border: 1px solid var(--mid);
}

.journey-step-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.journey-step-text p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.journey-step-text p:last-child { margin-bottom: 0; }

@media (max-width: 575px) {
  .journey-timeline::before { left: 1.25rem; }
  .journey-step { gap: 1.25rem; }
  .journey-step-marker { width: 2.5rem; height: 2.5rem; font-size: 0.85rem; }
  .journey-step-title { font-size: 1.15rem; }
}
.admin-tag.featured  { background: #FFF8E1; color: #B8860B; }


/* ============================================================
   Journey Timeline — artwork detail page
   ============================================================ */

.journey-section { border-top: 1px solid var(--mid); }

.journey-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.journey-timeline {
  position: relative;
  padding-left: 1rem;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0.75rem;
  bottom: 0;
  width: 1px;
  background: var(--mid);
}

.journey-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.journey-step-marker {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50