/* base reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-light: #151515;
  --color-text: #f5f5f5;
  --color-gold-light: #fdf0b0;
  --color-gold: #D4AF37;
  --color-gold-dark: #aa771c;
  
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-script: 'Great Vibes', cursive;
  
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
  position: relative;
  z-index: 0;
}

/* Faint Gold Foil Paisley Background */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: image-set(
    url('../images/gold_foil_paisley.avif') type('image/avif'),
    url('../images/gold_foil_paisley.png') type('image/png')
  );
  background-size: 1000px; /* Large scale */
  background-repeat: repeat;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 2px;
}

/* Keep the custom cursor behavior on desktop pointers only. */
@media (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, .gallery-item, .lightbox-close {
    cursor: none;
  }
}

/* =========================================================================
   STICKY BOOK NOW BUTTON 
========================================================================= */
.sticky-book-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
  color: #000;
  font-family: var(--font-serif);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255,255,255,0.5);
  transition: var(--transition);
  border: 1px solid var(--color-gold-light);
  text-transform: uppercase;
}

.sticky-book-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6), inset 0 0 15px rgba(255,255,255,0.8);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
}

/* =========================================================================
   HERO SECTION 
========================================================================= */
.hero-section {
  position: relative;
  min-height: 80vh;
  padding: 120px 0 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent;
  /* Very dark rustic background texture */
  background-image: radial-gradient(circle at center, rgba(30,25,10,0.8) 0%, transparent 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="transparent"/><path d="M0 0h1v1H0zm2 2h1v1H2z" fill="rgba(212,175,55,0.03)"/></svg>');
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
  animation: fadeInDown 1.5s ease-out forwards;
}

.hero-text {
  margin-top: 40px;
  animation: fadeInUp 1.5s ease-out 0.5s forwards;
  opacity: 0;
}

.tagline {
  font-family: var(--font-script);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(-45deg, var(--color-gold) 0%, var(--color-gold-light) 25%, #ffffff 50%, var(--color-gold-light) 75%, var(--color-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.location-text {
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ccc;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 15px 0;
  display: inline-block;
  margin-top: 10px;
}

.gold-divider {
  width: 150px;
  height: 15px;
  margin: 0 auto 15px auto;
}

/* =========================================================================
   GALLERY SECTION (Masonry)
========================================================================= */
.gallery-section, .social-feeds {
  padding: 100px 20px;
  background-color: transparent;
  position: relative;
}

/* Add a gold paint stroke texture to background using pseudo element */
.gallery-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212,175,55,0.04) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(212,175,55,0.04) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  background: linear-gradient(-45deg, var(--color-gold-dark) 0%, var(--color-gold) 25%, #fff 50%, var(--color-gold) 75%, var(--color-gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.gold-filigree-accent {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.section-subtitle {
  color: #aaa;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

/* Contact Action Buttons */
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-block;
  background: rgba(10, 10, 10, 0.6);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dark);
  padding: 12px 25px;
  border-radius: 4px;
  font-family: var(--font-serif);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 2px;
  transition: var(--transition);
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.action-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.attention-btn {
  position: relative;
  overflow: hidden;
  border-color: var(--color-gold);
  color: #fff;
  text-shadow: 0 0 5px var(--color-gold);
  font-weight: 700;
  animation: pulseGlow 2.5s infinite alternate;
}

.attention-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(253, 240, 176, 0.4), transparent);
  transform: rotate(35deg);
  animation: glitterSweep 4s infinite linear;
  pointer-events: none;
}

/* Masonry layout */
.masonry-grid {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 992px) { .masonry-grid { column-count: 2; } }
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 35px;
  position: relative;
  cursor: none; /* override default cursor since we have custom */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
  transform: scale(1.05) translateY(-5px);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0,0,0,0.8); /* shadow inside the frame */
  filter: grayscale(15%) contrast(1.1);
  transition: filter 0.4s ease;
}

.gallery-item:hover img {
  filter: grayscale(0%) contrast(1.15);
}

/* Gallery caption label */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* =========================================================================
   ART GALLERY FRAME TYPES 
