/* ==========================================================================
   Two Warm Hearts — Unified Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables (Design Tokens)
   ========================================================================== */
:root {
  /* Brand colors */
  --primary-color: #130f81;
  --secondary-color: #f7f7f7;
  --text-color: #333;
  --card-bg: #fff;
  --border-radius: 8px;

  /* Site layout */
  --site-max: 1120px;
  --site-pad: 16px;
  --site-border: rgba(255, 255, 255, 0.22);
  --site-hover: rgba(255, 255, 255, 0.14);

  /* Brand accents */
  --brand-indigo: #130f81;
  --brand-yellow: #f5d64a;
  --brand-ink: #0f1020;
}

/* ==========================================================================
   2. Base / Reset
   ========================================================================== */
html {
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ==========================================================================
   3. Site Header (Sticky Navigation)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #1e1a8c;
  color: #fff;
  border-bottom: 1px solid var(--site-border);
  backdrop-filter: saturate(180%) blur(10px);
}

.site-container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 10px var(--site-pad);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo-img {
  display: block;
  height: 72px;
  width: auto;
}

/* Make logo more readable on the homepage */
body.home .site-logo-img {
  height: 88px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-yellow);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 7px 10px;
  border-radius: 12px;
  line-height: 1;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--site-hover);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-yellow);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--site-hover);
}

.nav-toggle-bars {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px var(--site-pad) 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--brand-indigo);
    border-bottom: 1px solid var(--site-border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 12px;
  }
}

/* ==========================================================================
   4. Hero Section (Homepage)
   ========================================================================== */
.hero {
  background: #fff;
}

.hero .hero-content {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 38px var(--site-pad) 22px;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--brand-indigo);
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.75);
}