========================================================================= */
.frame-ornate {
  padding: 18px; /* Mat board */
  background-color: #f1efeb; /* Vintage white mat */
  border: 12px solid #D4AF37;
  border-image: linear-gradient(45deg, #b8860b, #fdf0b0, #daa520, #AA771C) 1;
  box-shadow: 0 15px 35px rgba(0,0,0,0.9);
}

.frame-vintage-wood {
  padding: 22px;
  background-color: #e4dfce; /* Aged warm matting */
  border: 18px outset #3e2723;
  box-shadow: 0 20px 40px rgba(0,0,0,0.95);
}

.frame-crimson {
  padding: 24px;
  background-color: #f4e8e8;
  border: 12px solid #5a1111;
  box-shadow: 0 15px 30px rgba(0,0,0,0.9);
}

.frame-emerald {
  padding: 18px;
  background-color: #e8f4ec;
  border: 14px inset #153c20;
  box-shadow: 0 15px 30px rgba(0,0,0,0.9);
}

.frame-amber {
  padding: 22px;
  background-color: #fdfaf0;
  border: 10px solid #c48c16;
  box-shadow: 0 15px 30px rgba(0,0,0,0.9);
}

.frame-gothic-gold {
  padding: 12px;
  background-color: #0a0a0a; /* Premium black matting */
  border: 14px double #AA771C;
  box-shadow: 0 15px 30px rgba(0,0,0,0.9);
}

.frame-gothic-gold img {
  box-shadow: 0 0 10px rgba(255,255,255,0.05); /* highlight against black mat */
}

/* =========================================================================
   AI GENERATOR
========================================================================= */
.generator-section {
  padding: 80px 20px;
  background-color: transparent;
  border-top: 1px dashed rgba(212,175,55,0.2);
}

.generator-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.7);
  border: 2px solid var(--color-gold-dark);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
}

.generator-input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

#aiPrompt {
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--color-gold-light);
  padding: 20px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  border-radius: 4px;
  resize: vertical;
  min-height: 120px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
  transition: var(--transition);
  cursor: text;
}

#aiPrompt:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
}

.gold-btn {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
  color: #000;
  border: none;
  font-weight: 700;
  cursor: pointer;
  align-self: center;
  padding: 15px 50px;
}

.gold-btn:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  color: #000;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

.gold-btn:disabled {
  opacity: 0.7;
  transform: none;
}

.generator-output {
  min-height: 400px;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #050505;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.output-placeholder {
  color: #666;
  font-style: italic;
  font-family: var(--font-serif);
  text-align: center;
}

.generator-output img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: fadeInUp 1s ease forwards;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  border-top-color: var(--color-gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================================
   IDEAS CAROUSEL
========================================================================= */
.ideas-section {
  padding: 80px 20px;
  position: relative;
  border-top: 1px dashed rgba(212,175,55,0.2);
}

.ideas-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 20px 0 40px 0;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.ideas-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.idea-item {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: center;
  position: relative;
  padding: 15px;
  background-color: #0a0a0a;
  border: 8px solid #050505;
  box-shadow: 0 12px 25px rgba(0,0,0,0.8);
  transition: transform 0.3s;
  cursor: none;
}

.idea-item:hover {
  transform: translateY(-5px);
  border-color: #111;
}

.idea-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #111;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* =========================================================================
   LIGHTBOX 
========================================================================= */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--color-gold);
  font-size: 50px;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
  line-height: 1;
}

.js-lightbox-trigger:focus-visible,
.lightbox-close:focus-visible,
.gold-btn:focus-visible,
.action-btn:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

.lightbox-close:hover {
  color: #fff;
  transform: scale(1.1);
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 50px rgba(0,0,0,1);
}

.lightbox-frame {
  position: absolute;
  top: -15px; left: -15px; right: -15px; bottom: -15px;
  border: 2px solid var(--color-gold-dark);
  pointer-events: none;
  z-index: 10000;
  /* Complex filigree frame could be added as border-image here */
  border-image: linear-gradient(to bottom right, #D4AF37, #AA771C, #fdf0b0, #D4AF37) 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  object-fit: contain;
}

/* =========================================================================
   SOCIAL CTA
========================================================================= */
.social-cta {
  background-color: transparent;
  padding: 100px 20px;
  position: relative;
  border-top: 1px dotted rgba(212,175,55,0.3);
}

.social-cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.social-card {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-art-wrapper {
  width: 100%;
}

.social-art-img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  filter: contrast(1.1);
}

.massive-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--color-gold-dark);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  cursor: none;
}

.massive-social-btn:hover {
  transform: scale(1.05) translateX(10px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold-light);
  background: linear-gradient(90deg, rgba(20,20,20,0.9) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.btn-icon {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #000;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 25px;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.4);
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.btn-text strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.btn-text span {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: #ccc;
  letter-spacing: 1px;
}

/* =========================================================================
   FOOTER
========================================================================= */
.site-footer {
  background-color: #000;
  padding: 60px 20px 40px;
  text-align: center;
  border-top: 3px solid var(--color-gold-dark);
}

.footer-logo {
  margin-bottom: 15px;
  font-size: 2rem;
  background: linear-gradient(-45deg, var(--color-gold-dark) 0%, var(--color-gold) 25%, #fff 50%, var(--color-gold) 75%, var(--color-gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.site-footer p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* =========================================================================
   CUSTOM CURSOR
========================================================================= */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 144px;
  height: 144px;
  background-image: url('../images/tattoo-machine-cursor.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  transform-origin: 15px 129px; /* Assuming needle is near the bottom-left */
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
  transform: translate(var(--x, -200px), var(--y, -200px)) translate(-15px, -129px) scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.6));
}

.custom-cursor.hover {
  transform: translate(var(--x, -200px), var(--y, -200px)) translate(-15px, -129px) scale(1.35);
  filter: drop-shadow(0 0 15px rgba(212,175,55,1));
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes textShimmer {
  0% { background-position: -100% center; }
  100% { background-position: 200% center; }
}

.animate-foil {
  animation: textShimmer 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4), inset 0 0 5px rgba(212, 175, 55, 0.2);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.9), inset 0 0 15px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
  }
}

@keyframes floatAndGlow {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    filter: drop-shadow(0 0 5px rgba(212,175,55,0.4)); 
  }
  50% { 
    transform: translateY(-15px) scale(1.1); 
    filter: drop-shadow(0 0 25px rgba(212,175,55,1)); 
  }
}

@keyframes glitterSweep {
  0% { left: -100%; opacity: 0; }
  20% { opacity: 1; }
  40% { left: 200%; opacity: 0; }
  100% { left: 200%; opacity: 0; }
}

.tagline-flake {
  background-color: #ffffff !important;
  box-shadow: 0 0 5px #ffffff, 0 0 12px rgba(253, 240, 176, 0.9) !important;
}

.glitter-flake {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: var(--color-gold-light);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--color-gold), 0 0 8px var(--color-gold-light);
  pointer-events: none;
  animation: fallDown 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 9999;
}

@keyframes fallDown {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(40px) scale(0) rotate(180deg);
    opacity: 0;
  }
}

/* =========================================================================
   SITE NAVIGATION (non-homepage pages)
========================================================================= */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.site-nav-brand:hover {
  color: var(--color-gold-light);
}

.site-nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.site-nav-links li {
  position: relative;
}

.site-nav-links li a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
}

.site-nav-links li a:hover,
.site-nav-links li.current-menu-item a,
.site-nav-links li.current-menu-parent > a {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* Dropdown submenu */
.site-nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  padding: 10px 0;
  min-width: 200px;
  list-style: none;
  margin: 10px 0 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 101;
}

.site-nav-links .sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.site-nav-links li:hover > .sub-menu {
  display: block;
}

.site-nav-links .sub-menu li {
  margin: 0;
}

.site-nav-links .sub-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav-links .sub-menu li a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
}

@media (max-width: 600px) {
  .site-nav {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav-links .sub-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 5px 0 0 15px;
    margin: 5px 0 0;
    min-width: 0;
    display: none;
    backdrop-filter: none;
  }

  .site-nav-links li:hover > .sub-menu {
    display: block;
  }

  .site-nav-links .sub-menu li a {
    padding: 4px 0;
    font-size: 0.75rem;
  }
}

/* =========================================================================
   BLOG TEMPLATES
========================================================================= */

/* --- Blog Header --- */
.blog-header {
  text-align: center;
  padding: 100px 20px 40px;
}

/* --- Mobile Category Dropdown --- */
.blog-mobile-categories {
  display: none;
  padding: 0 20px 20px;
  text-align: center;
}

.blog-mobile-categories select {
  background: rgba(10, 10, 10, 0.8);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dark);
  padding: 12px 20px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

@media (max-width: 992px) {
  .blog-mobile-categories {
    display: block;
  }
}

/* --- Blog Layout (content + sidebar) --- */
.blog-layout {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.blog-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 992px) {
  .blog-layout {
    flex-direction: column;
  }
}

/* --- Hero Post --- */
.blog-hero {
  position: relative;
  margin-bottom: 50px;
  border: 2px solid var(--color-gold-dark);
  overflow: hidden;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.blog-hero:hover {
  border-color: var(--color-gold);
}

.blog-hero-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-hero:hover .blog-hero-image img {
  transform: scale(1.03);
}

.blog-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.blog-hero-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 10px 0;
  line-height: 1.3;
}

.blog-hero-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-hero-title a:hover {
  color: var(--color-gold);
}

.blog-hero-excerpt {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #999;
  font-size: 0.9rem;
}

.blog-read-more {
  color: var(--color-gold);
  text-decoration: none;
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.blog-read-more:hover {
  color: var(--color-gold-light);
}

/* --- Category Badge --- */
.blog-category-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: var(--transition);
}

.blog-category-badge:hover {
  background: rgba(212, 175, 55, 0.3);
  color: var(--color-gold-light);
}