.hero .hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--brand-indigo);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(19, 15, 129, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero .hero-button:hover {
  background: #2a25a8;
  box-shadow: 0 6px 16px rgba(19, 15, 129, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .hero .hero-content {
    padding-top: 26px;
  }

  .hero h1 {
    font-size: clamp(2rem, 6.5vw, 2.4rem);
  }
}

/* ==========================================================================
   5. Container / Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  padding-top: 20px;
}

/* ==========================================================================
   6. Product Grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* ==========================================================================
   7. Product Card
   ========================================================================== */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Highlight style for target link */
.product-card.highlight {
  box-shadow: 0 0 20px 5px rgba(255, 204, 0, 0.9);
  transform: scale(1.05);
  transition: transform 0.5s, box-shadow 0.5s;
  border: 3px solid #ffcc00;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-info h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.3em;
}

.product-info p {
  margin: 5px 0 15px;
  color: #777;
  line-height: 1.5;
}

.product-info .price {
  font-size: 1.25em;
  color: var(--primary-color);
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
  letter-spacing: 0.02em;
}

.product-info > * + * {
  margin-top: 8px;
}

.set-card {
  border: 3px solid var(--primary-color) !important;
  box-shadow: 0 6px 15px rgba(106, 90, 205, 0.3);
}

/* ==========================================================================
   8. Badges
   ========================================================================== */
.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 9;
  pointer-events: none;
}

.badge {
  display: inline-block;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.badge-primary {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.badge-secondary {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-sale {
  background-color: #b30000;
  color: #fff;
  font-weight: 800;
}

.badge-sold {
  background-color: #111;
  color: #fff;
  font-weight: 800;
}

.badge-new {
  background-color: var(--brand-yellow);
  color: var(--primary-color);
  font-weight: 800;
}

/* New Arrival badge */
.new-arrival-badge {
  font-size: 0.7em;
  font-weight: bold;
  color: white;
  background-color: #e74c3c;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}

.product-card .new-arrival-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 5px 10px;
  font-size: 0.8em;
  border-radius: 3px;
}

/* Collectible note */
.collectible-note {
  font-weight: bold;
  color: #8c0000;
  background-color: #ffe0e0;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 5px;
  font-size: 0.95em;
}

/* Handcrafted label */
.handcrafted {
  color: #b30000;
  font-weight: 700;
  margin-top: 6px;
}

/* ==========================================================================
   9. Buttons
   ========================================================================== */
.buy-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.buy-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.buy-button:hover {
  background-color: #2a25a8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(19, 15, 129, 0.25);
}

.buy-button:active {
  transform: translateY(0);
}

.buy-button-disabled,
.buy-button-disabled:hover {
  background-color: #aaa;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.product-card-unavailable {
  opacity: 0.9;
}

.product-card-unavailable .product-image {
  cursor: default;
}

.product-card-unavailable:hover {
  transform: none;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.btn-buy {
  background: var(--primary-color);
  color: #fff;
  border-color: rgba(255, 255, 255, 0);
}

.btn-inquire {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ==========================================================================
   10. Price Styles
   ========================================================================== */
.price .old-price,
.old-price {
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 10px;
}

.price .new-price,
.new-price {
  font-weight: 800;
}

/* ==========================================================================
   11. Sold Out Styles
   ========================================================================== */
.product-card.sold-out {
  pointer-events: none;
  opacity: 0.5;
  transition: none;
  cursor: default;
}

.product-card.sold-out .product-image {
  filter: grayscale(1) brightness(0.55);
}

.product-card.sold-out .buy-button {
  background: #aaa !important;
  cursor: not-allowed;
}

.product-card.sold-out:hover {
  transform: none;
}

.product-card.sold-out .sold-badge {
  display: none !important;
}

.sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.sold-out-text {
  color: white;
  font-size: 2em;
  font-weight: bold;
  background-color: rgba(200, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 5px;
  transform: rotate(-15deg);
}

.buy-button.sold-out-btn,
.buy-button.disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.sold-badge {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* SOLD OUT overlay for image wrapper */
.product-image-wrapper.sold {
  position: relative;
}

.product-image-wrapper.sold img {
  filter: grayscale(1) brightness(0.8);
}

.sold-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  transform: rotate(-12deg);
  letter-spacing: 2px;
}

/* Soldout ribbon */
.soldout-ribbon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}

.soldout-ribbon span {
  background: rgba(0, 160, 70, 0.92);
  color: #fff;
  padding: 14px 54px;
  font-size: 1.35em;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: rotate(-18deg);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   12. Modal Styles
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 5vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-wrapper {
  margin: auto;
  display: block;
  width: min(900px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  position: relative;
  animation-name: zoom;
  animation-duration: 0.3s;
  overflow: auto;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #333;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 101;
}

.close:hover,
.close:focus {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* Product modal container */
.product-modal-container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
  align-items: flex-start;
}

.product-gallery {
  flex: 1 1 56%;
  min-width: 0;
  display: grid;
  position: relative;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.product-gallery img,
.product-gallery iframe {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  display: block;
}

.product-info-modal {
  flex: 1 1 44%;
  min-width: 0;
  padding-left: 10px;
}

.product-info-modal h3 {
  font-size: 1.8em;
  margin-top: 0;
  color: var(--primary-color);
}

.product-info-modal .price {
  font-size: 1.5em;
  margin: 12px 0 20px;
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.02em;
}

.product-info-modal .description {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 15px;
}

.product-info-modal ul {
  list-style: disc;
  margin-left: 20px;
  padding: 0;
}

.product-info-modal .buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  width: fit-content;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* Scroll hint */
.scroll-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  text-align: center;
  padding: 10px 8px 8px;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--primary-color);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.96)
  );
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  pointer-events: none;
}

/* Modal mobile overrides */
@media (max-width: 820px) {
  .product-modal-container {
    flex-direction: column;
  }

  .product-gallery {
    order: 1;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    padding-bottom: 15px;
    height: auto;
    max-height: none;
  }

  .product-gallery img,
  .product-gallery iframe {
    height: auto;
  }

  .product-info-modal {
    order: 2;
    padding-left: 0;
  }

  .product-info-modal .buy-button {
    width: 100%;
  }
}

/* ==========================================================================
   13. Image Modal (#imageModal) — Specific Overrides
   ========================================================================== */
#imageModal.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

#imageModal .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

#imageModal .modal-content-wrapper {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  overflow: auto !important;
  background: #fff;
  border-radius: 12px;
}

#imageModal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

#imageModal .modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

#imageModal .modal-close:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

#imageModal .product-modal-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  padding: 18px !important;
  align-items: flex-start !important;
}

#imageModal .product-gallery {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  min-width: 0 !important;
  overflow: hidden;
  border-right: 1px solid #eee;
  padding-right: 24px;
}

#imageModal .modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

#imageModal .product-info-modal {
  flex: 0 0 calc(50% - 24px) !important;
  min-width: 0 !important;
  display: block !important;
  padding: 14px 20px 16px 0;
  padding-left: 0;
  padding-bottom: 8px;
}

#imageModal .product-info-modal > * + * {
  margin-top: 12px;
}

#imageModal #modalTitle {
  margin: 0 0 12px !important;
  font-size: 2.05rem !important;
  line-height: 1.15 !important;
}

#imageModal #modalDesc {
  margin: 0 0 16px !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

#imageModal #modalPrice.price {
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 12px 0 16px !important;
  letter-spacing: 0.02em;
}

#imageModal .buy-button {
  width: fit-content;
  padding: 12px 24px;
  font-size: 1.05em;
}

#imageModal .buy-button-disabled {
  padding: 12px 24px;
  font-size: 1.05em;
}

@media (max-width: 820px) {
  #imageModal .product-modal-container {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  #imageModal .product-gallery {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #eee;
    padding-right: 0 !important;
    padding-bottom: 16px;
  }

  #imageModal .product-info-modal {
    flex: 1 1 100% !important;
    padding-left: 0 !important;
  }

  #imageModal .buy-button {
    width: 100% !important;
    text-align: center;
  }
}

@media (max-width: 700px) {
  #imageModal .product-modal-container {
    padding: 12px;
    gap: 12px !important;
  }

  #imageModal .product-gallery {
    padding-bottom: 12px;
  }
}

/* ==========================================================================
   14. Promo Banner
   ========================================================================== */
.promo-banner {
  background: linear-gradient(90deg, #ff3d71, #ffb800);
  color: #111;
  padding: 12px 14px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.promo-banner span {
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  display: inline-block;
}

.promo-banner .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: rgba(0, 0, 0, 0.14);
  padding: 2px 8px;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .promo-banner {
    font-size: 0.95em;
  }

  .promo-banner span {
    margin-top: 6px;
    margin-left: 0;
  }
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
footer,
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 0.85em;
}

.footer-content {
  max-width: var(--site-max);
  margin: 0 auto;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer .acknowledgement {
  margin-top: 15px;
  line-height: 1.4;
  color: #555;
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Instagram link */
.instagram-link {
  color: var(--primary-color);
  font-size: 1.2em;
  margin-left: 10px;
  transition: color 0.3s;
}

.instagram-link:hover {
  color: #534b86;
}

/* Made in Canada badge */
.made-in-canada-logo {
  height: 14px;
  width: auto;
  vertical-align: middle;
  margin-left: 5px;
}

/* ==========================================================================
   16. Value Sets Explainer
   ========================================================================== */
.value-sets-explainer {
  margin: 10px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.value-sets-explainer p {
  margin: 0;
}

/* ==========================================================================
   17. Hero Story + CTA
   ========================================================================== */
.hero-story {
  max-width: 70ch;
  margin: 10px auto 0;
  padding: 0 10px;
  font-size: 1.05em;
  opacity: 0.95;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
  padding: 0 10px;
}

/* ==========================================================================
   18. Artists Section
   ========================================================================== */
.artists-teaser {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 20px;
}

.artists-teaser .artists-head {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 16px 16px 12px;
  text-align: center;
}

.artists-teaser .artists-head h2 {
  margin: 0 0 8px;
  padding-top: 0;
}

.artists-teaser .artists-head p {
  margin: 0 auto 8px;
  max-width: 80ch;
  color: #444;
}

.artists-teaser .link {
  display: inline-block;
  margin-top: 4px;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.artists-teaser .link:hover {
  text-decoration: underline;
}

.artists-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 16px;
}

@media (min-width: 860px) {
  .artists-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.artist-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.artist-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin-bottom: 10px;
}

.artist-card h3 {
  margin: 6px 0 6px;
  color: var(--primary-color);
}

.artist-card p {
  margin: 0;
  color: #555;
}

/* Homepage artist thumbnails */
.artists-teaser .artist-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.artists-teaser .artist-card img {
  width: 120px;
  max-width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  flex: 0 0 120px;
  margin: 0;
}

.artists-teaser .artist-card h3 {
  margin-top: 0;
}

/* ==========================================================================
   19. About Page Specific Styles
   ========================================================================== */
.about-logo {
  display: inline-block;
  margin: 8px 0 18px;
}

.about-logo img {
  width: 110px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .about-logo {
    display: flex;
    justify-content: center;
    margin: 6px 0 16px;
  }

  .about-logo img {
    width: 90px;
  }
}

.lede {
  font-size: 1.05rem;
  max-width: 720px;
}

.chips {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

/* About page artists grid */
.artists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 820px) {
  .artists {
    grid-template-columns: 1fr;
  }
}

.muted {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.95rem;
}

/* ==========================================================================
   20. Artworks Page Specific Styles
   ========================================================================== */
.subnote {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto 18px;
  color: #555;
}

.meta {
  color: #666;
  margin: 0 0 10px;
  font-size: 0.95em;
}

/* ==========================================================================
   21. Page Content (Policy Pages)
   ========================================================================== */
.page-content {
  max-width: 800px;
}

.page-content h2 {
  text-align: left;
  padding-top: 0;
}

.page-content h3 {
  margin-top: 24px;
  color: var(--primary-color);
}

/* ==========================================================================
   22. Thank You Page
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  flex: 1 0 auto;
}

.success {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  padding: 28px 22px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.success h1 {
  margin: 0 0 10px;
  color: var(--brand-indigo);
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.success p {
  margin: 8px auto 0;
  max-width: 58ch;
  color: rgba(0, 0, 0, 0.72);
  font-size: 1.05rem;
  line-height: 1.55;
}

.cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-row {
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.95rem;
}

.made-in {
  width: min(240px, 80vw);
  height: auto;
  display: block;
}

/* ==========================================================================
   23. Legacy Header Styles (for pages not yet migrated)
   ========================================================================== */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
  position: relative;
}

.header-top {
  position: relative;
}

.logo-wrapper {
  position: absolute;
  left: 20px;
  top: 15px;
  width: 160px;
  height: 160px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  border: 3px solid white;
  z-index: 10;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header h1 {
  margin: 0;
  font-size: 2.5em;
  display: block;
  font-family: "Dancing Script", cursive;
  padding-left: 180px;
  padding-right: 180px;
  text-align: center;
}

.header p {
  font-size: 1.1em;
  margin-top: 10px;
}

.header .announcement {
  margin-top: 15px;
  font-size: 1.2em;
  font-weight: bold;
  color: rgb(189, 192, 5);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  padding: 0 10px;
}

.main-nav {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1em;
  padding: 5px 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.main-nav a:hover {
  opacity: 0.8;
  border-bottom: 2px solid white;
}

/* Legacy header responsive */
@media (max-width: 900px) {
  .header {
    padding: 26px 14px 18px;
  }

  .logo-wrapper {
    position: static;
    left: auto;
    top: auto;
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
    border-width: 2px;
  }

  .header h1 {
    padding-left: 0;
    padding-right: 0;
    font-size: 2.15em;
    line-height: 1.15;
  }
}

@media (max-width: 600px) {
  .logo-wrapper {
    width: 92px;
    height: 92px;
    margin-bottom: 10px;
  }

  .header h1 {
    font-size: 2em;
  }

  .header p {
    font-size: 1em;
    margin-top: 10px;
  }

  .main-nav {
    margin-top: 14px;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }

  .main-nav a {
    margin: 0;
  }
}