/* --- Post Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

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

.blog-card {
  background: var(--color-bg-light);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.blog-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.blog-card-body {
  padding: 20px;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 10px 0;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--color-gold);
}

.blog-card-excerpt {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.blog-card-meta {
  color: #777;
  font-size: 0.8rem;
}

/* --- Pagination --- */
.blog-pagination {
  margin-top: 20px;
}

.blog-pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.blog-pagination-links a {
  display: inline-block;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dark);
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--font-serif);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.blog-pagination-links a:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
}

/* --- Blog Sidebar --- */
.blog-sidebar {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .blog-sidebar {
    width: 100%;
  }
}

.sidebar-widget {
  background: var(--color-bg-light);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 4px;
  padding: 25px;
  margin-bottom: 25px;
}

.sidebar-widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-categories ul {
  list-style: none;
}

.sidebar-categories li {
  margin-bottom: 8px;
}

.sidebar-categories a {
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.sidebar-categories a:hover {
  color: var(--color-gold);
}

.sidebar-categories .current-cat a {
  color: var(--color-gold);
  font-weight: 600;
}

.cat-count {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.sidebar-recent ul {
  list-style: none;
}

.recent-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-post-thumb img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.recent-post-title {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recent-post-title:hover {
  color: var(--color-gold);
}

.sidebar-cta {
  text-align: center;
  border-color: var(--color-gold-dark);
}

.sidebar-cta p {
  color: #aaa;
  margin-bottom: 15px;
  font-style: italic;
}

.sidebar-cta-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-cta-btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

/* --- Single Post --- */
.blog-single-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.blog-single-banner {
  position: relative;
  margin-bottom: 40px;
  border-radius: 4px;
  overflow: hidden;
}

.blog-single-banner > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.blog-single-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
}

.blog-single-header-no-image {
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.blog-single-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.3;
  margin: 10px 0 15px;
}

.blog-single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
  font-size: 0.9rem;
}

.blog-single-header-no-image .blog-single-meta {
  justify-content: center;
}

.meta-sep {
  color: var(--color-gold-dark);
}

.reading-time {
  color: var(--color-gold);
}

/* Single post content typography */
.blog-single-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ddd;
}

.blog-single-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 15px;
  color: var(--color-gold);
}

.blog-single-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 12px;
  color: var(--color-gold-light);
}

.blog-single-content p {
  margin-bottom: 20px;
}

.blog-single-content a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.blog-single-content a:hover {
  color: var(--color-gold-light);
}

.blog-single-content ul,
.blog-single-content ol {
  margin: 0 0 20px 25px;
}

.blog-single-content li {
  margin-bottom: 8px;
}

.blog-single-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 15px 20px;
  margin: 25px 0;
  background: rgba(212, 175, 55, 0.05);
  font-style: italic;
  color: #bbb;
  border-radius: 0 4px 4px 0;
}

.blog-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

/* --- Breadcrumbs --- */
.blog-breadcrumbs {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 300;
}

.blog-breadcrumbs a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-breadcrumbs a:hover {
  color: var(--color-gold);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--color-gold-dark);
}

.breadcrumb-current {
  color: var(--color-gold);
}

/* --- Post Navigation --- */
.blog-post-nav {
  margin: 50px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 25px 0;
}

.blog-post-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 600px) {
  .blog-post-nav-links {
    flex-direction: column;
  }
}

.post-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  padding: 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
  flex: 1;
}

.post-nav-link:hover {
  background: rgba(212, 175, 55, 0.05);
}

.post-nav-next {
  text-align: right;
  justify-content: flex-end;
}

.post-nav-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.post-nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-nav-label {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-serif);
}

.post-nav-title {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.4;
}

/* --- Related Posts --- */
.blog-related {
  margin: 40px 0;
}

.blog-related-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 25px;
  color: var(--color-gold);
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .blog-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

.blog-related-card {
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-related-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-3px);
}

.blog-related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.blog-related-card-title {
  display: block;
  padding: 12px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.4;
}

/* --- Single Post Footer CTA --- */
.blog-single-footer-cta {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.blog-single-categories {
  margin-bottom: 30px;
}

.blog-single-categories h3,
.blog-single-book-cta h3 {
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.blog-single-cat-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-single-book-cta {
  margin-top: 25px;
}

/* --- Blog Empty State --- */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: #777;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* --- Homepage Blog Preview --- */
.blog-preview-section {
  padding: 80px 20px;
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

@media (max-width: 992px) {
  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

.blog-preview-link {
  text-align: center;
  margin-top: 10px;
}

.blog-preview-link a {
  color: var(--color-gold);
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-gold-dark);
  padding-bottom: 4px;
  transition: var(--transition);
}

.blog-preview-link a:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}
